/* Realty OS marketing site.
   Night navy and warm white, one blue accent, violet for AI. Sora for headings and labels, DM Sans for text.
   Mobile-first, no framework, no inline styles (strict CSP). Asset paths are relative. */

@font-face { font-family: "Sora"; src: url("../fonts/sora-var.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-var.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }

:root {
  --bg: #f6f5f1;
  --bg-2: #eeece6;
  --surface: #ffffff;
  --ink: #0a1628;
  --ink-2: #3b4656;
  --ink-3: #5f6b7c;
  --line: rgba(10, 22, 40, 0.09);
  --line-2: rgba(10, 22, 40, 0.16);
  --blue: #2f5bff;
  --blue-text: #2147d9;
  --blue-soft: #eaefff;
  --violet: #7c5cff;
  --violet-text: #5b3fd6;
  --violet-soft: #f1edff;
  --green-text: #0b7a52;
  --green-soft: #e5f6ee;
  --red-text: #b42318;
  --night: #07101e;
  --night-2: #0d1a2e;
  --night-line: rgba(255, 255, 255, 0.1);
  --on-night: #eef2f8;
  --on-night-2: rgba(238, 242, 248, 0.7);
  --radius: 16px;
  --radius-lg: 24px;
  --gutter: 16px;
  --max: 74rem;
  --header-h: 64px;
  --shadow-frame: 0 1px 2px rgba(10, 22, 40, 0.06), 0 24px 60px -24px rgba(10, 22, 40, 0.28);
  --shadow-float: 0 1px 2px rgba(2, 8, 23, 0.08), 0 18px 44px -14px rgba(2, 8, 23, 0.38);
  --display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bi { width: 18px; height: 18px; flex: none; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; }
.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
.eyebrow { font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 14px; }
.h2 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.1rem); letter-spacing: -0.032em; line-height: 1.08; text-wrap: balance; }
.h3 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.12; text-wrap: balance; }
.lede { font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); line-height: 1.6; color: var(--ink-2); margin-top: 16px; text-wrap: pretty; }
.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (min-width: 1024px) { .section-head { margin-bottom: 64px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px; border-radius: 12px;
  font-family: var(--display); font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn .i { width: 17px; height: 17px; transition: transform .18s ease; }
.btn:hover .i { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 10px 24px -10px rgba(47, 91, 255, 0.7); }
.btn-primary:hover { background: #2049e8; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #18263d; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-glass { background: rgba(255,255,255,.06); color: var(--on-night); border-color: rgba(255,255,255,.18); }
.btn-glass:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cta-center { justify-content: center; }
@media (max-width: 479px) { .cta-row .btn:not(.btn-sm) { width: 100%; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 16, 30, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  color: var(--on-night);
  transition: border-color .2s ease, background-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--night-line); background: rgba(7, 16, 30, 0.92); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark svg { width: 30px; height: 30px; }
.wordmark-text { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.03em; }
.wordmark-text i { font-style: normal; color: var(--blue); }
.site-header .wordmark svg rect:first-child { fill: #1a2a45; }
.site-header .wordmark-text i { color: #7d9bff; }
.nav { display: none; }
@media (min-width: 960px) {
  .nav { display: flex; gap: 4px; }
  .nav a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; color: var(--on-night-2); transition: color .15s ease, background-color .15s ease; }
  .nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--night); color: var(--on-night); padding: 64px 0 56px; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40rem 26rem at 50% 8%, rgba(47, 91, 255, 0.34), transparent 70%),
    radial-gradient(30rem 22rem at 88% 40%, rgba(124, 92, 255, 0.22), transparent 70%),
    radial-gradient(28rem 20rem at 8% 60%, rgba(47, 91, 255, 0.14), transparent 70%);
}
.hero-inner { text-align: center; max-width: 60rem; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 12px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  font-size: 14px; line-height: 1.35; color: var(--on-night-2); margin-bottom: 26px;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #5b7bff; box-shadow: 0 0 0 4px rgba(91,123,255,.22); }
.hero-title { font-size: clamp(2.45rem, 1.25rem + 5vw, 4.75rem); letter-spacing: -0.04em; line-height: 1.02; font-weight: 600; text-wrap: balance; }
.hero-lede { font-size: clamp(1.08rem, 1rem + 0.45vw, 1.3rem); line-height: 1.6; color: var(--on-night-2); max-width: 42rem; margin: 24px auto 0; text-wrap: pretty; }
@media (min-width: 1024px) { .hero { padding: 96px 0 72px; } }

.hero-stage { margin-top: 56px; }
.hero-product { position: relative; max-width: 66rem; margin: 0 auto; }
.hero-caption { text-align: center; font-size: 13px; color: rgba(238,242,248,.5); margin-top: 20px; }
@media (min-width: 1024px) { .hero-stage { margin-top: 72px; } }

/* ---------- Frames (product screens) ---------- */
.frame { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-frame); }
.frame-bar { display: flex; gap: 6px; align-items: center; height: 28px; padding: 0 12px; background: #f3f4f6; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d4d8de; }
.frame-dark { border-color: rgba(255,255,255,.14); box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 40px 120px -30px rgba(47, 91, 255, 0.45), 0 30px 60px -30px rgba(0,0,0,.8); }
.frame-dark .frame-bar { background: #111d31; border-bottom-color: rgba(255,255,255,.08); }
.frame-dark .frame-bar i { background: rgba(255,255,255,.18); }
@media (min-width: 768px) { .frame { border-radius: 16px; } .frame-bar { height: 32px; } }

/* Floating cards (hero) and callouts (stages) */
.float, .callout {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px 12px 12px; box-shadow: var(--shadow-float);
  line-height: 1.3; text-align: left;
}
.float b, .callout b { display: block; font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.float small, .callout small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.f-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.f-ic .bi { width: 20px; height: 20px; }
.f-ic .i { width: 19px; height: 19px; }
.f-wa { background: #e6f7ec; }
.f-ai { background: var(--violet-soft); color: var(--violet-text); }
.f-score {
  position: relative; isolation: isolate;
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 15px; color: #c81e1e;
  background: conic-gradient(#dc2626 0 78%, #fde2e2 78% 100%);
}
.f-score::before { content: ""; position: absolute; inset: 4px; z-index: -1; border-radius: 50%; background: #fff; }

/* Hero cards: a tidy grid under the screen on small screens, floating around it on large ones */
.hero-product .float { margin-top: 12px; }
.hero-product .f3, .hero-product .f4 { display: none; }
@media (min-width: 640px) {
  .hero-product { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .hero-product .frame { grid-column: 1 / -1; }
  .hero-product .f3, .hero-product .f4 { display: flex; }
}
@media (min-width: 1180px) {
  .hero-product { display: block; }
  .hero-product .float { position: absolute; margin: 0; max-width: 300px; animation: bob 7s ease-in-out infinite; }
  .hero-product .f1 { left: -64px; top: 20%; }
  .hero-product .f2 { right: -72px; top: 34%; animation-delay: -2s; }
  .hero-product .f3 { left: -40px; bottom: 14%; animation-delay: -4s; }
  .hero-product .f4 { right: -48px; bottom: 6%; animation-delay: -5.5s; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .hero-product .float { animation: none; } }

/* ---------- Facts strip ---------- */
.facts-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: 1fr; }
.facts li { display: flex; gap: 14px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-3); line-height: 1.45; }
.facts li:last-child { border-bottom: 0; }
.facts .i { color: var(--blue); margin-top: 2px; width: 20px; height: 20px; }
.facts b { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; margin-bottom: 2px; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; } .facts li:nth-last-child(2) { border-bottom: 0; } }
@media (min-width: 1024px) {
  .facts { grid-template-columns: repeat(4, 1fr); column-gap: 0; }
  .facts li { border-bottom: 0; padding: 28px 24px; border-left: 1px solid var(--line); }
  .facts li:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
@media (min-width: 1024px) { .section { padding: 120px 0; } }
.section.tint { background: var(--bg-2); }

/* ---------- Compare (problem) ---------- */
.compare { max-width: 64rem; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 2px rgba(10,22,40,.04); }
.compare-head { display: none; }
.compare-list li { display: grid; gap: 10px; padding: 22px 20px; border-top: 1px solid var(--line); }
.compare-list li:first-child { border-top: 0; }
.compare-list p { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.compare-list .i { width: 22px; height: 22px; margin-top: 1px; padding: 4px; border-radius: 50%; stroke-width: 2.6; }
.compare .was { color: var(--ink-3); }
.compare .was .i { background: #fdecec; color: var(--red-text); }
.compare .now { color: var(--ink); font-weight: 500; }
.compare .now .i { background: var(--blue-soft); color: var(--blue-text); }
@media (min-width: 768px) {
  .compare-head { display: grid; grid-template-columns: 1fr 1fr; background: #fafaf8; border-bottom: 1px solid var(--line); }
  .compare-head span { padding: 14px 28px; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
  .compare-head span + span { color: var(--blue-text); border-left: 1px solid var(--line); }
  .compare-list li { grid-template-columns: 1fr 1fr; gap: 0; padding: 0; }
  .compare-list p { padding: 22px 28px; }
  .compare-list .now { border-left: 1px solid var(--line); background: linear-gradient(90deg, rgba(234,239,255,.45), transparent 70%); }
}

/* ---------- Tags ---------- */
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-family: var(--display); font-size: 11px; font-weight: 600; letter-spacing: 0.03em; white-space: nowrap; flex: none; }
.tag-in { background: var(--green-soft); color: var(--green-text); }
.tag-built { background: var(--violet-soft); color: var(--violet-text); }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 24px; margin-top: 26px; font-size: 14.5px; color: var(--ink-3); }
.legend li { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Pipeline ---------- */
.pipeline { padding-bottom: 40px; }
.stage-nav {
  position: sticky; top: var(--header-h); z-index: 40;
  background: rgba(246, 245, 241, 0.88);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stage-nav ol { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.stage-nav ol::-webkit-scrollbar { display: none; }
.stage-nav a {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  min-height: 40px; padding: 0 14px; border-radius: 999px; text-decoration: none;
  font-family: var(--display); font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: background-color .15s ease, color .15s ease;
}
.stage-nav a span { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.stage-nav a:hover { background: rgba(10,22,40,.05); }
.stage-nav a[aria-current="true"] { background: var(--ink); color: #fff; }
.stage-nav a[aria-current="true"] span { color: rgba(255,255,255,.6); }
@media (min-width: 1024px) { .stage-nav ol { justify-content: center; gap: 8px; } .stage-nav a { padding: 0 18px; } }

.stage { display: grid; gap: 36px; padding: 72px 0; border-bottom: 1px solid var(--line); }
.stage:last-child { border-bottom: 0; }
.stage-label { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-text); margin-bottom: 20px; }
.stage-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); }
.stage-ic .i { width: 20px; height: 20px; }
.stage-n { color: var(--ink-3); font-weight: 500; letter-spacing: 0.02em; }
.stage-copy > p:not(.stage-label) { font-size: 17.5px; color: var(--ink-2); margin-top: 16px; text-wrap: pretty; }
.feats { margin-top: 28px; border-top: 1px solid var(--line); }
.feats li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.45; }
.feats li > span:first-child { flex: 1 1 15rem; }
.works { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.works li { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.works .i, .works .bi { width: 17px; height: 17px; }

.stage-visual {
  position: relative; padding: 14px; border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(124, 92, 255, 0.16), transparent 55%),
    radial-gradient(100% 80% at 0% 100%, rgba(47, 91, 255, 0.16), transparent 55%),
    #e9ebf3;
  border: 1px solid var(--line);
}
.stage-visual .frame { box-shadow: 0 1px 2px rgba(10,22,40,.06), 0 30px 60px -30px rgba(10, 22, 40, 0.35); }
.stage-visual .callout { position: relative; margin: -22px 10px 0; z-index: 2; }
.fig-note { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; text-align: right; }
@media (min-width: 768px) {
  .stage-visual { padding: 28px 28px 36px; }
  .stage-visual .callout { position: absolute; left: -18px; bottom: 52px; margin: 0; max-width: 360px; }
  .stage.flip .stage-visual .callout { left: auto; right: -18px; }
  .fig-note { position: absolute; right: 28px; bottom: 9px; margin: 0; font-size: 12px; }
}
@media (min-width: 1024px) {
  .stage { display: block; padding: 104px 0; }
  .stage-copy { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); grid-template-rows: auto auto auto auto 1fr; column-gap: 80px; margin-bottom: 56px; }
  .stage-copy > * { grid-column: 1; }
  .stage-copy > .feats { grid-column: 2; grid-row: 1 / 6; margin-top: 0; align-self: start; }
  .stage-visual { padding: 48px 56px 52px; }
  .stage-visual .callout { left: -28px; bottom: 80px; }
  .stage.flip .stage-visual .callout { right: -28px; }
  .fig-note { right: 56px; bottom: 16px; }
}

/* ---------- Dark sections ---------- */
.dark { position: relative; background: var(--night); color: var(--on-night); overflow: clip; isolation: isolate; }
.dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(36rem 26rem at 85% 20%, rgba(124, 92, 255, 0.25), transparent 70%), radial-gradient(30rem 24rem at 10% 90%, rgba(47, 91, 255, 0.2), transparent 70%);
}
.dark .eyebrow { color: #9db1ff; }
.dark .lede { color: var(--on-night-2); }


/* ---------- Platform overview ---------- */
.overview { padding-bottom: 40px; }
.ov-grid { display: grid; gap: 12px; }
.ov-grid a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; row-gap: 4px; height: 100%; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.ov-grid a:hover { border-color: var(--line-2); box-shadow: 0 12px 30px -18px rgba(10,22,40,.35); transform: translateY(-2px); }
.ov-grid .i { grid-row: 1 / 4; width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-text); }
.ov-grid b { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: -0.015em; }
.ov-grid span:not(.tag) { font-size: 14.5px; color: var(--ink-3); line-height: 1.45; }
.ov-grid .tag { justify-self: start; margin-top: 8px; }
@media (min-width: 640px) { .ov-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ov-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } .ov-grid a { grid-template-columns: 1fr; padding: 24px; } .ov-grid .i { grid-row: auto; margin-bottom: 12px; } }

/* ---------- Platform showcases (scroll-linked feature lists) ---------- */
.platform { border-top: 1px solid var(--line); }
.platform.dark { border-top: 0; }
.platform .eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.platform .eyebrow .i { width: 28px; height: 28px; padding: 6px; border-radius: 8px; background: var(--blue-soft); color: var(--blue-text); }
.dark .eyebrow .i { background: rgba(91,123,255,.18); color: #a9bbff; }
.head-tag { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 14.5px; color: var(--ink-3); }
/* Sticky feature bar: follows the scroll, highlights the feature being read, tap to jump */
.subnav {
  position: sticky; top: calc(var(--header-h) + 10px); z-index: 30;
  margin: 0 0 40px; display: flex;
}
.subnav ol {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; max-width: 100%;
  padding: 5px; border-radius: 14px;
  background: rgba(238, 236, 230, 0.86); border: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  box-shadow: 0 8px 24px -16px rgba(10,22,40,.35);
}
.subnav ol::-webkit-scrollbar { display: none; }
.subnav a {
  display: inline-flex; align-items: center; flex: none; min-height: 42px; padding: 0 15px; border-radius: 10px;
  font: 600 14.5px/1 var(--display); letter-spacing: -0.01em; color: var(--ink-2); white-space: nowrap; text-decoration: none;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.subnav a:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.subnav a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(10,22,40,.08), 0 4px 12px -6px rgba(10,22,40,.2); }
.dark .subnav ol { background: rgba(13, 26, 46, 0.86); border-color: var(--night-line); }
.dark .subnav a { color: var(--on-night-2); }
.dark .subnav a:hover { color: #fff; background: rgba(255,255,255,.06); }
.dark .subnav a[aria-current="true"] { background: #fff; color: var(--ink); }

.panel { position: relative; scroll-margin-top: 24px; }
.panel + .panel { margin-top: 72px; padding-top: 72px; border-top: 1px solid var(--line); }
.dark .panel + .panel { border-top-color: var(--night-line); }
@media (min-width: 1024px) { .panel + .panel { margin-top: 96px; padding-top: 96px; } }
.panel-kicker { display: flex; align-items: center; gap: 10px; font: 600 13px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-text); }
.panel-kicker span { color: var(--ink-3); font-weight: 500; letter-spacing: .02em; }
.dark .panel-kicker { color: #9db1ff; }
.dark .panel-kicker span { color: rgba(238,242,248,.5); }
.panel-copy { display: grid; gap: 14px; margin-bottom: 28px; }
.panel-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: clamp(1.4rem, 1.15rem + 0.9vw, 1.85rem); letter-spacing: -0.025em; }
.panel-copy > p { font-size: 17px; color: var(--ink-2); max-width: 40rem; }
.dark .panel-copy > p { color: var(--on-night-2); }
.panel-points { display: grid; gap: 10px; }
.panel-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.dark .panel-points li { color: var(--on-night); }
.panel-points .i { width: 20px; height: 20px; padding: 3px; margin-top: 1px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-text); stroke-width: 2.8; }
.dark .panel-points .i { background: rgba(91,123,255,.2); color: #a9bbff; }
.panel .fig-note { position: static; text-align: right; margin-top: 12px; }
.dark .fig-note { color: rgba(238,242,248,.5); }
@media (min-width: 1024px) {
  .panel-copy { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; align-items: start; }
  .panel-kicker, .panel-title, .panel-copy > p { grid-column: 1; }
  .panel-points { grid-column: 2; grid-row: 1 / 4; padding-top: 26px; }
}
@media (max-width: 767px) {
  .panel .frame-bar { display: none; }
  .panel .frame img { aspect-ratio: 1060 / 800; object-fit: cover; object-position: 100% 0; }
}

/* ---------- Integrations ---------- */
.integrations { background: var(--surface); border-top: 1px solid var(--line); }
.int-groups { display: grid; gap: 32px; max-width: 64rem; margin: 0 auto; }
.int-group h3 { margin-bottom: 14px; }
.logo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.logo-list li { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-size: 15px; font-weight: 500; color: var(--ink-2); }
.logo-list .bi, .logo-list .i { width: 19px; height: 19px; }
.logo-list .i { color: var(--ink-3); }
@media (min-width: 1024px) { .int-groups { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- Trust ---------- */
.trust { display: grid; gap: 56px; }
.origin blockquote { margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 1.15rem + 1.3vw, 2.15rem); line-height: 1.3; letter-spacing: -0.025em; text-wrap: pretty; }
.origin blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .7; color: var(--blue); margin-bottom: 12px; }
.origin-by { display: flex; gap: 12px; align-items: center; margin-top: 28px; font-size: 14.5px; color: var(--ink-3); line-height: 1.35; }
.origin-by b { display: block; color: var(--ink); font-family: var(--display); font-weight: 600; }
.origin-mark { width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.controls { display: grid; gap: 12px; }
.controls li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.c-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-text); margin-bottom: 16px; }
.controls h3 { font-size: 17px; letter-spacing: -0.015em; }
.controls p { font-size: 15px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
@media (min-width: 640px) { .controls { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .trust { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 80px; align-items: start; } .origin { position: sticky; top: calc(var(--header-h) + 40px); } .controls { gap: 16px; } }

/* ---------- Timeline ---------- */
.timeline { display: grid; gap: 0; max-width: 68rem; margin: 0 auto; }
.timeline li { position: relative; padding: 0 0 36px 64px; }
.timeline li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line-2); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.t-n { position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--blue-text); box-shadow: 0 4px 12px -6px rgba(10,22,40,.25); }
.timeline h3 { font-size: 19px; letter-spacing: -0.02em; padding-top: 9px; }
.timeline p { font-size: 15.5px; color: var(--ink-2); margin-top: 8px; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .timeline li { padding: 68px 0 0; }
  .timeline li::before { left: 52px; right: -32px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .timeline h3 { padding-top: 0; }
}
.price-note { max-width: 44rem; margin: 56px auto 0; text-align: center; font-size: 15.5px; color: var(--ink-2); padding: 18px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.price-note b { font-family: var(--display); font-weight: 600; color: var(--ink); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; align-items: start; } .faq-side { position: sticky; top: calc(var(--header-h) + 40px); } }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; align-items: center; gap: 16px; padding: 22px 0; cursor: pointer; list-style: none; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq .q { flex: 1; font-family: var(--display); font-weight: 600; font-size: 17.5px; letter-spacing: -0.015em; line-height: 1.35; }
.faq .plus { position: relative; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: background-color .2s ease; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.8px; background: var(--ink); transform: translate(-50%, -50%); border-radius: 2px; }
.faq .plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .2s ease; }
.faq details[open] .plus { background: var(--ink); border-color: var(--ink); }
.faq details[open] .plus::before { background: #fff; }
.faq details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); background: #fff; }
.faq .a { padding: 0 44px 24px 0; color: var(--ink-2); font-size: 16px; }

/* ---------- Closing ---------- */
.closing { padding: 0 0 80px; }
.closing-card { position: relative; isolation: isolate; overflow: hidden; background: var(--night); color: var(--on-night); border-radius: 28px; padding: 64px 22px; text-align: center; }
.closing-card .hero-glow { background: radial-gradient(34rem 20rem at 50% 0%, rgba(47, 91, 255, 0.4), transparent 70%), radial-gradient(24rem 18rem at 90% 100%, rgba(124, 92, 255, 0.28), transparent 70%); }
.closing-card .lede { color: var(--on-night-2); max-width: 36rem; margin-left: auto; margin-right: auto; }
.closing-tel { margin-top: 22px; font-size: 14.5px; color: var(--on-night-2); }
.closing-tel a { color: #fff; }
@media (min-width: 1024px) { .closing { padding-bottom: 120px; } .closing-card { padding: 96px 48px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--bg); }
.footer-grid { display: grid; gap: 32px; }
.site-footer .wordmark svg { width: 28px; height: 28px; }
.site-footer .about { margin-top: 14px; color: var(--ink-3); font-size: 15px; max-width: 26rem; }
.site-footer h2 { font-family: var(--display); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; font-weight: 600; }
.site-footer ul { display: grid; gap: 8px; font-size: 15px; }
.site-footer ul a { text-decoration: none; color: var(--ink-2); }
.site-footer ul a:hover { color: var(--blue-text); text-decoration: underline; }
.legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); line-height: 1.7; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; }

/* ---------- Reveal ---------- */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }

/* Phones: crop the app's sidebar from product screens so the content is larger */
@media (max-width: 767px) {
  .stage-visual { padding: 8px 8px 12px; margin: 0 -6px; border-radius: 18px; }
  .stage-visual .frame-bar, .hero-product .frame-bar { display: none; }
  .stage-visual .frame img, .hero-product .frame img { aspect-ratio: 1060 / 800; object-fit: cover; object-position: 100% 0; }
  .fig-note { margin-right: 6px; }
}

/* ---------- Header and hero CTAs ---------- */
.header-ctas { display: flex; align-items: center; gap: 8px; }
.try-link { display: none; }
@media (min-width: 560px) { .try-link { display: inline-flex; } }
.hero-note { margin-top: 18px; font-size: 14px; color: rgba(238,242,248,.55); }

/* ---------- Book a demo dialog ---------- */
.demo-dialog {
  width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 24px; background: var(--surface); color: var(--ink);
  box-shadow: 0 40px 120px -20px rgba(2, 8, 23, 0.55); overflow: auto;
}
.demo-dialog::backdrop { background: rgba(7, 16, 30, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.demo-dialog[open] { animation: dd-in .22s ease-out; }
@keyframes dd-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .demo-dialog[open] { animation: none; } }
.dd-shell { display: grid; }
.dd-side { display: none; }
.dd-main { position: relative; padding: 28px 20px 24px; }
.dd-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.dd-close:hover { background: var(--bg); color: var(--ink); }
.dd-title { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); letter-spacing: -0.025em; padding-right: 44px; }
.dd-sub { margin-top: 6px; color: var(--ink-3); font-size: 15.5px; }
.dd-form { display: grid; gap: 16px; }
.dd-form .dd-sub { margin-bottom: 4px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font: 600 14px/1.3 var(--display); letter-spacing: -0.005em; color: var(--ink); padding: 0; }
.field .opt { font: 500 12.5px var(--sans); color: var(--ink-3); margin-left: 6px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: #fbfbf9;
  font: 400 16px/1.4 var(--sans); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.field textarea { resize: vertical; min-height: 72px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.14); }
.field input[aria-invalid="true"], .seg[aria-invalid="true"] { border-color: #d92d20; box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.12); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; border-radius: 14px; padding: 2px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: #fbfbf9; font: 600 14px var(--display); color: var(--ink-2); transition: all .15s ease; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { box-shadow: 0 0 0 4px rgba(47, 91, 255, 0.25); }
@media (max-width: 400px) { .seg { grid-template-columns: repeat(3, 1fr); } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consents { display: grid; gap: 10px; padding-top: 4px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid #d92d20; outline-offset: 2px; }
.check a { color: var(--blue-text); }
.check .req { color: #d92d20; }
.form-error { padding: 12px 14px; border-radius: 12px; background: #fef3f2; border: 1px solid #fecdca; color: #b42318; font-size: 14.5px; }
.form-error a { color: #b42318; font-weight: 600; }
.dd-submit { width: 100%; }
.dd-submit:disabled { opacity: .7; cursor: progress; }
.dd-done { display: grid; justify-items: start; gap: 10px; padding: 24px 0 8px; outline: none; }
.dd-done-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-text); }
.dd-done-ic .i { width: 24px; height: 24px; stroke-width: 2.6; }
.dd-done .btn { margin-top: 8px; }
@media (min-width: 860px) {
  .dd-shell { grid-template-columns: 5fr 7fr; }
  .dd-side {
    display: block; position: relative; overflow: hidden; isolation: isolate; padding: 40px 32px;
    background: var(--night); color: var(--on-night);
  }
  .dd-side::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(22rem 16rem at 20% 0%, rgba(47, 91, 255, 0.4), transparent 70%), radial-gradient(18rem 14rem at 100% 100%, rgba(124, 92, 255, 0.3), transparent 70%); }
  .dd-side .eyebrow { color: #9db1ff; }
  .dd-side-title { font: 600 26px/1.15 var(--display); letter-spacing: -0.03em; }
  .dd-points { display: grid; gap: 14px; margin-top: 28px; }
  .dd-points li { display: flex; gap: 10px; font-size: 15.5px; line-height: 1.45; color: var(--on-night); }
  .dd-points .i { width: 22px; height: 22px; padding: 4px; flex: none; border-radius: 50%; background: rgba(91,123,255,.2); color: #a9bbff; stroke-width: 2.6; }
  .dd-main { padding: 36px 36px 32px; }
}

/* ---------- Cookie notice (arthat.ai behaviour) ---------- */
.btn-xs { min-height: 40px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.link-btn { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.cookie-bar {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  background: rgba(7, 16, 30, 0.92); color: var(--on-night-2);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--night-line);
  padding-bottom: env(safe-area-inset-bottom);
  opacity: 0; transform: translateY(16px); transition: opacity .9s ease-out, transform .9s cubic-bezier(.22, 1, .36, 1);
}
.cookie-bar.is-in { opacity: 1; transform: none; }
.cookie-row { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.cookie-row p { font-size: 13.5px; line-height: 1.5; }
.cookie-row a { color: #fff; }
.cookie-btns { display: flex; gap: 8px; }
.cookie-btns .btn { flex: 1; }
@media (min-width: 768px) { .cookie-row { flex-direction: row; align-items: center; justify-content: space-between; } .cookie-btns .btn { flex: none; } }
@media (prefers-reduced-motion: reduce) { .cookie-bar { transition: none; } }
.cookie-dialog { width: min(460px, calc(100vw - 24px)); padding: 22px; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 120px -20px rgba(2, 8, 23, 0.55); }
.cookie-dialog::backdrop { background: rgba(7, 16, 30, 0.62); }
.cookie-head { display: flex; align-items: center; justify-content: space-between; }
.cookie-head .dd-close { position: static; }
.cookie-title { font: 600 18px var(--display); letter-spacing: -0.015em; }
.cookie-cats { display: grid; gap: 10px; margin: 14px 0 18px; }
.cookie-cats li { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.cc-name { display: flex; align-items: center; gap: 6px; font: 600 14.5px var(--display); }
.cc-name .i { width: 15px; height: 15px; color: var(--blue-text); }
.cc-name span { font: 500 12px var(--sans); color: var(--ink-3); }
.cc-desc { margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.switch { position: relative; flex: none; width: 44px; height: 26px; margin-top: 2px; border-radius: 999px; border: 0; background: #cfd4dc; cursor: pointer; transition: background-color .15s ease; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: left .15s ease; }
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"]::after { left: 21px; }
.switch:disabled { opacity: .6; cursor: not-allowed; }
.cookie-save { width: 100%; }
.cookie-foot { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.cookie-foot a { color: var(--blue-text); }
