/* Layout: RayMate's own system (near-black, one blue from the app icon, left-aligned, hairlines
   instead of boxes). The launcher is the hero and the only animated thing: it types real
   requests and answers them. Everything after it is a quiet run of sections, each with one
   small, true-to-the-app mock. Dark only, as the app and raymate.app are. */
:root {
  color-scheme: dark;
  --bg: #020202;
  --surface: #0f1219;
  --surface-2: #171b24;
  --line: rgba(190, 210, 255, 0.10);
  --line-strong: rgba(190, 210, 255, 0.18);
  --text: #f2f5fa;
  --dim: #93a0b5;
  --faint: #67748a;
  --accent: #0b72e8;
  --accent-hover: #0a66d0;
  --accent-soft: rgba(11, 114, 232, 0.16);
  --accent-text: #6fb0ff;
  --ok: #3ccf7a;
  --warn: #f2b13d;
  --sel: rgba(190, 210, 255, 0.09);
  --glass: rgba(15, 19, 27, 0.52);
  --glass-strong: rgba(13, 16, 23, 0.74);
  --glass-edge: rgba(190, 210, 255, 0.12);
  --frost: blur(22px) saturate(1.35);

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

  --measure: 1120px;
  --r-panel: 14px;
  --r-control: 8px;
  --section: clamp(88px, 10vw, 150px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-inline: 24px;
  padding-block: 0;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.shell { max-width: var(--measure); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -0.03em; }
h1 { font-size: clamp(46px, 7.4vw, 92px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.04; }
h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
.label {
  font: 500 11.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--dim); max-width: 52ch; }
.copy { color: var(--dim); max-width: 46ch; font-size: 15.5px; }
.kbd {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 11.5px/1 var(--mono);
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 3px 6px;
  min-width: 20px;
  white-space: nowrap;
}
.new { font: 500 10px/1 var(--mono); letter-spacing: 0.06em; color: var(--accent-text); background: var(--accent-soft); border-radius: 4px; padding: 3px 5px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: rgba(2, 2, 2, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  margin-inline: -24px;
  padding-inline: 24px;
}
.nav .shell { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 24px; height: 24px; border-radius: 6px; }
.nav__links { display: flex; gap: 24px; font-size: 14px; color: var(--dim); margin-left: auto; }
.nav__links a { text-decoration: none; }
.nav__links a:hover { color: var(--text); }
.btn {
  display: inline-flex; gap: 10px; align-items: center;
  background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 12px 20px; border-radius: var(--r-control);
  border: 0; cursor: pointer;
}
.btn:hover { background: var(--accent-hover); }
.btn--small { font-size: 13.5px; padding: 8px 14px; }
.btn--ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--ghost:hover { background: rgba(190, 210, 255, 0.06); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 8vw, 104px) var(--section); display: grid; gap: clamp(44px, 6vw, 72px); }
.hero__copy { display: grid; gap: 22px; max-width: 760px; }
.hero__free { font-size: 15px; color: var(--text); }
.hero__free span { color: var(--dim); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.meta { font: 400 12.5px/1.6 var(--mono); color: var(--faint); }
.meta__link { color: var(--accent-text); text-decoration: none; }
.meta__link:hover { text-decoration: underline; }

.stage { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; align-items: start; }
.stage__side { display: grid; gap: 14px; padding-top: 8px; }
.stage__side p { font-size: 13.5px; color: var(--dim); }
.scenes { list-style: none; margin: 0; padding: 0; display: grid; }
.scenes button {
  width: 100%; text-align: left; background: none; border: 0; color: var(--faint);
  font: 400 13.5px/1.4 var(--sans); padding: 9px 0 9px 14px; cursor: pointer;
  border-left: 2px solid var(--line);
}
.scenes button:hover { color: var(--dim); }
.scenes button[aria-current="true"] { color: var(--text); border-left-color: var(--accent); }

/* The launcher. */
.launcher {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-panel);
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95);
  min-width: 0;
}
.l-search { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.l-search img { width: 26px; height: 26px; border-radius: 7px; flex: none; }
.l-query { flex: 1; min-width: 0; font-size: clamp(18px, 2.2vw, 22px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
.l-query .ph { color: var(--faint); }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--accent); vertical-align: -0.18em; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.l-body { min-height: 300px; padding: 8px; display: grid; align-content: start; gap: 2px; }
.l-section { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding: 10px 12px 6px; }
.l-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: var(--r-control); font-size: 14.5px; }
.l-row.sel { background: var(--sel); }
.ic-img { width: 26px; height: 26px; object-fit: contain; display: block; }
.l-row .acc { font-size: 12.5px; color: var(--faint); white-space: nowrap; }
.l-row .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-row .t small { color: var(--faint); font-size: 12.5px; margin-left: 8px; }
.l-foot { display: flex; justify-content: flex-end; gap: 14px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 12.5px; }
.l-foot .sep { width: 1px; height: 14px; background: var(--line-strong); }
.l-foot span { display: inline-flex; gap: 6px; align-items: center; }
.l-body > * { animation: rise 0.32s ease-out both; }
.l-body > *:nth-child(2) { animation-delay: 0.04s; }
.l-body > *:nth-child(3) { animation-delay: 0.08s; }
.l-body > *:nth-child(4) { animation-delay: 0.12s; }
.l-body > *:nth-child(5) { animation-delay: 0.16s; }

/* Row icons: the launcher's coloured rounded squares. */
.ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; flex: none; }
.ic svg { width: 14px; height: 14px; }

/* Calculator card inside the launcher. */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 16px; align-items: center; padding: 22px 16px; margin: 4px 4px 8px; border-radius: 12px; background: var(--surface-2); }
.calc .v { font: 600 clamp(26px, 3.4vw, 38px)/1.1 var(--display); font-variant-numeric: tabular-nums; text-align: center; }
.calc .v small { display: block; font: 400 12.5px/1.4 var(--sans); color: var(--faint); margin-top: 6px; }
.calc .arrow { color: var(--faint); font-size: 20px; }

/* AI answer inside the launcher. */
.answer { padding: 14px 14px 6px; display: grid; gap: 10px; font-size: 14.5px; }
.answer .q { color: var(--dim); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.answer ul { margin: 0; padding-left: 18px; color: var(--text); display: grid; gap: 6px; }
.answer .model { font: 400 11.5px/1 var(--mono); color: var(--faint); }

@keyframes blink { 50% { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
section.band { padding-block: var(--section) 0; }
.band__head { display: grid; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }

/* Three core abilities, side by side. */
.core { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); border-top: 1px solid var(--line); }
.core article { display: grid; gap: 12px; align-content: start; padding-top: 28px; min-width: 0; }
.core ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; }
.core li { padding-block: 9px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--dim); }
.core li b { color: var(--text); font-weight: 500; }
.mock {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  display: grid; gap: 8px;
  min-width: 0;
  margin-top: 6px;
}
.hud { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border-radius: 30px; padding: 10px 16px; width: fit-content; max-width: 100%; }
.wave { display: flex; gap: 3px; align-items: center; height: 18px; }
.wave i { width: 3px; border-radius: 2px; background: var(--accent-text); display: block; }
.hud small { color: var(--dim); }
.typed { font-size: 13.5px; color: var(--text); }
.diff { font-size: 13.5px; line-height: 1.9; }
.diff del { color: #ff8a8a; background: rgba(255, 90, 90, 0.12); text-decoration: line-through; border-radius: 3px; padding: 0 2px; }
.diff ins { color: var(--ok); background: rgba(60, 207, 122, 0.12); text-decoration: none; border-radius: 3px; padding: 0 2px; }
.mock__foot { display: flex; justify-content: flex-end; gap: 14px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); flex-wrap: wrap; font-size: 12.5px; }
.mock__foot span { display: inline-flex; gap: 6px; align-items: center; }

/* Extension shelf. */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ext { display: flex; align-items: center; gap: 12px; padding: 14px 14px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.ext__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ext h3 { font-size: 14.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Spotlights: copy on one side, a mock on the other. */
.spot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line); }
.spot:first-of-type { border-top: 0; padding-top: 0; }
.spot--flip > :first-child { order: 2; }
.spot__text { display: grid; gap: 16px; align-content: start; }
.facts { list-style: none; margin: 4px 0 0; padding: 0; }
.facts li { padding-block: 10px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--dim); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { color: var(--text); font-weight: 500; }

.panel { background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-panel); overflow: hidden; min-width: 0; }
.p-search { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--faint); }
.p-search .types { margin-left: auto; font-size: 12.5px; color: var(--dim); }
.p-body { display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 1fr); min-height: 280px; }
.c-list { list-style: none; margin: 0; padding: 8px; border-right: 1px solid var(--line); display: grid; gap: 2px; align-content: start; }
.c-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-control); width: 100%; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.c-row:hover { background: rgba(190, 210, 255, 0.05); }
.c-row[aria-selected="true"] { background: var(--sel); }
.c-row .t { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.c-row .s { font-size: 11.5px; color: var(--faint); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb { width: 26px; height: 26px; border-radius: 6px; overflow: hidden; position: relative; background: #eef1f6; }
.swatch { width: 26px; height: 26px; border-radius: 7px; background: #0b72e8; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.doc { width: 21px; height: 26px; margin-inline: 2px; border-radius: 4px; background: #e9edf3; position: relative; }
.doc::after { content: ""; position: absolute; right: 0; top: 0; width: 7px; height: 7px; background: #c4ccd8; border-bottom-left-radius: 3px; }
.shot { position: absolute; inset: 0; background: #eef1f6; }
.shot i { position: absolute; display: block; border-radius: 2px; }
.shot .b1 { left: 0; right: 0; top: 0; height: 14%; background: #d7dde7; }
.shot .b2 { left: 0; top: 14%; bottom: 0; width: 24%; background: #e1e6ee; }
.shot .b3 { left: 32%; top: 26%; width: 46%; height: 10%; background: #2b3444; }
.shot .b4 { left: 32%; top: 44%; width: 56%; height: 6%; background: #b9c2d0; }
.shot .b5 { left: 32%; top: 62%; width: 22%; height: 11%; background: #0b72e8; }
.c-detail { display: grid; grid-template-rows: 1fr auto; min-width: 0; }
.c-view { display: grid; place-items: center; padding: 18px; }
.c-view > * { animation: rise 0.25s ease-out; }
.c-info { margin: 0; border-top: 1px solid var(--line); padding: 8px 14px 10px; font-size: 12px; }
.c-info div { display: flex; justify-content: space-between; gap: 12px; padding-block: 4px; border-bottom: 1px solid var(--line); }
.c-info div:last-child { border-bottom: 0; }
.c-info dt { color: var(--faint); }
.c-info dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ask { justify-self: end; max-width: 88%; background: var(--accent); color: #fff; padding: 9px 12px; border-radius: 12px 12px 4px 12px; font-size: 13.5px; }
.applet { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line-strong); border-radius: 10px; }
.applet small { color: var(--faint); font-size: 11.5px; display: block; }
.code { font: 400 11.5px/1.6 var(--mono); color: var(--dim); background: var(--bg); border-radius: 8px; padding: 10px 12px; overflow-x: auto; white-space: pre; }
.code .k { color: var(--accent-text); }

.u-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-width: 0; }
.u-row.off { opacity: 0.55; }
.chk { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--faint); display: grid; place-items: center; }
.chk.on { background: var(--accent); border-color: var(--accent); }
.chk.on::after { content: ""; width: 7px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.u-path { min-width: 0; }
.u-path b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-path small { color: var(--faint); font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-size { font: 400 12px/1 var(--mono); color: var(--dim); font-variant-numeric: tabular-nums; }
.pill { font-size: 10.5px; border-radius: 4px; padding: 1px 6px; background: var(--surface-2); color: var(--dim); white-space: nowrap; font-weight: 400; }
.pill--warn { color: var(--warn); background: rgba(242, 177, 61, 0.12); }

/* Prompts. */
.prompts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.p-list { display: grid; gap: 2px; }
.p-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: var(--r-control); font-size: 13.5px; }
.p-row:nth-child(1) { background: var(--sel); }
.p-row .what { font-size: 12px; color: var(--faint); }

/* Free and private. */
.free { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(32px, 5vw, 72px); align-items: end; }
.price { font: 700 clamp(96px, 16vw, 200px)/0.85 var(--display); letter-spacing: -0.05em; }
.price small { display: block; font: 400 14px/1.5 var(--sans); letter-spacing: 0; color: var(--dim); margin-top: 18px; }
.free ul { list-style: none; margin: 0; padding: 0; }
.free li { padding-block: 14px; border-top: 1px solid var(--line); }
.free li:last-child { border-bottom: 1px solid var(--line); }
.free li b { font: 600 17px/1.3 var(--display); letter-spacing: -0.01em; }
.free li span { color: var(--dim); font-size: 14.5px; }


/* Get it: a heading, then one frosted download card over the horizon. */
.get { padding-block: var(--section) clamp(120px, 16vh, 200px); display: grid; gap: 28px; justify-items: center; }
.get__head { display: grid; gap: 12px; text-align: center; }
.get__head .lead { margin-inline: auto; text-wrap: balance; }
.dl-card {
  width: min(660px, 100%); border-radius: 18px; overflow: hidden;
  border: 1px solid var(--glass-edge); background: var(--glass);
  -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost);
  box-shadow: 0 40px 90px -50px rgba(11, 114, 232, 0.55);
}
.dl-card__top { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 20px 20px 20px 20px; }
.dl-card__top img { width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(190, 210, 255, 0.10); }
.dl-card__info { display: grid; gap: 4px; min-width: 0; }
.dl-card__info b { font: 600 18px/1.2 var(--display); letter-spacing: -0.01em; }
.dl-card__info > span { font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.dl-card__btn { padding: 11px 18px; }
.dl-card__brew { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 20px; border-top: 1px solid var(--glass-edge); background: rgba(2, 2, 2, 0.25); }
.dl-card__brew .brew-code { flex: 1; min-width: 0; background: none !important; border: 0 !important; padding: 0 !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; font: 400 13.5px/1.4 var(--mono); color: var(--text); white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.dl-card__brew .brew-code::-webkit-scrollbar { display: none; }
.brew__prompt { font: 400 13.5px/1 var(--mono); color: var(--faint); }
.brew__copy { flex: none; border: 0; cursor: pointer; font: 600 12.5px/1 var(--sans); color: var(--text); background: rgba(190, 210, 255, 0.10); border-radius: 8px; padding: 9px 14px; }
.brew__copy:hover { background: rgba(190, 210, 255, 0.18); }
.get__note { font-size: 13px; color: var(--faint); }
@media (max-width: 560px) {
  .dl-card__top { grid-template-columns: 48px minmax(0, 1fr); }
  .dl-card__top img { width: 48px; height: 48px; }
  .dl-card__btn { grid-column: 1 / -1; justify-content: center; }
  .dl-card__brew { padding-left: 14px; }
  .dl-card__brew .brew-code { font-size: 12px; }
}
.brew { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 100%; }
.brew code, .brew-code { font: 400 13.5px/1 var(--mono); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; color: var(--text); overflow-x: auto; max-width: 100%; white-space: nowrap; }
footer { border-top: 1px solid var(--glass-edge); padding-block: 22px 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--faint); }
.foot__brand { display: inline-flex; align-items: center; gap: 9px; }
.foot__brand img { border-radius: 5px; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--text); }


/* Widgets: applets floating on a desktop. */
.desk {
  position: relative; height: 600px; border-radius: 18px; overflow: hidden;
  background: #000 url("/assets/landing/wallpaper.jpg") center 45% / cover no-repeat; border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9);
}
.menubar {
  position: absolute; inset: 0 0 auto 0; height: 26px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  background: rgba(20, 24, 34, 0.42); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font: 500 12px/1 var(--sans); color: #f3f5f9;
}
.menubar__left, .menubar__right { display: flex; align-items: center; gap: 16px; }
.menubar__left b { font-weight: 700; }
.menubar__right img { width: 15px; height: 15px; border-radius: 4px; }
.mb-wifi { width: 14px; height: 10px; border: 2px solid #f3f5f9; border-color: #f3f5f9 transparent transparent transparent; border-radius: 50% 50% 0 0; }
.mb-batt { width: 22px; height: 10px; border: 1.5px solid #f3f5f9; border-radius: 3px; padding: 1px; position: relative; }
.mb-batt i { display: block; height: 100%; width: 72%; background: #f3f5f9; border-radius: 1px; }
.icons { position: absolute; top: 44px; right: 14px; width: 94px; display: grid; gap: 12px; justify-items: center; z-index: 1; }
.dicon { display: grid; justify-items: center; gap: 5px; width: 94px; text-align: center; }
.dicon .name {
  font: 500 11px/1.25 var(--sans); color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  max-width: 92px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word;
}
.dimg { width: 52px; height: 52px; object-fit: contain; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35)); }
.folder { width: 50px; height: 38px; position: relative; display: block; }
.folder::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 8px; border-radius: 3px 3px 0 0; background: #5aa9f5; }
.folder::after { content: ""; position: absolute; inset: 5px 0 0 0; border-radius: 4px; background: #74b8f8; box-shadow: inset 0 -12px 0 rgba(30, 110, 200, 0.18); }
.file { width: 36px; height: 46px; border-radius: 4px; background: #fff; position: relative; display: grid; align-items: end; justify-items: center; padding-bottom: 6px; box-shadow: 0 2px 6px rgba(0,0,0,0.35); overflow: hidden; }
.file::after { content: ""; position: absolute; right: 0; top: 0; width: 11px; height: 11px; background: #d5dae2; border-bottom-left-radius: 4px; }
.file b { font: 700 8.5px/1 var(--sans); color: #fff; padding: 2px 4px; border-radius: 2px; }
.file--pdf b { background: #e5402f; }
.file--xls b { background: #1f8a4c; }
.file--txt b { background: #6b7280; }
.file--img { width: 50px; height: 34px; padding: 0; border-radius: 3px; }
.file--img::after { display: none; }
.dock {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 3;
  display: flex; align-items: center; gap: 4px; padding: 5px 7px; max-width: calc(100% - 24px);
  background: rgba(30, 34, 46, 0.45); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 18px;
}
.dk { width: 44px; height: 44px; display: block; position: relative; flex: none; }
.dk--rm img { width: 38px; height: 38px; margin: 3px; border-radius: 9px; display: block; }
.dk--rm i { position: absolute; bottom: -6px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #f3f5f9; }
.dk-sep { width: 1px; height: 32px; background: rgba(255,255,255,0.2); }
.widget {
  position: absolute; min-width: 0; z-index: 2;
  background: rgba(36, 41, 54, 0.72);
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 14px;
  box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.8);
  padding: 14px 16px;
}
.w-score { left: 5%; top: 66px; width: 300px; }
.w-fx { left: 42%; top: 110px; width: 260px; }
.w-disk { left: 9%; top: 330px; width: 240px; }
.w-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.live { display: inline-flex; gap: 6px; align-items: center; color: #ff6b6b; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff5a5a; }
.ball-label { display: inline-flex; align-items: center; gap: 7px; }
.ball { width: 15px; height: 15px; flex: none; }
.sb { display: grid; gap: 2px; }
.sb__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 12px; padding-block: 5px; }
.sb__team { font: 600 18px/1.2 var(--display); color: var(--dim); letter-spacing: -0.01em; }
.sb__goals { font: 700 26px/1 var(--display); color: var(--dim); font-variant-numeric: tabular-nums; }
.sb__row.lead .sb__team, .sb__row.lead .sb__goals { color: var(--text); }
.sb__time { position: relative; height: 4px; border-radius: 2px; background: var(--surface-2); margin-top: 10px; }
.sb__time i { position: absolute; inset: 0 auto 0 0; border-radius: 2px; background: var(--ok); opacity: 0.8; }
.sb__time span { position: absolute; top: -3px; width: 2px; height: 10px; border-radius: 1px; background: var(--text); }
.sb__time span.away { background: var(--dim); }
.w-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); display: flex; justify-content: space-between; gap: 10px; }
.fx { display: grid; gap: 0; }
.fx div { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding-block: 7px; border-top: 1px solid var(--line); font-size: 13px; }
.fx div:first-child { border-top: 0; }
.fx b { font: 500 12px/1 var(--mono); color: var(--dim); }
.fx .rate { font: 600 15px/1 var(--display); font-variant-numeric: tabular-nums; }
.fx .up { color: var(--ok); font: 400 11.5px/1 var(--mono); }
.fx .down { color: #ff8a8a; font: 400 11.5px/1 var(--mono); }
.disk { display: grid; gap: 8px; font-size: 12.5px; }
.disk .barx { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.disk .barx i { display: block; height: 100%; width: 68%; background: var(--accent); }
.widgets-copy { display: grid; gap: 14px; margin-bottom: 36px; max-width: 720px; }
@media (max-width: 820px) {
  .widgets-copy { grid-template-columns: 1fr; }
  .desk { height: auto; padding: 44px 14px 18px; display: grid; gap: 14px; }
  .desk .widget { position: relative; inset: auto; width: auto; }
  .icons, .dock { display: none; }
}


/* Hero demo extras: the app it opens, and the applet it floats. */
.stage__main { position: relative; min-width: 0; }
.launcher { transition: opacity 0.35s ease, transform 0.35s ease; }
.launcher.gone { opacity: 0; transform: scale(0.97); pointer-events: none; }
.launcher.dim { opacity: 0.55; }
.l-row.press { background: var(--accent); }
.l-row.press .acc { color: rgba(255,255,255,0.8); }
.app-win {
  position: absolute; inset: 18px 6% auto 6%; border-radius: 12px; overflow: hidden;
  background: #f5f5f7; color: #1d1d1f; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.9);
  animation: open 0.4s cubic-bezier(.2,.8,.2,1) both;
}
.app-win__bar { display: flex; gap: 7px; align-items: center; padding: 10px 12px; background: #e8e8ed; font: 600 12.5px/1 var(--sans); }
.app-win__bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.app-win__bar span { margin-left: 10px; color: #3a3a3c; }
.app-win__body { display: grid; grid-template-columns: 34% 1fr; min-height: 250px; font-size: 13px; }
.app-win__side { background: #ebebf0; padding: 12px; display: grid; gap: 6px; align-content: start; color: #6e6e73; }
.app-win__side b { color: #1d1d1f; font-size: 12px; }
.app-win__side .on { background: #ffd60a; color: #1d1d1f; border-radius: 6px; padding: 4px 8px; }
.app-win__main { padding: 16px 18px; display: grid; gap: 8px; align-content: start; color: #3a3a3c; }
.app-win__main b { font: 700 18px/1.2 var(--display); color: #1d1d1f; }
.float-widget { right: -18px; bottom: -34px; width: 250px; z-index: 2; animation: open 0.45s cubic-bezier(.2,.8,.2,1) both; }
.maker { display: grid; gap: 10px; padding: 8px 6px; }
.maker .ask { animation: rise 0.3s ease-out both; }
.draft { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; animation: rise 0.3s ease-out both; }
.draft__top { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; }
.draft__top small { display: block; color: var(--faint); font-size: 11.5px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--dim); display: block; animation: blink 1s infinite; }
.dots i:nth-child(2) { animation-delay: 0.2s; }
.dots i:nth-child(3) { animation-delay: 0.4s; }
.ok { color: var(--ok); font-size: 12px; }
@keyframes open { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .float-widget { right: 8px; bottom: 8px; width: 210px; }
  .app-win { inset: 10px 8px auto 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .app-win, .float-widget, .maker .ask, .draft, .dots i { animation: none; }
  .launcher { transition: none; }
}


.l-body { position: relative; }
.searching { display: flex; gap: 10px; align-items: center; padding: 9px 12px; font-size: 13.5px; color: var(--faint); }
.menu {
  position: absolute; right: 12px; bottom: 10px; width: 230px; z-index: 1;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,0.9); animation: rise 0.25s ease-out both; font-size: 13px;
}
.menu div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 10px; border-radius: 7px; }
.menu div:first-child { background: var(--sel); }
.menu--last div:first-child { background: none; }
.menu--last div:last-child { background: var(--accent); color: #fff; }


/* Scenes that happen in another app: a Mail window, the review card, the dictation HUD,
   drawn as raymate.app draws them. */
.scene-stage {
  position: absolute; inset: 0; border-radius: var(--r-panel); overflow: hidden; z-index: 1;
  background: #101016; border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.95);
  font-family: -apple-system, "SF Pro Text", "Inter", system-ui, sans-serif; color: #ececec;
  animation: open 0.35s cubic-bezier(.2,.8,.2,1) both;
}
.mw { display: grid; grid-template-rows: auto 1fr; height: 100%; }
.mw__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #1a1a22; border-bottom: 1px solid rgba(255,255,255,0.07); font: 600 12.5px/1 var(--sans); color: rgba(235,235,245,0.7); }
.mw__bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.mw__bar span { margin-left: 10px; }
.mw__body { padding: 20px 22px; display: grid; gap: 12px; align-content: start; position: relative; }
.field { display: flex; gap: 10px; font-size: 13px; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,0.07); color: rgba(235,235,245,0.5); }
.field b { color: #ececec; font-weight: 500; }
.draft-text { font-size: 15px; line-height: 1.65; color: #ececec; min-height: 48px; }
.draft-text mark { background: rgba(11, 114, 232, 0.45); color: #fff; border-radius: 3px; padding: 1px 0; }
.draft-text .fixed { background: rgba(50, 215, 75, 0.15); color: #32d74b; border-radius: 3px; transition: background 1.2s ease, color 1.2s ease; }
.draft-text .fixed.settled { background: transparent; color: #ececec; }
.review {
  position: absolute; left: 50%; top: 54%; transform: translate(-50%, -50%); width: min(460px, 88%);
  background: #16161d; border: 1px solid rgba(255,255,255,0.14); border-radius: 16px; padding: 18px;
  display: grid; gap: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.9); animation: open 0.3s ease-out both;
}
.review h4 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.3px; }
.diff__card { border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.055); padding: 14px 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__bar { justify-self: 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; border-radius: 8px; padding: 2px 4px; transition: background 0.15s; }
.diff__act.press { background: var(--accent); }
.diff__sep { width: 1px; height: 16px; background: rgba(255,255,255,0.1); }
kbd.caps { display: inline-flex; align-items: center; height: 24px; padding-inline: 8px; border-radius: 7px; border: 1px solid rgba(255,255,255,0.14); background: rgba(0,0,0,0.35); font: 13px/1 inherit; color: #ececec; }
.mail { display: grid; gap: 8px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.mail__head { display: flex; align-items: center; gap: 10px; }
.mail__avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,0.1); font-size: 11.5px; font-weight: 600; color: rgba(235,235,245,0.75); }
.mail__from { font-size: 13.5px; font-weight: 600; }
.mail__time { font-size: 12px; color: rgba(235,235,245,0.4); margin-left: 8px; }
.mail__subject { font-size: 15px; font-weight: 600; }
.mail__body { font-size: 13.5px; line-height: 1.6; color: rgba(235,235,245,0.6); }
.reply { font-size: 14px; line-height: 1.6; min-height: 70px; }
.reply .ph { color: rgba(235,235,245,0.3); }
.reply .new-text { animation: rise 0.4s ease-out both; }
.holdkey { position: absolute; right: 16px; top: 14px; font: 500 12px/1 var(--sans); color: rgba(235,235,245,0.6); display: inline-flex; gap: 8px; align-items: center; }
.vhud { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(340px, 86%); 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.86); font-size: 13px; animation: open 0.3s ease-out both; }
.vhud__body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding-inline: 12px; }
.vwave { display: flex; align-items: center; justify-content: center; gap: 2px; height: 34px; 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); }
.vwave i { display: block; width: 2px; flex: none; border-radius: 999px; background: rgba(255,255,255,0.85); animation: talk 0.9s ease-in-out infinite alternate; transform-origin: center; }
.vhud.quiet .vwave i { animation: none; transform: scaleY(0.25); }
.vhud__partial { 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; min-height: 14px; }
.vhud__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); }
.vhud__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); }
.vhud__btn.on { color: #fff; background: rgba(255,255,255,0.1); }
.vhud__stop { width: 7px; height: 7px; border-radius: 1px; background: currentColor; }
@keyframes talk { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .scene-stage, .review, .vhud, .reply .new-text { animation: none; }
  .vwave i { animation: none; }
}


/* Hero: the clipboard and uninstall views inside the launcher. */
.hero-clip { min-height: 286px; margin: -8px; }
.hero-clip .c-row { cursor: default; }
.hero-clip .c-row.on { background: var(--sel); }
.hero-clip .c-row .ic { width: 26px; height: 26px; }
.clip-shot { width: 100%; max-width: 230px; aspect-ratio: 1588 / 922; position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--line-strong); }
.clip-swatch { display: grid; justify-items: center; gap: 10px; font-size: 13px; }
.clip-swatch > span { width: 96px; height: 96px; border-radius: 20px; background: #0b72e8; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.clip-file { width: 84px; height: 84px; }
.clip-text { font-size: 13.5px; line-height: 1.6; place-self: start; max-width: 30ch; }
.uninst { display: grid; gap: 10px; padding: 6px 12px 10px; font-size: 13px; }
.confirm { margin: 4px 12px 8px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-strong); display: grid; gap: 4px; font-size: 13.5px; }
.confirm span { color: var(--dim); font-size: 12.5px; }
.done { display: grid; justify-items: center; gap: 6px; padding: 64px 16px 56px; text-align: center; }
.done__mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px; color: var(--ok); background: rgba(60, 207, 122, 0.12); box-shadow: inset 0 0 0 1px rgba(60, 207, 122, 0.35); animation: rise 0.3s ease-out both; }
.done__mark svg { width: 22px; height: 22px; }
.done b { font: 600 16px/1.3 var(--display); letter-spacing: -0.01em; }
.done span { color: var(--dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.done small { color: var(--faint); font-size: 12px; margin-top: 6px; }


/* The earth's horizon, fixed at the bottom of the window: a near-black planet with a thin
   lit atmosphere and a faint sunrise at its crest. Drawn, not a photo, so it stays sharp at
   any size. It sits behind everything and never takes a click. */
.horizon { position: fixed; inset: auto 0 0 0; height: 34vh; z-index: -1; pointer-events: none; overflow: hidden; opacity: 0.6; }
.horizon__planet {
  position: absolute; left: 50%; top: 66%;
  width: max(1800px, 200vw); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, #08142a 0%, #040a16 5%, #020408 14%, #020202 26%);
  box-shadow:
    0 0 0 1px rgba(120, 165, 230, 0.32),
    0 -2px 8px rgba(70, 120, 210, 0.28),
    0 -14px 60px rgba(30, 70, 170, 0.16),
    0 -40px 140px rgba(20, 50, 140, 0.08);
}
.horizon__sun {
  position: absolute; left: 50%; top: 66%; width: 46vw; height: 80px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at 50% 50%, rgba(230, 170, 110, 0.18) 0%, rgba(220, 120, 70, 0.05) 30%, rgba(220, 120, 70, 0) 60%);
  filter: blur(8px);
}
.horizon::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(2, 2, 2, 0) 45%);
}
@media (max-width: 560px) {
  .horizon { height: 26vh; }
  .horizon__planet { width: 300vw; }
  .horizon__sun { width: 90vw; }
}


/* Frosted glass: panels the fixed horizon passes behind blur it, instead of letting its rim
   cut across their text. */
.ext { background: var(--glass); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }
.ext { border-color: var(--glass-edge); }
.mock, .panel, .launcher { background: var(--glass-strong); -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); }

/* ---------- narrow ---------- */
@media (max-width: 1060px) {
  .w-fx { left: auto; right: 124px; top: 260px; }
}
@media (max-width: 980px) {
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage { grid-template-columns: 1fr; }
  .stage__side { order: -1; padding-top: 0; }
  .scenes { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; }
  .scenes button { border-left: 0; border-bottom: 2px solid var(--line); padding: 8px 12px; }
  .scenes button[aria-current="true"] { border-bottom-color: var(--accent); }
}
@media (max-width: 820px) {
  .core, .spot, .prompts, .free,   .spot--flip > :first-child { order: 0; }
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}
@media (max-width: 560px) {
  body { padding-inline: 16px; }
  .nav { margin-inline: -16px; padding-inline: 16px; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-body { grid-template-columns: 1fr; }
  .c-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .free li { grid-template-columns: 1fr; gap: 4px; }
  .l-row .acc { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .caret { animation: none; }
  .l-body > *, .c-view > * { animation: none; }
  html { scroll-behavior: auto; }
}

/* Former inline styles. */
.st0 { background:#ff5f57 }
.st1 { background:#febc2e }
.st2 { background:#28c840 }
.st3 { color:var(--dim);font-size:13px }
.st4 { font:400 11.5px/1 var(--mono);color:var(--faint) }
.st5 { background:#3a4150 }
.st6 { margin-top:0 }
.st7 { background:#30a46c;width:30px;height:30px }
.st8 { margin-bottom:0 }
.st9 { width:86.7% }
.st10 { left:23.3% }
.st11 { left:41.1% }
.st12 { left:72.2% }
.st13 { font:600 20px/1 var(--display) }
.st14 { color:var(--faint) }
