/**
 * EKN Growth Tools frontend styles.
 */

.ekn-gt-wrapper,
.ekn-gt-hub {
    --ekn-gt-lavender: #F7F4FF;
    --ekn-gt-navy: #12102A;
    --ekn-gt-blue: #00415D;
    --ekn-gt-muted: #5F5878;
    --ekn-gt-border: rgba(18, 16, 42, 0.12);
    --ekn-gt-card: #FFFFFF;
    --ekn-gt-gradient: linear-gradient(135deg, #8B2FC9 0%, #C0143C 100%);
    color: var(--ekn-gt-navy);
    font-family: inherit;
}

.ekn-gt-wrapper {
    background:
        radial-gradient(circle at 8% 10%, rgba(139, 47, 201, 0.10), transparent 28%),
        radial-gradient(circle at 90% 0%, rgba(192, 20, 60, 0.08), transparent 32%),
        var(--ekn-gt-lavender);
    border-radius: 28px;
    padding: clamp(24px, 4vw, 48px);
    margin: 28px 0;
}

.ekn-gt-hero,
.ekn-gt-section-head {
    max-width: 840px;
    margin-bottom: 28px;
}

.ekn-gt-eyebrow,
.ekn-gt-category-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--ekn-gt-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ekn-gt-hero h2,
.ekn-gt-section-head h2,
.ekn-gt-category-head h3 {
    margin: 0 0 12px;
    color: var(--ekn-gt-navy);
    line-height: 1.05;
}

.ekn-gt-hero h2 {
    max-width: 820px;
    font-size: clamp(30px, 5vw, 58px);
}

.ekn-gt-section-head h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.ekn-gt-category-head h3 {
    font-size: clamp(22px, 2vw, 30px);
}

.ekn-gt-hero p,
.ekn-gt-section-head p {
    max-width: 740px;
    margin: 0;
    color: var(--ekn-gt-muted);
    font-size: 16px;
    line-height: 1.65;
}

.ekn-gt-small-note {
    margin-top: 10px !important;
    font-size: 13px !important;
    color: var(--ekn-gt-muted) !important;
}

.ekn-gt-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
    align-items: flex-end;
    margin: 24px 0 32px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--ekn-gt-border);
    border-radius: 20px;
}

.ekn-gt-search {
    display: grid;
    gap: 8px;
    min-width: min(100%, 320px);
    color: var(--ekn-gt-navy);
    font-weight: 700;
}

.ekn-gt-search input {
    width: 100%;
    border: 1px solid var(--ekn-gt-border);
    border-radius: 999px;
    padding: 12px 16px;
    color: var(--ekn-gt-navy);
    background: #fff;
}

.ekn-gt-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ekn-gt-filter {
    appearance: none;
    border: 1px solid var(--ekn-gt-border);
    border-radius: 999px;
    padding: 9px 13px;
    background: #fff;
    color: var(--ekn-gt-navy);
    cursor: pointer;
    font-weight: 700;
}

.ekn-gt-filter.is-active {
    border-color: transparent;
    color: #fff;
    background: var(--ekn-gt-gradient);
}

.ekn-gt-category-group {
    margin-top: 32px;
}

.ekn-gt-category-head {
    margin-bottom: 16px;
}

.ekn-gt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ekn-gt-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 22px;
    background: var(--ekn-gt-card);
    border: 1px solid var(--ekn-gt-border);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(18, 16, 42, 0.08);
}

.ekn-gt-card__topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ekn-gt-card__id,
.ekn-gt-card__category,
.ekn-gt-card__status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.ekn-gt-card__id {
    color: #fff;
    background: var(--ekn-gt-gradient);
}

.ekn-gt-card__category,
.ekn-gt-card__status {
    color: var(--ekn-gt-blue);
    background: #F3F0FF;
}

.ekn-gt-card__title {
    margin: 0 0 10px;
    color: var(--ekn-gt-navy);
    font-size: 22px;
    line-height: 1.18;
}

.ekn-gt-card__description {
    margin: 0 0 18px;
    color: var(--ekn-gt-muted);
    font-size: 15px;
    line-height: 1.6;
}

.ekn-gt-card__meta {
    display: grid;
    gap: 10px;
    margin: auto 0 18px;
    padding-top: 14px;
    border-top: 1px solid var(--ekn-gt-border);
}

.ekn-gt-card__meta div {
    display: grid;
    gap: 3px;
}

.ekn-gt-card__meta dt {
    margin: 0;
    color: var(--ekn-gt-muted);
    font-size: 12px;
    font-weight: 800;
}

.ekn-gt-card__meta dd {
    margin: 0;
    color: var(--ekn-gt-navy);
    font-size: 14px;
    font-weight: 700;
}

.ekn-gt-card__footer {
    display: grid;
    gap: 12px;
}

.ekn-gt-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    padding: 12px 16px;
    color: #fff !important;
    background: var(--ekn-gt-gradient);
    font-weight: 800;
    text-decoration: none !important;
    text-align: center;
    box-shadow: 0 14px 30px rgba(139, 47, 201, 0.20);
}

.ekn-gt-preview-warning,
.ekn-gt-notice {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid rgba(139, 47, 201, 0.20);
    border-radius: 16px;
    color: var(--ekn-gt-blue);
    background: rgba(255, 255, 255, 0.76);
    font-weight: 700;
}

.ekn-gt-card.is-hidden,
.ekn-gt-category-group.is-hidden {
    display: none;
}

@media (max-width: 1024px) {
    .ekn-gt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .ekn-gt-wrapper {
        border-radius: 20px;
        padding: 22px;
    }

    .ekn-gt-grid {
        grid-template-columns: 1fr;
    }

    .ekn-gt-toolbar {
        align-items: stretch;
    }

    .ekn-gt-filter-list,
    .ekn-gt-search {
        width: 100%;
    }
}

/* Batch 3 lead capture */
.ekn-gt-button {
    border: 0;
    cursor: pointer;
}

.ekn-gt-button:disabled {
    cursor: progress;
    opacity: 0.7;
}

.ekn-gt-lead-capture {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(139, 47, 201, 0.18);
    border-radius: 18px;
    background: #FAF8FF;
}

.ekn-gt-lead-form__head {
    margin-bottom: 14px;
}

.ekn-gt-lead-form__head strong {
    display: block;
    color: var(--ekn-gt-navy);
    font-size: 16px;
}

.ekn-gt-lead-form__head p {
    margin: 6px 0 0;
    color: var(--ekn-gt-muted);
    font-size: 13px;
    line-height: 1.5;
}

.ekn-gt-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ekn-gt-form-grid label,
.ekn-gt-consent {
    display: grid;
    gap: 6px;
}

.ekn-gt-form-grid span,
.ekn-gt-consent span {
    color: var(--ekn-gt-navy);
    font-size: 13px;
    font-weight: 800;
}

.ekn-gt-form-grid em {
    color: #C0143C;
    font-style: normal;
}

.ekn-gt-form-grid input[type="text"],
.ekn-gt-form-grid input[type="email"],
.ekn-gt-form-grid input[type="url"] {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--ekn-gt-border);
    border-radius: 12px;
    padding: 10px 12px;
    color: var(--ekn-gt-navy);
    background: #fff;
    box-shadow: none;
}

.ekn-gt-consent {
    grid-template-columns: auto 1fr;
    align-items: flex-start;
    margin: 14px 0;
}

.ekn-gt-consent input {
    margin-top: 2px;
}

.ekn-gt-lead-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.ekn-gt-text-button {
    border: 0;
    padding: 8px 10px;
    color: var(--ekn-gt-muted);
    background: transparent;
    cursor: pointer;
    font-weight: 800;
}

.ekn-gt-form-message {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.ekn-gt-form-message.is-loading {
    color: var(--ekn-gt-blue);
}

.ekn-gt-form-message.is-success {
    color: #027A48;
}

.ekn-gt-form-message.is-error {
    color: #B42318;
}

.ekn-gt-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ekn-gt-card.has-captured-lead .ekn-gt-card__status {
    background: #ECFDF3;
    color: #027A48;
}

@media (max-width: 700px) {
    .ekn-gt-form-grid {
        grid-template-columns: 1fr;
    }

    .ekn-gt-lead-form__actions {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Page Conversion Calculator — Batch 4 */
.ekn-gt-pc {
    margin: 34px auto;
    max-width: 1120px;
    color: #12102a;
}

.ekn-gt-pc * {
    box-sizing: border-box;
}

.ekn-gt-pc__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 24px;
    align-items: stretch;
    padding: 34px;
    border-radius: 28px 28px 0 0;
    background:
        radial-gradient(circle at 90% 10%, rgba(192, 20, 60, 0.18), transparent 26%),
        radial-gradient(circle at 10% 10%, rgba(139, 47, 201, 0.22), transparent 28%),
        #f7f4ff;
    border: 1px solid rgba(18, 16, 42, 0.08);
}

.ekn-gt-pc__hero h2 {
    max-width: 780px;
    margin: 10px 0 12px;
    color: #12102a;
    font-size: clamp(30px, 4vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.ekn-gt-pc__hero p {
    max-width: 710px;
    margin: 0;
    color: rgba(18, 16, 42, 0.72);
    font-size: 17px;
    line-height: 1.65;
}

.ekn-gt-pc__hero-card {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    min-height: 170px;
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(18, 16, 42, 0.08);
    border: 1px solid rgba(18, 16, 42, 0.07);
}

.ekn-gt-pc__hero-card span,
.ekn-gt-pc__section-head span,
.ekn-gt-pc__metrics span {
    color: #8b2fc9;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.ekn-gt-pc__hero-card strong {
    color: #12102a;
    font-size: 42px;
    line-height: 1;
}

.ekn-gt-pc__hero-card small {
    color: rgba(18, 16, 42, 0.62);
    line-height: 1.45;
}

.ekn-gt-pc__shell {
    padding: 34px;
    border: 1px solid rgba(18, 16, 42, 0.08);
    border-top: 0;
    border-radius: 0 0 28px 28px;
    background: #fff;
    box-shadow: 0 22px 80px rgba(18, 16, 42, 0.07);
}

.ekn-gt-pc__section-head {
    margin-bottom: 20px;
}

.ekn-gt-pc__section-head--spaced {
    margin-top: 34px;
}

.ekn-gt-pc__section-head h3 {
    margin: 8px 0 8px;
    color: #12102a;
    font-size: 24px;
    letter-spacing: -0.03em;
}

.ekn-gt-pc__section-head p {
    max-width: 740px;
    margin: 0;
    color: rgba(18, 16, 42, 0.64);
    line-height: 1.6;
}

.ekn-gt-pc__grid {
    display: grid;
    gap: 18px;
}

.ekn-gt-pc__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ekn-gt-field {
    display: grid;
    gap: 7px;
}

.ekn-gt-field span,
.ekn-gt-checkbox span {
    color: #12102a;
    font-size: 14px;
    font-weight: 750;
}

.ekn-gt-field small {
    color: rgba(18, 16, 42, 0.55);
    font-size: 12.5px;
    line-height: 1.45;
}

.ekn-gt-field input,
.ekn-gt-field select {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(18, 16, 42, 0.14);
    background: #fbfaff;
    color: #12102a;
    font-size: 15px;
    outline: none;
}

.ekn-gt-field input:focus,
.ekn-gt-field select:focus {
    border-color: #8b2fc9;
    box-shadow: 0 0 0 4px rgba(139, 47, 201, 0.12);
    background: #fff;
}

.ekn-gt-pc__audit {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ekn-gt-pc__audit-card {
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(18, 16, 42, 0.1);
    border-radius: 20px;
    background: #fbfaff;
}

.ekn-gt-pc__audit-card legend {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 10px;
    color: #12102a;
}

.ekn-gt-pc__audit-card legend strong {
    font-size: 15px;
}

.ekn-gt-pc__audit-card legend span {
    color: #8b2fc9;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ekn-gt-pc__audit-card p {
    margin: 0 0 14px;
    color: rgba(18, 16, 42, 0.64);
    font-size: 14px;
    line-height: 1.55;
}

.ekn-gt-pc__choice-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ekn-gt-pc__choice-row label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 9px;
    border: 1px solid rgba(18, 16, 42, 0.12);
    border-radius: 999px;
    background: #fff;
    color: rgba(18, 16, 42, 0.72);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ekn-gt-pc__choice-row label:has(input:checked) {
    border-color: rgba(139, 47, 201, 0.5);
    background: #f7f4ff;
    color: #8b2fc9;
}

.ekn-gt-pc__choice-row input {
    accent-color: #8b2fc9;
}

.ekn-gt-pc__actions {
    margin-top: 28px;
}

.ekn-gt-button--large {
    min-height: 54px;
    padding-inline: 24px;
    font-size: 16px;
}

.ekn-gt-pc__form-error {
    margin: 12px 0 0;
    color: #991b1b;
    font-size: 14px;
    font-weight: 700;
}

.ekn-gt-pc__results {
    margin-top: 34px;
    padding-top: 34px;
    border-top: 1px solid rgba(18, 16, 42, 0.08);
}

.ekn-gt-pc__score-panel {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 26px;
    border-radius: 24px;
    background: linear-gradient(135deg, #12102a, #251757 54%, #3b185f);
    color: #fff;
}

.ekn-gt-pc__score-ring {
    width: 126px;
    height: 126px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.06);
}

.ekn-gt-pc__score-ring strong {
    font-size: 42px;
    line-height: 1;
}

.ekn-gt-pc__score-ring span,
.ekn-gt-pc__score-panel p {
    color: rgba(255, 255, 255, 0.72);
}

.ekn-gt-pc__score-panel h3 {
    margin: 8px 0;
    color: #fff;
    font-size: 30px;
    letter-spacing: -0.035em;
}

.ekn-gt-pc__score-panel .ekn-gt-eyebrow {
    color: #f7d8ff;
}

.ekn-gt-pc__metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.ekn-gt-pc__metrics > div {
    padding: 18px;
    border-radius: 20px;
    background: #f7f4ff;
    border: 1px solid rgba(18, 16, 42, 0.08);
}

.ekn-gt-pc__metrics strong {
    display: block;
    margin: 8px 0 6px;
    color: #12102a;
    font-size: 26px;
    letter-spacing: -0.03em;
}

.ekn-gt-pc__metrics small {
    color: rgba(18, 16, 42, 0.6);
    line-height: 1.45;
}

.ekn-gt-pc__insight {
    margin-top: 18px;
    padding: 20px;
    border-radius: 20px;
    background: #fff8fb;
    border: 1px solid rgba(192, 20, 60, 0.14);
    color: rgba(18, 16, 42, 0.78);
    line-height: 1.7;
}

.ekn-gt-pc__insight strong {
    color: #c0143c;
}

.ekn-gt-pc__fixes {
    margin-top: 24px;
}

.ekn-gt-pc__fixes h4,
.ekn-gt-pc__capture-panel h4 {
    margin: 0 0 14px;
    color: #12102a;
    font-size: 22px;
    letter-spacing: -0.025em;
}

.ekn-gt-pc__fix {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(18, 16, 42, 0.08);
}

.ekn-gt-pc__fix:last-child {
    border-bottom: 0;
}

.ekn-gt-pc__fix > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b2fc9, #c0143c);
    color: #fff;
    font-weight: 850;
}

.ekn-gt-pc__fix strong {
    color: #12102a;
}

.ekn-gt-pc__fix p,
.ekn-gt-pc__empty-fixes,
.ekn-gt-pc__capture-panel p {
    margin: 5px 0 0;
    color: rgba(18, 16, 42, 0.66);
    line-height: 1.6;
}

.ekn-gt-pc__capture-panel {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 24px;
    margin-top: 30px;
    padding: 24px;
    border-radius: 24px;
    background: #f7f4ff;
    border: 1px solid rgba(139, 47, 201, 0.13);
}

.ekn-gt-pc__lead-form {
    display: grid;
    gap: 16px;
}

.ekn-gt-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.ekn-gt-checkbox input {
    margin-top: 4px;
    accent-color: #8b2fc9;
}

.ekn-gt-hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.ekn-gt-form-message.is-success {
    color: #166534;
    font-weight: 750;
}

.ekn-gt-form-message.is-error {
    color: #991b1b;
    font-weight: 750;
}

.ekn-gt-form-message.is-loading {
    color: #8b2fc9;
    font-weight: 750;
}

.ekn-gt-card__status.is-available {
    border-color: rgba(22, 101, 52, 0.22);
    background: #f0fdf4;
    color: #166534;
}

@media (max-width: 820px) {
    .ekn-gt-pc__hero,
    .ekn-gt-pc__grid--2,
    .ekn-gt-pc__audit,
    .ekn-gt-pc__score-panel,
    .ekn-gt-pc__metrics,
    .ekn-gt-pc__capture-panel {
        grid-template-columns: 1fr;
    }

    .ekn-gt-pc__hero,
    .ekn-gt-pc__shell {
        padding: 22px;
    }

    .ekn-gt-pc__score-panel {
        align-items: start;
    }
}

@media (max-width: 540px) {
    .ekn-gt-pc__choice-row {
        grid-template-columns: 1fr;
    }
}
