@font-face {
  font-family: "Clash Display";
  src: url("fonts/clash-display-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("fonts/clash-display-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

/* Palette sampled from the Prates app icon. */
:root {
  --night: #0b0918;
  --night-2: #120e25;
  --indigo: #2d2063;
  --indigo-2: #311e65;
  --violet: #482791;
  --purple: #7b37b7;
  --magenta: #833bb3;
  --steel: #385c9e;
  --cyan: #52e2ff;
  --mauve: #6f4f62;
  --pink: #d37588;
  --coral: #e4787b;
  --spark: #fff4c9;

  --text: #f6f3fb;
  --text-2: #d3cbe4;
  --text-3: #a99fc4;
  --line: rgba(229, 219, 255, 0.13);
  --line-strong: rgba(229, 219, 255, 0.24);
  --panel: rgba(22, 16, 46, 0.66);
  --panel-solid: #171230;

  --display: "Clash Display", "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
  --body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --r-xl: 32px;
  --r-l: 22px;
  --r-m: 14px;
  --r-s: 9px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  /* Keeps the footer at the bottom of short pages such as 404 and activation. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }

::selection { background: rgba(255, 244, 201, 0.85); color: var(--indigo); }

:focus-visible {
  outline: 2px solid var(--spark);
  outline-offset: 3px;
  border-radius: 6px;
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.02em 0.42em 0.08em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--ui);
  font-size: 0.8em;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: var(--text);
  vertical-align: 0.08em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--spark);
  color: var(--indigo);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Atmosphere ---------- */

/* One long gradient that moves through the icon's colours as the page scrolls. */
.atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(760px 560px at 0% 0%, rgba(82, 226, 255, 0.42), transparent 70%),
    radial-gradient(1500px 1100px at 34% 0.5%, rgba(86, 44, 176, 0.95), transparent 70%),
    radial-gradient(1000px 900px at 100% 2.5%, rgba(123, 55, 183, 0.75), transparent 70%),
    radial-gradient(900px 800px at 100% 12%, rgba(228, 120, 123, 0.32), transparent 70%),
    radial-gradient(900px 900px at 0% 13%, rgba(56, 92, 158, 0.42), transparent 70%),
    radial-gradient(1000px 900px at 0% 23%, rgba(131, 59, 179, 0.42), transparent 70%),
    radial-gradient(1000px 1000px at 100% 34%, rgba(72, 39, 145, 0.62), transparent 70%),
    radial-gradient(900px 800px at 0% 45%, rgba(56, 92, 158, 0.36), transparent 70%),
    radial-gradient(1000px 900px at 100% 56%, rgba(123, 55, 183, 0.48), transparent 70%),
    radial-gradient(900px 700px at 0% 66%, rgba(228, 120, 123, 0.3), transparent 70%),
    radial-gradient(1000px 800px at 100% 73%, rgba(72, 39, 145, 0.5), transparent 70%),
    radial-gradient(1500px 1000px at 50% 83%, rgba(110, 50, 180, 0.5), transparent 70%),
    radial-gradient(900px 700px at 100% 97%, rgba(228, 120, 123, 0.26), transparent 70%),
    radial-gradient(1100px 800px at 0% 100%, rgba(131, 59, 179, 0.5), transparent 70%),
    var(--night);
}
.atmosphere::after {
  content: "";
  position: fixed;
  inset: 0;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(13, 10, 30, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  backdrop-filter: saturate(140%) blur(18px);
}

.nav {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand img { border-radius: 8px; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background-color 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.button-primary {
  background: var(--spark);
  color: #24164f;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 10px 30px -12px rgba(255, 228, 170, 0.6);
}
.button-primary:hover { background: #fffaf0; transform: translateY(-1px); }
.button-quiet {
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}
.button-quiet:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.08); }
.button-small { min-height: 40px; padding: 0 18px; font-size: 0.98rem; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Type ---------- */

h1, h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.018em;
  word-spacing: 0.05em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.9rem, 7.4vw, 6.1rem);
  line-height: 0.98;
}
h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.04;
}
h3 {
  font-family: var(--body);
  font-size: 1.1875rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.003em;
}
.lead {
  font-size: clamp(1.15rem, 1.6vw, 1.32rem);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}
.fine { font-size: 0.98rem; color: var(--text-3); }
.muted { color: var(--text-3); font-size: 1rem; }

/* ---------- Layout ---------- */

.section,
.hero {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: clamp(96px, 13vw, 168px); }
.section-head { max-width: 760px; display: grid; gap: 22px; }
.section-head-center { margin: 0 auto; text-align: center; justify-items: center; }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(48px, 8vw, 104px); }

.hero-copy {
  max-width: 1060px;
  margin: 0 auto;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 26px;
}
.hero-copy .lead { max-width: 700px; color: #e4dcf2; }
.hero-copy .actions { justify-content: center; margin-top: 4px; }
.hero-copy .fine { margin-top: -6px; }

.stage { margin: clamp(56px, 7vw, 88px) auto 0; max-width: 1120px; }

/* The screen echoes the icon: a gradient tile holding a darker glass slab. */
.screen {
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 520px;
  border-radius: var(--r-xl);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(28% 34% at 0% 0%, rgba(82, 226, 255, 0.95), transparent 70%),
    radial-gradient(40% 40% at 6% 10%, rgba(56, 92, 158, 0.9), transparent 70%),
    radial-gradient(60% 60% at 100% 100%, rgba(228, 120, 123, 0.98), transparent 70%),
    radial-gradient(50% 50% at 70% 92%, rgba(203, 121, 141, 0.85), transparent 70%),
    radial-gradient(50% 60% at 96% 30%, rgba(123, 55, 183, 0.95), transparent 70%),
    linear-gradient(160deg, #46278f 0%, #4b2a9a 38%, #6a31b4 62%, #8b3fa8 82%, #c7678a 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.16),
    0 60px 120px -40px rgba(10, 4, 30, 0.9),
    0 30px 60px -30px rgba(70, 30, 140, 0.6);
}
.screen::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: calc(var(--r-xl) - 8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 3;
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.12;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.menubar {
  position: relative;
  z-index: 2;
  height: 30px;
  padding: 0 20px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--ui);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(20, 10, 50, 0.28);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.menubar-left,
.menubar-right { display: flex; align-items: center; gap: 18px; }
.menubar-left b { font-weight: 700; }
.menubar-wave { width: 18px; height: 12px; fill: currentColor; transition: opacity 0.2s; }
.screen[data-recording] .menubar-wave { opacity: 1; fill: #fff; }

.window {
  font-family: var(--ui);
  color: #ecebf2;
  background: rgba(30, 27, 42, 0.94);
  border-radius: 12px;
  box-shadow:
    0 0 0 0.5px rgba(255, 255, 255, 0.2) inset,
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 30px 70px -20px rgba(8, 2, 26, 0.75);
  overflow: hidden;
}
.titlebar {
  height: 40px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.window-title { text-align: center; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, 0.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.send-icon { justify-self: end; width: 17px; height: 17px; fill: rgba(255, 255, 255, 0.55); }

.mail {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 64px;
  width: min(660px, 72%);
  transform: translateX(-50%);
}
.mail-field {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.mail-field > span:first-child { color: rgba(255, 255, 255, 0.45); }
.token { padding: 1px 8px; border-radius: 6px; background: rgba(82, 140, 255, 0.24); color: #d6e3ff; }
.mail-body { padding: 18px 20px 22px; font-size: 14px; line-height: 1.55; min-height: 236px; }
.compose { min-height: 124px; color: #f2f1f7; }
.compose p + p { margin-top: 10px; }
.compose.is-pasted { animation: paste 0.5s var(--ease); }
@keyframes paste { from { opacity: 0; } to { opacity: 1; } }

.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.18em;
  background: #f2f1f7;
  animation: blink 1.06s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.quoted {
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid rgba(110, 140, 255, 0.5);
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}
.quoted p + p { margin-top: 4px; }

.caption {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 120px;
  width: min(620px, 84%);
  transform: translateX(-50%);
  text-align: center;
  text-wrap: balance;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.caption.is-visible { opacity: 1; }
.caption-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
}
.caption-text {
  display: inline;
  padding: 3px 10px;
  border-radius: 6px;
  font-family: var(--body);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-style: italic;
  line-height: 1.75;
  color: #fff;
  background: rgba(14, 6, 34, 0.62);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.caption-text:empty { display: none; }

/* Recorder pill: geometry follows MiniRecorderView. */
.pill {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 42px;
  height: 24px;
  width: 58px;
  transform: translateX(-50%);
  border-radius: 999px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  background: rgba(22, 18, 36, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 0 0 0.5px rgba(255, 255, 255, 0.22) inset, 0 8px 22px rgba(10, 2, 30, 0.45);
  transition: width 0.5s var(--ease), height 0.5s var(--ease);
  overflow: hidden;
  font-family: var(--ui);
}
.pill > span { grid-area: 1 / 1; transition: opacity 0.25s; opacity: 0; display: flex; align-items: center; }
.pill[data-phase="idle"] > .pill-idle,
.pill[data-phase="recording"] > .pill-rec,
.pill[data-phase="status"] > .pill-status { opacity: 1; }
.pill[data-phase="recording"] { width: 250px; height: 44px; }
.pill[data-phase="status"] { width: var(--status-width, 196px); height: 44px; }

.pill-idle { gap: 3px; }
.pill-idle i { width: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.86); height: 6px; }
.pill-idle i:nth-child(2), .pill-idle i:nth-child(4) { height: 10px; }
.pill-idle i:nth-child(3) { height: 12px; }

.pill-rec { width: 100%; padding: 0 14px; gap: 10px; }
.rec-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff453d;
  box-shadow: 0 0 0 0 rgba(255, 69, 61, 0.5);
  animation: pulse 1.4s ease-out infinite;
}
@keyframes pulse { to { box-shadow: 0 0 0 7px rgba(255, 69, 61, 0); } }
.rec-wave { flex: 1; min-width: 0; height: 22px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.rec-wave i { flex: none; width: 2.5px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.9); transition: height 0.07s linear; }
.rec-time { font-size: 12px; font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, 0.6); }
.pill-status { white-space: nowrap; font-size: 13px; font-weight: 600; color: #fff; padding: 0 18px; }

.fn-key {
  position: absolute;
  z-index: 2;
  left: 34px;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
}
.fn-key kbd {
  min-width: 46px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: #fff;
  border-radius: 9px;
  background: rgba(24, 14, 52, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-bottom-width: 4px;
  transition: transform 0.12s, border-bottom-width 0.12s, background-color 0.2s;
}
.fn-key[hidden] { display: none; }
.fn-key.is-down kbd { transform: translateY(3px); border-bottom-width: 1px; background: rgba(255, 244, 201, 0.92); color: #2a1a5e; }

/* The menu bar icon turns into a pencil while a draft is being written. */
.menubar-icon { display: grid; }
.menubar-icon > svg { grid-area: 1 / 1; transition: opacity 0.25s; }
.menubar-pencil { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; place-self: center; }
.screen[data-drafting] .menubar-wave { opacity: 0; }
.screen[data-drafting] .menubar-pencil { opacity: 1; }

/* Only the window of the current scene is shown. */
.scene-window {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
}
.screen[data-scene="speak"] [data-window="speak"],
.screen[data-scene="ask"] [data-window="ask"],
.screen[data-scene="type"] [data-window="type"] {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease) 0.12s, visibility 0s;
}
.screen .chat,
.screen .doc {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 64px;
  width: min(640px, 72%);
  margin: 0;
  transform: translateX(-50%);
}
.screen .suggestion { width: min(460px, calc(100% - 24px)); }
.fn-key.is-wide kbd { min-width: 58px; }

.stage-bar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.scene-tabs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.scene-tab {
  position: relative;
  display: grid;
  gap: 1px;
  padding: 13px 18px 12px;
  border: 0;
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 0 1px var(--line) inset;
  color: var(--text-3);
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.scene-tab:hover { color: var(--text-2); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.scene-tab[aria-pressed="true"] {
  color: var(--text-2);
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
}
.scene-tab-mode { font-weight: 650; font-size: 1.0625rem; color: var(--text); }
.scene-tab-detail { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Fills while a scene plays, so it is clear when the next one starts. */
.scene-tab-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--spark);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
  opacity: 0;
  transition: opacity 0.3s;
}
.scene-tab[aria-pressed="true"] .scene-tab-progress { opacity: 0.9; }

.stage-knowledge {
  margin-top: 16px;
  padding: 0 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: var(--text-3);
  font-size: 0.98rem;
}
.stage-knowledge-label { font-weight: 600; color: var(--text-2); }
.stage-notes { display: flex; flex-wrap: wrap; gap: 8px; }
.stage-notes li {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding: 5px 13px 6px;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line) inset;
  opacity: 0.45;
  transition: opacity 0.5s var(--ease), box-shadow 0.5s var(--ease), background-color 0.5s var(--ease);
}
.stage-notes b { font-weight: 650; color: var(--text); }
.stage-notes span { font-size: 0.92rem; }
.stage-notes.is-used li {
  opacity: 1;
  background: rgba(255, 244, 201, 0.07);
  box-shadow: 0 0 0 1px rgba(255, 244, 201, 0.4) inset;
}
.stage-notes.is-used li:nth-child(2) { transition-delay: 0.12s; }
.stage-notes.is-used li:nth-child(3) { transition-delay: 0.24s; }
.stage-toggle,
.text-button {
  font: inherit;
  font-weight: 600;
  color: var(--text-2);
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 16px;
  min-height: 36px;
  white-space: nowrap;
  cursor: pointer;
}
.stage-toggle:hover,
.text-button:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.45); }

/* ---------- Three ways, one memory ---------- */

.ways {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  gap: 28px;
}
.ways-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.way {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 26px 26px;
  border-radius: var(--r-l);
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line) inset;
  isolation: isolate;
}
/* Each card takes one corner of the icon's gradient. */
.way::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  opacity: 0.5;
  background: radial-gradient(70% 60% at 0% 0%, var(--glow), transparent 70%);
}
/* A short line from each way of writing down into the knowledge they share. */
.way::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 28px;
  background: linear-gradient(180deg, var(--line-strong), rgba(255, 244, 201, 0.6));
}
.way-speak { --glow: rgba(82, 226, 255, 0.4); }
.way-ask { --glow: rgba(123, 55, 183, 0.75); }
.way-type { --glow: rgba(228, 120, 123, 0.5); }
.way-keys {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  color: var(--text-3);
  font-size: 0.95rem;
}
.way-keys span { margin-left: 6px; }
.way h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.3vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
}
.way p:not(.way-keys) { color: var(--text-2); }
.way a,
.ways-core a {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 6px;
  font-weight: 600;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 244, 201, 0.5);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.way a:hover,
.ways-core a:hover { color: var(--spark); text-decoration-color: var(--spark); }

.ways-core {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px 40px;
  padding: 28px 30px;
  border-radius: var(--r-l);
  background:
    radial-gradient(60% 140% at 100% 100%, rgba(228, 120, 123, 0.32), transparent 70%),
    radial-gradient(50% 140% at 0% 0%, rgba(82, 226, 255, 0.18), transparent 70%),
    linear-gradient(120deg, rgba(56, 34, 116, 0.9), rgba(38, 23, 80, 0.92));
  box-shadow: 0 0 0 1px rgba(255, 244, 201, 0.3) inset, 0 30px 70px -40px rgba(123, 55, 183, 0.9);
}
.ways-core h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.3vw, 2.05rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin-bottom: 6px;
}
.ways-core p { color: var(--text-2); }
.ways-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.ways-kinds li {
  padding: 5px 13px 6px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
}
.ways-core a { margin-top: 0; padding-top: 0; white-space: nowrap; }

/* ---------- Knowledge: mirrors the Notes tab ---------- */

.memory { margin: 0; }
.memory-head,
.memory-body { background: rgba(19, 14, 40, 0.86); }
.memory-head { box-shadow: 0 1px 0 var(--line-strong) inset, 1px 0 0 var(--line-strong) inset, -1px 0 0 var(--line-strong) inset; }
.memory-body { box-shadow: 0 -1px 0 var(--line-strong) inset, 1px 0 0 var(--line-strong) inset, -1px 0 0 var(--line-strong) inset; }
.memory-head {
  padding: 22px 26px 16px;
  border-radius: var(--r-l) var(--r-l) 0 0;
  border-bottom: 1px solid var(--line);
}
.memory-title { font-weight: 650; font-size: 1.1875rem; }
.memory-meta { margin-top: 2px; color: var(--text-3); font-size: 0.95rem; }
.memory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.memory-filters button {
  flex: none;
  min-height: 32px;
  padding: 4px 13px;
  border: 0;
  border-radius: 999px;
  background: none;
  box-shadow: 0 0 0 1px var(--line) inset;
  color: var(--text-3);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.memory-filters button:hover { color: var(--text); }
.memory-filters button[aria-pressed="true"] {
  color: var(--text);
  background: rgba(255, 244, 201, 0.1);
  box-shadow: 0 0 0 1px rgba(255, 244, 201, 0.42) inset;
}
.memory-body {
  margin-top: -1px;
  padding: 0 26px 8px;
  border-radius: 0 0 var(--r-l) var(--r-l);
}
/* Every row draws its own top rule; the first sits on the head's border. */
.memory-body > li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 15px 0 14px;
  border-top: 1px solid rgba(229, 219, 255, 0.08);
}
.memory-body > li.is-removing { animation: remove-note 0.28s var(--ease) forwards; }
@keyframes remove-note { to { opacity: 0; transform: translateX(8px); } }
.note-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.note-subject { font-weight: 650; font-size: 1.0625rem; }
.note-text { color: var(--text-2); font-size: 1rem; line-height: 1.5; margin-top: 2px; }
.note-detail { color: var(--text-3); font-size: 0.88rem; margin-top: 5px; }
.trust {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  color: var(--text-3);
}
/* Three segments, filled to the note's level of trust; the bar itself is shared with .trust-word. */
.trust[data-trust="1"] { --trust: 1; }
.trust[data-trust="2"] { --trust: 2; }
.trust[data-trust="3"] { --trust: 3; }
.memory-body > li.memory-empty { display: block; color: var(--text-3); font-size: 0.95rem; }
.note-remove {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-3);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.note-remove:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.note-remove svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Models and data ---------- */

.routes {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
/* Cards share rows through subgrid, so the same question sits at the same height in each. */
.route-card {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  gap: 0;
  padding: 24px 26px 26px;
  border-radius: var(--r-l);
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.route-card h3 {
  margin: 22px 0 6px;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
}
.route-facts {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
}
.route-facts > div { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.route-facts dt { font-weight: 650; font-size: 1rem; color: var(--text); margin-bottom: 4px; }
.route-facts dd { color: var(--text-3); font-size: 1rem; line-height: 1.5; }
.route-names {
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* A small map of where text travels: inside the Mac's outline, or out across a dashed line. */
.route {
  display: flex;
  align-items: stretch;
  min-height: 74px;
  font-size: 0.86rem;
  font-weight: 600;
}
.route-mac,
.route-dest {
  display: flex;
  align-items: center;
  border-radius: var(--r-s);
  padding: 10px 12px;
}
.route-mac {
  flex: none;
  gap: 10px;
  min-width: 92px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 1px var(--line-strong) inset;
  color: var(--text-2);
}
.route-card:first-child .route-mac { flex: 1; justify-content: space-between; }
.route-model {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(255, 244, 201, 0.5) inset;
  background: rgba(255, 244, 201, 0.07);
}
.route-line {
  position: relative;
  flex: 1;
  min-width: 60px;
  display: grid;
  place-items: center;
}
.route-line::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 50%;
  border-top: 1px dashed rgba(255, 244, 201, 0.55);
}
.route-line span {
  position: relative;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--panel-solid);
  color: var(--text-3);
  font-weight: 500;
  font-size: 0.8rem;
  white-space: nowrap;
}
.route-dest {
  flex: none;
  border: 1px dashed rgba(255, 244, 201, 0.45);
  color: var(--text);
}

.tasks {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 24px 48px;
  align-items: center;
  padding: 28px 30px;
  border-radius: var(--r-l);
  background: rgba(19, 14, 40, 0.7);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.tasks-copy { display: grid; gap: 8px; }
.tasks-copy p { color: var(--text-3); font-size: 1rem; }
.task-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.task-list li {
  display: grid;
  gap: 4px;
  align-content: start;
  padding: 14px 16px 16px;
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.task-list b { font-weight: 650; font-size: 1rem; }
.task-list span { color: var(--text-3); font-size: 0.92rem; line-height: 1.4; }

.facts {
  margin-top: clamp(56px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 64px;
}
.fact { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); }
.fact p { color: var(--text-3); }

/* ---------- How it learns ---------- */

.timeline {
  position: relative;
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 40px;
}
/* One rail through the three moments, from the first message to months later. */
.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 0;
  top: 6px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 244, 201, 0.7), rgba(123, 55, 183, 0.8) 60%, rgba(228, 120, 123, 0.2));
}
.timeline-step { position: relative; display: grid; gap: 10px; align-content: start; padding-top: 34px; }
.timeline-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 0 1.5px var(--spark) inset;
}
.timeline-when { color: var(--text-2); font-weight: 650; font-size: 0.98rem; }
.timeline-step h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.45rem, 2vw, 1.75rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
}
.timeline-step p:not(.timeline-when) { color: var(--text-3); }

.trust-word {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--text);
  font-weight: 600;
}
.trust-word::before,
.trust::before {
  content: "";
  width: 25px;
  height: 5px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 244, 201, 0.85) calc(var(--trust) * 33.34%), rgba(255, 255, 255, 0.16) 0);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px);
  mask: repeating-linear-gradient(90deg, #000 0 7px, transparent 7px 9px);
}
.trust-word[data-trust="1"] { --trust: 1; }
.trust-word[data-trust="2"] { --trust: 2; }
.trust-word[data-trust="3"] { --trust: 3; }

.principles {
  margin-top: clamp(56px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 48px;
}
.principles li { display: grid; gap: 10px; align-content: start; padding-top: 22px; border-top: 1px solid var(--line); }
.principles p { color: var(--text-3); }

/* ---------- Getting started ---------- */

.start-steps {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}
.start-steps li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 26px 26px 28px;
  border-radius: var(--r-l);
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line) inset;
  counter-increment: step;
}
.start-steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  color: var(--spark);
  margin-bottom: 8px;
}
.start-steps p { color: var(--text-3); }
/* ---------- Split sections ---------- */

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
.section-split-reverse .split-copy { order: 2; }
.split-copy { display: grid; gap: 24px; }
.split-copy h2 { font-size: clamp(2rem, 3.5vw, 3.05rem); }
.split-copy .lead { margin-bottom: 8px; }

.points { display: grid; gap: 20px; }
.points > div { padding-top: 18px; border-top: 1px solid var(--line); }
.points dt { font-weight: 650; font-size: 1.0625rem; margin-bottom: 4px; }
.points dd { color: var(--text-3); }

.figure-note {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-3);
  font-size: 0.98rem;
}

/* ---------- History card ---------- */

.history {
  margin: 0;
  position: sticky;
  top: 104px;
}
.history-card,
.history > .history-head,
.history > .history-tabs,
.history > .history-panel,
.history > .taught { position: relative; }

.history {
  --card: rgba(19, 14, 40, 0.86);
}
.history-head,
.history-tabs,
.history-panel,
.taught {
  background: var(--card);
  box-shadow: 1px 0 0 var(--line-strong) inset, -1px 0 0 var(--line-strong) inset;
}
.history-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 26px 16px;
  border-radius: var(--r-l) var(--r-l) 0 0;
  box-shadow: 0 1px 0 var(--line-strong) inset, 1px 0 0 var(--line-strong) inset, -1px 0 0 var(--line-strong) inset;
}
.history-app { font-weight: 650; }
.history-meta { color: var(--text-3); font-size: 0.95rem; }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 0.95rem; color: var(--text-2); cursor: pointer; }
.switch input {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 22px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
}
.switch input::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.switch input:checked { background: var(--purple); }
.switch input:checked::after { transform: translateX(14px); }

.history-tabs { display: flex; gap: 4px; padding: 0 22px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.history-tabs::-webkit-scrollbar { display: none; }
.history-tabs button {
  position: relative;
  flex: none;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-3);
  background: none;
  border: 0;
  padding: 12px 10px 14px;
  cursor: pointer;
  transition: color 0.2s;
}
.history-tabs button:hover { color: var(--text); }
.history-tabs button[aria-selected="true"] { color: var(--text); }
.history-tabs button[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--spark);
}

.history-panel { padding: 24px 26px 22px; min-height: 196px; }
.history-panel:focus-visible { outline-offset: -4px; }
.history-text { font-size: 1.1875rem; line-height: 1.6; color: var(--text); }
.history-text ins {
  text-decoration: underline;
  text-decoration-color: var(--spark);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  background: rgba(255, 244, 201, 0.12);
  border-radius: 3px;
  padding: 0 1px;
}
.history-text del {
  color: var(--text-3);
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(228, 120, 123, 0.9);
  opacity: 0.85;
}
.history-note { margin-top: 16px; font-size: 0.98rem; color: var(--text-3); }

.taught {
  padding: 22px 26px 26px;
  border-radius: 0 0 var(--r-l) var(--r-l);
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 0 var(--line-strong) inset, 1px 0 0 var(--line-strong) inset, -1px 0 0 var(--line-strong) inset;
  background: linear-gradient(180deg, rgba(49, 30, 101, 0.7), rgba(36, 22, 74, 0.9));
}
.taught h3 { font-size: 1rem; color: var(--text-2); margin-bottom: 14px; }
.taught ul { display: grid; gap: 14px; }
.taught li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.taught strong { font-weight: 650; margin-right: 6px; }
.taught .muted { font-size: 0.95rem; margin-top: 2px; }

.spark { width: 22px; height: 22px; margin-top: 2px; }
.spark circle { fill: var(--spark); }
.spark path { stroke: var(--spark); stroke-width: 2.1; stroke-linecap: round; fill: none; }

/* ---------- Writing companion ---------- */

.companion { margin: 0; position: relative; }
/* Room for the suggestion panel, which hangs below the composer like the real one. */
.chat { position: relative; margin-bottom: 92px; }
.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 14px;
}
.chat-head b { display: block; font-weight: 700; }
.chat-head small { display: block; color: rgba(255, 255, 255, 0.5); font-size: 12px; }
.avatar {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #1a1238;
  background: linear-gradient(135deg, var(--cyan), #9fb7ff);
}
.chat-log { padding: 20px 18px 8px; min-height: 150px; }
.message { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.5; }
.message-meta { color: rgba(255, 255, 255, 0.5); font-size: 12.5px; margin-bottom: 2px; }
.message-meta b { color: #fff; font-weight: 700; margin-right: 6px; font-size: 14px; }

.composer {
  position: relative;
  margin: 10px 16px 18px;
  padding: 12px 14px;
  min-height: 92px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.18);
}
.composer-text { font-size: 14.5px; line-height: 1.5; color: #f2f1f7; }
.composer-text [data-accepted] { animation: paste 0.4s var(--ease); }
.progress-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  background: #221d33;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14) inset, 0 10px 24px rgba(0, 0, 0, 0.35);
  z-index: 2;
}
.spinner {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-top-color: rgba(255, 255, 255, 0.85);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Suggestion panel: mirrors WritingSuggestionView. */
.progress-pill[hidden] { display: none; }
.suggestion {
  position: absolute;
  z-index: 3;
  width: min(440px, calc(100% - 16px));
  padding: 13px 15px 12px;
  border-radius: 11px;
  background: #221d33;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 24px 50px -14px rgba(6, 2, 22, 0.8);
  font-family: var(--ui);
  animation: rise 0.35s var(--ease);
}
.suggestion[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.suggestion-text { font-size: 14.5px; line-height: 1.5; color: #f4f2f8; white-space: pre-line; }
.suggestion-keys { margin-top: 11px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.suggestion-keys > span:not(.suggestion-kind) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}
.suggestion-keys button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  margin: -4px -2px;
  min-height: 30px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.suggestion-keys button:hover { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.85); }
.suggestion-keys kbd {
  min-width: 0;
  padding: 1px 5px;
  font-size: 11.5px;
  font-weight: 700;
  border-width: 1px;
  border-color: rgba(255, 255, 255, 0.18);
  background: none;
  color: rgba(255, 255, 255, 0.75);
}
.suggestion-kind { margin-left: auto; font-size: 12px; color: rgba(255, 255, 255, 0.6); }

.avatar-warm { background: linear-gradient(135deg, var(--spark), var(--coral)); }
.composer-placeholder { color: rgba(255, 255, 255, 0.38); }

/* A document window, for the Word scene. */
.doc-page {
  padding: 26px 34px 30px;
  min-height: 280px;
  font-family: var(--ui);
}
.doc-title { font-size: 20px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.doc-meta { margin: 3px 0 16px; font-size: 12.5px; color: rgba(255, 255, 255, 0.5); }
.doc-text { font-size: 14px; line-height: 1.6; color: #f2f1f7; white-space: pre-line; }

/* ---------- Drafts: a selection rewritten ---------- */

.rewrite .mail-plain { margin-bottom: 150px; }
.mail-plain .mail-body { min-height: 0; padding-bottom: 26px; }
.rewrite-text { font-size: 14.5px; line-height: 1.55; color: #f2f1f7; white-space: pre-line; min-height: 92px; }
.rewrite-text .selection {
  color: #fff;
  background: rgba(82, 140, 255, 0.45);
  border-radius: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.rewrite-text [data-rewrite-result]:not(:empty) { animation: paste 0.4s var(--ease); }

/* Labels a section with the way of writing it covers. */
.section-mode {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-2);
  font-weight: 650;
  font-size: 1.0625rem;
}
.section-mode kbd:last-of-type { margin-right: 6px; }

/* ---------- Norwegian ---------- */

.norsk {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.norsk-sample {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}
.norsk-copy { display: grid; gap: 16px; }
.norsk-copy h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); }
.norsk-copy p { color: var(--text-3); }

/* ---------- Pricing ---------- */

.plan {
  margin: clamp(48px, 6vw, 72px) auto 0;
  max-width: 1040px;
  padding: clamp(18px, 4.6vw, 60px);
  border-radius: calc(var(--r-xl) + 12px);
  background:
    radial-gradient(30% 50% at 0% 0%, rgba(82, 226, 255, 0.9), transparent 70%),
    radial-gradient(60% 70% at 100% 100%, rgba(228, 120, 123, 0.95), transparent 70%),
    radial-gradient(50% 60% at 95% 20%, rgba(123, 55, 183, 0.9), transparent 70%),
    linear-gradient(150deg, #3f2a8f 0%, #4b2a9a 35%, #6a31b4 65%, #b45f93 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 50px 100px -40px rgba(10, 4, 30, 0.9);
}
.plan-slab {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 52px);
  border-radius: var(--r-xl);
  background: rgba(28, 16, 70, 0.64);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22) inset, 0 30px 60px -30px rgba(12, 4, 40, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.plan-slab::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--r-xl) - 7px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.plan-price { display: grid; gap: 18px; align-content: start; }
.plan-name { font-weight: 650; color: var(--text-2); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; }
.amount {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.period { color: var(--text-2); font-size: 1.125rem; }
.plan-trial { color: var(--text-2); }
.plan-price .actions { margin-top: 6px; }
.plan-includes { display: grid; gap: 16px; align-content: start; }
.plan-includes h3 { font-size: 1rem; color: var(--text-2); }
.plan-includes ul { display: grid; gap: 12px; }
.plan-includes li { position: relative; padding-left: 28px; }
.plan-includes li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.48em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--spark);
  border-bottom: 2px solid var(--spark);
  transform: rotate(-45deg);
}
.plan-includes .muted { margin-top: 8px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.12); }

/* ---------- FAQ ---------- */

.section-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.section-faq h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  list-style: none;
  padding: 22px 48px 22px 0;
  font-size: 1.1875rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 6px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease), margin-top 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--spark); }
.faq details p { padding: 0 48px 24px 0; color: var(--text-3); max-width: 680px; }

/* ---------- Closing ---------- */

.closing {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(110px, 14vw, 180px) var(--gutter) clamp(90px, 10vw, 130px);
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 24px;
}
.closing img { border-radius: 26px; box-shadow: 0 30px 80px -20px rgba(123, 55, 183, 0.8); margin-bottom: 8px; }
.closing h2 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.closing .actions { justify-content: center; margin-top: 6px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: rgba(9, 7, 20, 0.6); }
.footer-inner {
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 28px var(--gutter) 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-3);
  font-size: 0.98rem;
}
.footer-inner .brand { color: var(--text); font-size: 1.05rem; }
.footer-inner nav { margin-left: auto; }
.footer-inner ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-inner ul a { text-decoration: none; }
.footer-inner ul a:hover { color: var(--text); }

/* ---------- Single pages: activation, terms, privacy ---------- */

.page {
  max-width: calc(760px + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) var(--gutter) clamp(80px, 10vw, 128px);
}
.page h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 1.02; }
.page > .lead { margin-top: 22px; }
.page .actions { margin-top: 32px; }
.page .fine { margin-top: 18px; }
.page-steps { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 14px; color: var(--text-2); }
.page-steps h2 { font-family: var(--body); font-size: 1.1875rem; font-weight: 650; letter-spacing: 0; word-spacing: 0; }

.legal { color: var(--text-2); }
.legal > p.fine:first-of-type { margin-top: 14px; }
.legal h2 {
  margin-top: 48px;
  font-family: var(--body);
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.003em;
  word-spacing: 0;
}
.legal h2 + p, .legal p + p, .legal p + ul, .legal ul + p { margin-top: 14px; }
.legal ul { display: grid; gap: 10px; padding-left: 1.2em; list-style: disc; }
.legal li::marker { color: var(--text-3); }
.legal a { color: var(--text); text-underline-offset: 3px; }
/* ---------- Entrance ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .ways-modes { grid-template-columns: 1fr; }
  .way::after { height: 20px; }
  .way:last-child::after { height: 28px; }
  .ways-core { grid-template-columns: 1fr; }
  .routes { grid-template-columns: 1fr; }
  .route-card { grid-row: auto; grid-template-rows: none; }
  .route-facts { grid-row: auto; grid-template-rows: none; }
  .route { max-width: 480px; }
  .tasks { grid-template-columns: 1fr; }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav .button { margin-left: auto; }
  .section-split,
  .norsk,
  .section-faq { grid-template-columns: minmax(0, 1fr); }
  .section-split-reverse .split-copy { order: 0; }
  .history { position: relative; top: 0; }
  .split-copy h2 { max-width: 640px; }
  .plan-slab { grid-template-columns: 1fr; }

  /* The 16:10 ratio with its minimum height would be wider than a tablet screen. */
  .screen { aspect-ratio: auto; min-height: 680px; }
  .task-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline { grid-template-columns: 1fr; gap: 36px; padding-left: 34px; }
  .timeline::before { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; background: linear-gradient(180deg, rgba(255, 244, 201, 0.7), rgba(123, 55, 183, 0.8) 60%, rgba(228, 120, 123, 0.2)); }
  .timeline-step { padding-top: 0; }
  .timeline-step::before { left: -34px; top: 6px; }
  .start-steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 1.0625rem; }
  .facts,
  .principles { grid-template-columns: 1fr; gap: 32px; }
  .task-list { grid-template-columns: 1fr; }
  .route-card { padding: 22px 20px 22px; }
  .tasks { padding: 22px 20px; }

  .screen { aspect-ratio: auto; min-height: 680px; border-radius: 24px; }
  .screen::before { border-radius: 17px; }
  .hide-sm { display: none; }
  .menubar { padding: 0 16px; font-size: 12px; }
  .menubar-left, .menubar-right { gap: 12px; }
  .menubar-right span:first-of-type { display: none; }
  .mail,
  .screen .chat,
  .screen .doc { top: 46px; width: calc(100% - 28px); }
  .doc-page { padding: 20px 20px 24px; }
  .scene-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scene-tab { padding: 12px 12px 11px; }
  .scene-tab-detail { display: none; }
  .stage-bar { flex-wrap: wrap; }
  .stage-bar .stage-toggle { margin-left: auto; }
  .stage-notes li { width: 100%; }
  .mail-body { min-height: 0; font-size: 13.5px; }
  .compose { min-height: 116px; }
  .quoted { display: none; }
  .caption { bottom: 100px; width: calc(100% - 32px); }
  .caption-text { font-size: 0.98rem; }
  .fn-key { left: 50%; bottom: 76px; transform: translateX(-50%); display: none; }
  .pill[data-phase="recording"] { width: 220px; }


  .footer-inner { flex-wrap: wrap; }
  .footer-inner nav { margin-left: 0; width: 100%; }
  .chat { margin-bottom: 128px; }
  .rewrite .mail-plain { margin-bottom: 250px; }
  .suggestion-kind { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .caret { animation: none; }
}

@media (forced-colors: active) {
  .history-text ins { text-decoration-color: CanvasText; }
  .button-primary { border: 2px solid ButtonText; }
}
