/* ==========================================================================
   AudienceView marketing landing page — page-specific styles.
   ========================================================================== */

/* =================================================================
   HERO
   ================================================================= */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 80px 64px;
    position: relative;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
}

.hero-left {
    display: flex;
    flex-direction: column;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 8px;
    margin-bottom: 28px;
    background: rgba(26, 172, 232, 0.07);
    border: 1px solid rgba(26, 172, 232, 0.2);
    border-radius: 100px;
    width: fit-content;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    animation: mktPulse 2.5s ease infinite;
}

@keyframes mktPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(26, 172, 232, 0.4); }
    70%      { box-shadow: 0 0 0 6px rgba(26, 172, 232, 0); }
}

.badge span {
    font-size: 12px;
    font-weight: 600;
    color: var(--blue);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

h1.hh {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 3.8vw, 4.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0 0 20px 0;
}

h1.hh em {
    font-style: italic;
    color: var(--blue);
}

.hero-sub {
    font-size: 1.05rem;
    font-weight: 400;
    color: var(--muted);
    line-height: 1.75;
    margin: 0 0 36px 0;
    max-width: 460px;
}

.welcome-block {
    display: none;
    margin-bottom: 18px;
}

body.logged-in .welcome-block {
    display: block;
}

body.logged-in .contact-form .cf-row {
    display: none;
}

.welcome-msg {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.welcome-msg .welcome-name {
    color: var(--blue);
    font-style: italic;
}

.welcome-sub {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* Inline contact + URL form */
.contact-form {
    width: 100%;
    max-width: 600px;
    margin-bottom: 14px;
}

.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.cf-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cf-field--full {
    margin-top: 4px;
}

.cf-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ghost);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cf-input {
    padding: 10px 14px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    width: 100%;
}

.cf-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(26, 172, 232, 0.08);
}

.cf-input::placeholder {
    color: var(--pale);
}

.icard {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 6px 6px 6px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.icard:focus-within {
    border-color: var(--blue);
    box-shadow: 0 4px 24px rgba(26, 172, 232, 0.15), 0 0 0 4px rgba(26, 172, 232, 0.08);
}

/* =================================================================
   FIELD VALIDATION (inline error under a field)
   ================================================================= */
.cf-req {
    color: #c0392b;
    font-weight: 700;
    margin-left: 2px;
}

.cf-field-error {
    font-size: 12.5px;
    line-height: 1.45;
    color: #c0392b;
    margin: 6px 4px 0;
    align-items: center;
    gap: 6px;
}

.cf-field-error[hidden] {
    display: none;
}

.cf-field-error:not([hidden]) {
    display: flex;
}

.cf-field-error::before {
    content: '\26A0';
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}

.cf-input.is-invalid,
.icard.is-invalid {
    border-color: rgba(192, 57, 43, 0.55);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.icard.is-invalid:focus-within {
    border-color: #c0392b;
    box-shadow: 0 4px 24px rgba(192, 57, 43, 0.15), 0 0 0 4px rgba(192, 57, 43, 0.12);
}

.icard-icon {
    color: var(--blue);
    font-size: 17px;
    flex-shrink: 0;
}

.url-in {
    flex: 1;
    border: none;
    outline: none;
    font-family: inherit;
    font-size: 14.5px;
    color: var(--ink);
    background: transparent;
    min-width: 0;
}

.url-in::placeholder {
    color: var(--pale);
}

.mkt-btn-generate {
    padding: 11px 22px;
}

.hint-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ghost);
    margin-top: 4px;
}

.hint-row svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    flex-shrink: 0;
}

/* Trust pills */
.trust {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.trust-lbl {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--ghost);
    margin-bottom: 14px;
}

.trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tp {
    padding: 5px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    transition: border-color 0.15s, color 0.15s;
}

.tp:hover {
    border-color: var(--blue);
    color: var(--blue);
}

/* Right column - demo card + stats */
.hero-right {
    position: relative;
}

.demo-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.dc-header {
    background: linear-gradient(110deg, #1AACE8, #0A6B96);
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dc-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
}

.dc-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: var(--yellow);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: #5a3d00;
}

.dc-body {
    padding: 18px 22px;
}

.dc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--surface2);
}

.dc-row:last-child {
    border-bottom: none;
}

.dc-row--dim {
    opacity: 0.45;
    border-bottom: none;
}

.dc-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: var(--white);
    flex-shrink: 0;
}

.dc-check--empty {
    background: transparent;
    border: 1.5px solid var(--border2);
}

.dc-name {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--ink2);
    flex: 1;
    margin: 0 10px;
}

.dc-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
}

.dc-footer {
    padding: 14px 22px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dc-total-lbl {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ghost);
}

.dc-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
}

.fstat {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-width: 140px;
}

.fstat-val {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.fstat-lbl {
    font-size: 11px;
    color: var(--ghost);
    font-weight: 500;
    margin-top: 2px;
}

.fstat1 {
    top: -20px;
    right: -20px;
}

.fstat2 {
    bottom: -16px;
    left: -16px;
}

/* =================================================================
   HOW IT WORKS
   ================================================================= */
.how {
    padding: 56px 80px 72px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.how-inner {
    max-width: 1240px;
    margin: 0 auto;
}

.sec-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 10px;
}

.sec-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin: 0 0 48px 0;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hw {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.hw:hover {
    border-color: rgba(26, 172, 232, 0.4);
    box-shadow: 0 8px 24px rgba(26, 172, 232, 0.08);
    transform: translateY(-2px);
}

.hw-num {
    position: absolute;
    top: 20px;
    right: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 600;
    color: rgba(26, 172, 232, 0.07);
    line-height: 1;
    pointer-events: none;
}

.hw-ic {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(26, 172, 232, 0.1), rgba(0, 191, 168, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.hw-ic svg {
    width: 19px;
    height: 19px;
    stroke: var(--blue);
    stroke-width: 1.8;
    fill: none;
}

.hw h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 7px 0;
    color: var(--ink);
}

.hw p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0;
}

/* =================================================================
   LANDING — RESPONSIVE
   ================================================================= */
@media (max-width: 1199px) {
    .hero { padding: 48px 32px 56px; }
    .hero-inner { gap: 48px; }
    .how { padding: 48px 32px 56px; }
    .how-grid { gap: 16px; }
    h1.hh { font-size: clamp(2.4rem, 5vw, 3.4rem); }
}

@media (max-width: 899px) {
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }
    .hero h1.hh br { display: none; }
    .hero-sub { max-width: 100%; margin-bottom: 28px; }
    .hero-right { display: none; }
    .how-grid { grid-template-columns: 1fr; }
    .sec-title { font-size: 1.75rem; margin-bottom: 32px; }
}

@media (max-width: 599px) {
    .hero { padding: 32px 20px 40px; }
    .hero h1.hh { font-size: clamp(2rem, 8vw, 2.6rem); }
    .hero-sub { font-size: 0.95rem; margin-bottom: 24px; }
    .cf-row { grid-template-columns: 1fr; }
    .icard {
        flex-wrap: wrap;
        align-items: center;
        padding: 14px 14px 14px 18px;
        gap: 12px;
        border-radius: 14px;
    }
    .icard .url-in { flex: 1; min-width: 0; }
    .icard .mkt-btn-generate {
        flex-basis: 100%;
        justify-content: center;
        padding: 14px 22px;
        font-size: 14px;
    }
    .trust { margin-top: 28px; padding-top: 24px; }
    .how { padding: 32px 20px 48px; }
    .sec-title { font-size: 1.4rem; }
}

/* iOS Safari zoom prevention */
@media (max-width: 899px) {
    .url-in,
    .cf-input { font-size: 16px; }
}
