/* Inter, self-hosted: the page makes no third-party request before consent */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F5F6FB;
  --panel: #FFFFFF;
  --ink: #17153A;
  --ink-2: #3D3B5C;
  --muted: #646683;
  --line: #E2E4EF;
  --line-2: #CDD0E2;
  --cobalt: #3446FF;
  --cobalt-ink: #2230D6;
  --pink: #FF5C8D;
  --sun: #FFCF3D;
  --sky: #8FD3FF;
  --indigo: #1A1745;
  --ok: #0F8A5F;
  --err: #C0283E;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: min(1160px, 100% - 2 * clamp(16px, 4vw, 40px));
  --r-lg: 22px;
  --r-md: 14px;
  --ease: cubic-bezier(.32, .72, .25, 1);
  --header: 64px;
  --nmax: 400px; /* the widest the page notch may grow */
  color-scheme: light;
}
@media (max-width: 1099px) { :root { --nmax: 360px; } }
@media (max-width: 799px) { :root { --header: 56px; --nmax: calc(100vw - 32px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.3rem + 4.4vw, 4.75rem); line-height: .98; letter-spacing: -.045em; }
h2 { font-size: clamp(2rem, 1.3rem + 2.3vw, 3.1rem); line-height: 1.04; letter-spacing: -.038em; }
h3 { font-size: 1.125rem; line-height: 1.3; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; }
::selection { background: #D6DBFF; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.wrap { width: var(--wrap); margin-inline: auto; }
.lede { font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 36ch; }
.sub { color: var(--muted); max-width: 56ch; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -64px; z-index: 80; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 0; border-radius: 999px;
  font: 600 .98rem/1 var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn-primary { background: var(--cobalt); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 8px 22px -10px rgba(52,70,255,.8); }
.btn-primary:hover { background: var(--cobalt-ink); }
.btn-ghost { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2) inset; }
.btn-ghost:hover { box-shadow: 0 0 0 1px var(--ink) inset; }
.btn-sm { height: 40px; padding: 0 16px; font-size: .92rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Header: the logo and one button. The page notch sits in its middle (see below). */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(245,246,251,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; letter-spacing: -.045em; text-transform: lowercase; text-decoration: none; }
.brand svg { width: 26px; height: 26px; }
.brand, .header-cta, .lang-switch { transition: opacity .2s ease, visibility 0s; }
/* The FR/EN switch next to the button (main.js keeps the choice in the lang cookie). */
.header-end { display: flex; align-items: center; gap: 16px; }
.lang-switch { font-size: .88rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); text-decoration: none; }
.lang-switch:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
/* The French button is longer: on the smallest phones the header tightens so it still fits. */
@media (max-width: 359px) { .header-end { gap: 10px; } .site-header .header-cta { padding: 0 12px; font-size: .84rem; } }
/* On phones the notch needs the whole bar: the logo and the button step aside while it shows.
   The sticky button at the bottom of the screen takes over from the header button. */
@media (max-width: 799px) {
  .notch-on .site-header .brand, .notch-on .site-header .header-cta, .notch-on .site-header .lang-switch { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; }
}

/* The page notch: a black island at the top centre that narrates the scroll.
   Pure black like the hardware, concave corners where it meets the top edge, an app or the logo on the
   left, the status on the right. main.js sets its width and height from the face it shows. */
.notch {
  position: fixed; z-index: 60; top: 0; left: 50%;
  width: 112px; height: 28px; transform: translateX(-50%);
  background: #000; color: #F5F5F7; border-radius: 0 0 14px 14px;
  transition: width .44s var(--ease), height .44s var(--ease), border-radius .44s var(--ease), transform .32s var(--ease);
}
/* Each corner reaches 1px under the island, so no seam shows at half pixels. */
.notch::before, .notch::after { content: ""; position: absolute; top: 0; width: 11px; height: 10px; background: no-repeat 0 0 / 100% 100%; pointer-events: none; }
.notch::before { left: -10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 10'%3E%3Cpath d='M0 0H11V10H10A10 10 0 0 0 0 0Z'/%3E%3C/svg%3E"); }
.notch::after { right: -10px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 11 10'%3E%3Cpath d='M11 0H0V10H1A10 10 0 0 1 11 0Z'/%3E%3C/svg%3E"); }
.notch.tall { border-radius: 0 0 21px 21px; }
.notch-in { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.nf {
  position: absolute; top: 0; left: 0; display: flex; align-items: center; gap: 9px;
  width: max-content; max-width: var(--nmax); height: 34px; padding: 0 14px 0 10px;
  font: 600 .8rem/1 var(--font); letter-spacing: -.005em; white-space: nowrap;
  opacity: 0; transition: opacity .22s ease;
}
.nf.on { opacity: 1; }
.nf-tall { height: 42px; padding-right: 7px; }
.nf-idle { width: 112px; height: 28px; justify-content: flex-end; padding: 0 30px 0 0; }
.nf-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.nf-apps { display: flex; flex: none; }
.nf-apps img { width: 20px; height: 20px; padding: 3px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 2px #000; }
.nf-apps img + img { margin-left: -5px; }
.nf-you { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 6px; background: var(--sun); color: var(--ink); }
.nf-you svg { width: 15px; height: 15px; }
.nf-logo { flex: none; }
.nf-logo svg { width: 20px; height: 20px; }
.nf-time { color: #A9A9B8; font-weight: 500; font-variant-numeric: tabular-nums; }
.nf-light { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); }
.nf:not(.nf-idle) .nf-light { animation: pulse 1.6s ease-in-out infinite; }
.nf-spin { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.24); border-top-color: #fff; animation: spin 1s linear infinite; }
.nf-btn { flex: none; height: 28px; padding: 0 13px; border: 0; border-radius: 14px; background: #fff; color: #000; font: 600 .78rem/1 var(--font); cursor: pointer; }
.nf-btn:hover { background: var(--sun); }
.nf-btn:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; border-radius: 14px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .25; } }
/* On phones the idle notch stays out of sight: the header has the logo and the button then. */
@media (max-width: 799px) {
  html:not(.notch-on) .notch { transform: translate(-50%, -130%); }
}

/* Sticky start button, phones only: shows once the hero form has scrolled away, hides near the last form. */
.sticky-cta {
  position: fixed; z-index: 55; left: 12px; right: 12px; bottom: 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 7px 7px 18px; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 40px -16px rgba(23,21,58,.45);
  font-size: .86rem; font-weight: 550; color: var(--ink-2);
  transform: translateY(160%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s .3s;
}
.sticky-cta.is-on { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
@media (min-width: 800px) { .sticky-cta { display: none; } }
body:has(.consent:not([hidden])) .sticky-cta { display: none; }

/* Hero */
.hero { position: relative; padding: clamp(28px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { max-width: 12ch; }
.hero .lede { margin-top: 20px; }
.hero-cta { margin-top: 28px; }
.hero-note { margin-top: 12px; font-size: .9rem; color: var(--muted); }
@media (max-width: 480px) {
  .hero h1 { font-size: 2.5rem; }
  .hero .lede { margin-top: 14px; font-size: 1.02rem; }
  .hero-cta { margin-top: 20px; }
  .hero-note { margin-top: 10px; font-size: .86rem; }
}

/* The hero film: rounded like the product panels, a hairline and a soft shadow lift it off the page. */
.film { margin: 0; }
.film-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #F3F4F9; box-shadow: 0 0 0 1px rgba(23,21,58,.08), 0 30px 60px -30px rgba(23,21,58,.45); }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.film video:focus-visible { outline: 3px solid var(--cobalt); outline-offset: -3px; }
.film-bar { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 8px; }
.film-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border: 0; border-radius: 999px; background: rgba(12,11,22,.8); color: #fff; font: 600 .82rem/1 var(--font); cursor: pointer; }
.film-btn svg { width: 18px; height: 18px; flex: none; }
.film-pause { width: 36px; padding: 0; justify-content: center; }
.film-btn:hover, .film-play:hover { background: #000; }
.film-play { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; width: 68px; height: 68px; border: 0; border-radius: 50%; background: rgba(12,11,22,.82); color: #fff; cursor: pointer; }
.film-play svg { width: 30px; height: 30px; margin-left: 3px; }
.film-play span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.film-btn:focus-visible, .film-play:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.film-note span { display: block; margin-top: 12px; font-size: .86rem; color: var(--muted); }
/* On phones the film is about 200px tall: smaller controls keep most of it in view (30px still clears the 24px target minimum). */
@media (max-width: 560px) {
  .film-bar { left: 8px; bottom: 8px; gap: 6px; }
  .film-btn { height: 30px; gap: 6px; padding: 0 11px 0 9px; font-size: .74rem; }
  .film-btn svg { width: 15px; height: 15px; }
  .film-pause { width: 30px; padding: 0; }
  .film-play { width: 54px; height: 54px; }
  .film-play svg { width: 24px; height: 24px; }
}

/* Memory panel (in "See who did what") */
.memory { background: rgba(255,255,255,.92); border-radius: var(--r-lg); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 30px 60px -30px rgba(23,21,58,.45), 0 0 0 1px rgba(23,21,58,.06); overflow: hidden; }
.memory-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 12px; }
.memory-top strong { font-size: .98rem; letter-spacing: -.01em; }
.memory-top span { font-size: .82rem; color: var(--muted); }
.chips { display: flex; gap: 6px; padding: 0 18px 14px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font: 500 .82rem/1 var(--font); color: var(--ink-2); cursor: pointer; }
.chip img { width: 14px; height: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] img { filter: grayscale(1) brightness(3); }
.memory ol { list-style: none; margin: 0; padding: 6px 0; min-height: 330px; }
.memory li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 18px; }
.memory li + li { border-top: 1px solid #EEF0F6; }
.memory li .who { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #F1F2F8; }
.memory li .who img { width: 16px; height: 16px; }
.memory li p { font-size: .95rem; line-height: 1.45; color: var(--ink); }
.memory li .meta { margin-top: 3px; font-size: .8rem; color: var(--muted); }
.memory li .meta b { font-weight: 600; color: var(--ink-2); }
.memory li.arriving { animation: arrive .7s cubic-bezier(.2,.8,.2,1); }
.memory li.arriving p { background: linear-gradient(90deg, var(--ink) 50%, transparent 50%) 100% 0 / 200% 100% no-repeat; -webkit-background-clip: text; background-clip: text; color: transparent; animation: write 1.1s .15s steps(28, end) forwards; }
@keyframes arrive { from { opacity: 0; transform: translateY(-8px); background: #F3F5FF; } to { opacity: 1; transform: none; background: transparent; } }
@keyframes write { to { background-position: 0 0; } }
.memory-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); background: #FAFBFE; }


/* Small parts the day pictures reuse: an app avatar, action pills */
.demo-row .who { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #F1F2F8; }
.demo-row .who img { width: 16px; height: 16px; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.act { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; font-size: .78rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.act.go { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }

/* Sections */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section-head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 { max-width: 18ch; }

/* Pain: two scenes, shown rather than told, one under the other. The one that matches the headline
   comes first and a little larger (.lead, set by main.js); the second mirrors it, picture on the left. */
.pain { padding: clamp(72px, 9vw, 120px) 0 clamp(8px, 2vw, 24px); }
.pain h2 { max-width: none; text-wrap: balance; }
.pain-cost { margin-top: 18px; max-width: 52ch; font-size: 1.06rem; color: var(--ink-2); text-wrap: pretty; }
.scenes { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(56px, 7vw, 96px); margin-top: clamp(36px, 5vw, 64px); }
.scene { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.scene + .scene { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); }
.scene + .scene .scene-text { order: 2; }
.scene h3 { font-size: clamp(1.45rem, 1.15rem + 1vw, 2rem); letter-spacing: -.03em; line-height: 1.15; max-width: 22ch; }
.scene-text p { margin-top: 10px; color: var(--ink-2); max-width: 46ch; text-wrap: pretty; font-size: 1.04rem; }
.scene.lead h3 { font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.3rem); letter-spacing: -.035em; line-height: 1.1; }
@media (max-width: 860px) {
  .scene, .scene + .scene { grid-template-columns: minmax(0, 1fr); }
  .scene + .scene .scene-text { order: 0; }
}

/* Flat colour stages behind each scene: one tint per pain */
.stage { padding: clamp(14px, 2.6vw, 28px); border-radius: 26px; }
.stage-tasks { background: #FFE0EA; }
.stage-notch { background: #FFEFBD; }

/* A small chat window */
.win { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px rgba(23,21,58,.07), 0 14px 30px -20px rgba(23,21,58,.4); }
.win-top { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.win-top img { width: 16px; height: 16px; flex: none; }
.win-top b { font-weight: 600; }
.win-top span { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.win-body { display: grid; gap: 8px; padding: 12px 12px 14px; }
.b { max-width: 90%; padding: 8px 12px; border-radius: 15px; font-size: .88rem; line-height: 1.4; text-wrap: pretty; }
.b-me { justify-self: end; background: var(--cobalt); color: #fff; border-bottom-right-radius: 5px; }
.b-ai { justify-self: start; background: #F0F1F8; color: var(--ink); border-bottom-left-radius: 5px; }

/* Tasks: copying between two windows, and a to-do page kept by hand */
.relay { display: grid; grid-template-columns: minmax(0, 1fr) 92px minmax(0, 1fr); gap: 8px; align-items: center; margin-bottom: 14px; }
.relay-you { display: grid; justify-items: center; gap: 6px; font-size: .78rem; font-weight: 550; line-height: 1.3; color: var(--ink-2); text-align: center; }
.relay-you .who { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; }
.relay-you::before, .relay-you::after { content: ""; width: 2px; height: 18px; border-left: 2px dashed rgba(23,21,58,.3); }
@media (max-width: 640px) {
  .relay { grid-template-columns: 1fr; }
  .relay-you { grid-auto-flow: column; justify-content: start; align-items: center; padding-left: 14px; }
  .relay-you::before, .relay-you::after { display: none; }
}
.todo { padding: 16px 18px 18px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px rgba(23,21,58,.07), 0 14px 30px -20px rgba(23,21,58,.4); }
.todo > b { font-size: .98rem; letter-spacing: -.01em; }
.todo ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.todo li { position: relative; padding-left: 27px; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.todo li::before { content: ""; position: absolute; left: 0; top: .12em; width: 16px; height: 16px; border-radius: 5px; box-shadow: 0 0 0 1.5px var(--line-2) inset; }
.todo li.ticked { color: var(--muted); text-decoration: line-through; }
.todo li.ticked::before { background: var(--ink); box-shadow: none; }
.todo li.ticked::after { content: ""; position: absolute; left: 5px; top: .3em; width: 5px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.todo li.last { font-weight: 600; color: var(--ink); }

/* Notch pain: five tabs, and every check you made this morning */
.browser { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(23,21,58,.07), 0 14px 30px -20px rgba(23,21,58,.4); }
.tabbar { display: flex; gap: 3px; padding: 8px 8px 0; background: #E9EAF2; }
.ptab { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 10px 10px 0 0; font-size: .78rem; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.ptab span { overflow: hidden; text-overflow: ellipsis; }
.ptab.cur { background: #fff; color: var(--ink); }
.ptab img { width: 14px; height: 14px; flex: none; }
@media (max-width: 560px) { .ptab { justify-content: center; padding: 0; } .ptab span { display: none; } }
.checks { list-style: none; margin: 0; padding: 14px 16px 16px; display: grid; gap: 8px; }
.checks li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 8px; font-size: .9rem; line-height: 1.4; color: var(--ink-2); }
.checks time { color: var(--muted); font-variant-numeric: tabular-nums; }
.checks .punch { color: var(--ink); font-weight: 600; }

/* The turn: the Tilka logo in the middle and the apps' logos turning slowly around it, an inner
   ring one way and an outer ring the other. Each logo turns back as its ring turns, so it stays
   upright. Sizes are in cqw (the figure's own width), so it scales as one piece. */
.orbit { position: relative; width: min(100%, 410px); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.orbit-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; margin: 0; padding: 0; list-style: none; animation: orbit-spin var(--t) linear infinite; }
.orbit-inner { --r: 25cqw; --t: 50s; }
.orbit-outer { --r: 40cqw; --t: 80s; animation-direction: reverse; }
.orbit-ring li { position: absolute; left: 0; top: 0; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)) rotate(calc(-1 * var(--a))); }
/* Each logo's place on its ring. Set here, not inline, because the CSP blocks inline styles; build.py checks these. */
.orbit-inner li:nth-child(1) { --a: 0deg; }
.orbit-inner li:nth-child(2) { --a: 90deg; }
.orbit-inner li:nth-child(3) { --a: 180deg; }
.orbit-inner li:nth-child(4) { --a: 270deg; }
.orbit-outer li:nth-child(1) { --a: 22.5deg; }
.orbit-outer li:nth-child(2) { --a: 67.5deg; }
.orbit-outer li:nth-child(3) { --a: 112.5deg; }
.orbit-outer li:nth-child(4) { --a: 157.5deg; }
.orbit-outer li:nth-child(5) { --a: 202.5deg; }
.orbit-outer li:nth-child(6) { --a: 247.5deg; }
.orbit-outer li:nth-child(7) { --a: 292.5deg; }
.orbit-outer li:nth-child(8) { --a: 337.5deg; }
/* Each logo sits in a round badge that turns against its ring, so it stays upright. */
.orbit-ring span { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 13cqw; height: 13cqw; margin: -6.5cqw 0 0 -6.5cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px rgba(23,21,58,.06), 0 10px 24px -12px rgba(23,21,58,.35); animation: orbit-spin var(--t) linear infinite; animation-direction: reverse; }
.orbit-outer span { animation-direction: normal; }
.orbit-ring img { width: 52%; height: 52%; }
.orbit-core { position: absolute; left: 50%; top: 50%; width: 24cqw; height: 24cqw; transform: translate(-50%, -50%); border-radius: 28%; box-shadow: 0 18px 50px -12px rgba(52,70,255,.55); }
.orbit-core::before { content: ""; position: absolute; inset: -16cqw; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(52,70,255,.16), rgba(52,70,255,0)); }
.orbit-core svg { display: block; width: 100%; height: 100%; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
/* Wide screens: the words on the left, the logos on the right. */
@media (min-width: 1100px) {
  .turn .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
  .turn .section-head { margin-bottom: 0; }
}
@media (max-width: 640px) { .orbit { width: min(100%, 330px); } }

/* What changes in your day: a morning, step by step, with the clock as the spine */
.moments { list-style: none; margin: 0; padding: 0; }
.moment { display: grid; grid-template-columns: 150px minmax(0, 5fr) minmax(0, 6fr); gap: 14px clamp(24px, 4vw, 56px); align-items: start; padding: clamp(28px, 4vw, 44px) 0; border-top: 1px solid var(--line-2); }
.moment:last-child { border-bottom: 1px solid var(--line-2); }
.m-time { font-size: clamp(2.1rem, 1.4rem + 2vw, 3.2rem); font-weight: 650; line-height: .9; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--ink); transition: color .3s ease; }
.moment.is-now .m-time { color: var(--cobalt); }
.m-text h3 { font-size: clamp(1.15rem, 1rem + .5vw, 1.4rem); letter-spacing: -.02em; }
.m-text p { margin-top: 8px; color: var(--ink-2); max-width: 44ch; text-wrap: pretty; }
@media (max-width: 860px) {
  .moment { grid-template-columns: 96px minmax(0, 1fr); }
  .m-art { grid-column: 2; }
  .m-time { font-size: 2rem; }
}
@media (max-width: 520px) {
  .moment { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .m-art { grid-column: 1; margin-top: 6px; }
}
/* Small pictures for each step. They reuse the hero's parts. */
.demo { display: grid; gap: 10px; padding: 14px; border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 1px var(--line) inset; }
.demo .acts { margin-top: 0; padding-left: 38px; }
.demo-row { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; font-size: .9rem; line-height: 1.35; }
.demo-row small { display: block; margin-top: 2px; font-size: .78rem; color: var(--muted); }
.demo-row small b { font-weight: 600; color: var(--ink-2); }
.demo-title { font-weight: 600; font-size: .92rem; }
.handoff { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.handoff .tag { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px var(--line-2) inset; font-size: .82rem; font-weight: 600; }
.handoff .tag img { width: 14px; height: 14px; }
.handoff .arrow { width: 16px; height: 16px; color: var(--cobalt); }
.demo-note { font-size: .8rem; color: var(--muted); }
.mv-screen { padding: 0 16px 22px; border-radius: 16px; background: #E2E6FF; }
.mv-pill { display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 10px 16px 11px 10px; border-radius: 0 0 20px 20px; background: #000; color: #fff; font-size: .86rem; }
.mv-pill b { font-weight: 600; color: var(--sun); }
.mv-pill .nf-logo svg { width: 20px; height: 20px; }
.caret { display: inline-block; width: 1.5px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #fff; }
.mv-ask { display: grid; gap: 10px; padding: 14px; border-radius: 18px; background: #000; color: #fff; }
.mv-ask-top { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #A9A9B8; }
.mv-ask-top b { color: #fff; font-weight: 600; }
.mv-ask .who { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #fff; }
.mv-ask .who img { width: 13px; height: 13px; }
.mv-ask p { font-weight: 600; font-size: .95rem; }
.mv-answer { display: flex; gap: 8px; }
.mv-answer > span:first-child { flex: 1; display: flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 10px; background: #1C1C22; font-size: .86rem; }
.mv-answer .act.go { height: 32px; background: #fff; border-color: #fff; color: #000; }
.mv-chat { display: grid; gap: 10px; }
.mv-mem { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #FFF6D6; font-size: .9rem; line-height: 1.35; }
.mv-mem small { display: block; margin-top: 2px; font-size: .78rem; color: #5C5340; }
.mv-mem small b { font-weight: 600; color: var(--ink-2); }
.mv-mem .who, .demo-row .who { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: #fff; }
.mv-mem .who img, .demo-row .who img { width: 16px; height: 16px; }
.demo-row .who { background: #F1F2F8; }

/* Dark band: control and provenance */
.dark { background: var(--indigo); color: #F2F2FA; }
.dark .sub, .dark .lede { color: #B9B8D9; }
/* The text and the facts side by side, then a memory and a task, each signed by the app that wrote it. */
.control, .proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); align-items: start; }
.proof { gap: clamp(20px, 3vw, 32px); margin-top: clamp(44px, 6vw, 72px); }
@media (max-width: 920px) { .control, .proof { grid-template-columns: minmax(0, 1fr); } }
.control h2 + .lede { margin-top: 18px; }
.dark .memory { background: #fff; color: var(--ink); box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.facts li { padding-left: 18px; border-left: 2px solid rgba(255,255,255,.16); }
.facts b { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.facts span { color: #B9B8D9; font-size: .95rem; }
.history { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.history h3 { font-size: 1.02rem; }
.history .quote { margin: 12px 0 18px; padding: 14px 16px; border-radius: var(--r-md); background: #F3F4FA; font-size: .98rem; }
.trail { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.trail li { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; font-size: .9rem; position: relative; }
.trail li + li { border-top: 1px dashed var(--line-2); }
.trail img, .trail .you { width: 22px; height: 22px; border-radius: 7px; }
.trail .you { display: grid; place-items: center; background: var(--sun); color: var(--ink); }
.trail .you svg { width: 16px; height: 16px; }
.trail time { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.history-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.history-actions span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .82rem; font-weight: 500; }
.history-actions span.primary { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.history-actions span.danger { color: var(--err); border-color: #F3C4CC; }

/* Works with: one calm line of logos and names */
.apps { padding: clamp(64px, 8vw, 104px) 0 0; }
.apps-title { font-size: .95rem; letter-spacing: -.01em; color: var(--muted); margin-bottom: 20px; }
.app-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 24px; }
.app-row li { display: inline-flex; align-items: center; gap: 9px; font-size: 1rem; font-weight: 550; letter-spacing: -.01em; color: var(--ink-2); white-space: nowrap; }
.app-row img { width: 22px; height: 22px; flex: none; }
.apps-note { margin-top: 24px; font-size: .9rem; color: var(--muted); max-width: 70ch; }
.apps-owners { margin-top: 4px; font-size: .78rem; color: #6E7090; }
@media (max-width: 480px) { .app-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; } .app-row li { font-size: .95rem; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 860px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: var(--r-lg); background: var(--panel); box-shadow: 0 0 0 1px var(--line) inset; }
.plan.pro { position: relative; box-shadow: 0 0 0 2px var(--cobalt) inset, 0 24px 50px -28px rgba(52,70,255,.55); }
.plan-name { font-weight: 600; font-size: 1.05rem; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 2.6rem; font-weight: 650; letter-spacing: -.04em; line-height: 1; }
.price span { color: var(--muted); font-size: .95rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.plan li { position: relative; padding-left: 24px; font-size: .96rem; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: rotate(-45deg); }
.plan .btn { width: 100%; margin-top: auto; }
.plans-note { margin-top: 18px; font-size: .88rem; color: var(--muted); max-width: 860px; }
.plans-data { margin-top: 10px; font-size: .88rem; color: var(--ink-2); max-width: 860px; }
.plans-data a { color: var(--ink-2); }
.price-alt { margin-top: 6px; font-size: .9rem; color: var(--ink-2); }

/* FAQ */
.faq-section { padding-top: 0; }
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 66ch; }

/* The last step: a flat cobalt block, with the notch's black for the button */
.join-band { padding: 0 0 clamp(72px, 9vw, 120px); }
.join-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: var(--cobalt); color: #fff; }
@media (max-width: 860px) { .join-card { grid-template-columns: 1fr; } }
.join-card h2 { max-width: 13ch; }
.join-card .lede { margin-top: 14px; color: #E4E7FF; }
.join-card :focus-visible { outline-color: #fff; }
.join-card .btn-primary { background: #000; box-shadow: none; }
.join-card .btn-primary:hover { background: #24233A; }
.join-card .field label { color: #fff; }
.join-card .field input[type=email] { border-color: transparent; }
.join-card .field input[type=email]:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.55); }
.join-card .status { color: #fff; }
.join-card .status.err { color: #FFE0E6; }
.join-card .fine { margin-top: 6px; color: #DCE0FF; }
.join-card .fine a { color: #fff; }
.join-card .news { color: #E4E7FF; }
.join-card .news input { accent-color: #fff; }
.plan-note { margin-top: 18px; display: inline-flex; padding: 8px 12px; border-radius: 10px; background: #fff; color: var(--cobalt-ink); font-size: .9rem; font-weight: 500; }

/* The start form */
.join form { display: grid; gap: 14px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.field input[type=email] { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: #fff; font: 400 1rem var(--font); color: var(--ink); }
.field input[type=email]:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 4px rgba(52,70,255,.15); }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
@media (max-width: 480px) { .inline { flex-direction: column; } .inline input { flex: none; } }
.status { min-height: 1.4em; font-size: .9rem; color: var(--ok); }
.status:empty { min-height: 0; }
.status.err { color: var(--err); }
.fine { font-size: .82rem; color: var(--muted); }
.fine a { color: var(--ink-2); }
/* The optional product news box: unticked by default. */
.news { display: flex; align-items: flex-start; gap: 8px; font-size: .82rem; line-height: 1.4; color: var(--muted); cursor: pointer; }
.news input { flex: none; width: 16px; height: 16px; margin: 1px 0 0; accent-color: var(--cobalt); }
.hero-cta .news { margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: .9rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .trademark { flex-basis: 100%; font-size: .78rem; color: #6E7090; }

/* Consent banner */
.consent { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-inline: auto; padding: 18px 20px; border-radius: 18px; background: var(--ink); color: #EDEDF7; box-shadow: 0 24px 60px -20px rgba(23,21,58,.6); }
.consent p { font-size: .9rem; line-height: 1.5; }
.consent a { color: #fff; }
.consent-actions { display: flex; gap: 8px; margin-top: 14px; }
.consent-actions .btn { flex: 1; height: 42px; }
/* Refuse and Accept share one style on purpose. */
.consent .btn-light { background: #fff; color: var(--ink); }

/* Legal pages */
.prose { max-width: 720px; padding: clamp(48px, 7vw, 88px) 0; }
/* The same legal text in the other language, above the title. */
.lang-alt { max-width: 720px; padding-top: clamp(24px, 4vw, 48px); font-size: .9rem; }
.lang-alt a { color: var(--ink-2); }
.lang-alt + .prose { padding-top: clamp(20px, 3vw, 36px); }
.prose h1 { font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem); }
.prose .updated { margin-top: 12px; color: var(--muted); font-size: .92rem; }
.prose .translation { margin-top: 4px; color: var(--muted); font-size: .92rem; }
.prose h2 { font-size: 1.3rem; letter-spacing: -.02em; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 8px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 600; color: var(--ink); }
.prose .box, .prose .model-form { margin: 18px 0; padding: 16px 18px; border-radius: 14px; background: var(--panel); box-shadow: 0 0 0 1px var(--line) inset; }
.prose .model-form p + p { margin-top: 8px; }

/* Headline test. All three heroes are in the page; the inline script in <head> sets
   html[data-v] before the first paint. With no script or no value, memory shows. */
html:not([data-v="tasks"]):not([data-v="notch"]) .hv:not([data-hv="memory"]),
html[data-v="tasks"] .hv:not([data-hv="tasks"]),
html[data-v="notch"] .hv:not([data-hv="notch"]) { display: none; }

/* "You" in a small avatar: the person glyph on yellow */
.who.you-dot, .demo-row .who.you-dot, .memory li .who.you-dot { background: var(--sun); color: var(--ink); }
.who.you-dot svg { width: 72%; height: 72%; }

/* Reduced motion: the notch changes state without moving, nothing pulses or spins, the diagram is drawn already. */
@media (prefers-reduced-motion: reduce) {
  .notch, .nf, .brand, .header-cta, .lang-switch, .sticky-cta, .m-time { transition: none !important; }
  .nf-light, .nf-spin { animation: none !important; }
  .orbit-ring, .orbit-ring span { animation: none !important; }
}
