/* Marketing site styles: shared by every page built from src/pages. */

  .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


  /* Dark stage: the hero always sits on the night palette, whatever the theme. */
  .stage { position: relative; overflow: hidden; color: var(--ink);
    --paper: #071113; --ink: #E9F1EF; --muted: #9FB3B2; --rule: #1E3337; --panel: #0E1F23; --raise: #163036; --surface: #0E1F23;
    --brand: #33B5A5; --brand-ink: #04201C; --brand-hover: #4CC9B9; --warn: #E5A823; --warn-text: #F5D58A; --crit: #EF5A45; --crit-text: #FFB4A8; --hatch: #3D5559;
    background: #071113; padding-bottom: clamp(28px, 4vw, 48px); }
  .stage-glow { position: absolute; inset: 0; pointer-events: none;
    background:
      radial-gradient(55% 60% at 78% 28%, rgb(51 181 165 / .30), transparent 70%),
      radial-gradient(35% 45% at 8% 0%, rgb(126 240 222 / .10), transparent 70%),
      linear-gradient(rgb(126 240 222 / .045) 1px, transparent 1px) 0 0 / 56px 56px,
      linear-gradient(90deg, rgb(126 240 222 / .045) 1px, transparent 1px) 0 0 / 56px 56px;
    -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
  .stage > .wrap { position: relative; }
  .stage .top { border-bottom: 1px solid rgb(126 240 222 / .08); }
  .glow-text { background: linear-gradient(92deg, #7EF0DE, #2DB3A3 60%, #7EF0DE); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 40px rgb(51 181 165 / .25); }
  .stage .lede { color: #A9BDBB; }
  .stage .btn { border-color: rgb(233 241 239 / .35); color: var(--ink); }
  .stage .btn:hover { background: rgb(233 241 239 / .08); color: var(--ink); }
  .stage .btn.primary { color: var(--brand-ink); background: linear-gradient(180deg, #5DE0CD, #2DB3A3); border-color: transparent; box-shadow: 0 0 0 1px rgb(126 240 222 / .45), 0 10px 34px -8px rgb(51 181 165 / .8); }
  .stage .btn.primary:hover { box-shadow: 0 0 0 1px rgb(126 240 222 / .7), 0 12px 40px -6px rgb(51 181 165 / .95); }
  .stage .device { background: linear-gradient(180deg, rgb(19 40 45 / .92), rgb(12 28 32 / .92)); border: 1px solid rgb(126 240 222 / .16); border-top: 3px solid var(--warn);
    box-shadow: 0 0 0 1px rgb(0 0 0 / .3), 0 30px 80px -30px rgb(51 181 165 / .55), inset 0 1px 0 rgb(255 255 255 / .04); backdrop-filter: blur(8px); }
  .stage .theme-btn { border-color: rgb(233 241 239 / .2); color: #A9BDBB; }
  .trust-strip { list-style: none; margin: clamp(8px, 2vw, 20px) 0 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; border-top: 1px solid rgb(126 240 222 / .08); }
  .trust-strip li { display: flex; gap: .7rem; align-items: flex-start; }
  .trust-strip svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; background: rgb(51 181 165 / .12); border: 1px solid rgb(126 240 222 / .22); fill: none; stroke: #7EF0DE; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
  .trust-strip span { font-size: .88rem; color: #9FB3B2; line-height: 1.35; }
  .trust-strip b { display: block; color: var(--ink); font-family: var(--fd); font-weight: 600; font-size: .95rem; }
  @media (max-width: 900px) { .trust-strip { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 480px) { .trust-strip { grid-template-columns: 1fr; } }
  .btn.primary { box-shadow: 0 8px 24px -12px rgb(14 116 104 / .7); }

  .stage-photo { position: absolute; inset: 0; pointer-events: none; background: url(/img/hero-chart.webp) center 30% / cover no-repeat; opacity: .16; mix-blend-mode: luminosity;
    -webkit-mask-image: radial-gradient(70% 80% at 70% 35%, #000 30%, transparent 75%); mask-image: radial-gradient(70% 80% at 70% 35%, #000 30%, transparent 75%); }
  .founder-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
  .founder-photo { margin: 0; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow), 0 30px 60px -30px rgb(7 17 19 / .6); aspect-ratio: 4 / 3; }
  .founder-photo img { width: 100%; height: 100%; object-fit: cover; }
  .founder-grid blockquote { margin: 0; font-family: var(--fd); font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.5; font-weight: 450; }
  .founder-grid cite { display: block; margin-top: 1rem; font-style: normal; color: var(--muted); }
  @media (max-width: 900px) { .founder-grid { grid-template-columns: 1fr; } }
  .access { position: relative; overflow: hidden; }
  .access::before { content: ""; position: absolute; inset: 0; background: url(/img/fx-board.webp) center / cover no-repeat; opacity: .22; mix-blend-mode: luminosity; pointer-events: none; }
  .access::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 80% at 20% 50%, rgb(51 181 165 / .22), transparent 70%); pointer-events: none; }
  .access > .wrap { position: relative; z-index: 1; }
  .hero { padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 6vw, 64px); }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
  .hero-grid .display { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
  .trust { color: #A9BDBB; display: flex; gap: .7rem; align-items: center; margin-top: 1.4rem; font-size: .93rem; color: var(--muted); max-width: 46ch; }
  .trust i { flex: none; width: 30px; height: 20px; border-radius: 3px; }
  .device { background: var(--panel); border: 1.5px solid var(--rule); border-radius: 22px; padding: clamp(16px, 2.4vw, 24px); box-shadow: var(--shadow), 0 40px 80px -48px rgb(14 116 104 / .45); border-top: 6px solid var(--warn); }
  .device-bar { display: flex; justify-content: space-between; gap: 1rem; font-size: .88rem; color: var(--muted); margin-bottom: .8rem; }
  .device-bar b { color: var(--ink); }
  .device-alert { margin: 0 0 1rem; padding: .6em .8em; border-radius: var(--r-md); background: var(--raise); border-left: 4px solid var(--crit); color: var(--crit-text); font-weight: 650; font-size: .95rem; max-width: none; }
  .device .g-num { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
  .device .daychart { margin-top: 1rem; }
  .device .sim-line { font-size: .9rem; color: var(--muted); margin: .7rem 0 0; }
  .device .sim-line b { color: var(--ink); }
  @media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; } }

  .buy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
  .buy-form { display: flex; gap: .6rem; margin: 1.4rem 0 1rem; flex-wrap: wrap; }
  .buy-form .input { flex: 1 1 240px; font-size: 1.1rem; padding: .85em 1em; }
  .buy-list { list-style: none; padding: 0; margin: 1rem 0 0; }
  .buy-list li { padding: .55rem 0 .55rem 1.4rem; position: relative; border-top: 1.5px solid var(--rule); }
  .buy-list li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 10px; height: 10px; border-radius: 2px; background: var(--brand); }
  .fp-sample { background: var(--panel); border: 1.5px solid var(--rule); border-radius: var(--r-lg); padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
  .fp-sample h3 { margin: 0 0 .2rem; }
  .fp-sample .small { margin-bottom: .6rem; }
  .fps-group { border-left: 4px solid var(--rule); padding-left: .9rem; margin-top: .9rem; }
  .fps-group h4 { margin: 0 0 .3rem; font-size: .92rem; }
  .fps-group p { margin: 0; font-size: .9rem; color: var(--muted); }
  .fps-group.red { border-left-color: var(--crit); } .fps-group.red h4 { color: var(--crit-text); }
  .fps-group.amber { border-left-color: var(--warn); } .fps-group.amber h4 { color: var(--warn-text); }
  .fps-group.unstated { border-left-style: dashed; }
  @media (max-width: 900px) { .buy { grid-template-columns: 1fr; } }


  .hero .lede { margin: 1.3rem 0 1.8rem; }
  .ctas { display: flex; flex-wrap: wrap; gap: .7rem; }
  .hero-live { margin-top: clamp(32px, 5vw, 56px); background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); }
  .hero-live .ctx { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-bottom: 1rem; font-size: .93rem; color: var(--muted); }
  .hero-live .ctx b { color: var(--ink); font-weight: 650; }
  .hero-live .sim-line { margin: .9rem 0 0; font-size: .98rem; max-width: none; }
  .hero-live .sim-line b { font-variant-numeric: tabular-nums; }
  .pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: .4em; animation: pulse 2s ease-in-out infinite; }
  @keyframes pulse { 50% { opacity: .3; } }

  section.band { padding: clamp(48px, 8vw, 96px) 0; border-top: 1.5px solid var(--rule); }
  section.band.alt { background: var(--paper-2); }
  .intro { margin-bottom: clamp(24px, 4vw, 40px); }

  .mech { display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
  .mech-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 3rem; padding: 1.6rem 0; border-bottom: 1.5px solid var(--rule); }
  .mech-row .says { font-family: var(--fd); font-weight: 700; font-size: 1.3rem; line-height: 1.25; }
  .mech-row .says small { display: block; font-family: var(--fd); font-weight: 500; font-size: .85rem; color: var(--muted); margin-bottom: .3rem; }
  .mech-row p { margin: 0; }
  .mech-row .means b { font-variant-numeric: tabular-nums; }
  @media (max-width: 760px) { .mech-row { grid-template-columns: 1fr; } }

  .preview-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
  .preview-grid .frame { background: var(--frame); border-radius: calc(var(--r-lg) + 8px); padding: 10px; }
  .callouts { list-style: none; padding: 0; margin: 0; }
  .callouts li { padding: 1rem 0; border-bottom: 1.5px solid var(--rule); }
  .callouts li:first-child { padding-top: 0; }
  .callouts h3 { margin-bottom: .25rem; }
  .callouts p { margin: 0; color: var(--muted); }
  @media (max-width: 900px) { .preview-grid { grid-template-columns: 1fr; } }

  .steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .steps li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 1rem; }
  .steps li::before { content: counter(s); display: block; font-family: var(--fd); font-weight: 820; font-size: 2.4rem; line-height: 1; color: var(--brand); margin-bottom: .6rem; }
  .steps p { color: var(--muted); margin: 0; }
  @media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

  .canwall { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: clamp(28px, 5vw, 48px); }
  .canwall > div { border-radius: var(--r-lg); padding: 1.3rem 1.4rem; }
  .canwall .can { background: var(--surface); border: 1.5px solid var(--rule); }
  .canwall .cannot { border: 1.5px solid var(--ink); }
  .canwall ul { margin: .5rem 0 0; padding-left: 1.1rem; }
  .canwall li { margin: .3rem 0; }
  .canwall .cannot .h3 { display: flex; align-items: center; gap: .6rem; }
  .canwall .cannot .h3 i { width: 28px; height: 18px; border-radius: 2px; }
  @media (max-width: 760px) { .canwall { grid-template-columns: 1fr; } }

  .firms { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); }
  .firm-points { list-style: none; padding: 0; margin: 1.5rem 0 0; }
  .firm-points li { padding: .9rem 0 .9rem 1.4rem; border-top: 1.5px solid var(--rule); position: relative; }
  .firm-points li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 10px; height: 10px; border-radius: 2px; background: var(--brand); }
  .firm-points b { display: block; font-family: var(--fd); }
  .formcard { background: var(--surface); border: 1.5px solid var(--rule); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); }
  @media (max-width: 900px) { .firms { grid-template-columns: 1fr; } }

  table.cov { width: 100%; border-collapse: collapse; font-size: .97rem; }
  .cov th, .cov td { text-align: left; padding: .85rem .6rem .85rem 0; border-bottom: 1.5px solid var(--rule); vertical-align: top; }
  .cov th { font-weight: 650; font-size: .88rem; color: var(--muted); border-bottom-color: var(--ink); }
  .cov td:first-child { font-weight: 650; }
  .status { display: inline-block; padding: .15em .6em; border-radius: 999px; font-size: .82rem; font-weight: 650; white-space: nowrap; }
  .status.ok { background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); }
  .status.check { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
  .status.you { background: var(--paper-2); color: var(--ink); }
  @media (max-width: 640px) { .cov .rules-col { display: none; } }

  .faq details { border-bottom: 1.5px solid var(--rule); padding: 1rem 0; }
  .faq summary { cursor: pointer; font-weight: 650; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
  .faq summary::after { content: "+"; font-weight: 400; font-size: 1.4rem; line-height: 1; color: var(--muted); }
  .faq details[open] summary::after { content: "\2212"; }
  .faq details p { margin: .7rem 0 0; color: var(--muted); }
  .two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 64px); }
  @media (max-width: 900px) { .two { grid-template-columns: 1fr; } }

  .access { background: var(--deep); color: #EDEFEC; }
  .access .lede { color: #B8C6C4; }
  .access .formcard { background: #1C3238; border-color: #2A444A; color: #EDEFEC; }
  .access .input { background: #13262B; border-color: #2E4A50; color: #EDEFEC; }
  .access .hint { color: #9FB1AF; }
  .sent { font-weight: 650; color: #4CC9B9; }


/* ===== Site chrome (shared by all marketing pages) ===== */
.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: var(--brand-ink); padding: .5em 1em; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
.top { position: relative; z-index: 10; display: flex; align-items: center; gap: 1.5rem; padding: 16px 0; }
.top nav.primary { display: flex; gap: .2rem; margin-left: 1rem; }
.top nav.primary a { text-decoration: none; font-weight: 550; font-size: .95rem; padding: .45em .75em; border-radius: 8px; color: var(--muted); transition: color .15s, background .15s; }
.top nav.primary a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.top nav.primary a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--brand) 16%, transparent); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.top-actions .btn { padding: .6em 1em; font-size: .93rem; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid var(--rule); background: transparent; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (max-width: 1020px) {
  .menu-btn { display: inline-flex; }
  .top nav.primary { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; padding: .6rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .5); }
  .top nav.primary.open { display: flex; }
  .top nav.primary a { padding: .8em 1em; font-size: 1.02rem; }
  .top-actions .hide-sm { display: none; }
}
@media (max-width: 420px) { .top-actions .btn.primary { padding: .55em .8em; } }

/* Inner page hero: the same night stage, shorter */
.page-hero { padding: clamp(36px, 7vw, 84px) 0 clamp(36px, 6vw, 72px); }
.page-hero .eyebrow-link { display: inline-flex; gap: .4rem; align-items: center; font-size: .9rem; color: #9FB3B2; text-decoration: none; margin-bottom: 1rem; }
.page-hero h1 { font-family: var(--fd); font-weight: 650; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.035em; margin: 0; max-width: 20ch; }
.page-hero .lede { margin-top: 1.2rem; }
.page-hero.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.page-hero.split figure { margin: 0; border-radius: 20px; overflow: hidden; border: 1px solid rgb(126 240 222 / .16); box-shadow: 0 30px 80px -30px rgb(51 181 165 / .45); aspect-ratio: 4 / 3; }
.page-hero.split figure img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .page-hero.split { grid-template-columns: 1fr; } }

/* Feature rows: copy on one side, a real product component on the other */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1.5px solid var(--rule); }
.feature:first-child { border-top: 0; }
.feature.flip > :first-child { order: 2; }
.feature h2 { margin-bottom: .5rem; }
.feature ul.points { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.feature ul.points li { padding: .5rem 0 .5rem 1.5rem; position: relative; color: var(--muted); }
.feature ul.points li::before { content: ""; position: absolute; left: 0; top: .95rem; width: 9px; height: 9px; border-radius: 2px; background: var(--brand); }
.feature ul.points b { color: var(--ink); font-weight: 600; }
.showcase { background: var(--panel); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(16px, 2.6vw, 26px); box-shadow: var(--shadow); }
.showcase-label { font-size: .82rem; color: var(--muted); margin: 0 0 .8rem; display: flex; align-items: center; gap: .45rem; }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: 1fr; } .feature.flip > :first-child { order: 0; } }

/* CTA band used at the bottom of pages */
.cta-band { position: relative; overflow: hidden; background: var(--deep); color: #E9F1EF; padding: clamp(48px, 7vw, 88px) 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 90% at 85% 50%, rgb(51 181 165 / .28), transparent 70%); }
.cta-band .wrap { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; }
.cta-band h2 { color: #E9F1EF; margin: 0; }
.cta-band p { color: #A9BDBB; margin: .5rem 0 0; }
.cta-band .ctas { display: flex; gap: .7rem; flex-wrap: wrap; }
.cta-band .btn { border-color: rgb(233 241 239 / .35); color: #E9F1EF; }
.cta-band .btn.primary { color: #04201C; background: linear-gradient(180deg, #5DE0CD, #2DB3A3); border-color: transparent; box-shadow: 0 10px 34px -8px rgb(51 181 165 / .8); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--rule); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.featured { border: 1.5px solid var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent), var(--shadow); }
.plan h3 { margin: 0; font-size: 1.15rem; }
.plan .price { font-family: var(--fd); font-weight: 650; font-size: 2.6rem; letter-spacing: -0.03em; margin: .6rem 0 .1rem; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .for { color: var(--muted); font-size: .95rem; min-height: 3em; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; flex: 1; }
.plan li { padding: .45rem 0 .45rem 1.6rem; position: relative; border-top: 1px solid var(--rule); font-size: .95rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .8rem; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }
.plan .tag { display: inline-block; font-size: .78rem; font-weight: 650; padding: .2em .65em; border-radius: 999px; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); margin-left: .5rem; vertical-align: 3px; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }

/* Long-form text pages (legal, security) */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.45rem; margin: 2.2rem 0 .6rem; }
.prose h3 { margin-top: 1.4rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }
.prose .updated { color: var(--muted); font-size: .92rem; }
.notice { border-left: 4px solid var(--warn); background: color-mix(in srgb, var(--warn) 9%, transparent); padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; margin: 1.4rem 0; }

/* Principles grid (about) */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 2rem; }
.principles > div { border-top: 3px solid var(--brand); padding-top: 1rem; }
.principles p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .principles { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { border-top: 1.5px solid var(--rule); padding: 56px 0 32px; background: var(--paper); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.foot-brand p { color: var(--muted); max-width: 34ch; margin-top: .8rem; }
.site-foot h3 { font-size: .95rem; margin: 0 0 .7rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }
.site-foot li { margin: .45rem 0; }
.site-foot li a { color: var(--muted); text-decoration: none; }
.site-foot li a:hover { color: var(--ink); }
.foot-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.foot-legal p { font-size: .86rem; color: var(--muted); max-width: 90ch; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Rule check page */
.check-form { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.8rem; max-width: 680px; }
.check-form .input { flex: 1 1 280px; background: rgb(14 31 35 / .85); border-color: rgb(126 240 222 / .25); color: #E9F1EF; }
.check-note { color: #9FB3B2; font-size: .9rem; margin-top: .8rem; }
.stage .suggest { max-width: 680px; }
.stage .suggest button { background: #0E1F23; color: #E9F1EF; border-color: #1E3337; }
.check-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 18px; align-items: start; margin-top: 1rem; }
@media (max-width: 980px) { .check-grid { grid-template-columns: 1fr; } }
.check-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 18px; padding: 1.2rem 1.4rem; border-radius: 16px; background: color-mix(in srgb, var(--brand) 12%, var(--panel)); border: 1px solid color-mix(in srgb, var(--brand) 40%, transparent); }
.check-cta p { margin: 0; font-weight: 600; }
.pill-cloud { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-cloud li { border: 1px solid var(--rule); background: var(--panel); border-radius: 999px; padding: .35em .85em; font-size: .9rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stage .btn.quiet { border-color: transparent; text-decoration: none; color: #A9BDBB; }
.stage .btn.quiet:hover { color: #E9F1EF; background: rgb(233 241 239 / .06); }
.stage .hatch { background-color: transparent; }
.tg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .tg-grid { grid-template-columns: 1fr; } }
.tg { background: var(--panel); border: 1px solid var(--rule); border-radius: 18px 18px 18px 6px; padding: 14px 16px; box-shadow: var(--shadow); }
.tg-from { margin: 0 0 .4rem; font-weight: 650; font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.tg-from small { margin-left: auto; color: var(--muted); font-weight: 500; }
.tg-dot { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #5DE0CD, #1FB5A2); }
.tg-msg { margin: 0; font-size: .93rem; line-height: 1.5; max-width: none; }
.feature .ctas, .page-hero .ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

/* ---------- Compare ---------- */
.cmp-controls { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: end; margin-top: 1.6rem; }
.cmp-controls .field { margin: 0; }
.cmp-controls .field > span { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; }
.cmp-controls select { min-width: 160px; }
.seg { display: inline-flex; background: var(--raise); border: 1px solid var(--rule); border-radius: 12px; padding: 3px; }
.seg button { font: inherit; font-weight: 600; font-size: .92rem; border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: .55em 1em; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.cmp-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; align-items: start; }
@media (max-width: 900px) { .cmp-slots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cmp-slots { grid-template-columns: 1fr; } }
.cmp-hero h1, .cmp-head-line h2 { text-wrap: balance; }
.cmp-slot { background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--rule); border-radius: 18px; padding: 14px; min-height: 120px; backdrop-filter: blur(6px); }
.cmp-slot.empty { border-style: dashed; }
.cmp-slot.ready { border-color: color-mix(in srgb, var(--brand) 45%, var(--rule)); }
.cmp-slot.err { border-color: color-mix(in srgb, var(--warn) 55%, var(--rule)); }
.cmp-slot-n { margin: 0 0 .5rem; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cmp-slot .fpick { max-width: none; }
.fpick.compact .fpick-input { font-size: 1rem; padding: .75em 0; }
.fpick.compact .fpick-opt { grid-template-columns: 34px minmax(0, 1fr) auto; }
.fpick.compact .fpick-tags { display: none; }
.fpick.compact .fpick-state { min-width: 0; }
.fpick.compact .fpick-state small, .fpick.compact .fpick-state .long { display: none; }
.fpick.compact .fpick-logo { width: 34px; height: 34px; }
.cmp-slot-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.cmp-slot-head b { font-family: var(--fd); font-size: 1.1rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-x { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--rule); background: transparent; color: var(--muted); font-size: 1.2rem; line-height: 1; cursor: pointer; flex: none; }
.cmp-x:hover { color: var(--ink); border-color: var(--ink); }
.cmp-slot .field { margin: 0 0 .6rem; }
.cmp-slot .field > span { font-size: .8rem; }
.cmp-slot.add { width: 100%; display: flex; align-items: center; justify-content: center; gap: .6rem; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; border-style: dashed; background: transparent; }
.cmp-slot.add span { width: 30px; height: 30px; border-radius: 50%; border: 1px dashed currentColor; display: grid; place-items: center; font-size: 1.2rem; }
.cmp-slot.add:hover { color: var(--brand); border-color: var(--brand); }
.cmp-loading .bar { height: 6px; border-radius: 999px; background: var(--raise); overflow: hidden; margin: .4rem 0 .6rem; }
.cmp-loading .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #7EF0DE); border-radius: inherit; transition: width 1s linear; }
.cmp-slot .near { display: flex; flex-wrap: wrap; gap: 6px; margin: .4rem 0 .6rem; }
.cmp-slot .near button { font: inherit; font-size: .88rem; font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; background: var(--raise); color: var(--ink); border: 1px solid var(--rule); border-radius: 999px; padding: .2rem .7rem .2rem .25rem; cursor: pointer; }
.cmp-slot .near .fpick-logo { width: 24px; height: 24px; font-size: .62rem; border-radius: 50%; }
.cmp-wait { color: var(--muted); }
.cmp-head-line h2 { margin: 0 0 .3rem; }
.cmp-wins { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 18px 0 22px; }
.cmp-win { display: flex; gap: .7rem; align-items: center; background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; }
.cmp-win .fpick-logo { flex: none; }
.cmp-win > span:not(.fpick-logo) { display: flex; flex-direction: column; min-width: 0; }
.cmp-win small { font-size: .76rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cmp-win b { font-family: var(--fd); }
.cmp-win i { font-style: normal; font-size: .86rem; color: var(--brand); font-weight: 600; }
.cmp-table { background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; overflow: clip; }
.cmp-row { display: grid; grid-template-columns: minmax(170px, 1.1fr) repeat(var(--n), minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.cmp-cols { border-top: 0; position: sticky; top: 0; z-index: 2; background: var(--panel); box-shadow: 0 1px 0 var(--rule); }
.cmp-label { padding: 12px 16px; font-weight: 600; font-size: .93rem; }
.cmp-label small { display: block; font-weight: 450; color: var(--muted); font-size: .8rem; }
.cmp-cell, .cmp-col { padding: 12px 16px; border-left: 1px solid var(--rule); position: relative; }
.cmp-cell b { font-family: var(--fd); font-weight: 650; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.cmp-cell small { display: block; color: var(--muted); font-size: .8rem; }
.cmp-cell.best { background: color-mix(in srgb, var(--brand) 11%, transparent); }
.cmp-cell.best b { color: var(--brand); }
.cmp-cell em { position: absolute; top: 10px; right: 12px; font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand); border-radius: 999px; padding: .15em .6em; }
.cmp-col { display: flex; flex-direction: column; gap: .15rem; }
.cmp-col .fpick-logo { width: 34px; height: 34px; margin-bottom: .3rem; }
.cmp-col b { font-family: var(--fd); font-size: 1.05rem; }
.cmp-col small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.cmp-group { padding: 16px 16px 8px; border-top: 1px solid var(--rule); font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); background: var(--raise); }
.cmp-sub { margin: 30px 0 12px; font-family: var(--fd); }
.cmp-fp { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 14px; align-items: start; }
.cmp-fp ul { list-style: none; margin: 0; padding: 0; }
.cmp-fp li { border-top: 1px solid var(--rule); padding: .55rem 0; display: flex; flex-direction: column; gap: .1rem; }
.cmp-fp li b { font-size: .92rem; }
.cmp-fp li span { color: var(--muted); font-size: .86rem; line-height: 1.4; }
.cmp-more { display: inline-block; margin-top: .5rem; color: var(--brand); font-weight: 600; font-size: .9rem; }
@media (max-width: 760px) {
  .cmp-row { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .cmp-row > .cmp-label { grid-column: 1 / -1; padding: 10px 12px 2px; }
  .cmp-cols > .cmp-label { display: none; }
  .cmp-cell, .cmp-col { padding: 6px 12px 12px; }
  .cmp-cell:nth-child(2), .cmp-cols > .cmp-label + .cmp-col { border-left: 0; }
  .cmp-cell em { position: static; display: table; margin-top: .3rem; }
  .cmp-col small:last-child { display: none; }
  .cmp-fp { grid-template-columns: 1fr; }
  .cmp-wins { grid-template-columns: 1fr 1fr; }
  .cmp-win { flex-direction: column; align-items: flex-start; gap: .4rem; }
}

/* ---------- Pricing ---------- */
.beta-strip { display: inline-block; margin-top: 1rem; padding: .55em 1em; border-radius: 999px; background: rgb(51 181 165 / .14); border: 1px solid rgb(126 240 222 / .25); color: #CFEDE8; font-size: .95rem; }
.bill-toggle { display: flex; justify-content: center; gap: 4px; margin: 0 auto 22px; width: max-content; background: var(--raise); border: 1px solid var(--rule); border-radius: 999px; padding: 4px; }
.bill-toggle button { font: inherit; font-weight: 650; border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: .5em 1.2em; cursor: pointer; }
.bill-toggle button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.bill-toggle span { font-size: .78rem; font-weight: 700; margin-left: .3rem; opacity: .85; }
.plan .bill-note { margin: 0 0 .4rem; font-size: .85rem; color: var(--muted); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.math { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
@media (max-width: 760px) { .math { grid-template-columns: 1fr; } }
.math div { background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: .4rem; }
.math b { font-family: var(--fd); font-size: 2.4rem; letter-spacing: -0.03em; }
.math span { color: var(--muted); }
.math .hl { border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 14%, transparent); }
.math .hl b { color: var(--brand); }
.stack { margin-top: 18px; background: var(--panel); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; }
.stack-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(0, .7fr); gap: 16px; padding: 16px 20px; border-top: 1px solid var(--rule); align-items: center; }
.stack-row.head { border-top: 0; background: var(--raise); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 20px; }
.stack-row b { display: block; font-family: var(--fd); }
.stack-row > span:first-child { font-size: .92rem; color: var(--muted); }
.stack-row > span:first-child b { color: var(--ink); font-size: 1rem; }
.stack-row > span:nth-child(2) { font-size: .9rem; color: var(--muted); }
.stack-row .yes { font-weight: 700; color: var(--brand); }
.stack-row.total { background: color-mix(in srgb, var(--brand) 9%, var(--panel)); }
.stack-row.total .yes { font-family: var(--fd); font-size: 1.2rem; }
@media (max-width: 700px) { .stack-row { grid-template-columns: 1fr; gap: 4px; } .stack-row.head { display: none; } .stack-row > span:nth-child(2)::before { content: "Usually: "; font-weight: 600; } }
.faq-mini p { margin: 0 0 1rem; }

/* ---------- List your firm ---------- */
.wiz { background: var(--panel); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(18px, 3vw, 30px); max-width: 860px; margin: 0 auto; box-shadow: var(--shadow); }
.wiz-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; margin: 0 0 20px; counter-reset: s; }
.wiz-steps li { counter-increment: s; font-size: .85rem; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--rule); }
.wiz-steps li::before { content: counter(s) ". "; }
.wiz-steps li.now { color: var(--ink); border-top-color: var(--brand); }
.wiz-steps li.done { color: var(--brand); border-top-color: var(--brand); }
.wiz fieldset { border: 0; padding: 0; margin: 0; }
.wiz legend { font-family: var(--fd); font-size: 1.3rem; font-weight: 700; margin-bottom: .8rem; }
.wiz .lbl { font-weight: 600; font-size: .92rem; margin: .9rem 0 .4rem; }
.chips-in { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-in label { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid var(--rule); border-radius: 999px; padding: .35em .85em; cursor: pointer; font-size: .9rem; }
.chips-in label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.chips-in input { accent-color: var(--brand); }
.pkg-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (max-width: 700px) { .pkg-pick { grid-template-columns: 1fr; } .wiz-steps { font-size: .75rem; } }
.pkg-pick label { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.pkg-pick label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.pkg-pick b { display: block; }
.pkg-pick span { font-size: .88rem; color: var(--muted); }
.pkg-pick span b { color: var(--ink); font-size: 1rem; }
.wiz .check { display: flex; gap: .6rem; align-items: flex-start; margin: .5rem 0; font-size: .92rem; }
.wiz .check a { color: var(--brand); }
.status-card { background: var(--panel); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(18px, 3vw, 30px); max-width: 760px; margin: 0 auto; }
.status-card h2 { margin: .2rem 0 .3rem; }
.status-steps { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.status-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 2px 10px; align-items: start; }
.status-steps li::before { content: ""; grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--rule); margin-top: 2px; }
.status-steps li.done::before { background: var(--brand); border-color: var(--brand); box-shadow: inset 0 0 0 4px var(--panel); }
.status-steps li.now::before { border-color: var(--brand); border-style: dashed; animation: spin 3s linear infinite; }
.status-steps li.warn::before { border-color: var(--warn); }
.status-steps b { font-family: var(--fd); }
.status-steps span { color: var(--muted); font-size: .92rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps-list { padding-left: 1.2rem; }
.steps-list li { margin-bottom: .8rem; }
.steps-list b { display: block; }
.plans.pkg .plan .price { font-size: 2.1rem; }
.cmp-spons { display: grid; gap: 10px; }

/* ---------- Home: feature tour ---------- */
.tour-band { position: relative; overflow: hidden; }
.tour-band::before { content: ""; position: absolute; inset: auto -10% -30% 30%; height: 70%; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent); pointer-events: none; }
.tour-intro { text-align: center; max-width: 720px; margin: 0 auto 28px; position: relative; }
.tour-intro h2 { margin: .3rem 0 .5rem; text-wrap: balance; }
.tour-intro .lede { margin: 0 auto; }
.tour { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(16px, 3vw, 36px); align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 6px; }
.tour-tabs button { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; text-align: left; font: inherit; color: var(--ink); background: transparent; border: 1px solid transparent; border-radius: 16px; padding: 12px 14px; cursor: pointer; overflow: hidden; transition: background .2s, border-color .2s; }
.tour-tabs button:hover { background: color-mix(in srgb, var(--panel) 70%, transparent); }
.tour-tabs button[aria-selected="true"] { background: var(--panel); border-color: color-mix(in srgb, var(--brand) 40%, var(--rule)); box-shadow: var(--shadow); }
.tour-tabs button:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.t-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--raise); color: var(--muted); transition: background .2s, color .2s; }
.t-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tour-tabs button[aria-selected="true"] .t-ico { background: var(--brand); color: var(--brand-ink); }
.tour-tabs b { display: block; font-family: var(--fd); font-size: 1rem; font-weight: 650; }
.tour-tabs small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.45; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .3s ease, opacity .3s ease, margin .3s; }
.tour-tabs button[aria-selected="true"] small { max-height: 5em; opacity: 1; margin-top: .2rem; }
.t-prog { position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px; background: transparent; }
.tour-tabs button.running .t-prog { background: linear-gradient(90deg, var(--brand), #7EF0DE) left / 0% 100% no-repeat; animation: t-fill 7s linear forwards; }
.tour-tabs button.running.paused .t-prog { animation-play-state: paused; }
@keyframes t-fill { to { background-size: 100% 100%; } }
.tour-screen { position: sticky; top: 24px; background: var(--panel); border: 1px solid var(--rule); border-radius: 22px; box-shadow: 0 30px 70px -40px rgb(0 0 0 / .55), var(--shadow); overflow: hidden; }
.tour-screen::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--brand), #7EF0DE); }
.tour-chrome { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--rule); font-size: .85rem; color: var(--muted); }
.tour-chrome .dots { display: flex; gap: 6px; }
.tour-chrome .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule); }
.tour-title { flex: 1; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tour-live { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--brand); }
.tour-body { height: 500px; padding: 20px 22px; overflow: hidden; position: relative; }
.tour-body::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(transparent, var(--panel)); pointer-events: none; }
.tour-view.enter { animation: t-in .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes t-in { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.tour-view > :first-child { margin-top: 0; }
.tour-view .tplan, .tour-view .objs, .tour-view .perf { margin-top: 0; border-top: 0; padding-top: 0; }
.tour-view .plan-edit { display: none; }
.tour-view .budget { margin-top: 0; }
.tour-ctas { max-width: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 30px 0 0; }
/* journal slice */
.tj-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tj-totals div { background: var(--raise); border-radius: 12px; padding: 10px 12px; }
.tj-totals small { display: block; font-size: .74rem; color: var(--muted); font-weight: 600; }
.tj-totals b { font-family: var(--fd); font-size: 1.25rem; }
.tour-view .up { color: var(--brand); } .tour-view .down { color: var(--crit-text); }
.tj-h { margin: 16px 0 8px; font-family: var(--fd); }
.tj-ins { display: grid; gap: 8px; }
.tj-ins .ins { background: var(--raise); border: 0; border-left: 4px solid var(--rule); border-radius: 12px; padding: 10px 14px; }
.tj-ins .ins.good { border-left-color: var(--brand); } .tj-ins .ins.bad { border-left-color: var(--crit); } .tj-ins .ins.info { border-left-color: var(--warn); }
.tj-ins h3 { margin: 0 0 .2rem; font-size: .95rem; font-family: var(--fd); }
.tj-ins p { margin: 0; font-size: .86rem; color: var(--muted); max-width: none; }
.tj-day { margin: 12px 0 0; font-size: .9rem; color: var(--muted); }
.tj-day b { color: var(--ink); }
/* telegram slice */
.phone { max-width: 400px; margin: 0 auto; background: var(--raise); border-radius: 26px; border: 1px solid var(--rule); overflow: hidden; }
.phone-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--panel); border-bottom: 1px solid var(--rule); }
.phone-head .bot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--brand), #7EF0DE); color: var(--brand-ink); font-family: var(--fd); font-weight: 800; }
.phone-head small { display: block; color: var(--muted); font-size: .75rem; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.bubble { align-self: flex-start; max-width: 92%; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px 16px 16px 16px; padding: 10px 12px; animation: t-in .5s both; animation-delay: var(--d); }
.bubble p { margin: 0; font-size: .86rem; line-height: 1.45; max-width: none; }
.bubble time { display: block; text-align: right; font-size: .7rem; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 8px; margin: 0 -16px; padding: 2px 16px 6px; }
  .tour-tabs::-webkit-scrollbar { display: none; }
  .tour-tabs button { flex: 0 0 auto; scroll-snap-align: center; grid-template-columns: 30px auto; align-items: center; padding: 8px 14px 10px 8px; border-color: var(--rule); border-radius: 999px; }
  .tour-tabs small { display: none; }
  .t-ico { width: 30px; height: 30px; border-radius: 50%; }
  .t-ico svg { width: 16px; height: 16px; }
  .tour-tabs b { font-size: .88rem; white-space: nowrap; }
  .t-prog { bottom: 3px; left: 20px; right: 20px; }
  .tour-screen { position: relative; top: 0; }
  .tour-body { height: 520px; padding: 16px; }
  .tour-view .perf-grid { display: flex; flex-direction: column-reverse; gap: 12px; }
  .tour-view .perf .figs div:nth-child(n+5) { display: none; }
  .tj-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .tour-view.enter, .bubble { animation: none; } }
.tour-chart { margin-top: 14px; }
.tour-chart figcaption { display: none; }
.tour-view .positions { margin-top: 1rem; }
.plan .for .extra { display: block; margin-top: .3rem; color: var(--ink); font-size: .9rem; }
.examples { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
@media (max-width: 760px) { .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.examples div { background: var(--panel); border: 1px solid var(--rule); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: .1rem; }
.examples b { font-family: var(--fd); }
.examples span { font-size: .84rem; color: var(--muted); }
.examples em { font-style: normal; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; margin-top: .2rem; }
.cmp-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--rule); border-radius: 18px; background: var(--panel); }
.plan-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .93rem; }
.plan-table thead th { position: sticky; top: 0; background: var(--panel); font-family: var(--fd); font-size: 1rem; padding: 16px 14px; text-align: center; border-bottom: 1px solid var(--rule); }
.plan-table thead th small { display: block; font-family: var(--f); font-size: .8rem; color: var(--muted); font-weight: 600; }
.plan-table thead th:first-child { text-align: left; }
.plan-table thead th:nth-child(3) { color: var(--brand); }
.plan-table tbody th { text-align: left; font-weight: 600; padding: 11px 14px; border-top: 1px solid var(--rule); width: 46%; }
.plan-table tbody th small { display: block; font-weight: 450; color: var(--muted); font-size: .8rem; }
.plan-table td { text-align: center; padding: 11px 14px; border-top: 1px solid var(--rule); font-size: .88rem; font-variant-numeric: tabular-nums; }
.plan-table td:nth-child(3) { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.plan-table tr.grp th { background: var(--raise); font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 10px 14px; }
.plan-table .y { color: var(--brand); font-weight: 800; font-size: 1.05rem; }
.plan-table .no { color: var(--muted); opacity: .6; }

/* Rule simulator */
.sim-hero { padding-bottom: clamp(20px, 3vw, 36px); }
.sim-hero h1 { max-width: 22ch; }
.sim-missions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 1.6rem; }
@media (max-width: 900px) { .sim-missions { grid-template-columns: 1fr 1fr; } }
.sim-m { text-align: left; font: inherit; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; gap: .25rem; min-width: 0;
  background: color-mix(in srgb, var(--panel) 88%, transparent); border: 1px solid var(--rule); border-radius: 16px; padding: 12px 14px; backdrop-filter: blur(6px); transition: border-color .15s, transform .15s; }
.sim-m:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--rule)); transform: translateY(-1px); }
.sim-m.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 10px 30px -14px rgb(51 181 165 / .6); }
.sim-m b { font-family: var(--fd); font-size: 1.02rem; font-weight: 680; line-height: 1.25; }
.sim-m small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.sim-m-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.sim-m-top i { font-style: normal; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); }
.sim-stars { display: inline-flex; gap: 1px; font-size: .85rem; line-height: 1; }
.sim-stars b { font-weight: 400; color: color-mix(in srgb, var(--muted) 45%, transparent); }
.sim-stars b.on { color: var(--warn); }
.sim-stars.big { font-size: 1.9rem; margin: .2rem 0; gap: 4px; }
.sim-band { padding-top: clamp(20px, 3vw, 36px); }
.sim-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 960px) { .sim-grid { grid-template-columns: 1fr; } }
.sim-acct { min-width: 0; }
.sim-goal { margin: 0 0 1.1rem; }
.sim-goal-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; font-weight: 600; font-size: .95rem; }
.sim-goal-top b { font-family: var(--fd); font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.sim-walls { display: grid; gap: 1.1rem; }
.sim-controls { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--rule); display: grid; gap: .9rem; }
.sim-row { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: end; justify-content: space-between; }
.sim-r { margin: 0; min-width: 0; flex: 0 1 220px; }
.sim-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.sim-btns .btn { padding-inline: .4em; font-variant-numeric: tabular-nums; justify-content: center; }
.sim-btns #roll { grid-column: 1 / -1; }
.btn.sim-win { border-color: color-mix(in srgb, var(--brand) 55%, var(--rule)); color: var(--brand); }
.btn.sim-win:hover { background: var(--brand); color: var(--brand-ink); }
.btn.sim-loss { border-color: color-mix(in srgb, var(--crit) 50%, var(--rule)); color: var(--crit-text); }
.btn.sim-loss:hover { background: var(--crit); color: #fff; border-color: var(--crit); }
.sim-next { margin: 0; font-size: .9rem; color: var(--muted); background: var(--raise); border-left: 4px solid var(--brand); padding: .6em .8em; border-radius: var(--r-md); max-width: none; }
.sim-next.warm { border-left-color: var(--warn); color: var(--warn-text); }
.sim-next.hot { border-left-color: var(--crit); color: var(--crit-text); }
.sim-day { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.sim-out { border-radius: var(--r-md); padding: 1rem 1.1rem; margin: 0 0 1.1rem; background: var(--raise); border-left: 5px solid var(--brand); }
.sim-out.fail { border-left-color: var(--crit); }
.sim-out h4 { margin: .1rem 0 .4rem; font-family: var(--fd); font-size: 1.3rem; }
.sim-out.fail h4 { color: var(--crit-text); }
.sim-out p { max-width: none; }
.sim-out-go { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.sim-side { display: grid; gap: 20px; min-width: 0; }
.sim-side .objs { margin: 0; padding: 0; border: 0; }
.sim-side .obj-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.sim-log { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px 18px; }
.sim-log h4 { margin: 0 0 .6rem; font-family: var(--fd); font-size: 1rem; }
.sim-log ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-height: 340px; overflow-y: auto; }
.sim-log li { font-size: .9rem; line-height: 1.45; padding: .45em .7em; border-left: 3px solid var(--rule); background: var(--raise); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.sim-log li span { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sim-log li.up { border-left-color: var(--brand); }
.sim-log li.warn { border-left-color: var(--warn); }
.sim-log li.bad { border-left-color: var(--crit); }
.sim-log li.down { border-left-color: color-mix(in srgb, var(--crit) 45%, var(--rule)); }
.sim-setup { margin-bottom: 20px; }
.sim-form { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 24px); }
.sim-form-head h3 { margin: 0 0 .3rem; font-family: var(--fd); }
.sim-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; margin: 1rem 0 .6rem; }
@media (max-width: 900px) { .sim-fields { grid-template-columns: 1fr 1fr; } }
.sim-fields .field { margin: 0; min-width: 0; }
.sim-form-go { margin-top: .4rem; }
.av-sim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; margin-top: 1rem; padding: .8rem 1rem; border: 1px dashed color-mix(in srgb, var(--brand) 50%, var(--rule)); border-radius: var(--r-md); }
.av-sim p { margin: 0; max-width: none; }

/* Public wall page */
.wall-hero { padding: clamp(20px, 4vw, 48px) 0 clamp(24px, 4vw, 40px); max-width: 940px; margin-inline: auto; }
.wall-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 1rem; }
.wall-gone { text-align: center; padding: 40px 0; }
.wall-gone h1 { font-family: var(--fd); }
.wall-gone a { color: var(--brand); }

/* Gift page */
.gift-hero { padding-top: clamp(24px, 5vw, 64px); }
.gift-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 920px) { .gift-grid { grid-template-columns: 1fr; } }
.gift-copy h1 { max-width: 14ch; }
.gift-points { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; color: var(--muted); }
.gift-points li { padding-left: 1.6rem; position: relative; }
.gift-points li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.gift-card { background: color-mix(in srgb, var(--panel) 92%, transparent); border: 1px solid var(--rule); border-radius: 20px; padding: clamp(18px, 3vw, 26px); display: grid; gap: .9rem; backdrop-filter: blur(6px); min-width: 0; }
.gift-card .field { margin: 0; min-width: 0; }
.gift-card .field > span { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; }
.gift-card .seg { flex-wrap: wrap; }
.gift-qty { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.gift-n { display: inline-flex; align-items: center; gap: 4px; }
.gift-n .input { width: 74px; text-align: center; padding-inline: .3em; }
.gift-n .step { font: inherit; font-size: 1.2rem; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--rule); background: var(--raise); color: var(--ink); cursor: pointer; }
.gift-price { background: var(--raise); border-radius: 14px; padding: .8rem 1rem; }
.gp-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .8rem; }
.gp-total b { font-family: var(--fd); font-size: 2rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.gp-total span { color: var(--muted); }
.gift-price p { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); max-width: none; }
.gp-save { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15em .55em; border-radius: 999px; background: color-mix(in srgb, var(--brand) 20%, transparent); color: var(--brand); vertical-align: .1em; }
.gift-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 520px) { .gift-fields { grid-template-columns: 1fr; } }
.gift-go { width: 100%; justify-content: center; }
.gift-note { margin: 0; text-align: center; }
.gift-done h2 { font-family: var(--fd); margin: .2rem 0 .5rem; }
.gift-solo { max-width: 640px; margin-inline: auto; }
.gift-solo h1 { font-family: var(--fd); font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; margin: .2rem 0; letter-spacing: -.02em; }
.gift-solo .check small { display: block; color: var(--muted); font-weight: 400; }
.gift-msg { margin: 0; padding: .9rem 1.1rem; border-left: 4px solid var(--brand); background: var(--raise); border-radius: 0 12px 12px 0; font-size: 1.1rem; font-style: italic; }
.gift-msg cite { display: block; margin-top: .4rem; font-size: .88rem; font-style: normal; color: var(--muted); }
.gift-manage { display: grid; gap: 1rem; }
.gm-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.gm-head h1 { font-family: var(--fd); font-size: clamp(1.6rem, 4vw, 2.4rem); margin: .2rem 0; }
.gift-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .92rem; }
.gift-tbl th, .gift-tbl td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.gift-tbl thead th { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.gm-tbl { background: color-mix(in srgb, var(--panel) 92%, transparent); border-radius: 14px; }
.code-pill { font-family: ui-monospace, Menlo, monospace; font-size: .88rem; background: var(--raise); border: 1px solid var(--rule); border-radius: 6px; padding: .15em .45em; }
.tbl-wrap { overflow-x: auto; max-width: 100%; }
.gift-line { text-align: center; margin: 1.2rem auto 0; font-weight: 600; } .gift-line a { color: var(--brand); }
.lst-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 1rem 0 .4rem; } .lst-stats div { background: var(--raise); border-radius: 12px; padding: .7rem .9rem; } .lst-stats b { display: block; font-family: var(--fd); font-size: 1.4rem; font-variant-numeric: tabular-nums; } .lst-stats span { font-size: .82rem; color: var(--muted); } @media (max-width: 560px) { .lst-stats { grid-template-columns: 1fr; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.ad-plans { margin-top: 1.4rem; }
.ad-plans .plan ul { flex: 1; }
.ad-plans .plan > .btn { margin-top: 1rem; justify-content: center; }
.cost-ex { margin-top: 1.2rem; background: var(--raise); border-radius: 14px; padding: .9rem 1rem; }
.cost-ex h3 { margin: 0 0 .4rem; font-size: 1rem; font-family: var(--fd); }
.cost-ex .gift-tbl td { text-align: right; font-weight: 700; }
.cost-ex .gift-tbl th, .cost-ex .gift-tbl td { white-space: normal; }
.gift-grid.solo { grid-template-columns: minmax(0, 1fr); }

/* Backer view */
.bk-hero { padding: clamp(24px, 4vw, 52px) 0 clamp(20px, 3vw, 36px); }
.bk-hero h1 { font-family: var(--fd); font-size: clamp(2rem, 5vw, 3.2rem); margin: .2rem 0 .1rem; letter-spacing: -.02em; }
.bk-firm { margin: 0; color: var(--muted); }
.bk-sync { display: flex; align-items: center; gap: .5em; color: var(--muted); font-size: .9rem; margin: .5rem 0 0; }
.bk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 1.4rem 0 0; }
@media (max-width: 760px) { .bk-kpis { grid-template-columns: 1fr 1fr; } }
.bk-kpis div { background: color-mix(in srgb, var(--panel) 90%, transparent); border: 1px solid var(--rule); border-radius: 14px; padding: .8rem 1rem; min-width: 0; }
.bk-kpis dt { font-size: .8rem; color: var(--muted); font-weight: 600; }
.bk-kpis dd { margin: .1rem 0 0; font-family: var(--fd); font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 750; font-variant-numeric: tabular-nums; }
.bk-kpis small { color: var(--muted); font-size: .8rem; }
.bk-kpis .up, .bk-card .up { color: var(--brand); } .bk-kpis .down, .bk-card .down { color: var(--crit-text); }
#bk-body { display: grid; gap: 16px; }
#bk-body > .nearest { margin: 0; }
.bk-walls { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px) { .bk-walls { grid-template-columns: 1fr; } }
.bk-card { background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(14px, 2.5vw, 22px); min-width: 0; }
.bk-card h2 { margin: 0 0 .7rem; font-size: 1.1rem; font-family: var(--fd); }
.bk-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }

/* Walls vs your dashboard: shared pieces */
.vs-head { max-width: 760px; margin-bottom: clamp(18px, 3vw, 28px); }
.vs-head h2 { margin: 0 0 .4rem; }
.vs-head .lede { margin: 0; }
.sm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 780px) { .sm { grid-template-columns: 1fr; } }
.sm-side { border-radius: 18px; padding: clamp(16px, 2.6vw, 24px); display: flex; flex-direction: column; gap: .7rem; min-width: 0; }
.sm-side header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.sm-tag { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sm-time { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sm-side.firm { background: var(--raise); border: 1px solid var(--rule); color: var(--ink); }
.sm-side.firm .sm-tag { color: var(--muted); }
.sm-rows { margin: 0; display: grid; gap: 0; }
.sm-rows div { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--rule); }
.sm-rows div:last-child { border-bottom: 0; }
.sm-rows dt { color: var(--muted); }
.sm-rows dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.sm-note { margin: auto 0 0; font-size: .9rem; color: var(--muted); font-style: italic; max-width: none; }
.sm-side.walls { background: var(--panel); border: 1.5px solid var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent), var(--shadow); }
.sm-side.walls .sm-tag { color: var(--brand); }
.sm-big { margin: 0; color: var(--muted); max-width: none; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .5rem; }
.sm-big b { font-family: var(--fd); font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; }
.sm-band { font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15em .55em; border-radius: 999px; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); }
.walls.band-warning .sm-band { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn-text); }
.walls.band-critical .sm-band { background: color-mix(in srgb, var(--crit) 18%, transparent); color: var(--crit-text); }
.sm-bar { height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.sm-bar i { display: block; height: 100%; background: var(--brand); border-radius: inherit; transition: width .5s ease; }
.walls.band-warning .sm-bar i { background: var(--warn); }
.sm .walls:not(.band-safe):not(.band-warning) .sm-bar i, .sm > .walls:not([class*="band-"]) .sm-bar i { background: var(--crit); }
.walls.band-safe .sm-bar i { background: var(--brand); }
.sm-warn { margin: 0; font-weight: 650; color: var(--crit-text); max-width: none; }
.walls.band-warning .sm-warn { color: var(--warn-text); }
.sm-line { margin: 0; color: var(--ink); max-width: none; }
.sm-ping { margin: auto 0 0; background: var(--raise); border-radius: 14px 14px 14px 4px; padding: .7rem .9rem; font-size: .93rem; max-width: none; border-left: 3px solid var(--brand); }
.sm-ping span { display: block; font-size: .74rem; color: var(--muted); font-weight: 600; margin-bottom: .2rem; }
.sm-log { list-style: none; margin: .2rem 0 0; padding: 0; display: grid; gap: .35rem; }
.sm-log li { display: flex; gap: .7rem; font-size: .9rem; background: var(--raise); border-radius: 10px; padding: .45rem .7rem; }
.sm-log time { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; min-width: 3.2em; }
.vs-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; margin-top: clamp(18px, 3vw, 28px); }
.vs-line { margin: 0; font-family: var(--fd); font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 650; line-height: 1.35; max-width: 34ch; }
.promise { list-style: none; margin: clamp(18px, 3vw, 28px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 780px) { .promise { grid-template-columns: 1fr; } }
.promise li { font-size: .9rem; color: var(--muted); padding: .7rem .9rem; border: 1px dashed var(--rule); border-radius: 12px; }
.promise b { color: var(--ink); }

/* Interactive replay */
.rp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; margin-bottom: .8rem; }
.rp-range { flex: 1 1 200px; display: flex; }
.rp-range input { width: 100%; accent-color: var(--brand); }
.rp-time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); font-size: .9rem; min-width: 9em; text-align: right; }
.rp-caption { font-family: var(--fd); font-size: clamp(1.05rem, 2vw, 1.25rem); font-weight: 650; margin: 0 0 1rem; max-width: none; min-height: 1.5em; }
#rp-screens .sm-side { min-height: 330px; }

/* Scenes and table */
.scenes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.scene { background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: 1.1rem 1.2rem; display: grid; gap: .6rem; align-content: start; min-width: 0; }
.scene h3 { margin: 0; font-family: var(--fd); font-size: 1.08rem; }
.scene p { margin: 0; font-size: .93rem; line-height: 1.45; max-width: none; padding: .55rem .7rem; border-radius: 10px; }
.scene p b { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .15rem; }
.sc-firm { background: var(--raise); color: var(--muted); }
.sc-firm b { color: var(--muted); }
.sc-walls { background: color-mix(in srgb, var(--brand) 9%, var(--panel)); border-left: 3px solid var(--brand); }
.sc-walls b { color: var(--brand); }
.vs-tbl { width: 100%; border-collapse: collapse; font-size: .93rem; }
.vs-tbl th, .vs-tbl td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.vs-tbl thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.vs-tbl tbody th { font-weight: 600; width: 38%; }
.vs-tbl td:last-child { color: var(--ink); font-weight: 600; }
.vs-tbl td:nth-child(2) { color: var(--muted); }

/* Stories */
.stories { display: grid; gap: 10px; margin-top: 1.2rem; }
.story { margin: 0; background: var(--panel); border: 1px solid var(--rule); border-left: 4px solid var(--warn); border-radius: 0 12px 12px 0; padding: .8rem 1rem; font-size: 1rem; }
.story cite { display: block; margin-top: .35rem; font-size: .84rem; font-style: normal; color: var(--muted); }
.story-form { display: grid; gap: .8rem; align-self: start; }
.story-form .field { margin: 0; }
.story-form .pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 520px) { .story-form .pf-grid { grid-template-columns: 1fr; } }

/* Rule check: rules beyond the dashboard */
.av-gap { margin: .9rem 0; padding: .7rem .9rem; border-radius: 12px; background: color-mix(in srgb, var(--brand) 8%, var(--panel)); border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--rule)); font-size: .93rem; max-width: none; }
.av-gap a { color: var(--brand); font-weight: 600; }

/* Replay a bad day */
.rb { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .rb { grid-template-columns: 1fr; } }
.rb-form { background: var(--panel); border: 1px solid var(--rule); border-radius: 16px; padding: clamp(16px, 2.6vw, 22px); display: grid; gap: .7rem; min-width: 0; }
.rb-form .pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
@media (max-width: 560px) { .rb-form .pf-grid { grid-template-columns: 1fr; } }
.rb-form .field { margin: 0; min-width: 0; }
.rb-form .lbl { margin: .3rem 0 0; font-weight: 600; font-size: .92rem; }
.rb-rows { margin: 0; padding-left: 1.4rem; display: grid; gap: .45rem; }
.rb-rows li { display: flex; gap: .45rem; align-items: center; }
.rb-rows .input { min-width: 0; }
.rb-rows .rb-t { flex: 0 1 140px; }
.rb-rows .rb-v { flex: 1 1 160px; }
.rb-out { min-width: 0; }
.rb-sum { margin: 0 0 .8rem; padding: .7em .9em; border-radius: 12px; font-weight: 650; background: var(--panel); border-left: 4px solid var(--brand); max-width: none; }
.rb-sum.hot { border-left-color: var(--crit); }
.rb-tl { list-style: none; margin: 0 0 .6rem; padding: 0; display: grid; gap: 8px; }
.rb-tl li { background: var(--panel); border: 1px solid var(--rule); border-radius: 12px; padding: .7rem .9rem; display: grid; gap: .3rem; }
.rb-tl li.warn { border-left: 4px solid var(--warn); }
.rb-tl li.bad { border-left: 4px solid var(--crit); }
.rb-top { display: flex; justify-content: space-between; gap: 1rem; }
.rb-top .up { color: var(--brand); font-weight: 700; } .rb-top .down { color: var(--crit-text); font-weight: 700; }
.rb-room { margin: 0; color: var(--muted); font-size: .88rem; font-variant-numeric: tabular-nums; max-width: none; }
.rb-said { margin: 0; font-size: .92rem; max-width: none; }
.rb-said span { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-right: .5em; color: var(--brand); }
.rb-said.bad { color: var(--crit-text); } .rb-said.warn { color: var(--warn-text); }
.plans + .small.center, .plans + .examples, .plans ~ .small.center { margin-top: 1.1rem; }

/* Three firms, one screen */
.mf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .mf { grid-template-columns: 1fr; } }
.mf-tabs { display: grid; gap: 10px; align-content: start; }
.mf-win { background: var(--raise); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.mf-win:nth-child(2) { margin-left: 18px; } .mf-win:nth-child(3) { margin-left: 36px; }
@media (max-width: 520px) { .mf-win:nth-child(2), .mf-win:nth-child(3) { margin-left: 0; } }
.mf-bar { display: flex; align-items: center; gap: 5px; padding: .45rem .7rem; border-bottom: 1px solid var(--rule); font-size: .78rem; color: var(--muted); font-weight: 600; }
.mf-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.mf-bar span { margin-left: .4rem; }
.mf-win dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mf-win dl div { padding: .55rem .7rem; min-width: 0; }
.mf-win dt { font-size: .72rem; color: var(--muted); }
.mf-win dd { margin: .1rem 0 0; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.mf-note { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); font-style: italic; }
.mf-walls { background: var(--panel); border: 1.5px solid var(--brand); border-radius: 18px; padding: clamp(16px, 2.6vw, 22px); display: grid; gap: .8rem; align-content: start; box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent), var(--shadow); min-width: 0; }
.mf-walls header { display: flex; justify-content: space-between; align-items: center; }
.mf-walls .sm-tag { color: var(--brand); }
.mf-kpis { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mf-kpis div { background: var(--raise); border-radius: 10px; padding: .55rem .7rem; min-width: 0; }
.mf-kpis dt { font-size: .74rem; color: var(--muted); font-weight: 600; }
.mf-kpis dd { margin: .1rem 0 0; font-family: var(--fd); font-weight: 750; font-size: clamp(1rem, 2.2vw, 1.3rem); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .mf-kpis { grid-template-columns: 1fr; } }
.mf-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mf-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .6rem; align-items: center; padding: .55rem .7rem; border-radius: 10px; background: var(--raise); font-size: .9rem; }
.mf-rows li span:last-child { grid-column: 1 / -1; color: var(--muted); font-size: .84rem; font-variant-numeric: tabular-nums; }
.chip-b { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: .15em .55em; border-radius: 999px; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); }
.chip-b.warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn-text); }
.trial-strip { margin: .6rem 0 0; color: #A9BDBB; } .trial-strip a { color: #7EF0DE; font-weight: 600; }

/* Spanish and Portuguese labels run longer: keep the top bar on one line. */
.top nav.primary a, .top-actions .btn { white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1400px) {
  html:is([lang="es"], [lang="pt"]) .top nav.primary { margin-left: .4rem; gap: 0; }
  html:is([lang="es"], [lang="pt"]) .top nav.primary a { padding: .45em .5em; font-size: .9rem; }
  html:is([lang="es"], [lang="pt"]) .top-actions .hide-sm { display: none; }
}
@media (min-width: 1021px) and (max-width: 1180px) {
  html:is([lang="es"], [lang="pt"]) .top nav.primary a { padding: .4em .38em; font-size: .84rem; }
}
/* Tablet widths (iPad landscape): tighter menu and no "Live demo" button, so nothing is cut off. */
@media (min-width: 1021px) and (max-width: 1180px) {
  .top nav.primary { margin-left: .4rem; gap: 0; }
  .top nav.primary a { padding: .45em .5em; font-size: .9rem; }
  .top-actions .hide-sm { display: none; }
}
/* Never let the top bar push the page wider than the screen. */
header.top { max-width: 100%; }
header.top .mark { flex: none; }
