/* ============ Tokens ============ */
:root {
  --ink: #0b0b0c;
  --ink-2: #26262a;
  --muted: #6b6b73;
  --faint: #70707a;
  --line: #ececef;
  --line-dash: #e6e6ea;
  --bg: #ffffff;
  --tint: #fafafa;
  --soft: #f3f3f5;
  --accent: #7132f5;
  --accent-tint: rgba(113, 50, 245, 0.1);
  --accent-dark: #5741d8;
  --accent-deep: #5b1ecf;
  --accent-subtle: rgba(133, 91, 251, 0.16);
  --green-bg: rgba(20, 158, 97, 0.14);
  --green-fg: #067a47;

  --r-xl: 24px;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;

  --shadow-window: 0 30px 80px -20px rgba(55, 20, 140, 0.28), 0 2px 8px rgba(55, 20, 140, 0.06);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -8px rgba(0, 0, 0, 0.08);

  --font-display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --font-app: 'IBM Plex Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --col: 1200px;
  --gutter: clamp(16px, 4vw, 48px);

  /* Motion tokens (Emil Kowalski's curves) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 160ms;
  --dur-pop: 200ms;
  --dur-dialog: 240ms;
  --dur-exit: 150ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
a[href], button, select, summary, label[for], [role="button"] { cursor: pointer; }
section[id] { scroll-margin-top: 72px; }
::selection { background: rgba(113, 50, 245, 0.2); color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.btn:focus-visible { border-radius: var(--r-md); }

/* ============ Utilities ============ */
.ink { color: var(--ink); }
.faint { color: var(--faint); }

.fw-500 { font-weight: 500; }

.ta-r { text-align: right; }
.tnum { font-variant-numeric: tabular-nums; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ============ Brand ============ */
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }

.brand__logo { width: 30px; height: 30px; flex: none; display: block; }

.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }

/* ============ Buttons & chips ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: var(--r-md); font-weight: 500; white-space: nowrap;
  transition: background-color 150ms ease, transform var(--dur-press) var(--ease-out);
}
.btn .i { width: 16px; height: 16px; }
.btn--dark { background: var(--accent); color: #fff; }
.btn--dark:hover { background: var(--accent-dark); }

.btn--sm { padding: 9px 14px; font-size: 15px; }

.btn--lg { padding: 13px 22px; font-size: 18px; }
.btn--block { width: 100%; padding: 13px 16px; font-size: 16px; }
.btn:active { transform: scale(0.97); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--soft);
  color: #4a4a52; border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 500; white-space: nowrap;
}

.chip--green { background: var(--green-bg); color: var(--green-fg); }
.chip--accent { background: var(--accent); color: #fff; }

/* ============ Headings ============ */
.h-display {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px); line-height: 1.12; letter-spacing: -0.024em; text-wrap: balance;
}

/* Two-line headings: one line per <br> segment on wide screens */

.h-section {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3vw, 38px); line-height: 1.18; letter-spacing: -0.02em;
}

.h-section { text-wrap: balance; }
.lead { margin: 20px 0 0; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; color: var(--muted); }

/* ============ Nav ============ */
.nav { position: relative; z-index: 5; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 72px; padding: 0 clamp(16px, 2vw, 28px);
}
.nav__links { display: flex; gap: clamp(22px, 3vw, 40px); font-size: 16px; font-weight: 500; }
.nav__links a { color: var(--ink); opacity: .88; }
.nav__links a:hover { opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav--sticky {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%); transition: transform 240ms var(--ease-out);
}
.nav--sticky .nav__inner { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); height: 68px; }
.nav--sticky.is-visible { transform: translateY(0); }

.menu-toggle {
  display: none; width: 42px; height: 42px; border-radius: var(--r-md);
  border: 1px solid rgba(11,11,12,.12); background: rgba(255,255,255,.6);
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span { width: 16px; height: 1.5px; background: var(--ink); }

.mobile-menu {
  margin: 0 12px; padding: 6px 16px; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); display: flex; flex-direction: column;
}
.mobile-menu a { padding: 14px 0; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: none; }

/* ============ Hero ============ */
.hero-wrap { padding: 16px 16px 0; }
.hero {
  position: relative; border-radius: var(--r-xl); overflow: hidden;
  background: linear-gradient(180deg, #ece5ff 0%, #f3efff 42%, #f8f6ff 100%);
  box-shadow: 0 20px 50px -30px rgba(70, 30, 160, 0.35);
}
/* Spreadsheet cells fading out from the top, and a violet glow the app window rises from */
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(113, 50, 245, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(113, 50, 245, 0.09) 1px, transparent 1px);
  background-size: 132px 40px; background-position: center -1px;
  -webkit-mask-image: radial-gradient(85% 62% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(85% 62% at 50% 0%, #000 25%, transparent 78%);
}
.hero__bg::after {
  content: ''; position: absolute; left: 50%; bottom: -30%; width: 110%; height: 75%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(113, 50, 245, 0.2), rgba(113, 50, 245, 0));
}

/* App window */
.app-window {
  position: relative; z-index: 2; display: flex; overflow: hidden;
  background: #fff; border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px 16px 0 0; box-shadow: var(--shadow-window);
}
.hero__app {
  max-width: 1400px; margin: clamp(8px, 2vw, 24px) auto 0;
  width: calc(100% - clamp(24px, 10vw, 208px)); min-height: 560px;
}

.rows { margin-top: 16px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13px; font-variant-numeric: tabular-nums; }
.rows__head, .row {
  display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); gap: 12px; padding: 9px 14px;
}
.rows__head { background: var(--tint); color: var(--muted); font-weight: 500; }
.row { border-top: 1px solid var(--line); }
.row span:first-child { color: var(--muted); }
.rows__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); }

/* ============ Frame column ============ */
.frame-col {
  max-width: var(--col); margin: 0 auto;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}
.sec { padding: clamp(64px, 8vw, 112px) clamp(20px, 6vw, 80px); border-top: 1px dashed var(--line-dash); }
.sec:first-child { border-top: none; }
.sec--tint { background: var(--tint); }

.center-head { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }

/* ============ 02 Integrations / tile wall ============ */
.connect { padding-bottom: 48px; }
.connect .h-display { font-size: clamp(26px, 3vw, 36px); }
.tile-wall {
  margin: clamp(48px, 6vw, 72px) calc(-1 * clamp(20px, 6vw, 80px)) 0;
  perspective: 900px; display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  padding: 10px 0 20px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tile-row { display: flex; transform: rotateX(28deg); transform-origin: center top; }

/* Marquee: the track holds the set twice (JS clones it) and slides by exactly one set. Constant motion -> linear. */
.tile-track { display: flex; flex: none; animation: tile-marquee var(--marquee-dur, 60s) linear infinite; }

@keyframes tile-marquee { to { transform: translateX(-50%); } }
/* Pause only the row under the pointer (or being pressed); the other rows keep moving. */
@media (hover: hover) and (pointer: fine) {
  .tile-row:hover .tile-track { animation-play-state: paused; }
}
.tile-row:active .tile-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .tile-track { animation: none; }
}
.tile {
  width: clamp(80px, 9.4vw, 128px); height: clamp(56px, 6.6vw, 88px); flex: none; margin-right: 18px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #ffffff, #eeeef2); color: var(--brand, var(--ink));
  box-shadow: 0 10px 20px -12px rgba(0,0,0,.25), 0 0 0 1px var(--line);
}
.tile--solid {
  color: #fff; background: var(--brand);
  background-image: linear-gradient(160deg, rgba(255,255,255,.18), rgba(0,0,0,.14));
  box-shadow: 0 10px 20px -10px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.3);
}
.tile__logo { width: 38%; height: 50%; fill: currentColor; }

/* Definition block (Features: "Every number shows its work") */
.def { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.def__plain { margin: 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.5; }
.def__plain strong { font-weight: 600; }
.code { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 15px; line-height: 1.8; color: #3a3a41; }
.code__fn { color: var(--accent); font-weight: 600; }
.kv { display: flex; flex-direction: column; font-size: 15px; }
.kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.kv div:last-child { border-bottom: 1px solid var(--line); }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { font-weight: 500; text-align: right; }

/* ============ 03 Features: text and picture rows ============ */
.feat { display: grid; gap: clamp(56px, 7vw, 96px); }
.feat__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.feat__row--flip .feat__txt { order: 2; }
.feat__txt .lead { max-width: 30em; }
.feat__pic .use-card__art { height: 320px; }
.feat__pic--card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.feat__pic--card .def__plain { font-size: 17px; }

/* Pictures in the feature rows: a prompt above a small app mock */
.use-card__art {
  position: relative; height: 340px; border-radius: var(--r-lg); overflow: hidden;
  padding: 40px 20px 0; display: flex; flex-direction: column;
  background: linear-gradient(160deg, #ece5ff 0%, #f5f2ff 60%, #efe9ff 100%);
  box-shadow: inset 0 0 0 1px rgba(87, 65, 216, 0.08);
}
.prompt {
  position: relative; z-index: 2; align-self: flex-start; margin: 0 0 -18px 0;
  padding: 12px 16px; background: #fff; border-radius: 14px; box-shadow: 0 6px 20px -8px rgba(0,0,0,.18);
  font-size: 16px; font-weight: 500; line-height: 1.35;
}
.use-card__mock {
  flex: 1; margin: 0 -20px 0 12px; padding: 34px 20px 20px; background: #fff; border-radius: 14px 0 0 0;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.18); font-size: 13px; display: flex; flex-direction: column; gap: 12px;
}

.m-value { font-family: var(--font-display); font-weight: 600; font-size: 40px; letter-spacing: -0.04em; line-height: 1; }
.m-meta { color: var(--muted); }
.m-links { display: flex; gap: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 500; }

.m-step { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.m-step span:first-child { width: 14px; color: var(--faint); font-size: 12px; }
.m-step .chip { margin-left: auto; }
.m-step--on { background: var(--accent-tint); border-radius: 10px; border-bottom: none; padding: 10px; margin: 2px -10px; font-weight: 500; }
.m-step--wait { color: var(--faint); border-bottom: none; }
.m-step--wait span:last-child { margin-left: auto; font-size: 12px; }
.m-value { font-variant-numeric: tabular-nums; }

/* ============ 04 FAQ ============ */
.faq__list { max-width: 820px; margin: clamp(40px, 5vw, 64px) auto 0; border-bottom: 1px solid var(--line); }
.faq__item { border-top: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; border: none; background: transparent; text-align: left;
  font-size: 19px; font-weight: 500; line-height: 1.4;
}
.faq__sign {
  flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--soft);
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: #4a4a52;
}
.faq__a { padding: 0 56px 26px 0; }
.faq__a p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted); }
.placeholder { border: 1px dashed var(--faint); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; background: #fff; font-size: 15px; color: #4a4a52; }
.placeholder__label { font-size: 12px; font-weight: 600; letter-spacing: .04em; }

/* ============ 05 Final CTA ============ */
.final { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(64px, 8vw, 100px) var(--gutter) 0; }
.final__card {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(80px, 11vw, 150px) var(--gutter); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 36px;
  background:
    radial-gradient(50% 60% at 0% 100%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%),
    radial-gradient(50% 60% at 100% 100%, rgba(255,255,255,.9), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #f0ebff 0%, #e3d9ff 100%);
}
/* The glow is its own layer so hover can grow it with transform alone */
.final__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 75% at 50% 110%, #5b1ecf 0%, #7132f5 30%, rgba(150,110,255,.6) 55%, rgba(230,222,255,0) 80%);
  transform-origin: 50% 100%;
  transition: transform var(--dur-dialog) var(--ease-out);
}
.final__dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.9) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 100%, #000 10%, transparent 75%);
  mask-image: radial-gradient(70% 70% at 50% 100%, #000 10%, transparent 75%);
  opacity: .83; /* .9 × .83 ≈ the old .75 dots at rest */
  transition: opacity var(--dur-dialog) var(--ease-out), transform var(--dur-dialog) var(--ease-out);
}
/* Hover (or keyboard focus on the button): the glow rises and the dot grid brightens */
@media (hover: hover) and (pointer: fine) {
  .final__card:hover::before { transform: scale(1.08, 1.14); }
  .final__card:hover .final__dots { opacity: 1; transform: translateY(-6px); }
}
.final__card:has(.btn:focus-visible)::before { transform: scale(1.08, 1.14); }
.final__card:has(.btn:focus-visible) .final__dots { opacity: 1; transform: translateY(-6px); }
@media (prefers-reduced-motion: reduce) {
  .final__card::before { transition: none; }
  .final__card:hover::before, .final__card:has(.btn:focus-visible)::before { transform: none; }
  .final__card:hover .final__dots, .final__card:has(.btn:focus-visible) .final__dots { transform: none; }
}
.final__card .h-display, .final__card .btn { position: relative; }

/* ============ 06 Footer ============ */
.footer { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(64px, 8vw, 110px) var(--gutter) 72px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.footer__col { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.footer__col a:hover { color: var(--accent); }
.footer__head { color: var(--faint); margin-bottom: 6px; }
.footer__col--brand { align-items: flex-end; text-align: right; }

/* ============ Modal ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(11, 11, 12, 0.35); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center; padding: 20px; overflow: auto;
  opacity: 0; transition: opacity var(--dur-exit) var(--ease-out);
}
.modal-overlay.is-open { opacity: 1; transition-duration: var(--dur-pop); }
.modal {
  position: relative; margin: auto; width: 100%; max-width: 1180px; background: #fff;
  display: grid; grid-template-columns: minmax(0, 1.26fr) minmax(0, 1fr);
  border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.35);
  opacity: 0; transform: scale(0.96);
  transition: opacity var(--dur-exit) var(--ease-out), transform var(--dur-exit) var(--ease-out);
}
.is-open > .modal { opacity: 1; transform: none; transition-duration: var(--dur-dialog); }
.modal__close {
  position: absolute; top: 18px; right: 18px; z-index: 2; width: 40px; height: 40px; border-radius: 999px;
  display: grid; place-items: center; border: none; background: var(--soft); color: var(--ink);
  transition: background-color 150ms ease;
}
.modal__close .i { width: 18px; height: 18px; }

/* Left panel: promo copy over decorative art */
.modal__promo {
  position: relative; overflow: hidden; padding: 44px 44px 48px;
  background:
    linear-gradient(rgba(113, 50, 245, 0.05) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(90deg, rgba(113, 50, 245, 0.05) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(160deg, #f4f0ff 0%, #fbfaff 45%, #efe9ff 100%);
}
.modal__copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; max-width: 350px; }
.modal__copy .brand__logo { width: 26px; height: 26px; }
.modal__copy .brand__name { font-size: 21px; }
.modal__chip {
  margin-top: 52px; padding: 4px 11px; border-radius: 999px; background: var(--accent-subtle); color: var(--accent-deep);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.modal__headline {
  margin: 14px 0 0; font-family: var(--font-display); font-size: clamp(40px, 4.6vw, 58px); font-weight: 600;
  line-height: 1.02; letter-spacing: -0.045em; color: var(--ink);
}
.modal__headline span { display: block; color: var(--accent); }
.modal__lede { margin: 20px 0 0; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); max-width: 300px; }
.modal__perks { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.modal__perks li { display: flex; align-items: center; gap: 20px; }
.modal__perks b { display: block; font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.modal__perks li > span:last-child { font-size: 14px; color: var(--ink-2); }
.modal__perk-icon {
  width: 56px; height: 56px; flex: none; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--accent-tint); color: var(--accent);
}
.modal__perk-icon .i { width: 24px; height: 24px; fill: currentColor; fill-opacity: 0.2; }

.modal__art { position: absolute; inset: 0; pointer-events: none; }
.modal__blob { position: absolute; border-radius: 999px; }
.modal__blob--1 {
  width: 360px; height: 520px; right: -140px; top: -20px; border-radius: 180px 180px 0 0;
  background: linear-gradient(180deg, rgba(133, 91, 251, 0.55), rgba(133, 91, 251, 0.12));
}
.modal__blob--2 { width: 190px; height: 190px; right: -40px; top: 90px; background: #f7f4ff; }
.modal__blob--3 {
  width: 320px; height: 320px; left: 42%; bottom: -200px;
  background: linear-gradient(180deg, rgba(133, 91, 251, 0.4), rgba(133, 91, 251, 0.15));
}
.modal__plate {
  position: absolute; right: -24px; top: 300px; width: 170px; height: 250px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(133, 91, 251, 0.45), rgba(133, 91, 251, 0.18));
  transform: rotate(4deg);
}
.modal__float {
  position: absolute; right: 26px; top: 336px; z-index: 1; width: 170px; padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.92); border-radius: var(--r-md); box-shadow: var(--shadow-window);
  transform: rotate(-8deg);
}
.modal__float .i { width: 20px; height: 20px; color: var(--accent); fill: var(--accent); stroke-width: 1.5; margin-top: 4px; }
.modal__float b { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.2; color: var(--ink); }
.modal__float i { display: block; height: 4px; margin-top: 7px; border-radius: 4px; background: var(--line); }
.modal__float i + i { width: 70%; margin-top: 5px; }
.modal__device {
  position: absolute; left: 63%; top: calc(100% - 270px); width: 400px; height: 320px;
  border: 10px solid var(--ink-2); border-radius: 22px; overflow: hidden; background: #fff;
  box-shadow: var(--shadow-window); transform: rotate(14deg) skewX(-6deg); transform-origin: top left;
}

/* Right panel: form */
.modal__main { position: relative; padding: 52px 40px 40px; display: flex; flex-direction: column; justify-content: center; }
.modal__form { display: flex; flex-direction: column; gap: 20px; }
.modal__form > div:first-child { margin-bottom: 4px; }
.modal__title { margin: 0; font-family: var(--font-display); font-size: 34px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.15; }
.modal__sub { margin: 8px 0 0; font-size: 15.5px; color: var(--ink-2); }
.modal__sent { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 8px 0; }
.field { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.field__box { position: relative; display: block; }
.field__box > .i { position: absolute; left: 17px; top: 50%; width: 19px; height: 19px; margin-top: -9.5px; color: var(--muted); stroke-width: 1.6; pointer-events: none; }
.field__box--area > .i { top: 17px; margin-top: 0; }
.field input, .field textarea {
  display: block; width: 100%; border: 1px solid transparent; background: var(--soft); border-radius: var(--r-sm);
  padding: 14px 14px 14px 50px; font: inherit; font-size: 15px; color: var(--ink); font-weight: 400; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: 1; }
.field input:focus, .field textarea:focus { background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.modal__submit { margin-top: 4px; min-height: 60px; font-size: 17px; gap: 14px; }
.modal__submit .i { width: 20px; height: 20px; transition: transform var(--dur-pop) var(--ease-out); }

@media (hover: hover) and (pointer: fine) {
  .modal__close:hover { background: #e9e9ec; }
  .modal__submit:hover .i { transform: translateX(3px); }
}

@media (max-width: 1100px) {
  .modal__device { left: 74%; }
  .modal__float { right: 10px; }
  .modal .field-row { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .modal { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .modal__promo { padding: 28px 28px 26px; }
  .modal__art, .modal__perks { display: none; }
  .modal__copy { max-width: none; }
  .modal__chip { margin-top: 24px; }
  .modal__headline { font-size: clamp(34px, 9vw, 44px); }
  .modal__headline span { display: inline; }
  .modal__lede { max-width: 420px; font-size: 15px; margin-top: 12px; }
  .modal__main { padding: 28px 28px 32px; }
  .modal__close { background: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .modal__submit .i { transition: none; }
}
@media (max-width: 480px) {
  .modal-overlay { padding: 16px; }
  .modal__promo, .modal__main { padding-left: 20px; padding-right: 20px; }
  .modal__title { font-size: 28px; }
}

/* ============ Responsive ============ */

@media (max-width: 860px) {
  .feat__row { grid-template-columns: minmax(0, 1fr); }
  .feat__row--flip .feat__txt { order: 0; }
}

@media (max-width: 767px) {
  .nav__links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav--sticky .btn { display: none; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--brand { align-items: flex-start; text-align: left; }
}

@media (max-width: 640px) {
  .hero-wrap { padding: 8px 8px 0; }
  .hero__app { width: calc(100% - 24px); min-height: 0; }
  .frame-col { border-left: none; border-right: none; }
  .col-store { display: none; }
  .rows__head, .row { grid-template-columns: minmax(0,.9fr) minmax(0,1fr) minmax(0,1fr); }
  .row .col-store { display: none; }
  .tile-row { gap: 10px; }
  .tile { border-radius: 14px; }
  .faq__a { padding-right: 0; }

  .feat__pic .use-card__art { height: 300px; }
  .feat__pic--card { padding: 20px; }
}

/* ============ Legal pages (privacy, terms) ============ */
.legal-nav { border-bottom: 1px solid var(--line); }
.legal-nav .nav__inner { max-width: calc(var(--col) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.legal-back { font-size: 15px; font-weight: 500; color: var(--muted); }
.legal-back:hover { color: var(--accent); }
.legal { max-width: 720px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(24px, 4vw, 48px); font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.legal h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(36px, 5vw, 52px); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
.legal__date { margin: 12px 0 36px; font-size: 15px; color: var(--muted); }
.legal h2 { margin: 44px 0 10px; font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.015em; color: var(--ink); }
.legal h3 { margin: 22px 0 6px; font-size: 17px; font-weight: 600; color: var(--ink); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-page .footer { border-top: 1px solid var(--line); }
