/* The public page. It is built from the application's own pieces (tokens, buttons, cards, badges,
   rings, the page-head pill, the segmented control, calendar bars) and adds only the page's layout
   and its motion. No library: motion is CSS, driven by a few classes and variables from landing.js. */

html { scroll-behavior: smooth; scroll-padding-top: 96px; overflow-x: clip; }
html, body.landing-page { height: auto; }
body.landing-page { overflow-x: clip; overflow-y: visible; font-size: var(--fs-md); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.landing-page {
  --land-max: 1280px;
  --land-gutter: clamp(16px, 4vw, 48px);
  --land-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --land-display: clamp(48px, 7.4vw, 124px);
  --land-title: clamp(36px, 4.6vw, 72px);
}

.skip { position: absolute; left: var(--space-5); top: -60px; z-index: 50; padding: var(--space-3) var(--space-5); border-radius: var(--pill); background: var(--midnight); color: var(--ink-inverse); text-decoration: none; }
.skip:focus { top: var(--space-5); }

.btn.lg { height: 52px; padding: 0 var(--space-6); font-size: var(--fs-md); }
.btn.light { background: var(--bone); color: var(--midnight); border-color: transparent; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5); }
.btn.light:hover { background: var(--surface); }
a.btn { text-decoration: none; }

.display { font-size: var(--land-display); line-height: 0.87; letter-spacing: -0.052em; font-weight: 600; text-wrap: balance; }
.section-title { font-size: var(--land-title); line-height: 0.92; letter-spacing: -0.045em; font-weight: 600; text-wrap: balance; max-width: 16ch; }

/* ---------- The top bar: the application's Midnight pill, as wide as what it holds ---------- */
/* One inset all round: the buttons sit 8px from every edge, the wordmark the same 8px plus the
   buttons' own inner padding, so nothing touches the rim and no empty run of Midnight is left. */
.land-top { position: fixed; inset: var(--space-4) 0 auto; z-index: 40; display: flex; justify-content: center; padding: 0 var(--land-gutter); pointer-events: none; }
.land-bar {
  --bar-inset: var(--space-3);
  pointer-events: auto; display: flex; align-items: center; gap: var(--space-4); width: max-content; max-width: 100%;
  padding: var(--bar-inset); border-radius: var(--pill);
  box-shadow: var(--shadow-ink), 0 0 0 1px var(--midnight-line);
  transition: transform 500ms var(--land-ease), box-shadow var(--med);
}
.land-top.hidden .land-bar { transform: translateY(calc(-100% - 24px)); }
.land-brand { display: inline-flex; align-items: center; flex: none; height: 40px; padding: 0 var(--space-4) 0 var(--space-5); border-radius: var(--pill); }
.land-brand img { height: 20px; width: auto; display: block; }
.land-sections button { height: 32px; }
.land-lang button { height: 32px; padding: 0 var(--space-3); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.06em; }
.land-bar .btn { height: 40px; }
.land-bar .land-signin { padding: 0 var(--space-4); }

/* ---------- Hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: var(--space-7);
  min-height: 100svh; max-width: var(--land-max); margin: 0 auto; padding: 132px var(--land-gutter) var(--space-7);
}
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: var(--space-5); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: var(--space-3); }
.hero-copy .display { margin: var(--space-2) 0 var(--space-3); max-width: 11ch; }
.hero-lead { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; max-width: 26ch; }
.hero-body { color: var(--muted); max-width: 44ch; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-4); }

/* A living ground: the calendar's grid, drifting slowly under a soft mask. */
.hero-grid-bg {
  position: absolute; inset: 0 -20vw; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 70% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 70% 50%, #000 20%, transparent 75%);
  animation: grid-drift 40s linear infinite;
}
@keyframes grid-drift { to { background-position: 64px 64px, 64px 64px; } }

/* The product, in pieces: six of the application's own components around one another. */
.hero-stage { position: relative; z-index: 1; height: 620px; }
.hero-stage > * { position: absolute; }
.stage-plan { width: min(300px, 50%); right: 0; top: 0; z-index: 1; }
.stage-today { width: min(350px, 58%); top: 96px; left: 0; z-index: 3; }
.stage-today .progress-aside { padding-top: var(--space-5); }
.stage-list { padding: 0 var(--pad) var(--space-3); }
.stage-list .grow, .day-piece .grow { display: flex; flex-direction: column; min-width: 0; gap: var(--space-0); }
.stage-list .muted, .day-piece .muted { font-size: var(--fs-sm); }
.stage-stat { width: 196px; right: 2%; top: 226px; z-index: 4; }
.stage-ai { width: 272px; right: 0; top: 404px; z-index: 2; display: flex; flex-direction: column; gap: var(--space-3); }
.stage-ai strong { font-size: var(--fs-base); line-height: 1.35; font-weight: 500; }
.stage-duty { width: 300px; left: 8%; bottom: 48px; z-index: 4; display: flex; flex-direction: column; gap: var(--space-3); }
.stage-door { right: 6%; bottom: 0; z-index: 5; display: inline-flex; align-items: center; gap: var(--space-3); height: 44px; padding: 0 var(--space-5) 0 var(--space-2); cursor: default; box-shadow: var(--bevel), var(--shadow-raised); }

.stage-mark { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--midnight); color: var(--ink-inverse); }
.stage-mark.ok { background: var(--action-green); color: var(--on-action); }
.stage-mark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* The calendar strip: seven days, each stay a bar in its channel's colour. */
.mini-plan { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-2) 0; background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), var(--line) calc(100% / 7 - 1px) calc(100% / 7)); }
.mini-row { position: relative; height: 28px; }
.plan-bar.mini { left: calc(var(--from) / 7 * 100%); width: calc(var(--len) / 7 * 100% - 4px); padding: 0 var(--space-3); cursor: default; }

/* Entrance, then a slow breath; each piece on its own beat. */
.float { opacity: 0; transform: translateY(28px) scale(0.98); transition: opacity 900ms var(--land-ease), transform 1100ms var(--land-ease); transition-delay: calc(300ms + var(--d) * 110ms); }
.is-in .float { opacity: 1; transform: none; }
.is-in .float.breathe { animation: breathe 7s ease-in-out infinite; animation-delay: calc(var(--d) * -1.3s); }
@keyframes breathe { 50% { translate: 0 -8px; } }

/* ---------- Words that rise from a mask ---------- */
.split .w { display: inline-block; overflow: clip; overflow-clip-margin: 0.08em; padding-bottom: 0.1em; margin-bottom: -0.1em; vertical-align: top; }
.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1000ms var(--land-ease); transition-delay: calc(var(--i) * 45ms); }
.split.in .w > span { transform: none; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--land-ease), transform 900ms var(--land-ease); transition-delay: var(--delay, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; background: var(--midnight); color: var(--ink-inverse); padding: var(--space-5) 0; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; flex: none; margin: 0; padding: 0; list-style: none; }
.marquee-list li { display: inline-flex; align-items: center; gap: var(--space-6); padding-right: var(--space-6); font-family: var(--mono); font-size: var(--fs-sm); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.marquee-list li::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-inverse-faint); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto: lit word by word with the scroll ---------- */
.manifesto { max-width: var(--land-max); margin: 0 auto; padding: clamp(96px, 16vw, 200px) var(--land-gutter); display: flex; flex-direction: column; gap: var(--space-6); }
.manifesto-text { font-size: clamp(28px, 3.6vw, 56px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 600; max-width: 28ch; }
.scrub-words .sw { color: var(--ink); opacity: 0.14; transition: opacity 260ms linear; }
.scrub-words .sw.lit { opacity: 1; }

/* ---------- The day: the page holds still while the hours pass ---------- */
.day { position: relative; height: 520vh; background: var(--surface-sunken); border-block: 1px solid var(--line); }
.day-sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); padding: 96px 0 var(--space-7); }
.day-head { width: 100%; max-width: var(--land-max); margin: 0 auto; padding: 0 var(--land-gutter); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: var(--space-4) var(--space-7); }
.day-head .eyebrow { grid-column: 1 / -1; }
.day-clock { display: flex; align-items: center; gap: var(--space-5); font-family: var(--mono); }
.day-hour { font-size: var(--fs-3xl); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.day-meter { width: 180px; height: 6px; border-radius: var(--pill); background: var(--line); overflow: hidden; }
.day-meter > span { display: block; height: 100%; width: calc(var(--day, 0) * 100%); background: var(--midnight); border-radius: inherit; }
.day-track { position: relative; display: flex; gap: var(--space-6); width: max-content; transform: translate3d(var(--x, 0px), 0, 0); will-change: transform; }
.day-panel {
  flex: none; width: min(860px, 78vw); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); align-items: center; gap: var(--space-7);
  padding: clamp(24px, 3vw, 40px); border-radius: calc(var(--radius) + 10px); background: var(--bg); border: 1px solid var(--line);
  transition: background var(--med), box-shadow 600ms var(--land-ease), border-color var(--med);
}
/* The hour in view is the raised pane; the others wait on Bone. Never paled: their badges keep their colour. */
.day-panel.on { background: var(--surface); border-color: transparent; box-shadow: var(--bevel), var(--shadow-sheet); }
.day-panel:not(.on) .day-copy h3, .day-panel:not(.on) .day-copy p { color: var(--muted); }
.day-copy { display: flex; flex-direction: column; gap: var(--space-4); }
.day-time { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); letter-spacing: 0.06em; }
.day-copy h3 { font-size: clamp(30px, 3.4vw, 52px); line-height: 0.95; letter-spacing: -0.045em; }
.day-copy p { color: var(--ink-2); line-height: 1.5; max-width: 36ch; }
.day-piece { transform: translateY(16px) scale(0.98); transition: transform 700ms var(--land-ease); }
.day-panel.on .day-piece { transform: none; }
.day-ring { gap: var(--space-6); align-items: center; }
.day-note { margin-top: var(--space-3); font-size: var(--fs-sm); }
/* The urgent request turns done as its hour arrives. */
.badge.swap { position: relative; padding: 0; border: 0; background: none; box-shadow: none; display: inline-grid; justify-items: end; }
.badge.swap > .badge { grid-area: 1 / 1; transition: opacity 400ms var(--land-ease), transform 400ms var(--land-ease); }
.badge.swap > .badge.green { opacity: 0; transform: scale(0.8); }
.day-panel.done .badge.swap > .badge.red { opacity: 0; transform: scale(0.8); }
.day-panel.done .badge.swap > .badge.green { opacity: 1; transform: none; transition-delay: 150ms; }

/* ---------- Figures ---------- */

/* ---------- Bento: guests and duties ---------- */
.bento-wrap { max-width: var(--land-max); margin: 0 auto; padding: 0 var(--land-gutter) clamp(96px, 14vw, 180px); display: flex; flex-direction: column; gap: var(--space-5); }
.bento-wrap .section-title { max-width: 18ch; margin-bottom: var(--space-6); }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.bento-card { display: flex; flex-direction: column; gap: var(--space-4); min-height: 220px; padding: var(--space-6); transition: transform 600ms var(--land-ease), box-shadow var(--med), opacity 800ms var(--land-ease); }
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--bevel), var(--shadow-sheet); }
.bento-card h3 { font-size: var(--fs-xl); line-height: 1.12; letter-spacing: -0.03em; font-weight: 600; }
.bento-card.wide { grid-column: span 2; }
.bento-card.full { grid-column: 1 / -1; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5) var(--space-7); }
.bento-card.full .eyebrow { flex-basis: 100%; }
.bento-card.full .bento-channels { margin-top: 0; }
.bento-card.dark { background: var(--midnight); color: var(--ink-inverse); border-color: transparent; box-shadow: var(--shadow-ink); }
.bento-card.dark .eyebrow { color: var(--ink-inverse-muted); }
.bento-card > .badge { align-self: flex-start; margin-top: auto; }
.bento-figure { display: flex; align-items: center; gap: var(--space-5); margin-top: auto; }
.bento-channels { margin-top: auto; }
.chip.ch { background: var(--c); color: var(--ci); border-color: transparent; box-shadow: none; cursor: default; display: inline-flex; align-items: center; }

/* ---------- Native ---------- */
.native { max-width: var(--land-max); margin: 0 auto; padding: 0 var(--land-gutter) clamp(96px, 14vw, 180px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-7); }
.native-copy { display: flex; flex-direction: column; gap: var(--space-5); }
.native-body { color: var(--ink-2); line-height: 1.55; max-width: 46ch; }
.native-orbit { container-type: inline-size; position: relative; aspect-ratio: 1; width: min(580px, 90%); margin: 23px; justify-self: center; border-radius: 50%; border: 1px dashed var(--line-strong); }
.native-orbit::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; border: 1px solid var(--line); }
.native-orbit::after { content: ""; position: absolute; inset: 29%; border-radius: 50%; border: 1px solid var(--line); }
.native-symbol { z-index: 1; }
.native-symbol { position: absolute; inset: 0; margin: auto; width: 18%; height: auto; }
/* Two rings of the brands Strategyco talks to: the channels inside, what can be connected outside.
   Each ring turns; each mark turns back, so the logos stay upright. */
.orbit-ring { position: absolute; inset: 0; animation: spin var(--dur, 120s) linear infinite; }
.orbit-ring.outer { --r: 50cqi; --dur: 140s; }
.orbit-ring.middle { --r: 36cqi; --dur: 110s; animation-direction: reverse; }
.orbit-ring.inner { --r: 21cqi; --dur: 80s; }
.orbit-mark {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px;
  transform: rotate(calc(var(--i) / var(--n) * 1turn)) translateX(var(--r)) rotate(calc(var(--i) / var(--n) * -1turn));
}
.orbit-mark > * {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: var(--surface); box-shadow: var(--bevel), var(--shadow-raised); font-family: var(--mono); font-size: var(--fs-2xs); color: var(--ink-2);
  animation: spin var(--dur-mark, 140s) linear infinite reverse;
}
.orbit-ring.middle .orbit-mark { width: 34px; height: 34px; margin: -17px 0 0 -17px; }
.orbit-ring.middle .orbit-mark > * { animation-duration: 110s; animation-direction: normal; }
.orbit-ring.inner .orbit-mark { width: 42px; height: 42px; margin: -21px 0 0 -21px; }
.orbit-ring.inner .orbit-mark > * { animation-duration: 80s; }
.orbit-mark.has-logo { box-shadow: none; }
.orbit-mark .brand-img { padding: 0; }
@keyframes spin { to { rotate: 1turn; } }

/* ---------- Closing and footer, on Midnight ---------- */
.landing-page { --land-side: max(var(--land-gutter), calc((100vw - var(--land-max)) / 2 + var(--land-gutter))); }
.closing { background: var(--midnight); color: var(--ink-inverse); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: var(--space-7); padding: clamp(120px, 18vw, 220px) var(--land-side); }
.closing-copy { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.closing .eyebrow { color: var(--ink-inverse-muted); }
.closing .display { max-width: 13ch; }
.closing-body { margin-top: var(--space-2); color: var(--ink-inverse-muted); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.4; max-width: 40ch; }
.closing-mail { color: var(--ink-inverse); font-family: var(--mono); font-size: var(--fs-sm); letter-spacing: 0.04em; text-decoration: none; border-bottom: 1px solid var(--midnight-line); padding-bottom: var(--space-1); }
.closing-mail:hover { border-color: var(--ink-inverse); }
.closing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6); margin-top: var(--space-4); }

.land-foot { position: relative; background: var(--bg); color: var(--muted); padding: clamp(72px, 9vw, 112px) var(--land-side) 0; font-size: var(--fs-sm); overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-7); padding-bottom: clamp(56px, 7vw, 88px); }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-5); }
.foot-brand img { height: clamp(34px, 3vw, 44px); width: auto; }
.foot-brand p { color: var(--ink-2); font-size: var(--fs-md); line-height: 1.5; max-width: 32ch; }
.foot-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); }
.foot-col { display: flex; flex-direction: column; gap: var(--space-4); }
.foot-col h3 { margin-bottom: var(--space-2); color: var(--muted); font-family: var(--mono); font-size: var(--fs-xs); font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.foot-col a { color: var(--ink); text-decoration: none; font-size: var(--fs-md); width: fit-content; transition: opacity var(--med); }
.foot-col a:hover { opacity: 0.6; }
/* One line, three places: left, middle, right, on the same edges as the columns. */
.foot-bottom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-5); padding: var(--space-6) 0; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm); }
.foot-bottom > :last-child { justify-self: end; }
.foot-sign { color: var(--ink-2); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; }
/* The name, faint and cut by the page's edge, as the last thing on it. */
.foot-mark { display: block; width: 100%; height: auto; margin: var(--space-5) 0 -8%; opacity: 0.07; pointer-events: none; user-select: none; }
@media (max-width: 900px) {
  .foot-top { grid-template-columns: 1fr; }
  .foot-bottom { grid-template-columns: 1fr; justify-items: start; }
  .foot-bottom > :last-child { justify-self: start; }
}

@media (max-width: 1080px) {
  .land-sections { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; }
  .hero-stage { height: 560px; max-width: 560px; width: 100%; justify-self: center; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .land-lang, .land-signin { display: none; }
  .land-top { justify-content: stretch; }
  .land-bar { width: 100%; justify-content: space-between; }
  .hero-stage { height: 500px; min-height: 0; }
  .stage-plan { width: 70%; }
  .stage-today { width: 88%; top: 64px; }
  .stage-stat { width: 150px; top: auto; bottom: 96px; right: 0; }
  .stage-ai { display: none; }
  .stage-duty { width: 230px; left: 0; bottom: 52px; }
  .stage-door { right: 0; bottom: 0; }
  .stage-door span:last-child { max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* The day reads top to bottom on the phone: no pinning. */
  .day { height: auto; }
  .day-sticky { position: static; height: auto; overflow: visible; padding: clamp(72px, 18vw, 120px) 0; }
  .day-head { grid-template-columns: 1fr; }
  .day-clock { display: none; }
  .day-track { flex-direction: column; width: auto; transform: none; padding: 0 var(--land-gutter); }
  .day-panel { width: 100%; grid-template-columns: 1fr; gap: var(--space-5); opacity: 1; }
  .day-piece { transform: none; }

  .bento { grid-template-columns: 1fr; }
  .bento-card.wide, .bento-card.full { grid-column: auto; }
  .native { grid-template-columns: 1fr; }
  .native-orbit { width: min(340px, 80vw); justify-self: center; }
  .orbit-mark { width: 36px; height: 36px; margin: -18px 0 0 -18px; }
  .orbit-ring.middle .orbit-mark { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
  .orbit-ring.inner .orbit-mark { width: 30px; height: 30px; margin: -15px 0 0 -15px; }

}

/* Less motion asked for: everything in place, nothing moving. */
@media (prefers-reduced-motion: reduce) {
  .float, .reveal, .split .w > span, .day-piece { opacity: 1; transform: none; }
  .scrub-words .sw { opacity: 1; }
  .day { height: auto; }
  .day-sticky { position: static; height: auto; overflow: visible; }
  .day-track { flex-wrap: wrap; width: auto; transform: none; padding: 0 var(--land-gutter); }
  .day-panel { opacity: 1; }
  .marquee-track { flex-wrap: wrap; width: auto; }
  .marquee-list + .marquee-list { display: none; }
}

/* ---------- Brand marks: every company named on the page wears its logo (Brandfetch, as in the app) ---------- */
.land-mark {
  flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; overflow: hidden;
  background: var(--slate-tint); color: var(--ink-2); font-family: var(--mono); font-size: 8px; font-weight: 500; letter-spacing: 0.02em;
}
.land-mark.has-logo { background: var(--surface) !important; }
.row > .land-mark + strong { flex: 1; min-width: 0; }
.grow:has(> .land-mark) { flex-direction: row !important; align-items: center; gap: var(--space-3) !important; }
.chip .land-mark { margin-left: calc(var(--space-3) * -1); margin-right: var(--space-2); }
.bento-brand { display: inline-flex; align-items: center; gap: var(--space-3); }
.bento-card.dark .land-mark.has-logo { box-shadow: 0 0 0 1px var(--midnight-line); }
.plan-code.is-direct svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bento-card > .eyebrow:first-child, .bento-brand { min-height: 22px; display: inline-flex; align-items: center; }

.land-mark.plain { background: var(--midnight); color: var(--ink-inverse); }
.land-mark.plain svg { width: 12px; height: 12px; }

/* More than a hundred connections: the figure, then the logos running past. */
.links-wrap { max-width: var(--land-max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--land-gutter); }
.links { padding-top: var(--space-6); border-top: 1px solid var(--ink); display: flex; flex-direction: column; gap: var(--space-7); }
.links-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: end; gap: var(--space-7); }
.links-n { margin: 0; font-size: clamp(72px, 10vw, 156px); line-height: 0.87; letter-spacing: -0.06em; font-weight: 600; font-variant-numeric: tabular-nums; }
.links-copy { display: flex; flex-direction: column; gap: var(--space-3); max-width: 52ch; }
.links-copy h2 { font-size: var(--fs-xl); letter-spacing: -0.02em; }
.links-copy p { color: var(--muted); line-height: 1.45; font-size: var(--fs-md); }
.links-band { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.links-track { display: flex; gap: var(--space-5); width: max-content; animation: marquee 90s linear infinite; }
.links-band:hover .links-track { animation-play-state: paused; }
.links-mark { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--surface); box-shadow: var(--bevel), var(--shadow-raised); font-family: var(--mono); font-size: var(--fs-2xs); color: var(--ink-2); }
.links-mark.has-logo { box-shadow: none; }
.links-mark .brand-img { padding: 0; }
@media (max-width: 760px) {
  .links-head { grid-template-columns: 1fr; gap: var(--space-4); }
  .links-mark { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .links-track { flex-wrap: wrap; width: auto; animation: none; }
  .links-band { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- A sparkle: the mark of what the system does on its own ---------- */
.ai-dot { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--midnight); color: var(--ink-inverse); }
.ai-dot svg { width: 12px; height: 12px; }
.ai-tag { display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- Functions: an endless row of cards, the one in the middle raised ---------- */
.deck-wrap { padding: clamp(96px, 14vw, 180px) 0; overflow: hidden; }
.deck-head { max-width: var(--land-max); margin: 0 auto clamp(40px, 6vw, 72px); padding: 0 var(--land-gutter); display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-6); }
.deck-head .section-title { margin-top: var(--space-5); }
.deck-controls { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.deck-count { font-family: var(--mono); font-size: var(--fs-sm); color: var(--muted); letter-spacing: 0.06em; margin-right: var(--space-4); font-variant-numeric: tabular-nums; }
.deck { --card-w: clamp(260px, 26vw, 340px); position: relative; height: calc(var(--card-w) * 1.12 + 80px); touch-action: pan-y; cursor: grab; user-select: none; }
.deck.dragging { cursor: grabbing; }
.deck-track { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
/* Each card is placed by landing.js from its distance to the middle (--d): beside it smaller,
   lower and turned a little, like a hand of cards; far ones fade out. */
.deck-card {
  position: absolute; left: 50%; top: 40px; width: var(--card-w); height: calc(var(--card-w) * 1.12); margin-left: calc(var(--card-w) / -2);
  display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-6);
  transform: translateX(calc(var(--d, 0) * (var(--card-w) * 0.9))) translateY(calc(var(--ad, 0) * var(--ad, 0) * 10px)) rotate(calc(var(--d, 0) * 3deg)) scale(calc(1 - var(--ad, 0) * 0.07));
  opacity: calc(1 - max(0, var(--ad, 0) - 2) * 0.9);
  z-index: calc(20 - var(--rank, 0));
  transition: background var(--med), color var(--med), box-shadow var(--med);
  will-change: transform;
}
.deck-card.on { background: var(--midnight); color: var(--ink-inverse); border-color: transparent; box-shadow: var(--shadow-drawer); }
/* Inside each card, the information divided as the application divides it: the figure, the rows, the sentence. */
.dc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-4); padding-bottom: var(--space-5); border-bottom: 1px solid var(--line); }
.dc-lead { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.dc-label { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dc-fig { margin-top: var(--space-2); font-size: clamp(30px, 2.8vw, 40px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dc-cap { color: var(--muted); font-size: var(--fs-sm); }
.dc-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dc-rows li { display: flex; align-items: center; gap: var(--space-3); min-height: 38px; padding: var(--space-2) 0; border-bottom: 1px solid var(--line); font-size: var(--fs-base); }
.dc-rows li:last-child { border-bottom: 0; }
.dc-l { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dc-r { flex: none; font-variant-numeric: tabular-nums; font-weight: 500; }
.dc-dot { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--pill); background: var(--midnight); color: var(--ink-inverse); font-size: var(--fs-2xs); }
.deck-card p { margin-top: auto; color: var(--muted); line-height: 1.45; font-size: var(--fs-sm); }
.deck-card.on .dc-top, .deck-card.on .dc-rows li { border-color: var(--midnight-line); }
.deck-card.on .dc-label, .deck-card.on .dc-cap { color: var(--ink-inverse-muted); }
.deck-card.on .dc-dot { background: var(--ink-inverse); color: var(--midnight); }
.deck-card.on p { color: var(--ink-inverse-muted); }
.deck-icon { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--midnight); color: var(--ink-inverse); transition: background var(--med), color var(--med); }
.deck-card.on .deck-icon { background: var(--ink-inverse); color: var(--midnight); }
.deck-icon svg { width: 19px; height: 19px; }

@media (max-width: 1080px) {
}
@media (max-width: 760px) {
  .deck { --card-w: min(72vw, 300px); }
  .deck-head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .deck-card { transition: none; }
}

/* ---------- The burger: the sections on a narrow screen ---------- */
.land-burger { display: none; flex: none; position: relative; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--midnight-raised); cursor: pointer; }
.land-burger span { position: absolute; left: 12px; right: 12px; height: 1.6px; border-radius: 2px; background: var(--ink-inverse); transition: transform 300ms var(--land-ease), top 300ms var(--land-ease); }
.land-burger span:first-child { top: 16px; }
.land-burger span:last-child { top: 23px; }
.land-burger[aria-expanded="true"] span:first-child { top: 19.5px; transform: rotate(45deg); }
.land-burger[aria-expanded="true"] span:last-child { top: 19.5px; transform: rotate(-45deg); }
.land-menu {
  pointer-events: auto; position: absolute; top: calc(100% + var(--space-3)); left: var(--land-gutter); right: var(--land-gutter);
  display: flex; flex-direction: column; padding: var(--space-3); border-radius: calc(var(--radius) + 8px);
  background: var(--midnight); box-shadow: var(--shadow-drawer), 0 0 0 1px var(--midnight-line);
  transform-origin: top center; animation: menu-in 320ms var(--land-ease);
}
.land-menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } }
.land-menu > button { text-align: left; padding: var(--space-4) var(--space-5); border: 0; border-radius: var(--radius); background: none; color: var(--ink-inverse); font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.01em; cursor: pointer; }
.land-menu > button:hover { background: var(--midnight-raised); }
.land-menu-end { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-3); padding: var(--space-4) var(--space-3) var(--space-2); border-top: 1px solid var(--midnight-line); }
.land-menu .segmented { background: var(--midnight-sunken); border-color: var(--midnight-line); box-shadow: none; }
.land-menu .segmented button { height: 32px; padding: 0 var(--space-3); color: var(--ink-inverse-muted); font-family: var(--mono); font-size: var(--fs-xs); }
.land-menu .segmented button[aria-pressed="true"] { background: var(--ink-inverse); color: var(--midnight); box-shadow: none; }
.land-menu .btn.ghost { color: var(--ink-inverse); }
@media (max-width: 1080px) {
  .land-burger { display: inline-block; }
  .land-brand { padding-left: var(--space-3); }
}
@media (max-width: 420px) {
  .land-demo { padding: 0 var(--space-4); }
}

/* ---------- AI native: one thing at a time, and how far it goes ---------- */
.ai { max-width: var(--land-max); margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--land-gutter); display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.ai-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: var(--space-5) var(--space-7); }
.ai-head .eyebrow { grid-column: 1 / -1; }
.ai-eyebrow { display: inline-flex; align-items: center; gap: var(--space-3); }
.ai-head .section-title { max-width: 14ch; }
.ai-body { color: var(--ink-2); font-size: var(--fs-md); line-height: 1.55; max-width: 44ch; }
.ai-show { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-7); align-items: stretch; }
.ai-caps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.ai-cap { position: relative; width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-5); padding: var(--space-6) 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; color: var(--muted); cursor: pointer; transition: color var(--med); }
.ai-cap-n { font-family: var(--mono); font-size: var(--fs-sm); letter-spacing: 0.06em; padding-top: 4px; }
.ai-cap-words { display: flex; flex-direction: column; gap: var(--space-2); }
.ai-cap strong { font-size: var(--fs-xl); letter-spacing: -0.025em; font-weight: 600; }
.ai-cap-words > span { max-height: 0; overflow: hidden; opacity: 0; line-height: 1.5; color: var(--ink-2); transition: max-height 500ms var(--land-ease), opacity 400ms var(--land-ease); }
.ai-cap[aria-selected="true"] { color: var(--ink); }
.ai-cap[aria-selected="true"] .ai-cap-words > span { max-height: 6em; opacity: 1; }
/* The chosen one fills its line while it is shown, then hands over to the next. */
.ai-cap-bar { position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--midnight); transform: scaleX(0); transform-origin: left; }
.ai-cap[aria-selected="true"] .ai-cap-bar { animation: cap-fill var(--cap-ms, 5200ms) linear forwards; }
.ai-show.held .ai-cap[aria-selected="true"] .ai-cap-bar { animation-play-state: paused; }
@keyframes cap-fill { to { transform: scaleX(1); } }

.ai-stage { position: relative; display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); border-radius: calc(var(--radius) + 10px); background: var(--surface-sunken); border: 1px solid var(--line); }
.ai-mode { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.ai-mode-label { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.ai-panes { position: relative; flex: 1; display: grid; min-height: 300px; }
.ai-pane { grid-area: 1 / 1; display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); opacity: 0; transform: translateY(14px) scale(0.985); pointer-events: none; transition: opacity 500ms var(--land-ease), transform 600ms var(--land-ease); }
.ai-pane.on { opacity: 1; transform: none; pointer-events: auto; }
.ai-pane-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.ai-pane .list-item .grow { display: flex; flex-direction: column; min-width: 0; gap: var(--space-0); }
.ai-pane .muted { font-size: var(--fs-sm); }
/* The state of the work follows the chosen mode: done, to approve, or waiting. */
.ai-state { display: inline-flex; align-items: center; height: 24px; padding: 0 var(--space-4); border-radius: var(--pill); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; transition: background var(--med), color var(--med); }
.ai-panes[data-mode-now="auto"] .ai-state { background: var(--action-green); color: var(--on-action); }
.ai-panes[data-mode-now="ask"] .ai-state { background: var(--action-orange); color: var(--on-action); }
.ai-panes[data-mode-now="wait"] .ai-state { background: var(--slate-tint); color: var(--ink-2); }
.ai-panes .ai-state::after { content: attr(data-auto); }
.ai-panes[data-mode-now="ask"] .ai-state::after { content: attr(data-ask); }
.ai-panes[data-mode-now="wait"] .ai-state::after { content: attr(data-wait); }
.ai-thread { display: flex; flex-direction: column; gap: var(--space-4); }
.bubble { max-width: 86%; margin: 0; padding: var(--space-4) var(--space-5); border-radius: 18px; line-height: 1.45; font-size: var(--fs-base); }
.bubble.guest { align-self: flex-start; background: var(--surface-sunken); border-bottom-left-radius: 6px; }
.bubble.own { align-self: flex-end; display: flex; gap: var(--space-3); align-items: flex-start; background: var(--midnight); color: var(--ink-inverse); border-bottom-right-radius: 6px; transition: opacity var(--med); }
.bubble.own .ai-dot { background: var(--ink-inverse); color: var(--midnight); margin-top: 1px; }
.ai-panes[data-mode-now="wait"] .bubble.own { opacity: 0.35; }
.ai-time { display: inline-flex; gap: var(--space-3); align-items: baseline; font-family: var(--mono); font-size: var(--fs-sm); }
.ai-time s { color: var(--muted); }
.ai-time b { font-weight: 500; }
.ai-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-3); align-items: end; height: 150px; }
.ai-bars span { position: relative; height: calc(var(--h) * 1%); border-radius: 10px 10px 4px 4px; background: var(--line-strong); transform-origin: bottom; transition: height 700ms var(--land-ease); }
.ai-bars span.up { background: var(--midnight); }
.ai-panes[data-mode-now="wait"] .ai-bars span.up { height: calc(var(--h) * 0.72%); }
.ai-bars i { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-style: normal; font-family: var(--mono); font-size: var(--fs-2xs); color: var(--muted); }
.ai-price { margin-top: var(--space-6); }
.ai-price strong { font-variant-numeric: tabular-nums; }
.ai-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-5); margin: 0; }
.ai-fields div { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--space-4); border-radius: var(--radius); background: var(--surface-sunken); }
.ai-fields dt { font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ai-fields dd { margin: 0; font-weight: 500; }
.ai-price .row { gap: var(--space-3); align-items: center; }

/* ---------- FAQ ---------- */
.faq { max-width: var(--land-max); margin: 0 auto; padding: clamp(96px, 14vw, 180px) var(--land-gutter); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--space-7); align-items: start; }
.faq-head { position: sticky; top: 120px; display: flex; flex-direction: column; gap: var(--space-5); }
.faq-head .section-title { max-width: 12ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); padding: var(--space-6) 0; cursor: pointer; font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -0.02em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-sign { flex: none; position: relative; width: 32px; height: 32px; border-radius: 50%; background: var(--surface); box-shadow: var(--bevel), var(--shadow-resting); transition: background var(--med), transform 400ms var(--land-ease); }
.faq-sign::before, .faq-sign::after { content: ""; position: absolute; left: 10px; right: 10px; top: 15.25px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform 400ms var(--land-ease); }
.faq-sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-sign { background: var(--midnight); color: var(--ink-inverse); transform: rotate(180deg); }
.faq-item[open] .faq-sign::after { transform: rotate(0deg); }
.faq-item::details-content { block-size: 0; overflow: hidden; transition: block-size 450ms var(--land-ease), content-visibility 450ms allow-discrete; }
.faq-item[open]::details-content { block-size: auto; }
.faq-item p { margin: 0; padding: 0 var(--space-7) var(--space-6) 0; color: var(--ink-2); line-height: 1.6; max-width: 60ch; }

@media (max-width: 1080px) {
  .ai-head, .ai-show, .faq { grid-template-columns: 1fr; }
  .faq-head { position: static; }
}
@media (max-width: 760px) {
  .ai-stage { padding: var(--space-4); }
  .ai-pane { padding: var(--space-5); }
  .ai-mode .segmented { width: 100%; }
  .ai-mode .segmented button { flex: 1; padding: 0 var(--space-2); font-size: var(--fs-sm); }
  .ai-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-cap[aria-selected="true"] .ai-cap-bar { animation: none; transform: scaleX(1); }
}

/* What happens next, by mode: when it was done, the buttons to approve, or the word that it waits. */
.ai-foot { margin-top: auto; display: flex; align-items: center; min-height: 32px; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.ai-foot > * { display: none; }
.ai-foot-ask { gap: var(--space-2); }
.ai-panes[data-mode-now="auto"] .ai-foot-auto, .ai-panes[data-mode-now="wait"] .ai-foot-wait { display: inline; }
.ai-panes[data-mode-now="ask"] .ai-foot-ask { display: inline-flex; }

/* ---------- AI native panes: what happens inside each one, once it is shown ---------- */
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes typing-life { 0% { opacity: 0; } 12%, 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes dot-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes type-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan-move { from { top: 0; opacity: 1; } 90% { opacity: 1; } to { top: 100%; opacity: 0; } }
/* The guest writes, then the answer is written. */
.slot { display: grid; }
.slot > * { grid-area: 1 / 1; }
.slot.guest { justify-items: start; }
.slot.own { justify-items: end; }
.typing { display: inline-flex; gap: 4px; align-self: start; padding: 12px 14px; border-radius: 16px; background: var(--surface-sunken); opacity: 0; }
.slot.own .typing { background: var(--midnight); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: dot-bounce 1s infinite; }
.slot.own .typing i { background: var(--ink-inverse); }
.typing i:nth-child(2) { animation-delay: 150ms; }
.typing i:nth-child(3) { animation-delay: 300ms; }
.ai-pane.play .slot.guest .typing { animation: typing-life 900ms 150ms both; }
.ai-pane.play .slot.guest .bubble { animation: pop-in 500ms 1000ms var(--land-ease) backwards; }
.ai-pane.play .slot.own .typing { animation: typing-life 1300ms 1600ms both; }
.ai-pane.play .slot.own .bubble { animation: pop-in 500ms 2850ms var(--land-ease) backwards; }
.ai-pane.play .type-in { animation: type-reveal 1400ms 2900ms steps(40) backwards; }
.ai-panes[data-mode-now="ask"] .bubble.own { background: var(--surface); color: var(--ink); border: 1.5px dashed var(--midnight); }
.ai-panes[data-mode-now="ask"] .bubble.own .ai-dot { background: var(--midnight); color: var(--ink-inverse); }
/* The rows come in; then the early departure strikes the old hour and the row moves up. */
.ai-pane.play .list-item { animation: pop-in 500ms calc(150ms + var(--i, 0) * 140ms) var(--land-ease) backwards; }
.ai-order .list-item:nth-child(2) { --i: 1; }
.ai-order .list-item:nth-child(3) { --i: 2; }
.ai-time s { position: relative; text-decoration: none; color: var(--ink); transition: color 300ms; }
.ai-time s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 50%; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 400ms var(--land-ease); }
.moves .ai-time b { display: inline-block; opacity: 0; transform: translateX(-6px); transition: opacity 400ms 200ms, transform 400ms 200ms var(--land-ease); }
.ai-pane.late .moves .ai-time s { color: var(--muted); }
.ai-pane.late .moves .ai-time s::after { transform: scaleX(1); }
.ai-pane.late .moves .ai-time b { opacity: 1; transform: none; }
.ai-panes[data-mode-now="wait"] .moves .ai-time b { opacity: 0.35; }
.moves { transition: background var(--med); }
.ai-pane.late .moves { background: var(--surface-sunken); border-radius: var(--radius); }
/* The week grows, then the weekend rises and the price follows. */
.ai-pane .ai-bars span { height: 0; transition: height 700ms calc(var(--i) * 70ms) var(--land-ease); }
.ai-pane.play .ai-bars span { height: calc(var(--h) * 1%); }
.ai-pane.late .ai-bars span.up { height: calc(var(--h2) * 1%); transition-delay: 0ms; }
.ai-panes[data-mode-now="wait"] .ai-pane.late .ai-bars span.up { height: calc(var(--h) * 1%); }
.ai-bars span.up { background: var(--line-strong); transition-property: height, background; }
.ai-pane.late .ai-bars span.up { background: var(--midnight); }
.ai-was { color: var(--muted); text-decoration: line-through; font-weight: 500; }
.ai-arrow { color: var(--muted); }
/* The document is read: a line goes down it, the fields fill, the form is ready. */
.ai-scan { position: relative; }
.scan-line { position: absolute; left: -8px; right: -8px; top: 0; height: 2px; border-radius: 2px; background: var(--midnight); box-shadow: 0 0 18px 4px rgba(15, 27, 45, 0.18); opacity: 0; }
.ai-pane.play .scan-line { animation: scan-move 1500ms 200ms ease-in-out both; }
.ai-fields dd { opacity: 0; transform: translateY(4px); transition: opacity 400ms, transform 400ms var(--land-ease); transition-delay: calc(450ms + var(--i) * 280ms); }
.ai-pane.play .ai-fields dd { opacity: 1; transform: none; }
.ai-formed { gap: var(--space-3); align-items: center; opacity: 0; transform: translateY(8px); transition: opacity 500ms, transform 500ms var(--land-ease); }
.ai-pane.late .ai-formed { opacity: 1; transform: none; }
.ai-panes[data-mode-now="wait"] .ai-pane.late .ai-formed { opacity: 0.4; }
/* What is missing is asked for, when it may act alone. */
.ai-checks .badge.swap { position: relative; padding: 0; border: 0; background: none; box-shadow: none; display: inline-grid; justify-items: end; }
.ai-checks .badge.swap > .badge { grid-area: 1 / 1; transition: opacity 400ms var(--land-ease), transform 400ms var(--land-ease); }
.ai-checks .badge.swap > .badge.green { opacity: 0; transform: scale(0.8); }
.ai-panes[data-mode-now="auto"] .ai-pane.late .badge.swap > .badge.orange { opacity: 0; transform: scale(0.8); }
.ai-panes[data-mode-now="auto"] .ai-pane.late .badge.swap > .badge.green { opacity: 1; transform: none; transition-delay: 120ms; }
.ai-checks .list-item:nth-child(2) .badge.swap > .badge { transition-delay: 300ms; }
@media (prefers-reduced-motion: reduce) {
  .ai-pane .bubble, .ai-pane .list-item, .ai-fields dd, .ai-formed, .moves .ai-time b { opacity: 1 !important; transform: none !important; animation: none !important; }
  .ai-pane .ai-bars span { height: calc(var(--h) * 1%); }
  .typing, .scan-line { display: none; }
}

/* Approved by hand: the proposal turns into done, and says who approved it. */
.ai-foot-done { display: none; }
.ai-panes[data-mode-now="ask"] .ai-pane.approved .ai-foot-ask { display: none; }
.ai-panes[data-mode-now="ask"] .ai-pane.approved .ai-foot-done { display: inline; }
.ai-panes[data-mode-now="ask"] .ai-pane.approved .ai-state { background: var(--action-green); color: var(--on-action); }
.ai-panes[data-mode-now="ask"] .ai-pane.approved .ai-state::after { content: attr(data-approved); }
.ai-panes[data-mode-now="ask"] .ai-pane.approved .bubble.own { background: var(--midnight); color: var(--ink-inverse); border-color: transparent; }
.ai-panes[data-mode-now="ask"] .ai-pane.approved .bubble.own .ai-dot { background: var(--ink-inverse); color: var(--midnight); }
.ai-panes[data-mode-now="ask"] .ai-pane.approved .ai-state { animation: pop-in 400ms var(--land-ease); }
/* Being edited: the value takes the focus ring of the application's inputs. */
[data-editable][contenteditable="true"] { outline: none; border-radius: 6px; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--midnight); padding: 0 2px; cursor: text; }
.bubble.own [data-editable][contenteditable="true"] { box-shadow: 0 0 0 2px var(--midnight), 0 0 0 4px var(--ink-inverse); }

/* ---------- Colour inside the function cards: a ring for a share, the cents for money, gold for stars ---------- */
.dc-ring { --size: 56px; --stroke: 5px; flex: none; }
.dc-ring span { font-size: var(--fs-sm); }
.deck-card.on .dc-ring { --track: var(--midnight-line); --fill: var(--midnight); color: var(--ink-inverse); }
.dc-money small { font-size: 0.5em; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.deck-card.on .dc-money small { color: var(--ink-inverse-muted); }
.dc-cap { display: inline-flex; align-items: center; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.dc-trend { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--space-3); border-radius: var(--pill); font-size: var(--fs-2xs); font-weight: 600; letter-spacing: 0.02em; }
.dc-trend.up { background: var(--action-green); color: var(--on-action); }
.dc-good { color: var(--action-green); }
.deck-card.on .dc-good { color: #5BC68C; }
.dc-neg { color: var(--action-orange); }
.deck-card.on .dc-neg { color: #F08A55; }
.dc-stars { font-size: 13px; letter-spacing: 2px; line-height: 1; background: linear-gradient(90deg, #E8A800 calc(var(--r) / 5 * 100%), var(--line-strong) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dc-star { color: #E8A800; margin-right: var(--space-1); font-size: 12px; }
.dc-delta { display: inline-flex; align-items: center; height: 22px; padding: 0 var(--space-3); border-radius: var(--pill); font-size: var(--fs-xs); font-weight: 600; }
.dc-delta.up { background: var(--action-green); color: var(--on-action); }
.dc-delta.down { background: var(--action-orange); color: var(--on-action); }
.dc-meter { flex: none; width: 54px; height: 6px; border-radius: var(--pill); background: var(--line); overflow: hidden; position: relative; }
.dc-meter::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--m) * 1%); border-radius: inherit; background: var(--c, var(--action-green)); }
.dc-meter.green { --c: var(--action-green); }
.dc-meter.yellow { --c: var(--action-yellow); }
.deck-card.on .dc-meter { background: var(--midnight-line); }
.dc-dot.hot { background: var(--action-red); color: #fff; }
.deck-card.on .dc-dot.hot { background: var(--action-red); color: #fff; }

/* ---------- Maintenance: when its hour comes, the messages that follow rise under the request ---------- */
.day-pieces { display: flex; flex-direction: column; gap: var(--space-3); }
.day-msg { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); opacity: 0; transform: translateY(14px) scale(0.98); transition: opacity 500ms var(--land-ease), transform 600ms var(--land-ease); transition-delay: calc(var(--k) * 900ms + 150ms); }
.day-msg .grow { display: flex; flex-direction: column; min-width: 0; gap: var(--space-0); }
.day-msg .muted { font-size: var(--fs-sm); }
.day-msg-time { flex: none; font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); letter-spacing: 0.04em; }
.day-panel.done .day-msg { opacity: 1; transform: none; }
/* The pill turns done only once the repair is in, after the second message. */
.day-pieces .badge.swap > .badge { transition-delay: 0ms; }
.day-panel.done .day-pieces .badge.swap > .badge.red { transition-delay: 1100ms; }
.day-panel.done .day-pieces .badge.swap > .badge.green { transition-delay: 1250ms; }
@media (prefers-reduced-motion: reduce) { .day-msg { opacity: 1; transform: none; } }

/* ---------- A silver rule between the demo and the footer ---------- */
/* Silver as Pratyco draws its gold: one still gradient of seven stops, dark at the ends, bright at a third. */
.landing-page { --argent: linear-gradient(90deg, #7d848e 0%, #a9b0b9 16%, #eef1f4 33%, #d6dbe0 50%, #a9b0b9 66%, #7d848e 83%, #5f6670 100%); }
.silver-rule {
  position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--argent);
}


.manifesto-intro { font-size: clamp(20px, 1.9vw, 28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; color: var(--muted); margin-top: calc(var(--space-2) * -1); }
/* Benefit cards: one subject each, each with its figure in colour. */
.bento-duties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: auto; }
.bento-duty { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius); background: var(--surface-sunken); font-size: var(--fs-sm); }
.bento-duty strong { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bento-fig { font-size: clamp(30px, 2.6vw, 40px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; font-variant-numeric: tabular-nums; }
.bento-figure { flex-wrap: wrap; gap: var(--space-3) var(--space-4); }
.bento-checks { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; }
.bento-card.dark .mini-plan { margin-top: auto; background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), var(--midnight-line) calc(100% / 7 - 1px) calc(100% / 7)); }
@media (max-width: 760px) { .bento-duties { grid-template-columns: 1fr; } }
.bento-card.dark .mini-plan { --ch-direct: var(--midnight-raised); --ch-direct-ink: var(--ink-inverse); }
/* The rings are drawn under the logos: every mark sits on its own solid circle, above them. */
.native-orbit::before, .native-orbit::after { z-index: 0; }
.orbit-ring { z-index: 1; }
.native-symbol { z-index: 2; }
.orbit-mark > *, .orbit-mark.has-logo > * { background: var(--surface); }

/* The hero's drifting calendar grid, reused behind a few sections, each with its own bright spot (--gx, --gy). */
/* Every light section draws it behind everything it holds; none of the dark ones do. */
.manifesto, .ai, .native, .links-wrap, .bento-wrap, .deck-wrap, .faq, .land-foot { position: relative; isolation: isolate; }
.day-sticky { isolation: isolate; }
.grid-bg {
  position: absolute; inset: 0 calc((100vw - 100%) / -2); z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 45% 55% at var(--gx, 50%) var(--gy, 50%), #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 45% 55% at var(--gx, 50%) var(--gy, 50%), #000 15%, transparent 72%);
  animation: grid-drift 40s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .grid-bg { animation: none; } }

/* ---------- The price, inside the demo: one fixed price, and what it replaces ---------- */
.price-card { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-6); color: var(--ink); box-shadow: var(--shadow-drawer); }
.price-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.price-hero { display: flex; align-items: flex-end; gap: var(--space-5); }
.price-five { font-size: clamp(72px, 7vw, 104px); line-height: 0.82; letter-spacing: -0.06em; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-per { display: flex; flex-direction: column; gap: var(--space-1); padding-bottom: var(--space-1); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.price-vat { color: var(--muted); font-size: var(--fs-sm); font-weight: 500; letter-spacing: 0; }
.price-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.price-lines li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-base); }
.price-lines li > span:nth-child(2) { flex: 1; }
.price-check { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--action-green); color: var(--on-action); }
.price-check svg { width: 13px; height: 13px; }
.price-calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.price-field { display: flex; flex-direction: column; gap: var(--space-2); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.stepper { display: flex; align-items: center; height: 44px; border-radius: var(--pill); background: var(--surface-sunken); border: 1px solid var(--line); overflow: hidden; }
.stepper button { flex: none; width: 44px; height: 100%; border: 0; background: none; color: var(--ink); font-size: 20px; cursor: pointer; }
.stepper button:hover { background: var(--line); }
.stepper input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; background: none; text-align: center; font-family: var(--font, inherit); font-size: var(--fs-lg); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper input:focus-visible { outline: none; background: var(--surface); }
.price-result { display: flex; align-items: center; gap: var(--space-6); padding: var(--space-5); border-radius: calc(var(--radius) + 4px); background: var(--surface-sunken); }
.price-ring span { font-size: var(--fs-xl); color: var(--action-green); }
.price-compare { flex: 1; display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.price-today, .price-ours { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.price-today span, .price-ours > span:first-child { font-size: var(--fs-sm); color: var(--muted); }
.price-today s { color: var(--action-orange); font-size: var(--fs-lg); font-weight: 600; font-variant-numeric: tabular-nums; }
.price-ours strong { font-size: clamp(30px, 2.8vw, 40px); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.price-ours .price-vat { flex-basis: 100%; text-align: right; }
.price-note { color: var(--muted); font-size: var(--fs-xs); }
@media (max-width: 520px) { .price-calc { grid-template-columns: 1fr; } .price-result { flex-direction: column; align-items: stretch; } .price-ring { align-self: center; } }
@media (max-width: 1080px) { .closing { grid-template-columns: 1fr; } }
.price-hook { margin-top: calc(var(--space-2) * -1); font-size: var(--fs-lg); font-weight: 600; letter-spacing: -0.02em; color: var(--action-green); }

/* ---------- The demo request ---------- */
.demo-modal { width: min(680px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 0; border-radius: calc(var(--radius) + 10px); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-drawer); overflow: auto; }
.demo-modal::backdrop { background: rgba(15, 27, 45, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.demo-modal[open] { animation: menu-in 360ms var(--land-ease); }
.demo-form, .demo-done { display: flex; flex-direction: column; gap: var(--space-6); padding: clamp(24px, 4vw, 40px); }
.demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-5); }
.demo-head h2 { margin-top: var(--space-3); font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.demo-lead { margin-top: var(--space-4); color: var(--ink-2); line-height: 1.5; max-width: 52ch; }
.demo-close { flex: none; }
.demo-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.demo-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.demo-req { color: var(--muted); font-size: var(--fs-sm); }
.demo-req .req, .field .req { color: var(--action-red); }
.demo-fail { color: var(--action-red); font-size: var(--fs-sm); }
.demo-form .error:empty { display: none; }
.demo-done { align-items: flex-start; }
.demo-done-mark { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--action-green); color: var(--on-action); }
.demo-done-mark svg { width: 26px; height: 26px; }
.demo-done h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -0.045em; font-weight: 600; }
.demo-done p { color: var(--ink-2); line-height: 1.5; }
@media (max-width: 560px) { .demo-form .form-grid { grid-template-columns: 1fr; } }
/* On the phone the wordmark sits right beside the burger, the demo button at the far end. */
@media (max-width: 760px) { .land-brand { margin-right: auto; } }
