/*
 * Visual v2, the entry pages' layout layer (docs/visual-v2.md): /, /start, /for-traders and its -delta / -oi pages.
 *
 * Loaded AFTER /assets/visual-v2.css (the tokens, type, buttons and nav every page shares) and only on the entry
 * pages, because its class names (.hero, .section-title, .feature-card, .pricing-card, .footer, ...) also exist on
 * the other marketing pages, where this layout does not fit. Every other page gets /assets/visual-v2-site.css
 * instead. The two files were one until 10-14; concatenated in this order they are the same cascade as before.
 * Every rule is scoped under html[data-visual="v2"] (visualV2Css.spec.ts).
 */

/* ── (4) Hero: left-aligned, no green phrase, the real print beside the pitch on wide screens ─── */
html[data-visual="v2"] .hero { text-align: left; background: none; }
html[data-visual="v2"] .hero-title span,
html[data-visual="v2"]:not(.dark) .hero-title span { color: inherit; background: none; -webkit-text-fill-color: currentColor; }
html[data-visual="v2"] .hero-title {
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.02;
}
html[data-visual="v2"] .hero-subtitle,
html[data-visual="v2"] .hero-trust,
html[data-visual="v2"] .hero-sub { margin-left: 0; margin-right: 0; }
html[data-visual="v2"] .hero-buttons { justify-content: flex-start; }
html[data-visual="v2"] .hero-secondary-link { margin-left: 0; margin-right: 0; color: var(--v2-muted); }
html[data-visual="v2"] .hero-eyebrow {
    margin-left: 0;
    color: var(--v2-croc);
    font-family: var(--v2-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
/* The brand mark, solid croc green, painted through the icon's alpha (no new image, no markup). */
html[data-visual="v2"] .hero-eyebrow::before {
    content: '';
    width: 1.6rem;
    height: 1.6rem;
    flex: 0 0 auto;
    background: var(--v2-croc);
    -webkit-mask: url('/icon-192x192.png') center / contain no-repeat;
    mask: url('/icon-192x192.png') center / contain no-repeat;
}
html[data-visual="v2"] .hero-screenshot img {
    border-radius: var(--v2-radius);
    border: 1px solid var(--v2-line);
    box-shadow: none;
}

@media (min-width: 1024px) {
    html[data-visual="v2"] .hero {
        display: grid;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
        column-gap: 4rem;
        align-items: start;
        max-width: 1280px;
        margin: 0 auto;
        padding: 128px 3rem 56px;
    }
    html[data-visual="v2"] .hero > * { grid-column: 1; }
    html[data-visual="v2"] .hero-title { font-size: 3.6rem; margin-bottom: 1.25rem; }
    html[data-visual="v2"] .hero-subtitle { max-width: 34rem; margin-bottom: 1.75rem; }
    html[data-visual="v2"] .hero-trust { max-width: 34rem; }
    html[data-visual="v2"] .hero .home-proof {
        grid-column: 2;
        grid-row: 1 / span 8;
        align-self: start;
        margin: 2.25rem 0 0;
        max-width: none;
    }
    html[data-visual="v2"] .hero-screenshot { grid-column: 1 / -1; max-width: none; margin-top: 3.5rem; }
}

/* ── (1) The print card as DATA: no stripe, no boxes-in-a-box, mono figures, colour from the print ─ */
html[data-visual="v2"] .home-proof .proof-card,
html[data-visual="v2"]:not(.dark) .home-proof .proof-card,
html[data-visual="v2"] .proof,
html[data-visual="v2"] .sample,
html[data-visual="v2"] .beginner-sample {
    background: var(--v2-surface);
    border: 1px solid var(--v2-line);
    border-left: 1px solid var(--v2-line);
    border-radius: var(--v2-radius);
}
html[data-visual="v2"] .proof-title {
    font-family: var(--v2-display);
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--v2-text);
}
html[data-visual="v2"] .sample-fields,
html[data-visual="v2"] .proof-fields {
    gap: 0;
    border-top: 1px solid var(--v2-line);
}
html[data-visual="v2"] .sample-fields div,
html[data-visual="v2"] .proof-fields div,
html[data-visual="v2"]:not(.dark) .home-proof .sample-fields div {
    background: none;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--v2-line);
}
html[data-visual="v2"] .sample-fields dt,
html[data-visual="v2"] .proof-fields dt { color: var(--v2-muted); }
html[data-visual="v2"] .sample-fields dd,
html[data-visual="v2"] .proof-fields dd {
    font-family: var(--v2-mono);
    font-weight: 500;
    color: var(--v2-text);
}
html[data-visual="v2"] .sample-fields div:first-child dd,
html[data-visual="v2"] .proof-fields div:first-child dd { font-weight: 700; }
html[data-visual="v2"] [data-tone="up"] dd { color: var(--v2-croc); }
html[data-visual="v2"] [data-tone="down"] dd { color: var(--v2-down); }
/* (3) A small dot instead of a pill: the sentiment cell's colour, after its label. */
html[data-visual="v2"] [data-tone] dt::after {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-left: 0.4rem;
    border-radius: 50%;
    background: currentColor;
    vertical-align: 0.05em;
}
html[data-visual="v2"] [data-tone="up"] dt::after { background: var(--v2-croc); }
html[data-visual="v2"] [data-tone="down"] dt::after { background: var(--v2-down); }
html[data-visual="v2"] .proof-when,
html[data-visual="v2"] .proof-note { color: var(--v2-muted); }
html[data-visual="v2"] .proof-link { color: var(--v2-croc); }

/* Landing (and /start) proof card: two columns on a phone, four in a row on a wide screen */
html[data-visual="v2"] .home-proof .proof-card { padding: 0.9rem 1rem 0.75rem; }
html[data-visual="v2"] .home-proof .sample-fields div,
html[data-visual="v2"] .start-proof .sample-fields div { padding: 0.5rem 0.75rem 0.5rem 0; }
@media (min-width: 1024px) {
    html[data-visual="v2"] .hero .home-proof .sample-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    html[data-visual="v2"] .hero .home-proof .proof-card { padding: 1.25rem 1.4rem 1rem; }
    html[data-visual="v2"] .hero .home-proof .proof-title { font-size: 1.35rem; margin-bottom: 0.9rem; }
    html[data-visual="v2"] .hero .home-proof .sample-fields dd { font-size: 1.05rem; }
    html[data-visual="v2"] .hero .home-proof .sample-fields div:first-child dd { font-size: 1.6rem; letter-spacing: -0.02em; }
}

/* ── (5) Card grids become ruled lists: hairline rows, no tiles, no hover lift ─────────────────── */
html[data-visual="v2"] .section-title,
html[data-visual="v2"] .section-subtitle { text-align: left; margin-left: 0; }
html[data-visual="v2"] .section-title { font-weight: 800; letter-spacing: -0.03em; }
html[data-visual="v2"] .section-subtitle { color: var(--v2-muted); }
html[data-visual="v2"] .value-card,
html[data-visual="v2"] .feature-card,
html[data-visual="v2"] .resource-card,
html[data-visual="v2"] .faq-item,
html[data-visual="v2"] .features li,
html[data-visual="v2"] .stages li {
    background: none;
    border: 0;
    border-top: 1px solid var(--v2-line);
    border-radius: 0;
    box-shadow: none;
    transform: none;
}
html[data-visual="v2"] .value-card:hover,
html[data-visual="v2"] .feature-card:hover,
html[data-visual="v2"] .resource-card:hover { transform: none; box-shadow: none; border-color: var(--v2-croc); }
html[data-visual="v2"] .value-card img { border-radius: var(--v2-radius); border: 1px solid var(--v2-line); }
html[data-visual="v2"] .value-card-body,
html[data-visual="v2"] .resource-card,
html[data-visual="v2"] .feature-card { padding-left: 0; padding-right: 0; }
html[data-visual="v2"] .features li { padding-left: 0; padding-right: 0; }
html[data-visual="v2"] .features-grid,
html[data-visual="v2"] .resource-grid { column-gap: 2.5rem; row-gap: 0; }
html[data-visual="v2"] .feature-icon {
    background: none;
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius);
    color: var(--v2-croc);
}
html[data-visual="v2"] .feature-icon svg { stroke: var(--v2-croc); color: var(--v2-croc); }
html[data-visual="v2"] .resource-card-kicker,
html[data-visual="v2"] .beginner-sample-kicker,
html[data-visual="v2"] .sample-kicker,
html[data-visual="v2"] .proof-kicker { color: var(--v2-croc); font-size: 0.8rem; font-weight: 600; }

/* Asset bar: a plain mono ticker line, not a row of caps chips */
html[data-visual="v2"] .asset-bar { background: none; border-color: var(--v2-line); }
html[data-visual="v2"] .asset-bar-inner { justify-content: flex-start; max-width: 1200px; }
html[data-visual="v2"] .asset-bar-item { font-family: var(--v2-mono); font-size: 0.8rem; color: var(--v2-muted); }

/* Pricing: flat panels; the "most popular" pill becomes a croc text label on the card's top rule */
html[data-visual="v2"] .pricing-card,
html[data-visual="v2"] .value-panel {
    background: var(--v2-surface);
    border: 1px solid var(--v2-line);
    border-radius: var(--v2-radius);
    box-shadow: none;
    transform: none;
}
html[data-visual="v2"] .pricing-card.featured { border-color: var(--v2-croc); }
html[data-visual="v2"] .pricing-card.featured::before {
    content: 'Most popular';
    background: var(--v2-bg);
    color: var(--v2-croc);
    border-radius: 0;
    padding: 0 0.5rem;
    top: -0.65rem;
    left: 1.5rem;
    transform: none;
    font-size: 0.8rem;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
}
html[data-visual="v2"] .pricing-price,
html[data-visual="v2"] .value-panel-price { font-weight: 800; }
html[data-visual="v2"] .value-panel-price { color: var(--v2-croc); }

/* Final CTA: the one bold brand moment. A solid croc-green band, a black croc, a black button. */
html[data-visual="v2"].dark .final-cta,
html[data-visual="v2"] .final-cta {
    background: var(--v2-croc);
    color: var(--v2-on-croc);
    text-align: left;
}
html[data-visual="v2"] .final-cta-inner { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
html[data-visual="v2"] .final-cta-title,
html[data-visual="v2"] .final-cta-subtitle { color: var(--v2-on-croc); }
html[data-visual="v2"] .final-cta-title { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.035em; }
html[data-visual="v2"] .final-cta-logo { margin: 0 0 1.5rem; filter: brightness(0); }
html[data-visual="v2"].dark .final-cta .btn-primary,
html[data-visual="v2"] .final-cta .btn-primary { background: var(--v2-on-croc); color: var(--v2-croc); }
html[data-visual="v2"]:not(.dark) .final-cta .btn-primary { background: #ffffff; color: #00703f; }

/* Alternating grey section bands become one surface, separated by a hairline */
html[data-visual="v2"] .beginner-section,
html[data-visual="v2"] .features-section,
html[data-visual="v2"] .resource-section,
html[data-visual="v2"]:not(.dark) .beginner-section,
html[data-visual="v2"]:not(.dark) .features-section,
html[data-visual="v2"]:not(.dark) .resource-section { background: var(--v2-bg); border-top: 1px solid var(--v2-line); }

html[data-visual="v2"] .footer { background: var(--v2-bg); border-color: var(--v2-line); }

/* Sticky bottom bar: flat, hairline, square-ish button */
html[data-visual="v2"] .start-sticky { background: var(--v2-bg); border-top: 1px solid var(--v2-line); box-shadow: none; }
html[data-visual="v2"] .start-sticky-line strong { color: var(--v2-croc); }

/* ── /for-traders and /start: same hero rules on their own class names ────────────────────────── */
html[data-visual="v2"] .hero h1 { font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
html[data-visual="v2"] .hero-sub { color: var(--v2-muted); }
html[data-visual="v2"] .founding-line { color: var(--v2-text); }
html[data-visual="v2"] .founding-line a { color: var(--v2-croc); }
html[data-visual="v2"] .proof { padding: 0.65rem 0.8rem 0.55rem; }
html[data-visual="v2"] .proof .proof-fields div { padding: 0.3rem 0.5rem 0.3rem 0; }
html[data-visual="v2"] .proof .proof-fields dt { font-size: 0.72rem; }
html[data-visual="v2"] .proof .proof-fields dd { font-size: 0.8rem; }
html[data-visual="v2"] .proof .proof-title { font-size: 0.95rem; }
html[data-visual="v2"] .proof-when,
html[data-visual="v2"] .proof .proof-note { font-size: 0.72rem; }
html[data-visual="v2"] .top { border-bottom: 1px solid var(--v2-line); padding-bottom: 0.6rem; }
html[data-visual="v2"] section.more { border-top-color: var(--v2-line); }
html[data-visual="v2"] .start-proof,
html[data-visual="v2"] .start-translation,
html[data-visual="v2"] .start-paper,
html[data-visual="v2"] .start-learning,
html[data-visual="v2"] .start-disclosure { border-top-color: var(--v2-line); }
html[data-visual="v2"] .sample-quote { font-family: var(--v2-display); font-weight: 600; }
html[data-visual="v2"] .stages li::before { font-family: var(--v2-mono); color: var(--v2-croc); }
html[data-visual="v2"] .exp-btn-secondary { border-radius: var(--v2-radius); border-color: var(--v2-line); color: var(--v2-text); }
html[data-visual="v2"] .exp-btn-secondary:hover { border-color: var(--v2-croc); color: var(--v2-croc); }

/* ── The last v1 text colours on these pages, on the v2 tokens (10-14, when v2 became the only look) ─── */
html[data-visual="v2"] .hero-subtitle,
html[data-visual="v2"] .hero-trust,
html[data-visual="v2"] .feature-description,
html[data-visual="v2"] .value-card-desc,
html[data-visual="v2"] .value-panel-sub,
html[data-visual="v2"] .value-panel-features li,
html[data-visual="v2"] .beginner-sample-note,
html[data-visual="v2"] .faq-item p,
html[data-visual="v2"] .resource-card p,
html[data-visual="v2"] .footer-text,
html[data-visual="v2"] .footer-link { color: var(--v2-muted); }
html[data-visual="v2"] .hero-title,
html[data-visual="v2"] .feature-title,
html[data-visual="v2"] .value-card-title,
html[data-visual="v2"] .value-panel-free,
html[data-visual="v2"] .value-panel-tagline,
html[data-visual="v2"] .beginner-sample-quote,
html[data-visual="v2"] .sample-quote,
html[data-visual="v2"] .example-move,
html[data-visual="v2"] .free-start-line,
html[data-visual="v2"] .faq-item summary { color: var(--v2-text); }
html[data-visual="v2"] .footer-link:hover { color: var(--v2-croc); }
html[data-visual="v2"] .feature-description a,
html[data-visual="v2"] .faq-item p a,
html[data-visual="v2"] .see-plans-link { color: var(--v2-croc); }
html[data-visual="v2"]:not(.dark) .faq-item { border-color: var(--v2-line); }
html[data-visual="v2"] .resource-card h3,
html[data-visual="v2"] .faq-list summary { color: var(--v2-text); }
html[data-visual="v2"] .value-panel-features .vp-check { color: var(--v2-croc); }

/* ── Phone first (390 x 664): compact, left-aligned, the CTA and the print's top above the fold ─── */
@media (max-width: 640px) {
    html[data-visual="v2"] .hero-title,
    html[data-visual="v2"] .hero h1 { font-size: 2.05rem; letter-spacing: -0.04em; line-height: 1.02; }
    html[data-visual="v2"] .hero-eyebrow::before { width: 1.35rem; height: 1.35rem; }
    html[data-visual="v2"] .btn-primary { width: 100%; }
    /* /start's b arm stacks a second button under the first: kept slim so its hero stays within 48px of control's
       (marketing-experiments.spec.ts, no layout jump when the arm swaps in). */
    html[data-visual="v2"] .exp-hero-b .exp-btn-secondary { margin-top: 0.3rem; padding-top: 0.35rem; padding-bottom: 0.35rem; }
    html[data-visual="v2"] .final-cta-title { font-size: 2rem; }
    html[data-visual="v2"] .section-title { font-size: 1.85rem; }
    /* The home hero on a phone: the whole print card above the opt-in privacy banner at 390x664, with room for a
       wider fallback face than the system one (trader-landing-phone.spec.ts). Tighter type and gaps, same copy. */
    html[data-visual="v2"] .hero:has(.home-proof) { padding-top: 74px; }
    html[data-visual="v2"] .hero .hero-eyebrow { margin-bottom: 0.2rem; }
    html[data-visual="v2"] .hero .hero-title { font-size: 1.8rem; margin-bottom: 0.4rem; }
    html[data-visual="v2"] .hero .hero-subtitle { font-size: 0.88rem; line-height: 1.4; margin-bottom: 0.7rem; }
    html[data-visual="v2"] .hero .hero-trust { font-size: 0.74rem; line-height: 1.35; margin-top: 0.35rem; }
    html[data-visual="v2"] .hero .home-proof { margin-top: 0.45rem; }
    html[data-visual="v2"] .hero .home-proof .proof-card { padding: 0.6rem 0.8rem 0.5rem; }
    html[data-visual="v2"] .hero .home-proof .proof-title { margin-bottom: 0.35rem; }
    html[data-visual="v2"] .hero .home-proof .sample-fields div { padding: 0.3rem 0.6rem 0.3rem 0; }
}
