/* Whole-page themes for the hero trial (?draft=, 2026-09-29, prototype). When a draft hero is swapped in,
   html[data-th] carries its design language down the rest of the landing page: heading type, colours,
   eyebrows, buttons, cards and bands. Every choice is a --th-* variable, so the tuning panel can override any
   of them live by setting the same variable inline on <html>; the variables also inherit into the draft's
   shadow root, so the hero and the page stay in step. Selectors come from a survey of landing_v2.html,
   landing-light.css, _landing_ports.html, landing_deck.html, _landing_footer.html and landing_mobile.html. */

/* ---------------- theme tokens ---------------- */
html[data-th="stripe"] {
  --th-font: "Inter", system-ui, sans-serif; --th-stretch: 100%; --th-weight: 500; --th-case: none; --th-track: -.028em; --th-lh: 1.08;
  --th-ink: #0A2540; --th-ink2: #425466; --th-acc: #455DDC; --th-acc-ink: #fff; --th-eyebrow: #455DDC;
  --th-radius: 6px; --th-card-radius: 10px; --th-line: #E3E8EE; --th-band: #F6F9FC; --th-soft: #EEF1FD; --th-strong: #455DDC;
  --th-shadow: 0 2px 5px -1px rgba(50,50,93,.18), 0 1px 3px -1px rgba(0,0,0,.12);
  --th-bar-bg: #455DDC; --th-bar-ink: #fff;
}
html[data-th="wise"] {
  --th-font: "Archivo", "Inter", sans-serif; --th-stretch: 74%; --th-weight: 900; --th-case: uppercase; --th-track: -.005em; --th-lh: .9;
  --th-ink: #08392B; --th-ink2: #454745; --th-acc: #08392B; --th-acc-ink: #C9F1E0; --th-eyebrow: #08392B;
  --th-radius: 999px; --th-card-radius: 30px; --th-line: transparent; --th-band: #F1F5F2; --th-soft: #C9F1E0; --th-strong: #08392B;
  --th-shadow: none; --th-bar-bg: #C9F1E0; --th-bar-ink: #08392B;
}
html[data-th="plaid"] {
  --th-font: "Inter", system-ui, sans-serif; --th-stretch: 100%; --th-weight: 500; --th-case: none; --th-track: -.035em; --th-lh: 1.05;
  --th-ink: #111112; --th-ink2: #4B5563; --th-acc: #111112; --th-acc-ink: #fff; --th-eyebrow: #1C7F8C;
  --th-radius: 999px; --th-card-radius: 20px; --th-line: #E5E8F0; --th-band: #F4F7FB; --th-soft: #DDF5EE; --th-strong: #2C4BC4;
  --th-grad: linear-gradient(90deg, #1E2F8F 0%, #2C4BC4 42%, #1C9A86 100%);
  --th-shadow: 0 1px 2px rgba(17,17,18,.05); --th-bar-bg: linear-gradient(90deg, #2C4BC4, #1C9A86); --th-bar-ink: #fff;
}

/* ================= page background: white everywhere (2026-09-29) =================
   The desktop root was still the old dark #1F1F1F (it showed when over-scrolling past the top or bottom), and the
   phone page's tone was cream #F5F3EE (--pg) behind every section, the video band and its fades. */
html[data-th], html[data-th] body { background: #FFFFFF !important; }
html[data-th] .phone { --pg: #FFFFFF; background: #FFFFFF; }
html[data-th] .phone .card-in { background: #F6F9FC; }

/* ================= desktop (landing_v2.html) ================= */
html[data-th] .fx, html[data-th] .fx .mp, html[data-th] .fx .lf {
  --lt-band: var(--th-band); --fx-card2: var(--th-band); --fx-acc: var(--th-acc); --lt-ink: var(--th-ink); --lt-ink2: var(--th-ink2);
}
/* headings */
html[data-th] .fx h2, html[data-th] .fx .fx-join-h, html[data-th] .fx .wf-ai-top h2, html[data-th] .fx .wf-h-lines, html[data-th] .fx .lf .lf-lit {
  font-family: var(--th-font); font-stretch: var(--th-stretch); font-weight: var(--th-weight); text-transform: var(--th-case);
  letter-spacing: var(--th-track); line-height: var(--th-lh);
}
html[data-th] .fx h2, html[data-th] .fx .fx-join-h, html[data-th] .fx .wf-ai-top h2 { color: var(--th-ink); }
html[data-th="plaid"] .fx h2, html[data-th="plaid"] .fx .fx-join-h, html[data-th="plaid"] .fx .wf-ai-top h2 {
  background: var(--th-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-th] .fx .mp-t h3, html[data-th] .fx .mp-pc h3, html[data-th] .fx .wf-ai-hd-t h3, html[data-th] .fx .fx-tm b { color: var(--th-ink); }
/* eyebrows: Stripe, Wise and Plaid all use plain sentence-case labels, not tracked capitals */
html[data-th] .fx .fx-eyebrow, html[data-th] .fx .mp .fx-eyebrow, html[data-th] .fx .fx-caption, html[data-th] .fx .mp-t .lab {
  text-transform: none; letter-spacing: 0; font-size: 15px; font-weight: 600; color: var(--th-eyebrow); }
/* ledes and body copy */
html[data-th] .fx .fx-head p, html[data-th] .fx .fx-copy > p, html[data-th] .fx .lv-sub, html[data-th] .fx .mp-head p,
html[data-th] .fx .k4-head p, html[data-th] .fx .mp-pc p, html[data-th] .fx .fx-tm blockquote { color: var(--th-ink2); }
/* buttons */
html[data-th] .fx .lv-cta, html[data-th] .fx .mp-pill, html[data-th] body > .nav .btn-primary,
html[data-th] body .nav.nav-float > .nav-right .btn-primary {
  background: var(--th-acc) !important; color: var(--th-acc-ink) !important; border-radius: var(--th-radius) !important; }
html[data-th] body > .nav .btn-ghost { border-radius: var(--th-radius) !important; }
/* the hero ribbon runs up behind the nav, so the outline buttons get a white face (as on stripe.com) */
html[data-th] body > .nav .btn-ghost { background: #fff !important; }
html[data-th] body > .nav .btn-ghost:hover { background: #F6F8FB !important; }
html[data-th] .fx .lf-cbar { background: var(--th-bar-bg) !important; color: var(--th-bar-ink) !important; }
html[data-th] .fx .lf-cbar i { background: var(--th-bar-ink) !important; color: var(--th-bar-bg) !important; }
/* cards */
html[data-th] .fx .fx-tm, html[data-th] .fx .mp-t, html[data-th] .fx .k4-card, html[data-th] .fx .wf-ai-win,
html[data-th] .fx .mp-pc-img { border-radius: var(--th-card-radius) !important; }
html[data-th] .fx .fx-tm, html[data-th] .fx .mp-t:not(.blue):not(.sand):not(.ink), html[data-th] .fx .wf-ai-win {
  border-color: var(--th-line) !important; box-shadow: var(--th-shadow) !important; }
html[data-th="wise"] .fx .fx-tm, html[data-th="wise"] .fx .mp-t:not(.blue):not(.sand):not(.ink) { background: var(--th-band) !important; }
html[data-th] .fx .mp-t.sand { background: var(--th-soft) !important; }
html[data-th] .fx .mp-t.blue { background: var(--th-strong) !important; }
html[data-th="plaid"] .fx .mp-t.blue { background: var(--th-grad) !important; }
html[data-th] .fx .fx-tm-stars { color: var(--th-acc); }
html[data-th="wise"] .fx .fx-tm-stars { color: #17916D; }

/* ================= phone (landing_mobile.html) ================= */
/* the phone nav's wordmark follows the heading type (2026-09-29): it was Inter 800 while the page reads Inter 500 navy */
html[data-th] .pn-word { font-family: var(--th-font); font-stretch: var(--th-stretch); font-weight: 600; letter-spacing: -.03em; color: var(--th-ink); }
html[data-th] .pn-word b { font-weight: 600; color: var(--th-acc); }
html[data-th] .pn-brand .logo-mark { color: var(--th-ink); }   /* the mark's bars are currentColor */
html[data-th] .phone { --sand: var(--th-soft); --sand-fill: var(--th-strong); --acc: var(--th-eyebrow); }
html[data-th] .phone .disp {
  font-family: var(--th-font); font-stretch: var(--th-stretch); font-weight: var(--th-weight); text-transform: var(--th-case);
  letter-spacing: var(--th-track); line-height: var(--th-lh); }
html[data-th] .phone .shead h2 { color: var(--th-ink); }
html[data-th="plaid"] .phone .shead h2 { background: var(--th-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-th] .phone .eyebrow { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--th-eyebrow); }
html[data-th] .phone .shead p { color: var(--th-ink2); }
html[data-th] .phone .pill-b.b1, html[data-th] .phone .who .center .pill-b, html[data-th] .pn-cta, html[data-th] .pn-btn {
  background: var(--th-acc) !important; color: var(--th-acc-ink) !important; border-radius: var(--th-radius) !important; }
html[data-th] .phone .cbar { background: var(--th-bar-bg) !important; color: var(--th-bar-ink) !important; }
html[data-th] .phone .cbar i { background: var(--th-bar-ink) !important; color: var(--th-bar-bg) !important; }
html[data-th] .phone .st, html[data-th] .phone .tm, html[data-th] .phone .win, html[data-th] .phone .dwin, html[data-th] .phone .pc-img {
  border-radius: var(--th-card-radius) !important; }
html[data-th] .phone .st:not(.blue):not(.sand):not(.ink), html[data-th] .phone .tm { border-color: var(--th-line) !important; box-shadow: var(--th-shadow); }
html[data-th] .phone .st.sand { background: var(--th-soft) !important; }
html[data-th] .phone .st.blue { background: var(--th-strong) !important; }
html[data-th="plaid"] .phone .st.blue { background: var(--th-grad) !important; }

/* ================= nav + guide-line variations (2026-09-29, drafts; pick in the Tune panel) =================
   User: the hero's left guide line cuts through the Products arrow, and the two floating pills that appear on
   scroll look off. Nothing here applies until html[data-gut] / html[data-navx] is set (the panel does that while
   tuning), so the page keeps its current look until a variant is chosen.
     data-gut:  below = lines start under the nav and fade in | aligned = the nav lines up with the content column
                (logo sits inside the line) | both = aligned + below | stripe = stripe.com's
                frame (aligned nav, hairline under it, lines start there) | none = no guide lines
     data-navx: bar = full-width frosted bar with a hairline | contained = the bar, contents on the page column |
                island = one rounded bar the width of the column | hide = the bar hides scrolling down, returns
                scrolling up | clear = no bar, a soft white fade behind the items */
@media (min-width: 901px) {
  html[data-gut="below"] .h3b-gut, html[data-gut="both"] .h3b-gut { top: 76px; -webkit-mask-image: linear-gradient(transparent, #000 120px); mask-image: linear-gradient(transparent, #000 120px); }
  html[data-gut="none"] .h3b-gut { display: none; }
  /* stripe = stripe.com's frame: nav on the page column, a full-width hairline right under the nav (69px tall),
     and the column's vertical lines starting at that hairline; the logo strip's full-width rules close the frame */
  html[data-gut="stripe"] .h3b-gut { top: 70px; }
  html[data-gut="stripe"] .h3b::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 70px;
    border-top: 1px solid rgba(66,84,102,.09); pointer-events: none; }
  html[data-gut="stripe"] .h3b-logos { background: transparent; }   /* the column lines run on through the logo strip */
  html[data-gut="aligned"] body > .nav, html[data-gut="both"] body > .nav, html[data-gut="stripe"] body > .nav, html[data-navx="contained"] body > .nav {
    padding-left: calc((100vw - min(1180px, 100vw - 32px)) / 2 + 6px) !important;
    padding-right: calc((100vw - min(1180px, 100vw - 32px)) / 2 + 6px) !important; }

  /* every variant drops the two pills' own chrome */
  html[data-navx] body .nav.nav-float > .nav-left, html[data-navx] body .nav.nav-float > .nav-right {
    background: transparent !important; border-color: transparent !important; box-shadow: none !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    padding-left: 0 !important; padding-right: 0 !important; }   /* the pills' extra padding made the items jump 12px on scroll */
  html[data-navx] body > .nav { transition: background .25s ease, box-shadow .25s ease, transform .35s cubic-bezier(.22,1,.36,1), padding .3s ease; }
  html[data-navx="bar"] body > .nav.nav-float, html[data-navx="contained"] body > .nav.nav-float, html[data-navx="hide"] body > .nav.nav-float {
    background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 rgba(66,84,102,.12); padding-top: 8px; padding-bottom: 8px; pointer-events: auto; }
  html[data-navx="island"] body > .nav.nav-float {
    left: 50%; right: auto; top: 12px; width: min(1180px, calc(100% - 32px)); transform: translateX(-50%); box-sizing: border-box;
    padding: 6px 8px 6px 14px; border-radius: 14px; pointer-events: auto;
    background: rgba(255,255,255,.88); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border: 1px solid rgba(66,84,102,.12); box-shadow: 0 16px 40px -20px rgba(50,50,93,.35); }
  html[data-navx="hide"] body > .nav.nav-float.nav-away { transform: translateY(-110%); }
  html[data-navx="clear"] body > .nav.nav-float::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none;
    background: linear-gradient(#fff 50%, rgba(255,255,255,0)); }
}
