/* RayMate - landing page.
   A flat near-black ground with a single violet, taken from the app icon and
   used only where it carries meaning: the primary action, a link, a live
   signal, one selected row. No gradients, no glows. Everything is left-aligned
   and separated by space and hairlines rather than boxes.
   The page commits to dark: the app is a dark, translucent panel, and a light
   version of this page would misrepresent it. */

:root {
  --bg: #020202;
  --surface: #11141b;
  --surface-2: #171b24;
  --line: rgba(190, 210, 255, 0.10);
  --line-strong: rgba(190, 210, 255, 0.18);

  --text: #f2f5fa;
  --dim: #93a0b5;
  --faint: #67748a;

  /* Apple's #0a84ff is tuned for ~#1c1c1e surfaces; on a near-black page it
     glares, and white on it is only 3.65:1, under AA for this label size.
     This sits a step deeper: 4.58:1 with white on the button, and still
     4.53:1 as link text on the page ground. Hover darkens, as macOS does when
     a filled button is pressed; lightening would drop back under AA. */
  --accent: #0b72e8;
  --accent-hover: #0a66d0;
  --on-accent: #ffffff;
  --hover-neutral: rgba(190, 210, 255, 0.07);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: "Inter Tight", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --gutter: 24px;
  --measure: 1080px;
  --r-control: 8px;
  --r-panel: 14px;
  --section: clamp(96px, 11vw, 168px);
}

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

html {
  scroll-behavior: smooth;
  /* The bar is sticky, so a jump to an anchor would otherwise land under it. */
  scroll-padding-top: 76px;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

a {
  color: inherit;
}

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

.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  width: auto;
  height: auto;
  clip-path: none;
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 10px 16px;
  border-radius: var(--r-control);
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.038em;
  text-wrap: balance;
  margin: 0;
}
.t-hero {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.06;
}
.t-section {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 650;
  line-height: 1.1;
}.lead {
  margin: 0;
  color: var(--dim);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.55;
  max-width: 46ch;
  text-wrap: pretty;
}
.body {
  margin: 0;
  color: var(--dim);
  max-width: 62ch;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: rgba(2, 2, 2, 0.84);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.nav[data-scrolled="true"] {
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 58px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.028em;
  text-decoration: none;
}
.wordmark img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
.nav__end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

/* ---------- Buttons and links ----------
   The primary action fills; the secondary is a text link in the accent. Each
   tints exactly one channel. */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  line-height: 1;
  min-height: 42px;
  padding: 0 20px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn--sm {
  min-height: 34px;
  padding: 0 15px;
  font-size: 14px;
}
.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link--quiet {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.link--quiet:hover {
  color: var(--accent);
}

kbd {
  font-family: var(--mono);
  font-size: 0.8em;
  font-weight: 500;
  line-height: 1;
  display: inline-block;
  padding: 0.34em 0.5em;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line-strong);
  color: var(--text);
  vertical-align: 0.06em;
}

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

.hero {
  padding-block: clamp(40px, 5vw, 68px) 0;
}
/* The panel below is centred in the page, so the copy shares its axis. */
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}
.hero .lead {
  max-width: 54ch;
}
.hero__free {
  margin: 0;
  font-size: 1.02rem;
  color: var(--dim);
}
.hero__free strong {
  color: var(--text);
  font-weight: 600;
}
/* The block reads as crowded when everything is equidistant, so the call to
   action is set apart from the copy above it. */
.hero__actions {
  margin-top: 18px;
}
.hero__meta {
  margin-top: 4px;
}
.hero h1 kbd {
  font-size: 0.4em;
  font-weight: 500;
  vertical-align: 0.4em;
  border-radius: 0.28em;
}
.hero h1 kbd + kbd {
  margin-left: 0.14em;
}
.hero h1 .punct {
  margin-left: -0.1em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 28px;
}
.hero__meta {
  margin: 0;
  font-size: 14.5px;
  color: var(--faint);
}

/* The terminal route, quieter than the button: a label, the command, and one copy action. */
.brew {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: clamp(26px, 3vw, 36px);
}
.brew__label {
  margin: 0;
  font-size: 14.5px;
  color: var(--faint);
}
.brew__code {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  user-select: all;
}
.brew__copy {
  font: inherit;
  font-size: 14px;
  color: var(--dim);
  background: none;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
}
.brew__copy:hover {
  color: var(--text);
}

/* ---------- The app, on a desktop ----------
   A copy of the launcher's Home view (src/app/panel/HomeView.tsx). Every size
   is the app's own px value expressed against the panel's 750px width, so the
   replica keeps its exact proportions at any scale. 1px = 0.13333cqw. */

/* Says how the panel is summoned, right where the panel is shown. */
.mac__hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  text-align: center;
  margin: clamp(30px, 4vw, 48px) 0 0;
  font-size: 15px;
  color: var(--dim);
}
.mac__hint .caps {
  flex: none;
}

.mac {
  position: relative;
  width: 100%;
  margin-top: clamp(32px, 4vw, 52px);
  aspect-ratio: 16 / 7.6;
  display: grid;
  place-items: center;
  container-type: inline-size;
}
/* The stage behind the panel: the atmosphere shot, masked on all four edges so
   it dissolves into the page, with one soft blue glow under the panel to lift
   it off the black. */
.mac__hint + .mac {
  margin-top: 18px;
}
.mac__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  -webkit-mask-image:
    linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent),
    linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent, #000 8%, #000 88%, transparent),
    linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
.mac__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  /* The image is only slightly taller than this box, so object-position alone
     cannot move the arc far. Shifting the whole photo down does; the area it
     leaves at the top is the photograph's own black, so nothing shows. */
  transform: translateY(14%);
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.glow--1 {
  width: 62%;
  aspect-ratio: 1.6;
  left: 19%;
  bottom: -26%;
  background: radial-gradient(ellipse, rgba(10, 132, 255, 0.24) 0%, rgba(10, 132, 255, 0) 70%);
}


/* The app's own palette, from src/styles.css (dark theme). */
.panel {
  position: relative;
  z-index: 1;
  width: 68.18cqw;
  aspect-ratio: 750 / 475;
  border-radius: 2.364cqw;
  overflow: hidden;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  text-align: left;
  font-family: -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif;
  color: #ececec;
  background: rgba(6, 6, 8, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 2.36cqw 4.55cqw rgba(0, 0, 0, 0.6), 0 0.73cqw 1.64cqw rgba(0, 0, 0, 0.4);
  --rm-muted: rgba(235, 235, 245, 0.5);
}

.pl-search {
  display: flex;
  align-items: center;
  flex: none;
  height: 8.267cqw;
  padding: 0 2.667cqw;
  gap: 1.6cqw;
}
.pl-mark {
  width: 2.933cqw;
  height: 2.933cqw;
  flex: none;
  color: var(--rm-muted);
}
.pl-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  font: inherit;
  font-size: 2.533cqw;
  color: #ececec;
  background: none;
  border: 0;
  padding: 0;
}
.pl-input::placeholder {
  color: var(--rm-muted);
}
.pl-input:focus {
  outline: none;
}
.pl-quickai {
  display: flex;
  align-items: center;
  gap: 1.067cqw;
  flex: none;
  font-size: 1.867cqw;
  color: var(--rm-muted);
}
.pl-kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.933cqw;
  min-width: 2.933cqw;
  padding: 0 0.8cqw;
  border-radius: 0.8cqw;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.1);
  font-family: inherit;
  font-size: 1.6cqw;
  color: #ececec;
}
.pl-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 1.067cqw 8.533cqw;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
  /* The list fades out well before the panel's edge, so the rows behind the action bar read
     as continuing rather than cut off under it. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.35) 82%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0, 0, 0, 0.35) 82%, transparent 100%);
}
.pl-list::-webkit-scrollbar {
  width: 0.8cqw;
}
.pl-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}
.pl-list::-webkit-scrollbar-track {
  background: transparent;
}
.pl-item {
  scroll-margin: 1.6cqw;
}
.pl-section {
  padding: 1.6cqw 1.6cqw 0.8cqw;
  font-size: 1.6cqw;
  font-weight: 500;
  color: var(--rm-muted);
}
/* A class selector beats the browser's [hidden] rule, so filtering out a row
   would leave it on screen. These put it back. */
.pl-item[hidden],
.pl-section[hidden] {
  display: none;
}
.pl-item {
  display: flex;
  align-items: center;
  height: 5.067cqw;
  gap: 1.6cqw;
  padding: 0 1.6cqw;
  border-radius: 1.333cqw;
  font-size: 1.867cqw;
  cursor: default;
}
.pl-item.is-sel {
  background: rgba(255, 255, 255, 0.09);
}
.pl-title {
  color: #ececec;
  white-space: nowrap;
}
.pl-sub,
.pl-acc {
  color: var(--rm-muted);
  white-space: nowrap;
}
.pl-acc {
  margin-left: auto;
  flex: none;
}
.pl-empty {
  margin: 0;
  padding: 2.5cqw 1.6cqw;
  font-size: 1.867cqw;
  color: var(--rm-muted);
}
.pi {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.933cqw;
  height: 2.933cqw;
  border-radius: 0.8cqw;
  background: var(--c);
  color: #fff;
}
.pi svg {
  width: 1.867cqw;
  height: 1.867cqw;
}
.pi--c0a84ff { --c: #0a84ff; }
.pi--c0ea5e9 { --c: #0ea5e9; }
.pi--c14b8a6 { --c: #14b8a6; }
.pi--c30b0c7 { --c: #30b0c7; }
.pi--c30d158 { --c: #30d158; }
.pi--c34c759 { --c: #34c759; }
.pi--c3b82f6 { --c: #3b82f6; }
.pi--c5e5ce6 { --c: #5e5ce6; }
.pi--c64748b { --c: #64748b; }
.pi--c8b5cf6 { --c: #8b5cf6; }
.pi--c8e8e93 { --c: #8e8e93; }
.pi--cec4899 { --c: #ec4899; }
.pi--cf59e0b { --c: #f59e0b; }
.pl-toast {
  position: absolute;
  left: 50%;
  bottom: 7.6cqw;
  transform: translateX(-50%);
  z-index: 2;
  max-width: 78%;
  /* One centred paragraph: the label is inline with the sentence, so a message
     that wraps stays aligned instead of sitting beside a centred block. */
  display: block;
  padding: 1.2cqw 2.4cqw;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 24, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  font-size: 1.733cqw;
  line-height: 1.5;
  color: rgba(235, 235, 245, 0.75);
  text-align: center;
  text-wrap: balance;
}
.pl-toast b {
  color: #ececec;
  font-weight: 600;
}
.pl-toast[hidden] {
  display: none;
}

.pl-footer {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 1.6cqw 1.6cqw;
}
.pl-fbtn,
.pl-pill {
  display: flex;
  align-items: center;
  height: 4.8cqw;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.pl-fbtn {
  width: 4.8cqw;
  justify-content: center;
  color: var(--rm-muted);
}
.pl-fbtn svg {
  width: 2.133cqw;
  height: 2.133cqw;
}
.pl-pill {
  gap: 1.6cqw;
  padding: 0 2.133cqw;
  font-size: 1.733cqw;
}
.pl-action {
  color: #ececec;
}

/* ---------- One section pattern, used for every feature ----------
   Copy and three icon rows on one side, a graphic on the other. Alternating
   sides is the only variation; nothing else changes between sections. */

.split {
  padding-block: var(--section) 0;
}
.split__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.split--flip .split__copy {
  order: 2;
}
.split__copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.split__copy .lead {
  margin-bottom: 10px;
}

/* the three rows */
.facts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Plain rows: nothing here is interactive, so nothing is given a resting
   state that would read as hover. Space separates them instead of a fill. */
.fact {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
}
.fact svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  margin-top: 2px;
}
.fact p {
  margin: 0;
  color: var(--dim);
  font-size: 15.5px;
  line-height: 1.5;
}
.fact b {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Graphics ----------
   Every figure is the same object: an accent frame with the app's own dark
   surface inset into it, so each section shows the product rather than
   describing it. */

.fig {
  position: relative;
  border-radius: 16px;
  background: var(--fig, var(--accent));
  padding: 13px 0 0 13px;
  overflow: hidden;
  container-type: inline-size;
}
.fig__inner {
  background: #101016;
  border-top-left-radius: 12px;
  padding: 24px;
  min-height: 276px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif;
  color: #ececec;
}
.fig__label {
  font-size: 12.5px;
  color: rgba(235, 235, 245, 0.5);
}

/* Each section preview gets its own Apple system colour, all on the cold side. */
.fig--blue   { --fig: var(--accent); }
.fig--cyan   { --fig: #64d2ff; }
.fig--indigo { --fig: #5e5ce6; }
.fig--mint   { --fig: #66d4cf; }

/* chat */
.msg {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  line-height: 1.5;
}
.msg--you {
  align-self: flex-end;
  background: var(--fig, var(--accent));
  border: 1px solid var(--fig, var(--accent));
  color: #04070d;
}
.msg--ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 86%;
  max-width: 86%;
}
.bar {
  height: 9px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.16);
}
.bar--80 { width: 80%; }
.bar--95 { width: 95%; }
.bar--60 { width: 60%; }
.bar--40 { width: 40%; }
.modelchip {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(235, 235, 245, 0.72);
}
.modelchip svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}




/* ---------- The app's own components, reproduced ---------- */

/* The app renders the HUD bottom-centre over whatever window you are in
   (items-end / justify-center / pb-4), so the figure places it the same way. */
.fig__inner--stage {
  position: relative;
  justify-content: flex-start;
  padding-bottom: 108px;
}
.fig__hud {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
}

/* the mail window underneath */
.mail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mail__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mail__avatar {
  width: 30px;
  height: 30px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(235, 235, 245, 0.75);
}
.mail__who {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.mail__from {
  font-size: 13.5px;
  font-weight: 600;
  color: #ececec;
}
.mail__time {
  font-size: 12px;
  color: rgba(235, 235, 245, 0.4);
}
.mail__subject {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: #ececec;
}
.mail__body {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(235, 235, 245, 0.6);
}

/* Dictation HUD - src/app/hud/HudApp.tsx: 320x80 pill, 18px radius,
   rgba(14,14,18,0.72) on a white/22 hairline. */
.hud {
  width: 100%;
  height: 80px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 14, 18, 0.72);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
}
.hud__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding-inline: 12px;
  min-height: 0;
}
/* 44 bars, 2px wide, faded at both ends - the app's own mask. */
.hud-wave {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 40px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hud-wave i {
  display: block;
  width: 2px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}
.hud-wave i:nth-child(1) { height: 5px; }
.hud-wave i:nth-child(2) { height: 5px; }
.hud-wave i:nth-child(3) { height: 5px; }
.hud-wave i:nth-child(4) { height: 6px; }
.hud-wave i:nth-child(5) { height: 7px; }
.hud-wave i:nth-child(6) { height: 9px; }
.hud-wave i:nth-child(7) { height: 11px; }
.hud-wave i:nth-child(8) { height: 12px; }
.hud-wave i:nth-child(9) { height: 13px; }
.hud-wave i:nth-child(10) { height: 12px; }
.hud-wave i:nth-child(11) { height: 11px; }
.hud-wave i:nth-child(12) { height: 14px; }
.hud-wave i:nth-child(13) { height: 17px; }
.hud-wave i:nth-child(14) { height: 19px; }
.hud-wave i:nth-child(15) { height: 20px; }
.hud-wave i:nth-child(16) { height: 18px; }
.hud-wave i:nth-child(17) { height: 15px; }
.hud-wave i:nth-child(18) { height: 19px; }
.hud-wave i:nth-child(19) { height: 23px; }
.hud-wave i:nth-child(20) { height: 25px; }
.hud-wave i:nth-child(21) { height: 25px; }
.hud-wave i:nth-child(22) { height: 22px; }
.hud-wave i:nth-child(23) { height: 19px; }
.hud-wave i:nth-child(24) { height: 16px; }
.hud-wave i:nth-child(25) { height: 17px; }
.hud-wave i:nth-child(26) { height: 16px; }
.hud-wave i:nth-child(27) { height: 17px; }
.hud-wave i:nth-child(28) { height: 20px; }
.hud-wave i:nth-child(29) { height: 23px; }
.hud-wave i:nth-child(30) { height: 24px; }
.hud-wave i:nth-child(31) { height: 23px; }
.hud-wave i:nth-child(32) { height: 21px; }
.hud-wave i:nth-child(33) { height: 17px; }
.hud-wave i:nth-child(34) { height: 13px; }
.hud-wave i:nth-child(35) { height: 10px; }
.hud-wave i:nth-child(36) { height: 11px; }
.hud-wave i:nth-child(37) { height: 11px; }
.hud-wave i:nth-child(38) { height: 10px; }
.hud-wave i:nth-child(39) { height: 8px; }
.hud-wave i:nth-child(40) { height: 6px; }
.hud-wave i:nth-child(41) { height: 7px; }
.hud-wave i:nth-child(42) { height: 6px; }
.hud-wave i:nth-child(43) { height: 6px; }
.hud-wave i:nth-child(44) { height: 5px; }
.hud__partial {
  margin: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hud__strip {
  height: 24px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}
.hud__right {
  display: flex;
  align-items: center;
  gap: 2px;
}
.hud__btn {
  height: 19px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-inline: 6px;
  border-radius: 7px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}
.hud__stop {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: currentColor;
}

/* Keycaps - src/ui/HotkeyRecorder.tsx: the whole shortcut in one pill. */
kbd.caps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding-inline: 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  font-family: inherit;
  font-size: 13px;
  line-height: 1;
  color: #ececec;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 1px 1px rgba(0, 0, 0, 0.35);
}

/* Review window - src/app/diff/DiffApp.tsx */
.diff__title {
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin: 0;
  color: #ececec;
}
.diff__card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.055);
  padding: 16px;
  font-size: 14px;
  line-height: 1.65;
}
.diff-removed {
  margin-right: 3px;
  border-radius: 3px;
  background: rgba(255, 95, 87, 0.15);
  color: #ff5f57;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.diff-added {
  border-radius: 3px;
  background: rgba(50, 215, 75, 0.15);
  color: #32d74b;
}
.diff-eq {
  color: #ececec;
}
.diff__bar {
  margin-top: auto;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 36px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.diff__act {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ececec;
}
.diff__sep {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.1);
}
.fig__inner--center {
  align-items: center;
  justify-content: center;
}

/* Prompt list - the card Settings draws (rounded 12, rm-card, hairline rows). */
.plist {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  overflow: hidden;
}
.prow {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 8px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.prow:first-child {
  border-top: 0;
}
.prow .pi {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}
.prow .pi svg {
  width: 14px;
  height: 14px;
}
.prow__name {
  font-size: 14px;
  color: #ececec;
  min-width: 0;
  flex: 1;
}
/* The name takes the slack, so the badge and shortcut sit together on the right. */
.prow__meta,
.prow .caps {
  flex: none;
}
.prow__meta {
  font-size: 12.5px;
  color: rgba(235, 235, 245, 0.5);
  margin-left: auto;
}
.prow .caps {
  height: 22px;
  font-size: 12px;
  gap: 6px;
  padding-inline: 8px;
}
.plist__new {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: #ececec;
}

/* the free block's figure */
.fig--free .fig__inner {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
}
.fig--free img {
  width: clamp(76px, 8vw, 96px);
  height: auto;
  border-radius: 24%;
}
.fig__free {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}
.fig__note {
  font-size: 13.5px;
  color: rgba(235, 235, 245, 0.5);
}

/* ---------- Closing call to action ---------- */

.close {
  padding-block: var(--section);
}
.close__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding-block: 38px;
  font-size: 14.5px;
  color: var(--faint);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: auto;
}
.footer a {
  text-decoration: none;
}
.footer a:hover {
  color: var(--text);
}

/* ---------- Legal pages ---------- */

.legal {
  padding-block: clamp(48px, 7vw, 88px) var(--section);
}
.legal .shell {
  max-width: 820px;
}
.legal__head {
  margin-bottom: 56px;
}
.legal__head h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.06;
}
.legal__head p {
  color: var(--dim);
  margin: 20px 0 0;
  max-width: 62ch;
}
.legal__date {
  font-size: 14px;
  color: var(--faint);
  margin-top: 16px;
}
.legal__body {
  max-width: 68ch;
}
.legal__body h2 {
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 60px 0 16px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal__body h2:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 44px;
}
.legal__body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.014em;
  margin: 32px 0 10px;
}
.legal__body p,
.legal__body li {
  color: #c7c7d2;
  font-size: 16px;
}
.legal__body ul {
  padding-left: 20px;
}
.legal__body li {
  margin-bottom: 10px;
}
.legal__body li::marker {
  color: var(--faint);
}
.legal__body a {
  color: var(--accent);
  text-decoration: none;
}
.legal__body a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal__body strong {
  color: var(--text);
  font-weight: 600;
}
.callout {
  border-radius: 10px;
  background: var(--surface);
  padding: 22px 24px;
  margin: 28px 0;
}
.callout p {
  margin: 0;
}
.legal__toc {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 22px;
  margin: 0;
}
.legal__toc ol {
  margin: 0;
  padding-left: 18px;
  columns: 2;
  column-gap: 40px;
}
.legal__toc li {
  margin-bottom: 8px;
  font-size: 15px;
  color: var(--faint);
}
.legal__toc a {
  color: var(--dim);
  text-decoration: none;
}
.legal__toc a:hover {
  color: var(--text);
}

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

@media (max-width: 900px) {
  .legal__toc ol {
    columns: 1;
  }
}

/* Below this the two columns of a section are each too narrow to read, so the
   copy and its picture stack. Stacked, the words always come first: the flip
   that alternates the sides on a wide screen has nothing left to alternate. */
@media (max-width: 860px) {
  .split__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .split--flip .split__copy {
    order: 0;
  }
  /* Full width, the lines would run past a comfortable measure. */
  .split__copy .lead,
  .fact p {
    max-width: 62ch;
  }
}

@media (max-width: 620px) {
  :root {
    --gutter: 20px;
  }
  body {
    font-size: 16px;
  }
  .nav__inner {
    gap: 16px;
    height: 56px;
  }
  .nav__end {
    gap: 16px;
  }
  .hero__actions .btn {
    width: 100%;
  }
  .mac {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    border-radius: 0;
    /* The fixed 4/5 box is far taller than the panel at this width, which left a
       dead band of background above and below it. The height follows the panel. */
    aspect-ratio: auto;
    padding-block: 40px;
  }
  .panel {
    width: 94cqw;
  }
  /* Stacked, the links read as a second line of the footer rather than a column
     pushed to the right edge. */
  .footer nav {
    margin-left: 0;
    gap: 16px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
