/* ==========================================================================
   Rovelo — marketing site
   Type & layout rhythm: quiet, editorial, product-forward.
   ========================================================================== */

:root {
  --paper: #f5f5f0;
  --paper-2: #ecede6;
  --card: #fbfbf8;
  --white: #ffffff;
  --ink: #0a1138;
  --ink-2: rgba(10, 17, 56, 0.66);
  --ink-3: rgba(10, 17, 56, 0.46);
  --ink-4: rgba(10, 17, 56, 0.28);
  --line: rgba(10, 17, 56, 0.1);
  --line-2: rgba(10, 17, 56, 0.16);

  --blue: #0052ff;
  --blue-2: #1f7bff;
  --sky: #8cc8ff;
  --blue-wash: #e8f0ff;
  --green: #12a46b;
  --green-wash: #e3f5ec;
  --amber: #c27a0e;
  --amber-wash: #fbf0dc;

  --night: #060a1f;
  --night-2: #0c1331;
  --night-3: #141c40;
  --night-line: rgba(160, 185, 255, 0.12);
  --night-ink: #eef2ff;
  --night-ink-2: rgba(226, 233, 255, 0.66);
  --night-ink-3: rgba(226, 233, 255, 0.42);

  --brand-grad: linear-gradient(120deg, #0040f0 0%, #1d7bff 48%, #79c1ff 100%);

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 17, 56, 0.06), 0 1px 1px rgba(10, 17, 56, 0.03);
  --shadow: 0 1px 2px rgba(10, 17, 56, 0.05), 0 8px 24px -8px rgba(10, 17, 56, 0.12);
  --shadow-lg: 0 2px 4px rgba(10, 17, 56, 0.04), 0 24px 60px -20px rgba(10, 17, 56, 0.28);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
.i { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; width: 18px; height: 18px; flex: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(0, 82, 255, 0.16); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.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 { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.eyebrow--plain::before { display: none; }

.display {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 440;
  margin: 0;
  text-wrap: balance;
}
.h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 440;
  margin: 0;
  text-wrap: balance;
}
.h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.18; letter-spacing: -0.022em; font-weight: 460; margin: 0; text-wrap: balance; }
.muted { color: var(--ink-3); }
.lede { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.small { font-size: 14px; color: var(--ink-3); }
.mono { font-family: var(--mono); }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: var(--h); padding: 0 18px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--ink); color: var(--paper); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 16px -6px rgba(10,17,56,.5); }
.btn--primary:hover { background: #18225a; }
.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 20px -8px rgba(0,82,255,.7); }
.btn--blue:hover { background: #1a63ff; }
.btn--ghost { background: var(--white); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: rgba(10,17,56,.28); }
.btn--night { background: rgba(255,255,255,.06); border-color: rgba(200,215,255,.18); color: var(--night-ink); }
.btn--night:hover { background: rgba(255,255,255,.1); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #eef2ff; }
.btn--sm { --h: 36px; padding: 0 14px; font-size: 14px; border-radius: 9px; }
.btn--lg { --h: 52px; padding: 0 22px; font-size: 16px; border-radius: 12px; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--blue); }
.link-arrow svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Announcement + header ---------- */
.announce {
  background: var(--ink); color: rgba(238, 242, 255, 0.82);
  font-size: 13.5px; text-align: center; padding: 9px var(--gutter);
}
.announce a { display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; }
.announce b { color: #8cc8ff; font-weight: 500; }
.announce u { text-decoration: none; color: #fff; font-weight: 500; white-space: nowrap; }
.announce .short { display: none; }
@media (max-width: 640px) { .announce .long { display: none; } .announce .short { display: inline; } }
.announce u:hover { text-decoration: underline; text-underline-offset: 3px; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 245, 240, 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.header.is-stuck { border-bottom-color: var(--line); }
.header__inner { height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 560; font-size: 19px; letter-spacing: -0.025em; flex: none; }
.brand img { width: 30px; height: 30px; }
.brand span small { font-weight: 450; color: var(--ink-3); }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 8px; font-size: 15px; color: var(--ink-2); transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: rgba(10,17,56,.045); }
.header__cta { display: flex; gap: 8px; align-items: center; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--white); align-items: center; justify-content: center; margin-left: auto; }
.menu-btn span { position: relative; width: 16px; height: 1.5px; background: var(--ink); transition: background .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-btn span::before { transform: translateY(-5px); }
.menu-btn span::after { transform: translateY(5px); }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: rotate(45deg); }
.menu-open .menu-btn span::after { transform: rotate(-45deg); }
.mobile-nav { display: none; }

@media (max-width: 920px) {
  .nav, .header__cta .btn--ghost { display: none; }
  .menu-btn { display: inline-flex; margin-left: 0; }
  .header__cta { margin-left: auto; }
  .mobile-nav {
    display: block; position: fixed; inset: 68px 0 auto 0; z-index: 49;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 12px var(--gutter) 22px;
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
  }
  .menu-open .mobile-nav { transform: none; opacity: 1; visibility: visible; transition: opacity .25s, transform .35s var(--ease); }
  .mobile-nav a:not(.btn) { display: block; padding: 14px 2px; font-size: 18px; border-bottom: 1px solid var(--line); }
  .mobile-nav .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
}
@media (max-width: 420px) {
  .header__cta .btn--primary .label-long { display: none; }
  /* Small phones: tighter spacing so the menu button keeps its full size inside the margin. */
  .header__inner { gap: 10px; }
  .menu-btn { flex: none; }
}

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(64px, 10vw, 120px) 0 clamp(40px, 6vw, 64px); text-align: center; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__bg svg { position: absolute; left: 50%; top: 0; width: 1400px; max-width: none; transform: translateX(-50%); opacity: .9; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 55% at 50% 30%, transparent 0%, var(--paper) 78%); }
.hero h1 { max-width: 920px; margin: 0 auto; }
.rotator { display: grid; justify-items: center; text-align: center; }
.rotator > span { grid-area: 1 / 1; white-space: nowrap; padding-bottom: .08em; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; transition: opacity .5s var(--ease), transform .6s var(--ease), filter .5s; }
.rotator > span:not(.is-on) { opacity: 0; transform: translateY(.35em); filter: blur(4px); }
.rotator > span.is-out { opacity: 0; transform: translateY(-.35em); filter: blur(4px); }
.hero .lede { max-width: 640px; margin: 26px auto 0; }
.hero__ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
@media (max-width: 520px) {
  .hero .display { font-size: clamp(30px, 9.2vw, 38px); }
  .hero__ctas { flex-direction: column; align-items: stretch; max-width: 360px; margin-left: auto; margin-right: auto; }
}
.hero__meta { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 8px 18px; justify-content: center; flex-wrap: wrap; }
.hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero__meta svg { width: 14px; height: 14px; color: var(--green); }

/* ---------- Demo video (showcase) ---------- */
/* Sits on the page paper like every other section: a light Mac window
   around the video, and one card per demo underneath to jump between them. */
.watch { padding: clamp(24px, 4vw, 48px) 0 clamp(72px, 10vw, 120px); }

.window {
  position: relative; border-radius: 14px; overflow: hidden;
  background: var(--white); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
}
.window__bar {
  height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: linear-gradient(#fbfbf8, #f1f1ec); border-bottom: 1px solid var(--line);
}
.window__bar i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.12); }
.window__bar i:nth-child(1) { background: #ff5f57; } .window__bar i:nth-child(2) { background: #febc2e; } .window__bar i:nth-child(3) { background: #28c840; }
.window__bar span { margin: 0 auto; transform: translateX(-24px); font-size: 12.5px; font-weight: 500; color: var(--ink-3); display: inline-flex; gap: 7px; align-items: center; }
.window__bar span img { width: 14px; height: 14px; }
.player { position: relative; aspect-ratio: 16 / 9; background: #05070f; }
.player video { width: 100%; height: 100%; object-fit: cover; background: #05070f; }
.player__cover {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0; background: rgba(4, 8, 24, .34);
  color: #fff; transition: opacity .4s var(--ease), visibility 0s .4s; cursor: pointer;
}
.player__cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 50% 50%, rgba(4,8,24,.05), rgba(4,8,24,.5)); }
.player__cover > span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.play {
  width: clamp(64px, 8vw, 88px); height: clamp(64px, 8vw, 88px); border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.97); color: var(--ink);
  box-shadow: 0 0 0 10px rgba(255,255,255,.14), 0 20px 50px -12px rgba(0, 0, 0, .55);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.play svg { width: 34%; height: 34%; margin-left: 6%; }
.player__cover:hover .play { transform: scale(1.05); box-shadow: 0 0 0 14px rgba(255,255,255,.18), 0 24px 60px -12px rgba(0, 0, 0, .6); }
.player__cover b { font-weight: 500; font-size: 15px; letter-spacing: -.01em; text-shadow: 0 1px 12px rgba(0,0,0,.5); }
.player__cover small { font-size: 13px; opacity: .8; }
.player.is-playing .player__cover, .player.is-auto .player__cover { opacity: 0; visibility: hidden; }

.ctrl { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; display: flex; align-items: center; gap: 12px; background: linear-gradient(transparent, rgba(3,6,18,.82)); opacity: 0; transition: opacity .3s; }
.player.is-started .ctrl { opacity: 1; }
.player.is-started.is-playing.is-idle .ctrl { opacity: 0; }
.ctrl button { width: 34px; height: 34px; border-radius: 9px; border: 0; background: rgba(255,255,255,.12); display: grid; place-items: center; color: #fff; flex: none; }
.ctrl button:hover { background: rgba(255,255,255,.2); }
.ctrl button svg { width: 15px; height: 15px; }
.ctrl .time { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,.8); min-width: 84px; text-align: center; }
.scrub { position: relative; flex: 1; height: 22px; cursor: pointer; touch-action: none; }
.scrub::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.22); }
.scrub .fill { position: absolute; left: 0; top: 10px; height: 3px; border-radius: 3px; background: #fff; width: 0; }
.scrub .marks i { position: absolute; top: 9px; width: 2px; height: 5px; background: rgba(5,7,15,.8); }
.scrub .knob { position: absolute; top: 5px; width: 13px; height: 13px; margin-left: -6.5px; border-radius: 50%; background: #fff; box-shadow: 0 1px 6px rgba(0,0,0,.4); left: 0; transform: scale(0); transition: transform .2s; }
.scrub:hover .knob, .scrub.is-drag .knob { transform: scale(1); }

/* Demo names under the video: one progress segment per clip, filling as it plays */
.demos { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 20px; }
.demos li { display: flex; min-width: 0; }
.demo {
  position: relative; width: 100%; padding: 14px 0 4px; border: 0; background: none; text-align: left;
  font-size: 15.5px; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; color: var(--ink-3);
  transition: color .25s; -webkit-tap-highlight-color: transparent;
}
.demo:hover { color: var(--ink-2); }
.demo.is-active { color: var(--ink); }
.demo__bar { position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.demo__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width .25s linear; }
.demo.is-done .demo__bar i { background: var(--ink-4); }

@media (max-width: 560px) {
  .ctrl .time { display: none; }
  .window { border-radius: 12px; }
  .window__bar { height: 30px; }
  .window__bar i { width: 9px; height: 9px; }
  .window__bar span { font-size: 11.5px; transform: translateX(-18px); }
  /* Each name takes the room it needs so none get cut off; long ones wrap between words. */
  .demos { display: flex; gap: 0 14px; margin-top: 12px; }
  .demos li { flex: 1 1 auto; min-width: min-content; }
  .demo { font-size: 13.5px; padding-top: 11px; }
  .player__cover > span { gap: 10px; }
  .player__cover b { font-size: 14px; }
  .player__cover small { font-size: 11.5px; }
}

/* ---------- App strip ---------- */
.apps { padding: 0 0 clamp(72px, 10vw, 120px); }
.apps__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; border-top: 1px solid var(--line); padding-top: 26px; }
.apps__head p { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 520px; }
.marquee { position: relative; overflow: hidden; margin-top: 26px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 10px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.chip { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.chip i { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 600; color: #fff; }
@keyframes marquee { to { transform: translateX(calc(-50% - 5px)); } }

/* ---------- Section head ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding-top: 0; }
.shead { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.shead .lede { max-width: 520px; }
.shead--center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
@media (max-width: 860px) { .shead { grid-template-columns: 1fr; } .apps__head { flex-direction: column; align-items: start; } }

/* ---------- Use-case tabs ---------- */
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.tab { position: relative; background: none; border: 0; padding: 14px 8px 16px; font-size: 15.5px; color: var(--ink-3); transition: color .2s; text-align: center; }
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .45s var(--ease); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab .prog { position: absolute; left: 0; bottom: -1px; height: 2px; background: var(--blue); width: 0; }
@media (max-width: 760px) {
  /* Swipe row: scroll sideways only. The divider is an inset shadow and the
     indicators sit at bottom: 0, so nothing pokes out below and no vertical scroll. */
  .tabs { display: flex; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1) 22px; padding: 0 var(--gutter); border-bottom: 0; box-shadow: inset 0 -1px 0 var(--line); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: 12px 14px 14px; }
  .tab::after, .tab .prog { bottom: 0; }
}

.usecase { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(16px, 2.4vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: 20px; }
.usecase[hidden] { display: none; }
.usecase__ui { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.usecase__copy { padding-right: clamp(0px, 2vw, 24px); }
.usecase__copy .h3 { font-size: clamp(24px, 2.4vw, 32px); }
.usecase__copy p { color: var(--ink-2); margin: 14px 0 0; line-height: 1.6; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.tag svg { width: 13px; height: 13px; }
.tag--blue { background: var(--blue-wash); border-color: transparent; color: #0a3fc2; }
.tag--amber { background: var(--amber-wash); border-color: transparent; color: #8a5300; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); overflow: hidden; }
.panel__head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.panel__head img { width: 16px; height: 16px; }
.panel__head .pill { margin-left: auto; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 500; background: var(--paper); color: var(--ink-2); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--live { background: var(--blue-wash); color: var(--blue); }
.pill--live::before { animation: pulse 1.4s ease-in-out infinite; }
.pill--done { background: var(--green-wash); color: var(--green); }
.pill--wait { background: var(--amber-wash); color: var(--amber); }
@keyframes pulse { 50% { opacity: .3; } }

.prompt { padding: 14px; border-bottom: 1px solid var(--line); }
.prompt small { display: block; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-family: var(--mono); margin-bottom: 6px; }
.prompt p { margin: 0; font-size: 13.5px; line-height: 1.5; }

.plan { list-style: none; margin: 0; padding: 8px 6px 10px; }
.plan > li { padding: 8px 8px; border-radius: 9px; transition: background .3s; }
.plan > li.is-now { background: var(--blue-wash); }
.plan .ms { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; }
.check { width: 18px; height: 18px; border-radius: 50%; flex: none; border: 1.5px solid var(--ink-4); display: grid; place-items: center; transition: all .3s var(--ease); }
.check svg { width: 10px; height: 10px; color: #fff; opacity: 0; transform: scale(.5); transition: all .3s var(--ease); }
.is-done > .ms .check { background: var(--green); border-color: var(--green); }
.is-done > .ms .check svg { opacity: 1; transform: none; }
.is-now > .ms .check { border-color: var(--blue); border-top-color: transparent; animation: spin .9s linear infinite; }
.is-hold > .ms .check { border-color: var(--amber); background: var(--amber-wash); animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.plan .todos { margin: 5px 0 0 27px; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-3); display: grid; gap: 3px; }
.plan .todos li::before { content: "– "; }
.memory { display: flex; align-items: center; gap: 8px; margin: 0 14px 14px; padding: 9px 11px; border-radius: 10px; background: var(--paper); font-size: 12.5px; color: var(--ink-2); }
.memory svg { width: 14px; height: 14px; color: var(--blue); flex: none; }
.memory b { font-weight: 500; color: var(--ink); }

.feed { list-style: none; margin: 0; padding: 10px 14px 14px; display: grid; gap: 2px; font-size: 12.5px; min-height: 236px; align-content: start; }
.feed li { display: grid; grid-template-columns: 52px 14px 1fr; gap: 6px; padding: 5px 0; align-items: start; animation: feedIn .45s var(--ease) both; }
.feed time { font-family: var(--mono); font-size: 11px; color: var(--ink-4); padding-top: 1px; }
.feed .ico { width: 14px; height: 14px; margin-top: 2px; color: var(--ink-3); }
.feed .ok .ico { color: var(--green); }
.feed .wait .ico { color: var(--amber); }
.feed .wait span { color: #8a5300; font-weight: 500; }
@keyframes feedIn { from { opacity: 0; transform: translateY(6px); } }

@media (max-width: 1060px) { .usecase { grid-template-columns: 1fr; } .usecase__copy { order: -1; padding: 8px 4px 0; } }
@media (max-width: 620px) { .usecase__ui { grid-template-columns: 1fr; } .feed { min-height: 0; } .usecase { padding: 12px; border-radius: 16px; } }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.step { padding: 28px 24px 8px 0; position: relative; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step__n { font-family: var(--mono); font-size: 12.5px; color: var(--blue); }
.step h3 { font-size: 21px; font-weight: 480; letter-spacing: -.02em; line-height: 1.25; margin: 10px 0 10px; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.vignette { height: 168px; margin: 0 0 24px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.vg-input { background: var(--white); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 12px; font-size: 12.5px; line-height: 1.45; box-shadow: var(--shadow-sm); }
.vg-input .caret { display: inline-block; width: 1.5px; height: 13px; background: var(--blue); vertical-align: -2px; animation: pulse 1s steps(1) infinite; }
.vg-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); }
.vg-send { width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.vg-send svg { width: 12px; height: 12px; }
.vg-line { display: flex; align-items: center; gap: 8px; font-size: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; padding: 7px 9px; }
.vg-line .check { width: 14px; height: 14px; }
.vg-line .check svg { width: 8px; height: 8px; }
.vg-line.done .check { background: var(--green); border-color: var(--green); }
.vg-line.done .check svg { opacity: 1; transform: none; }
.vg-line em { font-style: normal; margin-left: auto; color: var(--ink-3); font-size: 11px; }
.vg-overlay { background: var(--night-2); color: var(--night-ink); border-radius: 12px; padding: 11px 12px; font-size: 12px; box-shadow: 0 12px 30px -12px rgba(6,10,31,.6); }
.vg-overlay .top { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.vg-overlay .top img { width: 14px; height: 14px; }
.vg-overlay .top .pill { margin-left: auto; background: rgba(0,82,255,.25); color: #9cc5ff; height: 20px; font-size: 10.5px; }
.vg-overlay .task { margin-top: 8px; color: var(--night-ink-2); font-size: 11.5px; }
.vg-overlay .bar { margin-top: 8px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.vg-overlay .bar i { display: block; height: 100%; width: 62%; background: var(--brand-grad); animation: grow 4s var(--ease) infinite; }
@keyframes grow { 0% { width: 18%; } 70%, 100% { width: 86%; } }
.vg-cursor { position: absolute; right: 22%; top: 22%; width: 18px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.25)); animation: cursor 4s var(--ease) infinite; }
@keyframes cursor { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(-40px, 26px); } 55% { transform: translate(-40px, 26px) scale(.9); } 60% { transform: translate(-40px, 26px); } }
.vg-click { position: absolute; right: calc(22% + 32px); top: calc(22% + 20px); width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; animation: ping 4s var(--ease) infinite; }
@keyframes ping { 0%, 50% { opacity: 0; transform: scale(.4); } 56% { opacity: .9; } 75%, 100% { opacity: 0; transform: scale(1.3); } }
.vg-task { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 11px; font-size: 12.5px; }
.vg-task .sub { display: block; color: var(--ink-3); font-size: 11px; }
.vg-task .run { margin-left: auto; height: 26px; padding: 0 10px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; border: 0; }
.vg-task .run svg { width: 9px; height: 9px; }
.vg-task:nth-child(2) .run { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }

@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(3) { padding-left: 0; border-left: 0; } .step:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 20px; } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .step, .step + .step { padding: 24px 0 8px; border-left: 0; } .step + .step { border-top: 1px solid var(--line); margin-top: 12px; } }

/* ---------- Control (dark) ---------- */
.control { background: var(--night); color: var(--night-ink); border-radius: 28px; margin: 0 clamp(8px, 1.4vw, 20px); padding: clamp(56px, 8vw, 104px) 0; position: relative; overflow: hidden; isolation: isolate; }
.control::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -20%; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(0, 82, 255, .32), transparent); }
.control .eyebrow { color: var(--sky); }
.control .h2 span { color: var(--night-ink-3); }
.control .lede { color: var(--night-ink-2); }
.control__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.guarantees { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 0; border-top: 1px solid var(--night-line); }
.guarantees li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--night-line); }
.guarantees .gi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(140, 200, 255, .08); color: var(--sky); border: 1px solid rgba(140,200,255,.14); }
.guarantees .gi svg { width: 17px; height: 17px; }
.guarantees b { display: block; font-weight: 500; font-size: 16px; letter-spacing: -.01em; }
.guarantees span { display: block; color: var(--night-ink-2); font-size: 14.5px; margin-top: 3px; line-height: 1.55; }

.mock-stack { position: relative; display: grid; gap: 16px; }
.dcard { background: rgba(18, 26, 62, .78); border: 1px solid rgba(190,210,255,.13); border-radius: 18px; padding: 20px; backdrop-filter: blur(10px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.dcard__top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--night-ink-2); }
.dcard__top img { width: 18px; height: 18px; }
.dcard__top .pill { margin-left: auto; background: rgba(255, 190, 80, .14); color: #ffc46b; }
.dcard h4 { margin: 14px 0 4px; font-size: 19px; font-weight: 500; letter-spacing: -.015em; }
.dcard p { margin: 0; color: var(--night-ink-2); font-size: 14px; }
.email { margin-top: 16px; border-radius: 12px; border: 1px solid rgba(190,210,255,.12); background: rgba(6,10,31,.5); font-size: 13.5px; overflow: hidden; }
.email div { display: grid; grid-template-columns: 64px 1fr; padding: 9px 14px; border-bottom: 1px solid rgba(190,210,255,.08); }
.email div span:first-child { color: var(--night-ink-3); }
.email blockquote { margin: 0; padding: 12px 14px; color: var(--night-ink); line-height: 1.55; outline: none; border-radius: 0 0 12px 12px; transition: background .2s; }
.email blockquote:focus { background: rgba(0, 82, 255, .12); }
.email .editable-hint { display: block; font-size: 11.5px; color: var(--night-ink-3); padding: 0 14px 10px; }
.dcard__actions { display: flex; gap: 8px; margin-top: 16px; align-items: center; }
.dcard__actions small { color: var(--night-ink-3); font-size: 12.5px; margin-right: auto; }
.dcard__actions .btn { --h: 36px; font-size: 14px; padding: 0 14px; }
.dcard.is-approved .pill { background: rgba(40, 200, 120, .15); color: #6ee0a6; }
@media (max-width: 480px) {
  /* Phones: the note gets its own line and the two buttons share the row below it. */
  .dcard { padding: 16px; }
  .dcard__top { flex-wrap: wrap; row-gap: 8px; }
  .dcard__top .pill { white-space: nowrap; }
  .dcard__actions { flex-wrap: wrap; }
  .dcard__actions small { flex: 1 0 100%; margin: 0 0 2px; }
  .dcard__actions .btn { flex: 1; }
}
.access { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; }
.access__ico { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, #3b4a86, #1d2757); border: 1px solid rgba(190,210,255,.18); display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 15px; }
.access b { font-weight: 500; font-size: 15px; display: block; }
.access small { color: var(--night-ink-3); font-size: 12.5px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.seg button { height: 34px; border-radius: 9px; border: 1px solid rgba(190,210,255,.14); background: rgba(255,255,255,.04); color: var(--night-ink); font-size: 13.5px; transition: all .2s; }
.seg button:hover { background: rgba(255,255,255,.08); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.controls-row { display: flex; gap: 8px; flex-wrap: wrap; }
.kbd-chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(190,210,255,.14); background: rgba(255,255,255,.04); font-size: 13.5px; color: var(--night-ink); }
.kbd-chip svg { width: 14px; height: 14px; color: var(--sky); }
kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 5px; border: 1px solid currentColor; opacity: .7; }

@media (max-width: 960px) { .control__grid { grid-template-columns: 1fr; } .control { border-radius: 22px; } }
/* Let the columns shrink to the screen; long email addresses break instead of widening the card. */
.control__grid > * { min-width: 0; }
.email div span:last-child { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Feature grid ---------- */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.fcell { padding: 30px 28px 34px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; transition: background .3s; }
.fcell:hover { background: rgba(255,255,255,.5); }
.fcell__ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--blue); box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.fcell__ico svg { width: 19px; height: 19px; }
.fcell h3 { margin: 0 0 8px; font-size: 18px; font-weight: 500; letter-spacing: -.015em; }
.fcell p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.fcell .kbds { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: 2px; }
.fcell kbd { opacity: 1; border-color: var(--line-2); background: var(--white); color: var(--ink-2); }
@media (max-width: 900px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fgrid { grid-template-columns: 1fr; border-left: 0; } .fcell { border-right: 0; padding: 26px 0 28px; } }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.calc__in { padding: clamp(24px, 4vw, 44px); display: grid; gap: 26px; align-content: start; }
.calc__out { padding: clamp(24px, 4vw, 44px); background: var(--white); border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.field label { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: var(--ink-2); margin-bottom: 12px; }
.field output { font-family: var(--mono); font-size: 15px; color: var(--ink); font-weight: 500; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; --p: 50%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--blue) var(--p), rgba(10,17,56,.12) var(--p)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(10,17,56,.12); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--blue); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 6px rgba(10,17,56,.2); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); box-shadow: 0 2px 6px rgba(10,17,56,.2); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.big-num { font-size: clamp(52px, 7vw, 84px); line-height: 1; letter-spacing: -.045em; font-weight: 420; margin: 6px 0 0; font-variant-numeric: tabular-nums; }
.calc__out .sub { color: var(--ink-2); margin: 10px 0 0; font-size: 15.5px; }
.calc__split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.calc__split div { padding: 18px 0 0; }
.calc__split div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.calc__split b { display: block; font-size: 26px; font-weight: 460; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc__split span { font-size: 13.5px; color: var(--ink-3); }
.calc__note { margin-top: auto; padding-top: 26px; font-size: 13px; color: var(--ink-3); }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } .calc__out { border-left: 0; border-top: 1px solid var(--line); } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 6vw, 96px); }
.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; cursor: pointer; font-size: 17.5px; font-weight: 460; letter-spacing: -.012em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); position: relative; transition: transform .35s var(--ease), background .2s; }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.qa summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease); }
.qa[open] summary i { background: var(--ink); }
.qa[open] summary i::before, .qa[open] summary i::after { background: #fff; }
.qa[open] summary i::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa .ans { padding: 0 48px 24px 0; color: var(--ink-2); line-height: 1.65; font-size: 15.5px; }
.qa .ans p { margin: 0 0 10px; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } .qa .ans { padding-right: 0; } }

/* ---------- Closing CTA ---------- */
.closing { padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 10vw, 120px); }
.closing__card {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  border-radius: 28px; padding: clamp(56px, 9vw, 112px) var(--gutter);
  background: var(--white); border: 1px solid var(--line);
}
.closing__card::before { content: ""; position: absolute; z-index: -1; left: 50%; bottom: -60%; width: 120%; height: 120%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(0, 82, 255, .14), transparent 70%); }
.closing__mark { width: 64px; height: 64px; margin: 0 auto 26px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 12px 30px -10px rgba(0, 82, 255, .45); }
.closing h2 { max-width: 760px; margin: 0 auto; }
.closing .lede { max-width: 540px; margin: 18px auto 0; }
.closing .hero__ctas { margin-top: 30px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14.5px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer p { color: var(--ink-3); margin: 14px 0 0; max-width: 300px; line-height: 1.6; }
.footer h4 { font-size: 13px; font-weight: 500; color: var(--ink-3); margin: 4px 0 14px; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a, .footer ul button { color: var(--ink-2); background: none; border: 0; padding: 0; font-size: 14.5px; transition: color .2s; text-align: left; }
.footer ul a:hover, .footer ul button:hover { color: var(--ink); }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Page hero (inner pages) ---------- */
.phero { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); text-align: center; }
.phero .lede { max-width: 600px; margin: 20px auto 0; }

/* ---------- Pricing ---------- */
.billing { display: inline-flex; margin-top: 32px; padding: 4px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); position: relative; }
.billing button { position: relative; z-index: 1; height: 38px; padding: 0 16px; border: 0; background: none; border-radius: 9px; font-size: 14.5px; color: var(--ink-2); transition: color .2s; display: inline-flex; align-items: center; gap: 8px; }
.billing button[aria-pressed="true"] { color: var(--ink); }
.billing .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 9px; background: var(--white); box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), width .4s var(--ease); }
.save { font-size: 11.5px; font-weight: 500; color: var(--green); background: var(--green-wash); padding: 2px 7px; border-radius: 99px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.plan-card--featured { background: var(--night); color: var(--night-ink); border-color: transparent; box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; }
.plan-card--featured::before { content: ""; position: absolute; z-index: -1; right: -30%; top: -30%; width: 90%; height: 70%; background: radial-gradient(closest-side, rgba(0, 82, 255, .45), transparent); }
.plan-card__name { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 500; }
.plan-card__name .pill { background: rgba(140,200,255,.14); color: var(--sky); }
.plan-card__name .pill::before { display: none; }
.plan-card__for { margin: 8px 0 0; font-size: 14.5px; color: var(--ink-3); min-height: 44px; }
.plan-card--featured .plan-card__for { color: var(--night-ink-3); }
.price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 4px; }
.price b { font-size: 52px; font-weight: 430; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.price span { color: var(--ink-3); font-size: 15px; }
.plan-card--featured .price span { color: var(--night-ink-3); }
.price-note { font-size: 13px; color: var(--ink-3); min-height: 20px; margin: 0; }
.plan-card--featured .price-note { color: var(--night-ink-3); }
.plan-card .btn { width: 100%; margin: 24px 0 26px; }
.feat { list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: 14.5px; }
.plan-card--featured .feat { border-top-color: var(--night-line); }
.feat li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; line-height: 1.45; }
.feat svg { width: 16px; height: 16px; color: var(--blue); margin-top: 2px; }
.plan-card--featured .feat svg { color: var(--sky); }
.feat li.head { display: block; font-size: 13px; color: var(--ink-3); }
.plan-card--featured .feat li.head { color: var(--night-ink-3); }
@media (max-width: 980px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .plan-card__for { min-height: 0; } }

.byok { margin-top: 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px 26px; border-radius: 18px; border: 1px dashed var(--line-2); }
.byok__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; color: var(--blue); }
.byok__ico svg { width: 20px; height: 20px; }
.byok b { font-weight: 500; font-size: 16px; }
.byok p { margin: 4px 0 0; color: var(--ink-2); font-size: 14.5px; }
@media (max-width: 700px) { .byok { grid-template-columns: 1fr; } }

.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-weight: 500; font-size: 15px; position: sticky; top: 68px; background: var(--paper); z-index: 2; }
.compare tbody th { font-weight: 400; color: var(--ink-2); width: 40%; }
.compare td { width: 20%; }
.compare .grp th { padding-top: 34px; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 500; }
.compare svg { width: 17px; height: 17px; color: var(--blue); }
.compare .no { color: var(--ink-4); }
.compare-wrap { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.compare-wrap table { min-width: 640px; }
@media (max-width: 640px) {
  /* Phones: fit all three plans on screen instead of hiding Pro and Enterprise off to the side. */
  .compare-wrap { margin: 0; padding: 0; overflow: visible; }
  .compare-wrap table { min-width: 0; table-layout: fixed; }
  .compare { font-size: 13.5px; }
  .compare th, .compare td { padding: 12px 6px; overflow-wrap: break-word; }
  .compare th:first-child { padding-left: 0; }
  .compare thead th { font-size: 13.5px; }
  .compare tbody th { width: 37%; }
  .compare td { width: 21%; }
  .compare .grp th { padding-top: 26px; font-size: 11px; }
  .compare svg { width: 15px; height: 15px; }
}

/* ---------- Download page ---------- */
.dl-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.dl-hero .lede { margin-top: 20px; max-width: 520px; }
.dl-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); text-align: center; }
.dl-card .icon { width: 96px; height: 96px; margin: 0 auto 20px; border-radius: 24px; background: #fff; padding: 14px; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -16px rgba(0, 82, 255, .55); }
.dl-card h2 { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 0; }
.dl-card .btn { width: 100%; margin-top: 22px; }
.dl-card dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; text-align: left; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.dl-card dt { color: var(--ink-3); }
.dl-card dd { margin: 0; text-align: right; }
.setup { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.setup-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.setup-card .n { font-family: var(--mono); font-size: 12px; color: var(--blue); }
.setup-card h3 { font-size: 19px; font-weight: 500; letter-spacing: -.015em; margin: 10px 0 8px; }
.setup-card p { color: var(--ink-2); font-size: 15px; margin: 0; line-height: 1.6; }
.perm { margin-top: 16px; display: grid; gap: 8px; }
.perm div { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-size: 13.5px; }
.perm i { width: 30px; height: 30px; border-radius: 8px; background: var(--blue-wash); color: var(--blue); display: grid; place-items: center; }
.perm i svg { width: 15px; height: 15px; }
.perm b { display: block; font-weight: 500; }
.perm span { color: var(--ink-3); }
@media (max-width: 900px) { .dl-hero, .setup { grid-template-columns: 1fr; } }

/* ---------- Booking modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 72px 24px 24px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__scrim { position: absolute; inset: 0; background: rgba(6, 10, 31, .48); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s var(--ease); }
.modal.is-open .modal__scrim { opacity: 1; }
.modal__dialog {
  position: relative; width: min(1080px, 100%); height: min(720px, calc(100dvh - 96px));
  display: grid; grid-template-columns: 360px 1fr; border-radius: 24px; overflow: hidden;
  background: var(--white); box-shadow: 0 40px 120px -30px rgba(6, 10, 31, .6), 0 0 0 1px rgba(10,17,56,.08);
  opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .35s var(--ease), transform .5s var(--ease);
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__close { position: absolute; z-index: 5; top: -50px; right: 0; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; transition: background .2s; backdrop-filter: blur(8px); }
.modal__close:hover { background: rgba(255,255,255,.26); }
.modal__dialog { overflow: visible; }
.modal__dialog > .bk-side { border-radius: 24px 0 0 24px; }
.modal__dialog > .bk-main { border-radius: 0 24px 24px 0; overflow: hidden; }
.modal__close svg { width: 15px; height: 15px; }

.bk-side { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--night-ink); padding: 32px 30px; display: flex; flex-direction: column; }
.bk-side::before { content: ""; position: absolute; z-index: -1; left: -30%; bottom: -30%; width: 130%; height: 70%; background: radial-gradient(closest-side, rgba(0, 82, 255, .42), transparent); }
.bk-side::after { content: ""; position: absolute; z-index: -1; inset: 0; background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px); background-size: 36px 36px; mask-image: linear-gradient(180deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%); opacity: .5; }
.bk-brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.bk-brand img { width: 30px; height: 30px; padding: 5px; border-radius: 9px; background: #fff; }
.bk-side h2 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; font-weight: 440; margin: 30px 0 0; }
.bk-side h2 span { color: var(--night-ink-3); }
.bk-side > p { color: var(--night-ink-2); font-size: 15px; margin: 14px 0 0; line-height: 1.6; }
.agenda { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.agenda li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 14.5px; line-height: 1.45; color: var(--night-ink); }
.agenda li span { display: block; color: var(--night-ink-3); font-size: 13px; margin-top: 2px; }
.agenda i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--sky); background: rgba(140,200,255,.1); border: 1px solid rgba(140,200,255,.16); }
.bk-progress { margin-top: auto; padding-top: 24px; }
.bk-progress ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.bk-progress li { font-size: 12px; color: var(--night-ink-3); transition: color .3s; }
.bk-progress li::before { content: ""; display: block; height: 3px; border-radius: 3px; background: rgba(255,255,255,.12); margin-bottom: 9px; transition: background .4s var(--ease); }
.bk-progress li.is-on { color: var(--night-ink); }
.bk-progress li.is-on::before { background: var(--brand-grad); }
.bk-trust { margin-top: 18px; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--night-ink-3); }
.bk-trust svg { width: 14px; height: 14px; }

.bk-main { position: relative; background: #fff; min-height: 0; }
.bk-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .5s var(--ease); }
.bk-main.is-loaded .bk-frame { opacity: 1; }
.bk-skeleton { position: absolute; inset: 0; padding: 56px 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; transition: opacity .4s; }
.bk-main.is-loaded .bk-skeleton { opacity: 0; pointer-events: none; }
.sk { border-radius: 8px; background: linear-gradient(90deg, #f0f1ed 0%, #f7f7f4 40%, #f0f1ed 80%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-top: 24px; }
.sk-cal .sk { aspect-ratio: 1; border-radius: 50%; }
.sk-times { display: grid; gap: 10px; align-content: start; padding-top: 60px; }
.sk-times .sk { height: 48px; border-radius: 10px; }
.bk-fallback { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 20px; display: flex; justify-content: center; gap: 6px; font-size: 13px; color: var(--ink-3); background: linear-gradient(transparent, #fff 40%); pointer-events: none; }
.bk-fallback a { color: var(--blue); pointer-events: auto; font-weight: 500; }
.bk-main.is-ready .bk-fallback, .bk-main.is-booked .bk-fallback { display: none; }
.bk-done { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 40px; background: #fff; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.bk-main.is-booked .bk-done { opacity: 1; visibility: visible; transition: opacity .5s var(--ease); }
.bk-done .tick { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; background: var(--green-wash); color: var(--green); display: grid; place-items: center; }
.bk-done .tick svg { width: 32px; height: 32px; stroke-dasharray: 30; stroke-dashoffset: 30; }
.bk-main.is-booked .bk-done .tick svg { animation: draw .7s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bk-done h3 { font-size: 28px; font-weight: 460; letter-spacing: -.03em; margin: 0; }
.bk-done p { color: var(--ink-2); margin: 12px auto 0; max-width: 380px; }
.bk-done .hero__ctas { margin-top: 26px; }
body.modal-open { overflow: hidden; }

@media (max-width: 860px) {
  .modal { padding: 0; place-items: end center; }
  .modal__dialog { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: calc(100dvh - 24px); border-radius: 22px 22px 0 0; transform: translateY(40px); }
  .bk-side { padding: 18px 20px 16px; }
  .bk-side h2 { font-size: 21px; margin-top: 14px; }
  .bk-side > p, .agenda, .bk-trust { display: none; }
  .bk-progress { padding-top: 14px; }
  .bk-skeleton { grid-template-columns: 1fr; padding: 32px 24px; }
  .sk-times { display: none; }
  .modal__close { top: 14px; right: 14px; width: 34px; height: 34px; }
  .modal__dialog > .bk-side { border-radius: 22px 22px 0 0; }
  .modal__dialog > .bk-main { border-radius: 0; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; width: max-content; max-width: min(560px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: center; padding: 12px 14px 12px 16px; border-radius: 14px; background: var(--ink); color: #eef2ff; font-size: 14.5px; box-shadow: var(--shadow-lg); transition: all .4s var(--ease); }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast button { background: rgba(255,255,255,.12); border: 0; color: #fff; height: 32px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ---------- Legal pages (privacy.html) ---------- */
.footer__base a { color: inherit; }
.footer__base a:hover { color: var(--ink); }
.legal { padding: clamp(56px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); }
.legal__wrap { max-width: calc(720px + var(--gutter) * 2); }
.legal__title { font-size: clamp(36px, 5vw, 52px); font-weight: 480; letter-spacing: -.035em; line-height: 1.05; margin: 14px 0 0; color: var(--ink); }
.legal__date { margin: 12px 0 28px; color: var(--ink-3); font-size: 14px; }
.legal h2 { font-size: 21px; font-weight: 500; letter-spacing: -.015em; margin: 44px 0 10px; color: var(--ink); }
.legal p, .legal li { font-size: 16.5px; line-height: 1.7; color: var(--ink-2); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 1.2em; }
.legal li { margin: 4px 0; }
.legal b { font-weight: 500; color: var(--ink); }
.legal h3 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; margin: 26px 0 8px; color: var(--ink); }
.legal a { color: var(--blue, #0052ff); text-decoration: underline; text-underline-offset: 2px; }
.legal__summary { margin: 32px 0 8px; padding: 22px 24px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--card, #fff); }
.legal__summary h2 { margin-top: 0; font-size: 17px; }
.legal__table { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--line); border-radius: 12px; }
.legal__table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal__table th, .legal__table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }
.legal__table th { font-weight: 500; color: var(--ink); background: rgba(10, 17, 56, .03); }
.legal__table tr:last-child td { border-bottom: 0; }
.legal h2[id] { scroll-margin-top: 96px; }
.dl-card__legal { margin: 12px 0 0; font-size: 12.5px; }
.dl-card__legal a, .fine a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
