@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  color-scheme: light dark;

  /* The dark palette is the fallback; browsers without light-dark() keep it. */
  --bg: #141016;
  --surface: #1d1820;
  --surface-2: #272029;
  --ink: #f6efe6;
  --muted: #b8adb6;
  --hair: rgba(255, 240, 220, .1);
  --hair-strong: rgba(255, 240, 220, .18);
  --accent: #ffc94d;
  --btn: #ffcc33;
  --btn-ink: #1d1820;
  --glow: rgba(255, 170, 60, .13);
  --glass: rgba(42, 34, 44, .62);
  --pop: rgba(32, 26, 35, .96);
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 60px -30px rgba(0, 0, 0, .85);
}
@supports (color: light-dark(#000, #fff)) {
  :root {
    --bg: light-dark(#fbf6ee, #141016);
    --surface: light-dark(#fffdf9, #1d1820);
    --surface-2: light-dark(#f4ebdd, #272029);
    --ink: light-dark(#1d1820, #f6efe6);
    --muted: light-dark(#5e5560, #b8adb6);
    --hair: light-dark(rgba(80, 50, 20, .11), rgba(255, 240, 220, .1));
    --hair-strong: light-dark(rgba(80, 50, 20, .2), rgba(255, 240, 220, .18));
    --accent: light-dark(#94550a, #ffc94d);
    --glow: light-dark(rgba(255, 186, 70, .26), rgba(255, 170, 60, .13));
    --glass: light-dark(rgba(255, 252, 246, .66), rgba(42, 34, 44, .62));
    --pop: light-dark(rgba(255, 253, 249, .97), rgba(32, 26, 35, .96));
    --shadow: light-dark(0 1px 2px rgba(80, 50, 20, .06), 0 1px 0 rgba(255, 255, 255, .04) inset), light-dark(0 24px 50px -28px rgba(90, 55, 20, .28), 0 24px 60px -30px rgba(0, 0, 0, .85));
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

:root {
  /* Claude Code's terminal stays dark in both themes, as it does on most desks. */
  --term: #19151c;
  --term-ink: #ece5dc;
  --term-dim: #8f8794;
  --term-orange: #e8875b;
  --term-green: #6fcf7c;
  --out: cubic-bezier(.23, 1, .32, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  /* One demo step; app.js advances when the tab's progress bar finishes. */
  --step: 3.2s;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", system-ui, "Helvetica Neue", "PingFang SC", "Hiragino Sans", "Microsoft YaHei UI", "Malgun Gothic", "Geeza Pro", sans-serif;
  --display: "Manrope", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", system-ui, "PingFang SC", "Hiragino Sans", "Microsoft YaHei UI", "Malgun Gothic", "Geeza Pro", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --header-h: 68px;
}
:root[lang^="ja"] { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif; --display: var(--font); }
:root[lang^="ko"] { --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; --display: var(--font); }
:root[lang^="zh"] { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif; --display: var(--font); }
:root[lang="ar"] { --font: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, sans-serif; --display: var(--font); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  font: 17px/1.6 var(--font);
  color: var(--ink);
  background: radial-gradient(1100px 620px at 72% -12%, var(--glow), transparent 70%) no-repeat, var(--bg);
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
  overflow-x: hidden;
  overflow-x: clip;
}
:root[lang^="ja"] body { font-feature-settings: "palt"; word-break: auto-phrase; line-break: strict; }
:root[lang^="zh"] body { line-break: strict; }
:root[lang^="ko"] body { word-break: keep-all; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
code { font-family: var(--mono); font-size: .9em; }
p code, h3 code {
  padding: .1em .4em;
  border-radius: 6px;
  background: var(--surface-2);
  white-space: nowrap;
}
button { font: inherit; color: inherit; }

a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -80px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--btn);
  color: var(--btn-ink);
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }

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

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s;
}
.top.is-scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  backdrop-filter: blur(18px) saturate(1.5);
  border-bottom-color: var(--hair);
}
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font: 800 1.14rem/1 var(--display);
  letter-spacing: -.02em;
  text-decoration: none;
}
.tools { display: flex; align-items: center; gap: 6px; }

.theme, .lang summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-width: 40px;
  padding: 0 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.theme { padding: 0; }
.theme:hover, .lang summary:hover { border-color: var(--hair-strong); background: var(--surface); }
.theme svg { transition: transform .4s var(--out); }
:root[data-theme="light"] .theme svg { transform: rotate(180deg); }
html:not(.js) .theme { display: none; }

.flag { flex: none; border-radius: 50%; box-shadow: 0 0 0 1px var(--hair); }

.lang { position: relative; }
.lang summary { list-style: none; padding-inline: 10px 12px; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary > svg:last-child { color: var(--muted); transition: transform .3s var(--out); }
.lang[open] summary > svg:last-child { transform: rotate(180deg); }
.lang .pop {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 8px);
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  width: min(360px, calc(100vw - 32px));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--hair);
  border-radius: 18px;
  background: var(--pop);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow), 0 18px 40px -16px rgba(0, 0, 0, .3);
  transform-origin: 85% 0;
}
:root[dir="rtl"] .lang .pop { transform-origin: 15% 0; }
.lang.up .pop { top: auto; bottom: calc(100% + 8px); transform-origin: 85% 100%; }
.lang[open] .pop { animation: pop .26s var(--out); }
@keyframes pop { from { opacity: 0; transform: scale(.95) translateY(-4px); } }
.lang .pop a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 12px;
  font-size: 15px;
  text-decoration: none;
}
.lang .pop a:hover { background: var(--surface-2); }

.dl-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s var(--out), filter .2s;
}
.dl-top:hover { filter: brightness(1.05); }
.dl-top:active { transform: scale(.97); }

@media (max-width: 640px) {
  .top .lang summary span { display: none; }
  .top .lang summary { padding-inline: 8px 10px; gap: 6px; }
}
@media (max-width: 480px) {
  .dl-top { display: none; }
}

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

.hero {
  display: grid;
  /* minmax(0, …): a single auto column grows to its widest unbreakable child on phones. */
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  padding-block: clamp(32px, 6vw, 80px) clamp(64px, 9vw, 120px);
}
@media (min-width: 980px) {
  .hero { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: 64px; }
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--btn);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--btn) 30%, transparent);
}
h1 {
  margin-top: 20px;
  font: 800 clamp(2.5rem, 6vw, 4.3rem)/1.02 var(--display);
  letter-spacing: -.035em;
  text-wrap: balance;
}
h1 .keep { display: inline-block; }
.sub {
  margin-top: 22px;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--muted);
  text-wrap: pretty;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 32px;
}
.cta-row.center { justify-content: center; margin-top: 48px; }
.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px 0 22px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--btn-ink);
  font: 700 1.05rem/1 var(--display);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 24px -12px rgba(230, 150, 20, .7);
  transition: transform .2s var(--out), box-shadow .2s var(--out), filter .2s;
}
.cta:hover { transform: translateY(-1px); filter: brightness(1.04); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 14px 30px -12px rgba(230, 150, 20, .8); }
.cta:active { transform: scale(.98); }
.ver { font-size: 14px; color: var(--muted); }
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { color: var(--accent); }

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

.stage { position: relative; }
.desk { position: relative; padding-bottom: 44px; }
.term {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 16px;
  background: var(--term);
  color: var(--term-ink);
  font: 13px/1.6 var(--mono);
  box-shadow: 0 30px 70px -34px rgba(30, 15, 5, .55), 0 2px 6px rgba(0, 0, 0, .12);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: var(--term-dim);
  font-size: 12px;
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { flex: 1; text-align: center; margin-inline-end: 50px; }
.term-body { display: grid; align-content: start; gap: 4px; min-height: 15.5em; padding: 16px 18px 22px; }
.term-body b { font-weight: 400; }
.t-prompt b { color: var(--term-dim); }
.t-dim { color: var(--term-dim); }
.t-dot { color: var(--term-green); }
.t-reply { margin-top: 6px; }
.t-reply .t-dot { color: var(--term-ink); }
.t-ask {
  margin-top: 6px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--term-orange) 55%, transparent);
  border-radius: 8px;
}
.t-sel { color: var(--term-orange); }
.spin { display: inline-block; color: var(--term-orange); animation: spin 2.4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.caret { display: inline-block; width: .55em; height: 1.1em; vertical-align: -.2em; background: var(--term-ink); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* A step shows the lines and caption listed in its data-s; the faces cross-fade instead. */
.term [data-s], .bubble [data-s] { display: none; animation: line-in .32s var(--out) both; }
.stage[data-state="1"] :is(.term, .bubble) [data-s~="1"],
.stage[data-state="2"] :is(.term, .bubble) [data-s~="2"],
.stage[data-state="3"] :is(.term, .bubble) [data-s~="3"],
.stage[data-state="4"] :is(.term, .bubble) [data-s~="4"],
.stage[data-state="5"] :is(.term, .bubble) [data-s~="5"] { display: revert; }
@keyframes line-in { from { opacity: 0; transform: translateY(4px); } }

.widget {
  position: absolute;
  inset-inline-end: clamp(-8px, -1vw, 0px);
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}
.faces { position: relative; flex: none; width: 112px; height: 112px; filter: drop-shadow(0 12px 18px rgba(40, 20, 0, .28)); }
.face {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(.82);
  transition: opacity .22s ease-in, transform .22s ease-in;
}
.stage[data-state="1"] .face[data-s="1"],
.stage[data-state="2"] .face[data-s="2"],
.stage[data-state="3"] .face[data-s="3"],
.stage[data-state="4"] .face[data-s="4"],
.stage[data-state="5"] .face[data-s="5"] { opacity: 1; transform: none; transition: opacity .3s var(--out), transform .45s var(--spring); }
.bubble {
  order: -1;
  padding: 8px 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.bubble span { display: inline-block; }

.demo-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
}
html:not(.js) .demo-controls { display: none; }
.tabs {
  display: flex;
  flex: 1;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab, .pause {
  position: relative;
  flex: none;
  min-height: 40px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.tab {
  overflow: hidden;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.tab:hover { color: var(--ink); border-color: var(--hair-strong); }
.tab[aria-pressed="true"] { color: var(--ink); background: var(--surface); border-color: var(--hair-strong); }
.tab[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--btn);
  transform: scaleX(0);
  transform-origin: left;
  animation: step var(--step) linear forwards;
}
:root[dir="rtl"] .tab[aria-pressed="true"]::after { transform-origin: right; }
@keyframes step { to { transform: scaleX(1); } }
.stage:is(.paused, .offscreen) .tab::after { animation-play-state: paused; }
.stage.paused .tab::after { opacity: .35; }
html:not(.autoplay) .tab::after { display: none; }
.pause { display: grid; place-items: center; width: 40px; padding: 0; }
.pause:hover { border-color: var(--hair-strong); background: var(--surface); }
.pause svg:last-child, .stage.paused .pause svg:first-child { display: none; }
.stage.paused .pause svg:last-child { display: block; }
html:not(.autoplay) .pause { display: none; }

/* ---------- Feature rows ---------- */

.feat {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--hair);
}
@media (min-width: 900px) {
  .feat { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 72px; }
  .feat.flip .feat-copy { order: 2; }
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
}
h2, .h2 {
  margin-top: 12px;
  font: 800 clamp(1.85rem, 3.6vw, 2.7rem)/1.1 var(--display);
  letter-spacing: -.025em;
  text-wrap: balance;
}
.h2 { margin: 0 auto; max-width: 20em; text-align: center; }
.lead { margin-top: 18px; max-width: 32em; color: var(--muted); text-wrap: pretty; }
.note {
  margin-top: 18px;
  max-width: 32em;
  padding-inline-start: 14px;
  border-inline-start: 3px solid var(--btn);
  font-size: 15px;
  color: var(--muted);
}
:root[lang="ar"] :is(h1, h2, .h2, .kicker, .brand),
:root[lang^="ja"] :is(h1, h2, .h2, .kicker),
:root[lang^="ko"] :is(h1, h2, .h2, .kicker),
:root[lang^="zh"] :is(h1, h2, .h2, .kicker) { letter-spacing: 0; }
:root[lang="ar"] h1, :root[lang^="ja"] h1, :root[lang^="zh"] h1 { line-height: 1.2; }

.moods { display: grid; gap: 12px; }
.moods li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 20px;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 600;
}
:root[dir="rtl"] .moods li { padding: 10px 20px 10px 12px; }
.moods li:nth-child(2) { margin-inline-start: clamp(16px, 5vw, 48px); }
.moods li:nth-child(3) { margin-inline-start: clamp(8px, 2.5vw, 24px); }
.moods img { flex: none; }

.marks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.marks li {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 22px 12px 18px;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.sessions { display: grid; gap: 12px; }
.sessions li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 16px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 16px;
  background: var(--term);
  color: var(--term-ink);
  box-shadow: 0 20px 40px -28px rgba(30, 15, 5, .6);
}
.sessions li:nth-child(2) { margin-inline-start: clamp(16px, 4vw, 40px); }
.sessions li:nth-child(3) { margin-inline-start: clamp(32px, 8vw, 80px); }
.sessions code { flex: 1; font-size: 14px; }
.tab-dots { display: flex; gap: 5px; }
.tab-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.tab-dots i:nth-child(2) { background: #febc2e; }
.tab-dots i:nth-child(3) { background: #28c840; }

/* The ring: bubbles placed around the face by angle (--a) and radius (--r). */
.ring-wrap { display: grid; place-items: center; padding-block: 8px; }
.ring {
  --size: 340px;
  --r: 132px;
  position: relative;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--btn) 34%, transparent), transparent 72%);
}
.bub, .ring-face {
  position: absolute;
  top: 50%;
  left: 50%;
}
.bub {
  display: grid;
  place-content: center;
  justify-items: center;
  width: 60px;
  height: 60px;
  margin: -30px;
  border: 1px solid var(--hair-strong);
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 10px 24px -14px rgba(40, 20, 0, .45);
  transform: rotate(calc(var(--a) - 90deg)) translate(var(--r)) rotate(calc(90deg - var(--a)));
  transition: transform .55s var(--spring), opacity .3s var(--out);
  transition-delay: calc(var(--i) * 45ms);
}
.bub.stat { width: 82px; height: 82px; margin: -41px; line-height: 1.15; }
.bub b { font: 800 13px/1.2 var(--display); white-space: nowrap; }
.bub small { font-size: 11px; color: var(--muted); }
.ring-face { width: 96px; margin: -48px; filter: drop-shadow(0 10px 16px rgba(40, 20, 0, .25)); }
.reveal .ring-wrap:not(.in) .bub { opacity: 0; transform: scale(.4); }
@media (max-width: 420px) {
  .ring { --size: 296px; --r: 112px; }
  .bub.stat { width: 76px; height: 76px; margin: -38px; }
  .bub { width: 54px; height: 54px; margin: -27px; }
}

.voice { display: grid; justify-items: center; gap: 18px; }
.said {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  padding: 12px 20px 12px 16px;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  font-weight: 600;
}
.wave { display: flex; align-items: center; gap: 3px; height: 22px; flex: none; }
.wave i { width: 3px; height: 100%; border-radius: 2px; background: var(--btn); transform: scaleY(.3); }
.wave i:nth-child(2), .wave i:nth-child(4) { transform: scaleY(.6); }
.wave i:nth-child(3) { transform: scaleY(.9); }
.voice.playing .wave i { animation: wave 1.1s ease-in-out infinite; }
.voice.playing .wave i:nth-child(2) { animation-delay: -.2s; }
.voice.playing .wave i:nth-child(3) { animation-delay: -.45s; }
.voice.playing .wave i:nth-child(4) { animation-delay: -.7s; }
.voice.playing .wave i:nth-child(5) { animation-delay: -.9s; }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

.pics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pics li {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.pics li:nth-child(even) { transform: translateY(18px); }
.pics img { width: min(72px, 70%); }

/* ---------- Perks ---------- */

.perks, .install, .faq, .more { padding-block: clamp(64px, 9vw, 112px); border-top: 1px solid var(--hair); }
.perk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 14px;
  margin-top: 44px;
}
.perk {
  padding: 22px 22px 24px;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.perk-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--btn) 22%, var(--surface));
  color: var(--accent);
}
.perk h3 { margin-top: 16px; font: 700 1.1rem/1.3 var(--display); }
.perk p { margin-top: 6px; font-size: 15px; color: var(--muted); }

/* ---------- Install ---------- */

.steps {
  display: grid;
  gap: 14px;
  margin-top: 44px;
}
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--hair);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--btn);
  color: var(--btn-ink);
  font: 800 1rem/1 var(--display);
}
.step h3 { margin-top: 18px; font: 700 1.2rem/1.3 var(--display); }
.step p { margin-top: 8px; font-size: 15px; color: var(--muted); }
.cmd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding: 6px 6px 6px 16px;
  border-radius: 14px;
  background: var(--term);
  color: var(--term-ink);
  direction: ltr;
}
.step p + .cmd { margin-top: 18px; }
.cmd code { font-size: 15px; }
.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  color: var(--term-ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s;
}
.copy:hover { background: rgba(255, 255, 255, .14); }
.copy:active { transform: scale(.97); }
.copy span { display: inline-flex; }
.copy .i-done, .copy.done .i-copy { display: none; }
.copy.done .i-done { display: inline-flex; color: var(--term-green); }
html:not(.js) .copy { display: none; }

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

.qas { display: grid; gap: 10px; max-width: 780px; margin: 44px auto 0; }
.qa {
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: var(--surface);
  transition: border-color .2s;
}
.qa[open] { border-color: var(--hair-strong); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 14px 20px;
  list-style: none;
  cursor: pointer;
  font-weight: 700;
}
.qa summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 14px; height: 14px; transition: transform .3s var(--out); }
.plus::before, .plus::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--muted);
}
.plus::after { transform: rotate(90deg); }
.qa[open] .plus { transform: rotate(45deg); }
.ans { padding: 0 20px 20px; color: var(--muted); }
.qa[open] .ans { animation: line-in .3s var(--out); }

/* ---------- More from the author ---------- */

.sibs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 14px;
  max-width: 900px;
  margin: 44px auto 0;
}
.sib {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  padding: 16px 20px 16px 16px;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .25s var(--out), border-color .2s;
}
.sib:hover { transform: translateY(-2px); border-color: var(--hair-strong); }
.sib img { flex: none; border-radius: 14px; }
.sib-text { display: grid; flex: 1; gap: 2px; }
.sib-text b { font: 700 1.08rem/1.3 var(--display); }
.sib-text span { font-size: 15px; color: var(--muted); }
.sib > svg { flex: none; color: var(--muted); transition: transform .25s var(--out); }
.sib:hover > svg { transform: translateX(3px); }
:root[dir="rtl"] .sib > svg { transform: scaleX(-1); }
:root[dir="rtl"] .sib:hover > svg { transform: scaleX(-1) translateX(3px); }

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

.foot { padding-block: 40px 32px; border-top: 1px solid var(--hair); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.foot-brand p { font-size: 14px; color: var(--muted); }
.foot-brand p a { color: var(--ink); }
.foot-base {
  display: grid;
  gap: 6px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}
.foot-base a { color: var(--ink); text-underline-offset: 2px; }

/* ---------- Reveal on scroll (app.js adds .reveal once it watches) ---------- */

.reveal .rv { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--out), transform .6s var(--out); }
.reveal .rv.in { opacity: 1; transform: none; }
.reveal .perk-grid .rv:nth-child(3n + 2), .reveal .steps .rv:nth-child(2) { transition-delay: 70ms; }
.reveal .perk-grid .rv:nth-child(3n), .reveal .steps .rv:nth-child(3) { transition-delay: 140ms; }

@media (hover: none) {
  .cta:hover, .sib:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .15s !important;
    transition-delay: 0s !important;
  }
  .reveal .rv, .face { transform: none !important; }
  .bub { transform: rotate(calc(var(--a) - 90deg)) translate(var(--r)) rotate(calc(90deg - var(--a))) !important; }
  .spin, .caret { animation: none; }
}
