/* ============================================================
   landing-polish.css — marketing & document surfaces ONLY
   (home, /pricing, /login, /terms, /privacy — linked from those
   templates). Implements docs/design-system.md P1/P9/P10/P11.
   Uses app.css tokens; defines nothing that app.css already owns.
   Flat fills only — no gradients on colored elements.
   ============================================================ */

/* ---------- Card titles (H3 role: 1.15rem sans 700, §2) ---------- */
.value-card h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: .5rem;
}

/* ---------- How-it-works step cards (P1) ---------- */
.step-card {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    height: 100%;
    background: var(--z-surface);
    border: 1px solid var(--z-gold-hairline);
    border-radius: var(--z-radius);
    box-shadow: var(--z-shadow-sm);
    padding: 1.75rem 1.5rem;
}
.step-card .step-number {
    font-size: 2.6rem; /* spec P1: serif gold display numeral */
    min-width: 2rem;
}
.step-card h3 {
    font-size: 1.08rem;
    line-height: 1.35;
    margin-bottom: .35rem;
}
.step-card p { font-size: .9rem; line-height: 1.65; }

/* Gold flow connectors between the 1 → 2 → 3 step cards (reference mockup) */
.step-row > [class*="col-"] { position: relative; }
@media (min-width: 768px) {
    .step-row > [class*="col-"] + [class*="col-"]::before {
        content: "→";
        position: absolute;
        left: 0;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
        color: var(--z-gold);
        font-family: var(--z-serif);
        font-size: 1.5rem;
        line-height: 1;
        pointer-events: none;
    }
}

/* Disclaimer strip icon (.strip-icon) now lives in app.css — shared site-wide. */

/* ---------- Pricing: centered tier-2 page head (P9) ---------- */
.page-head-center { text-align: center; }
.page-head-center .page-head-sub { margin-left: auto; margin-right: auto; }
.page-head-center .eyebrow { margin-bottom: .35rem; }

/* ---------- Pricing: free-3 medallion (P9 — 🎁 → "3") ---------- */
.free-medallion {
    font-family: var(--z-serif);
    font-size: 1.6rem;
    font-weight: 700;
}

/* ---------- Pricing: contract review — separate offer band (P9) ---------- */
.contract-offer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    background: var(--z-surface);
    border: 1px solid var(--z-gold-hairline);
    border-radius: var(--z-radius);
    box-shadow: var(--z-shadow-sm);
    padding: 2rem 1.75rem;
}
.contract-offer h3 {
    font-size: 1.15rem;
    margin-bottom: .35rem;
}
.contract-offer .contract-offer-body {
    flex: 1 1 320px;
    min-width: 0;
}
.contract-offer .contract-offer-buy {
    flex: 0 0 auto;
    text-align: center;
    min-width: 170px;
}
.contract-offer .price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--z-navy);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

/* ---------- Pricing: FAQ measure cap (P9) ---------- */
.faq-wrap { max-width: 800px; margin: 0 auto; }

/* ---------- Closing CTA: quiet corpus-stat strip ---------- */
.cta-stats {
    color: var(--z-muted);
    font-size: .875rem;
    letter-spacing: .01em;
}
.cta-stats .cta-stat-num {
    color: var(--z-gold-text);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.cta-stats .cta-stat-sep { margin: 0 .55rem; opacity: .5; }

/* ---------- Login card (P10) ---------- */
.login-card { border-color: var(--z-gold-hairline); }
.login-card .login-title {
    font-family: var(--z-serif);
    font-size: 1.6rem;
    letter-spacing: 0;
}

/* ---------- Terms / privacy as legal-doc paper sheets (P11) ----------
   .legal-doc (app.css) provides the sheet, masthead, dateline, title.
   .ld-body adds prose roles the law renderer does not need. */
.legal-doc .ld-body { margin-top: 2rem; }
.legal-doc .ld-body h2 {
    font-family: var(--z-serif);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--z-navy);
    margin: 2.2rem 0 .8rem;
}
.legal-doc .ld-body h2:first-child { margin-top: 0; }
.legal-doc .ld-body p,
.legal-doc .ld-body li {
    font-size: .95rem;
    line-height: 1.85;
    overflow-wrap: break-word;
}
.legal-doc .ld-body p { margin: 0 0 .6rem; }
.legal-doc .ld-body ul { margin: 0 0 .8rem; padding-left: 1.6rem; }
.legal-doc .ld-body a { color: var(--z-navy); text-decoration-color: var(--z-gold); }
.legal-doc .ld-body a:hover { color: var(--z-gold-text); }

/* ============================================================
   «Тамгатай хариулт» landing redesign (design handoff 1b + 3a).
   Every rule token-based — no re-hardcoded hex values.
   Entrance animations are gated behind html.js-anim [data-reveal]
   (hero.js) and neutralized by the global prefers-reduced-motion
   switch in app.css; without JS everything renders static.
   ============================================================ */

/* ---------- Hero: room for the overlapping paper card ---------- */
.hero.hero-overlap { padding-bottom: 150px; }
@media (max-width: 767.98px) {
    .hero.hero-overlap { padding-bottom: 120px; }
}

/* ---------- Verified answer paper (signature element) ---------- */
.vp-wrap { padding-bottom: 2.5rem; }
.verified-paper {
    position: relative;
    max-width: 820px;
    margin: -96px auto 0;
    background: var(--z-surface);
    border: 1px solid var(--z-gold-hairline);
    border-radius: 18px;
    box-shadow: var(--z-shadow-lg);
    padding: 34px 40px 30px;
}
@media (max-width: 767.98px) {
    .verified-paper { margin-top: -84px; padding: 24px 20px 20px; }
}

/* Corner seal — cream circle, gold strokes, circular textPath */
.vp-seal {
    position: absolute;
    top: -34px;
    right: 26px;
    transform: rotate(8deg);
}
.vp-seal svg { display: block; width: 96px; height: 96px; }
.vp-seal .vps-face { fill: var(--z-gold-tint); stroke: var(--z-gold); }
.vp-seal .vps-ring { stroke: var(--z-gold); }
.vp-seal .vps-text { fill: var(--z-gold-text); }
.vp-seal .vps-check { stroke: var(--z-gold); }
@media (max-width: 767.98px) {
    .vp-seal { top: -26px; right: 12px; }
    .vp-seal svg { width: 76px; height: 76px; }
}

.vp-eyebrow {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--z-gold-text);
    margin: 0 0 .6rem;
}
.vp-q {
    font-family: var(--z-serif);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--z-navy);
    line-height: 1.35;
    margin: 0 0 1rem;
}
.vp-answer {
    font-size: .95rem;
    line-height: 1.7;
    color: var(--z-text);
    margin: 0 0 .9rem;
    max-width: 620px;
}
@media (max-width: 767.98px) {
    /* keep the serif question clear of the corner seal */
    .vp-q { font-size: 1.08rem; max-width: 250px; }
    .vp-answer { font-size: .9rem; line-height: 1.65; }
}

/* Inline verified citation — opens the law-article modal (app.css) */
.cite-inline {
    color: var(--z-gold-text);
    font-weight: 700;
    border-bottom: 2px solid var(--z-gold-soft);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color var(--z-dur-fast) var(--z-ease);
}
.cite-inline:hover,
.cite-inline:focus-visible { background: var(--z-gold-tint); }
.cite-inline .cite-check { vertical-align: -2px; }
.cite-check circle { fill: var(--z-gold); }
.cite-check path { stroke: var(--z-navy-deep); }

/* Outcome strip inside the paper */
.vp-outcome {
    display: flex;
    gap: 14px;
    align-items: center;
    background: var(--z-bg);
    border: 1px solid var(--z-border);
    border-radius: 12px;
    padding: 12px 18px;
}
.vp-outcome-main { flex: 1; min-width: 0; }
.vp-outcome-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--z-muted);
    margin: 0 0 6px;
}
.vp-outcome-caption {
    font-size: .82rem;
    color: var(--z-text);
    line-height: 1.45;
    margin: 0;
    max-width: 220px;
}
@media (max-width: 575.98px) {
    .vp-outcome { display: block; padding: 10px 13px; }
    .vp-outcome-caption { max-width: none; margin-top: 6px; }
}

/* Stacked outcome bar (paper strip + trust cards) */
.outcome-bar {
    display: flex;
    height: 9px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--z-border);
}
.outcome-bar .ob-seg { width: var(--w, 0%); }
.outcome-bar .ob-gold { background: var(--z-gold); }
.outcome-bar .ob-navy { background: var(--z-navy-soft); }

.vp-foot {
    display: flex;
    justify-content: space-between;
    gap: .5rem 1rem;
    flex-wrap: wrap;
    font-size: .75rem;
    color: var(--z-muted);
    line-height: 1.5;
    margin: 14px 0 0;
}
.vp-foot-verified { font-weight: 700; color: var(--z-gold-text); }

/* Entrance: seal pops ~1.4s after the card reveals; bars grow from the left */
.js-anim [data-reveal] .vp-seal { opacity: 0; }
.js-anim [data-reveal].is-in .vp-seal {
    animation: vp-seal-pop .5s var(--z-ease) 1.4s both;
}
@keyframes vp-seal-pop {
    0%   { opacity: 0; transform: rotate(8deg) scale(.3); }
    70%  { opacity: 1; transform: rotate(8deg) scale(1.18); }
    100% { opacity: 1; transform: rotate(8deg) scale(1); }
}
.js-anim [data-reveal] .ob-seg { transform: scaleX(0); transform-origin: left; }
.js-anim [data-reveal].is-in .ob-seg {
    animation: ob-grow .9s var(--z-ease) var(--obd, 0s) both;
}
@keyframes ob-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

/* ---------- How it works: circle markers, gold arrows ≥md ---------- */
.how-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}
.how-step { display: flex; gap: 14px; align-items: flex-start; }
.how-marker {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--z-gold-tint);
    border: 1.5px solid var(--z-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--z-serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--z-gold-text);
}
.how-step h3 {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--z-navy);
    margin: 2px 0 3px;
}
.how-step p {
    color: var(--z-muted);
    font-size: .875rem;
    line-height: 1.55;
    margin: 0;
}
.how-arrow { display: none; }
@media (min-width: 768px) {
    .how-row {
        display: grid;
        grid-template-columns: 1fr auto 1fr auto 1fr;
        gap: 18px;
        align-items: start;
    }
    .how-step { display: block; text-align: center; padding: 0 10px; }
    .how-marker { width: 64px; height: 64px; margin: 0 auto 14px; font-size: 1.85rem; }
    .how-step h3 { font-size: 1.06rem; margin: 0 0 6px; }
    .how-arrow {
        display: block;
        margin-top: 30px;
        color: var(--z-gold);
        font-family: var(--z-serif);
        font-size: 1.25rem;
        line-height: 1;
    }
}
/* Marker pops once its step reveals (mirrors hero.css .step-number) */
.js-anim [data-reveal] .how-marker { opacity: 0; transform: scale(.4); }
.js-anim [data-reveal].is-in .how-marker {
    animation: z-step-pop .55s var(--z-ease) both;
    animation-delay: calc(var(--rvd, 0s) + .18s);
}

/* ---------- Services ledger ---------- */
.ledger-grid {
    display: grid;
    gap: 2rem;
    max-width: 1060px;
    margin: 0 auto;
}
@media (min-width: 992px) {
    .ledger-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 3.5rem;
        align-items: start;
    }
}
@media (max-width: 991.98px) {
    .ledger-intro { text-align: center; }
    .ledger-intro .text-muted { max-width: 560px; margin-left: auto; margin-right: auto; }
}
.ledger-intro .section-title { margin-bottom: .75rem; }
.service-ledger {
    background: var(--z-surface);
    border: 1px solid var(--z-gold-hairline);
    border-radius: 16px;
    box-shadow: var(--z-shadow-sm);
    overflow: hidden;
}
.sl-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 24px;
    border-bottom: 1px solid var(--z-border);
}
.service-ledger .sl-row:last-child { border-bottom: 0; }
.sl-name { font-weight: 700; color: var(--z-navy); font-size: .95rem; }
.sl-desc { color: var(--z-muted); font-size: .82rem; }
.sl-price {
    margin-left: auto;
    font-weight: 800;
    color: var(--z-gold-text);
    font-size: .95rem;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.sl-biz {
    margin-left: auto;
    font-weight: 700;
    color: var(--z-muted);
    font-size: .78rem;
    text-align: right;
}
.sl-row-biz { background: var(--z-gold-tint); }
@media (max-width: 575.98px) {
    .sl-row { padding: 15px 16px; }
    .sl-desc { display: none; }
    .sl-name { font-size: .9rem; }
}

/* ---------- Trust band: navy, outcome cards with stacked bars ---------- */
.trust-band { background: var(--z-navy); }
.trust-band .section-title { color: #fff; }
.trust-band .section-sub { color: rgba(255, 255, 255, .78); }
.outcome-card {
    background: var(--z-surface);
    border: 1px solid var(--z-gold-hairline);
    border-radius: 16px;
    padding: 22px 24px;
    height: 100%;
}
.oc-label {
    font-size: .82rem;
    font-weight: 700;
    color: var(--z-muted);
    margin: 0 0 4px;
}
.oc-headline {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--z-navy);
    margin: 0 0 12px;
}
.oc-headline .oc-pct { color: var(--z-gold-text); }
.oc-caption { font-size: .75rem; color: var(--z-muted); margin: 8px 0 0; }
.trust-note {
    color: rgba(255, 255, 255, .6);
    font-size: .82rem;
    line-height: 1.5;
    margin: 26px 0 0;
}

/* ---------- Pricing: signup-bonus banner + tight 2×2 mobile grid ---------- */
.signup-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--z-gold-tint);
    border: 1px solid var(--z-gold-soft);
    border-radius: 14px;
    padding: 13px 18px;
    max-width: 680px;
    margin: 0 auto 2rem;
}
.sb-medallion {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--z-gold);
    color: var(--z-navy-deep);
    font-family: var(--z-serif);
    font-style: italic;
    font-weight: 700;
    font-size: .85rem;
}
.signup-banner p { font-size: .9rem; color: var(--z-text); line-height: 1.5; }
@media (max-width: 575.98px) {
    .pricing-teaser .price-card { padding: 1.1rem .85rem; }
    .pricing-teaser .price-card .price-amount { font-size: 1.4rem; }
    .pricing-teaser .price-card .price-credits { font-size: .76rem; }
    .pricing-teaser .featured-flag { font-size: .66rem; }
}

/* ---------- Hero stats: keep to ≤2 tidy lines at 390 (§7 micro) ----------
   The stat spans are written with no whitespace between them, so the row
   cannot wrap on its own — switch to a wrapping flex row on small screens. */
@media (max-width: 430px) {
    .hero-stats {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        column-gap: .8rem;
        row-gap: .15rem;
        font-size: .8rem;
    }
    .hero-stat { white-space: nowrap; }
    .hero-stats .hero-stat-sep { display: none; }
}
