:root {
  --navy: #0b1633;
  --navy-2: #14234a;
  --navy-ink: #c9d3ec;   /* secondary text on navy */
  --ground: #ffffff;
  --tint: #f2f4f8;
  --ink: #0b1633;
  --muted: #4a5675;
  --line: #dde2ec;
  --amber: #ffc21a;      /* hi-vis: primary action and urgency */
  --amber-ink: #3b2a00;
  --alarm: #c62a1d;
  --bubble-in: #eceff5;
  --bubble-out: #1f5eff;
  --radius: 22px;
  --shadow: 0 24px 60px -20px rgb(5 12 34 / .45), 0 6px 18px -8px rgb(5 12 34 / .25);
  --font: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; max-width: 18ch; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0; max-width: 62ch; text-wrap: pretty; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 10; background: var(--amber); color: var(--amber-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgb(11 22 51 / .92); backdrop-filter: saturate(1.4) blur(12px); color: #fff; }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.brand rect { fill: var(--amber); }
.brand path { stroke: var(--navy); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.brand b { color: var(--amber); font-weight: 700; }
.nav nav { display: flex; gap: 28px; margin-left: auto; }
.nav nav a { color: var(--navy-ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav nav a:hover { color: #fff; }

/* Buttons and the coming-soon badge */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; transition: background .2s, color .2s, transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgb(0 0 0 / .55); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-nav { min-height: 44px; padding: 0 22px; background: #fff; color: var(--navy); }
.btn-nav:hover { background: var(--amber); color: var(--amber-ink); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--amber); color: var(--amber-ink); }
.soon { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 16px; border-radius: 999px; background: rgb(255 194 26 / .12); color: var(--amber); box-shadow: inset 0 0 0 1.5px rgb(255 194 26 / .45); font-weight: 700; font-size: .92rem; cursor: default; }
.soon i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { background: radial-gradient(1200px 600px at 85% 10%, var(--navy-2), transparent 60%), var(--navy); color: #fff; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; padding: 24px 0 72px; }
.hero-copy { padding-top: 72px; }
.hero-in > * { min-width: 0; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: .98; }
h1 span { display: block; color: var(--amber); }
.lede { margin-top: 28px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--navy-ink); max-width: 40ch; }
.hero .cta { margin-top: 36px; }
.note { text-wrap: balance; margin-top: 16px; font-size: .92rem; color: var(--navy-ink); }

/* Example phone + job card */
.demo { position: relative; margin: 0; justify-self: end; width: min(100%, 500px); }
.tag { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .22); color: #fff; font-size: .82rem; font-weight: 600; }
.phone { width: 368px; max-width: 88%; background: #fff; color: var(--ink); border-radius: 36px; padding: 10px 10px 40px; box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / .2); }
.phone-top { display: flex; gap: 12px; align-items: center; padding: 14px 14px 12px; border-bottom: 1px solid var(--line); }
.phone-top b { display: block; font-size: .95rem; }
.phone-top small { color: var(--muted); font-size: .78rem; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: var(--amber); font-weight: 800; font-size: .8rem; }
.thread { list-style: none; margin: 0; padding: 14px 10px 16px; display: flex; flex-direction: column; gap: 8px; font-size: .875rem; line-height: 1.45; }
.thread li { max-width: 86%; padding: 10px 14px; border-radius: 18px; }
.thread .out { align-self: flex-end; background: var(--bubble-out); color: #fff; border-bottom-right-radius: 6px; }
.thread .in { align-self: flex-start; background: var(--bubble-in); border-bottom-left-radius: 6px; }
.thread .safety { background: #fff4d1; color: var(--amber-ink); box-shadow: inset 0 0 0 1px #f0d27a; }
.thread .sys { align-self: center; max-width: none; display: inline-flex; gap: 6px; align-items: center; padding: 2px 0 6px; color: var(--alarm); font-weight: 600; font-size: .84rem; }
.thread .sys svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.job { position: relative; width: 290px; max-width: 86%; margin: -40px 0 0 auto; background: #fff; color: var(--ink); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.job-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.job-head small { color: var(--muted); font-size: .75rem; }
.flag { background: var(--alarm); color: #fff; font-weight: 700; font-size: .75rem; padding: 6px 12px; border-radius: 999px; }
.job dl { margin: 0; display: grid; gap: 6px; font-size: .86rem; }
.job dl div { display: grid; grid-template-columns: 76px 1fr; gap: 8px; }
.job dt { color: var(--muted); }
.job dd { margin: 0; font-weight: 600; }
.demo figcaption { margin-top: 18px; font-size: .84rem; color: var(--navy-ink); }

/* Sections */
.band { padding: 112px 0; }
.band-tint { background: var(--tint); }
.band h2 + p, .sub { margin-top: 20px; color: var(--muted); font-size: 1.15rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split > *, .demo-grid > * { min-width: 0; }
.split p { margin-top: 20px; color: var(--muted); font-size: 1.15rem; }

.steps { list-style: none; margin: 64px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.steps li { border-top: 2px solid var(--ink); padding-top: 24px; }
.steps p { margin-top: 12px; color: var(--muted); }

.flags, .rules { list-style: none; margin: 0; padding: 0; }
.flags li { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; }
.flags li:first-child { border-top: 1px solid var(--line); }
.flags li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--alarm); box-shadow: 0 0 0 5px rgb(198 42 29 / .14); }
.rules li { padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 1.08rem; }
.rules li:first-child { border-top: 1px solid var(--line); }
.rules b { color: var(--ink); }

.trades { width: 100%; margin-top: 48px; border-collapse: collapse; font-size: 1.05rem; }
.trades th, .trades td { text-align: left; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.trades thead th { font-size: .85rem; font-weight: 600; color: var(--muted); padding-top: 0; }
.trades tbody th { width: 30%; font-weight: 700; }
.trades td { color: var(--muted); }
.trades tbody tr:first-child th { color: var(--ink); }
.trades tbody tr:first-child th::after { content: "Default"; margin-left: 10px; vertical-align: 2px; font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); }

.faq-in { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--muted); }
.faq details p { padding: 0 0 20px; color: var(--muted); }
.close { background: var(--navy); color: #fff; padding: 96px 0; }
.close-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.close h2 { max-width: 14ch; }

.foot { background: var(--navy); color: var(--navy-ink); font-size: .9rem; border-top: 1px solid rgb(255 255 255 / .1); }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px 0; }

/* The one authored moment: the example exchange plays in once. Content is visible without it. */
@media (prefers-reduced-motion: no-preference) {
  .hero .thread li, .hero .job { animation: rise .7s cubic-bezier(.16,1,.3,1) both; }
  .hero .thread li:nth-child(1) { animation-delay: .2s; }
  .hero .thread li:nth-child(2) { animation-delay: .6s; }
  .hero .thread li:nth-child(3) { animation-delay: 1.3s; }
  .hero .thread li:nth-child(4) { animation-delay: 2s; }
  .hero .job { animation-name: card; animation-duration: .9s; animation-delay: 2.7s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px) scale(.98); filter: blur(3px); } }
  @keyframes card { from { opacity: 0; transform: translate(16px, 24px) rotate(3deg); filter: blur(4px); } }
}

/* Mobile menu (shown under 720px) */
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer; }
.menu-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.menu-btn:hover { background: rgb(255 255 255 / .1); }

/* Buttons on light ground */
.btn-dark { background: var(--navy); color: #fff; border: 0; cursor: pointer; font-family: var(--font); }
.btn-dark:hover { background: var(--navy-2); }
.btn-quiet { background: transparent; color: var(--ink); border: 0; cursor: pointer; font-family: var(--font); box-shadow: inset 0 0 0 1.5px #b9c2d6; }
.btn-quiet:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-dark:focus-visible, .btn-quiet:focus-visible, .picker button:focus-visible, .calc input:focus-visible { outline-color: var(--bubble-out); }

/* Trade demo */
.demo-ui { margin-top: 40px; }
.picker { display: flex; flex-wrap: wrap; gap: 8px; }
.picker button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font: 600 .98rem var(--font); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: background .15s, color .15s, box-shadow .15s; }
.picker button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.picker button[aria-checked="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 48px; margin-top: 32px; align-items: start; }
.demo-phone { background: #fff; border-radius: 32px; padding: 10px; box-shadow: var(--shadow); }
.demo-phone .avatar svg { width: 18px; height: 18px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linejoin: round; }
.demo-phone .thread { height: 460px; overflow-y: auto; scroll-behavior: smooth; }
.demo-phone .thread .sys { color: var(--alarm); }
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; counter-reset: f; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; padding: 10px 0; color: var(--muted); transition: color .3s; }
.flow li::before { content: counter(f); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: .9rem; color: var(--muted); transition: background .3s, color .3s, box-shadow .3s; }
.flow li b { color: var(--ink); font-size: 1.05rem; }
.flow li span { font-size: .95rem; }
.flow li.done::before { background: var(--navy); color: #fff; box-shadow: none; }
.flow li.now::before { background: var(--amber); color: var(--amber-ink); box-shadow: 0 0 0 5px rgb(255 194 26 / .25); }
.demo-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.demo-status { margin-top: 12px; font-size: .92rem; color: var(--muted); min-height: 1.5em; }
.demo-lead { position: relative; margin: 12px 0 0; width: auto; max-width: 420px; }
.flag.urgent { background: var(--amber); color: var(--amber-ink); }
.flag.routine { background: var(--navy); color: #fff; }
.notify { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; max-width: 420px; padding: 14px 16px; border-radius: 18px; background: rgb(11 22 51 / .92); color: #fff; box-shadow: var(--shadow); font-size: .92rem; }
.notify b { display: block; font-size: .8rem; color: var(--navy-ink); font-weight: 600; margin-bottom: 2px; }
.notify-icon svg { width: 28px; height: 28px; }
.notify-icon rect { fill: var(--amber); }
.notify-icon path { stroke: var(--navy); stroke-width: 3.5; stroke-linecap: round; fill: none; }
.demo-note { margin-top: 28px; max-width: none; font-size: .92rem; color: var(--muted); }
.tag-dark { margin: 0 8px 0 0; background: var(--navy); color: #fff; box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .demo-phone .thread li, .demo-lead:not([hidden]), .notify:not([hidden]) { animation: rise .5s cubic-bezier(.16,1,.3,1) both; }
}

/* Calculator */
.calc-split { align-items: center; }
.formula-note { font-size: 1rem; }
.calc { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.field + .field { margin-top: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.pair { display: grid; grid-template-columns: 1fr 120px; gap: 16px; align-items: center; }
.pair input[type=range] { width: 100%; accent-color: var(--navy); height: 28px; cursor: pointer; }
.pair input[type=number] { width: 100%; min-height: 48px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); font: 600 1.05rem var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }
.pair input[type=number]:focus { border-color: var(--bubble-out); outline: none; box-shadow: 0 0 0 3px rgb(31 94 255 / .2); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.calc-out div { background: var(--navy); color: #fff; border-radius: 16px; padding: 16px 18px; }
.calc-out span { display: block; font-size: .85rem; color: var(--navy-ink); }
.calc-out output { display: block; margin-top: 2px; font-weight: 800; font-stretch: 112%; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--amber); }
.calc-formula { margin-top: 14px; font-size: .9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.calc-disclaimer { margin-top: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); }

@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; padding: 56px 0 72px; gap: 48px; }
  .demo { justify-self: start; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .faq-in { grid-template-columns: 1fr; gap: 32px; }
  .demo-grid { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 32px; }
  .hero-copy { padding-top: 0; }
}
@media (max-width: 720px) {
  .nav-in { gap: 12px; }
  .nav nav { display: none; }
  .nav .btn-nav { margin-left: auto; }
  .menu-btn { display: grid; place-items: center; }
  .nav nav.open { display: grid; position: absolute; top: 68px; left: 0; right: 0; gap: 0; padding: 8px 16px 16px; background: var(--navy); box-shadow: 0 16px 32px -16px rgb(0 0 0 / .6); }
  .nav nav.open a { padding: 14px 4px; font-size: 1.05rem; color: #fff; border-bottom: 1px solid rgb(255 255 255 / .1); }
  .demo-grid { grid-template-columns: 1fr; gap: 28px; }
  .demo-phone .thread { height: 400px; }
  .pair { grid-template-columns: 1fr 88px; gap: 12px; }
  .calc { padding: 20px; }
  .calc-out { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .band { padding: 72px 0; }
  .close { padding: 72px 0; }
  .phone { max-width: 92%; }
  .job { width: 86%; }
  .trades thead { display: none; }
  .trades tr { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .trades th, .trades td { display: block; border: 0; padding: 0; width: auto; }
  .trades td { margin-top: 4px; }
  .cta .btn { flex: 1 1 auto; }
}
