/* Onbook — the prompter's own stage: black, warm white type, one amber cue line. Layout from the Rocky Stone Labs
   template (as stillwater.rockystonelabs.com). */
:root {
  --stage: #000;
  --raise: #0f0f0e;
  --paper: #f4f4ef;
  --mist: rgba(244, 244, 239, 0.72);
  --faint: rgba(244, 244, 239, 0.5);
  --read: rgba(244, 244, 239, 0.34);
  --amber: #ffb21a;
  --amber-soft: rgba(255, 178, 26, 0.16);
  --hair: rgba(255, 255, 255, 0.1);
  --card: rgba(255, 255, 255, 0.04);
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
    "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  --display:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--stage);
  color: var(--paper);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--amber);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img,
video {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  background: rgba(0, 0, 0, 0.72);
  border-bottom: 1px solid var(--hair);
}
nav .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-weight: 650;
  font-size: 18px;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.brand:hover {
  text-decoration: none;
}
nav .links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 15px;
}
nav .links a {
  color: var(--mist);
}
nav .links a:hover {
  color: var(--paper);
  text-decoration: none;
}
@media (max-width: 720px) {
  nav .links a:not(.lang) {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 15px 30px;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn small {
  font-weight: 550;
  font-size: 13.5px;
  margin-top: 3px;
}
.btn-primary {
  background: var(--amber);
  color: #1a1100;
  box-shadow: 0 14px 44px rgba(255, 178, 26, 0.24);
}
.btn-primary small {
  color: #4a3300;
}
.btn-ghost {
  border: 1.5px solid rgba(244, 244, 239, 0.4);
  color: var(--paper);
}
.btn-ghost small {
  color: var(--mist);
}
/* Not on the store yet: the same shape, plainly not a link. */
.btn.soon {
  background: var(--card);
  border: 1.5px dashed rgba(255, 178, 26, 0.6);
  color: var(--paper);
  box-shadow: none;
  cursor: default;
}
.btn.soon:hover {
  transform: none;
}
.btn.soon small {
  color: var(--mist);
}
a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Hero: words on the left, the prompter itself on the right */
.hero {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 56px;
  align-items: center;
  padding: 76px 24px 40px;
}
.hero img.icon {
  width: 84px;
  height: 84px;
  border-radius: 19px;
  margin: 0 0 22px;
  box-shadow:
    0 0 0 1px var(--hair),
    0 18px 50px rgba(255, 178, 26, 0.12);
}
h1 {
  font: 760 clamp(40px, 6vw, 70px)/1.03 var(--display);
  letter-spacing: -0.035em;
  margin: 0;
  max-width: 13ch;
}
:lang(zh) h1 {
  letter-spacing: 0;
  line-height: 1.12;
  max-width: 11em;
}
.lede {
  color: var(--mist);
  font-size: clamp(18px, 2.2vw, 21px);
  max-width: 38ch;
  margin: 20px 0 32px;
}
:lang(zh) .lede {
  max-width: 26em;
}
.cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.trust {
  margin-top: 18px;
  font-size: 14px;
  color: var(--faint);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

/* The live prompter */
.stage {
  position: relative;
  justify-self: center;
  width: min(100%, 440px);
  aspect-ratio: 9 / 13;
  background: var(--stage);
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 10px var(--raise),
    0 0 0 11px rgba(255, 255, 255, 0.08),
    0 60px 140px rgba(255, 178, 26, 0.07);
}
.stage .pill {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mist);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 5px 13px;
}
.stage .pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
}
.stage .cue {
  position: absolute;
  top: 38%;
  left: 0;
  right: 0;
  height: 0;
  z-index: 2;
  pointer-events: none;
}
.stage .cue::before,
.stage .cue::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 16px;
  height: 3px;
  background: var(--amber);
}
.stage .cue::before {
  left: 0;
}
.stage .cue::after {
  right: 0;
}
.stage .script {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 38%;
  font: 700 27px/1.42 var(--display);
  letter-spacing: -0.01em;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: transform;
}
.stage .script p {
  margin: 0 0 0.7em;
}
.stage .script span {
  transition: color 0.3s ease;
}
.stage .script .done {
  color: var(--read);
}
.stage .script .now {
  text-decoration: underline 3px var(--amber);
  text-underline-offset: 7px;
}
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 22%;
  z-index: 1;
  pointer-events: none;
}
.stage::before {
  top: 0;
  background: linear-gradient(#000 45%, transparent);
}
.stage::after {
  bottom: 0;
  background: linear-gradient(transparent, #000 70%);
}
.stage .caption {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--faint);
  z-index: 2;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 46px;
    padding-top: 54px;
  }
  h1,
  .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .cta,
  .trust {
    justify-content: center;
  }
  .hero img.icon {
    margin: 0 auto 20px;
  }
}

/* Sections */
section {
  padding: 88px 0;
}
h2 {
  font: 740 clamp(30px, 4vw, 46px)/1.1 var(--display);
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
:lang(zh) h2 {
  letter-spacing: 0;
}
.sub {
  color: var(--mist);
  max-width: 56ch;
  margin: 0;
}
.center {
  text-align: center;
}
.center .sub {
  margin: 0 auto;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 42px;
  text-align: left;
}
.pillar {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 26px;
}
.pillar h3 {
  margin: 0 0 8px;
  font-size: 19px;
}
.pillar p {
  margin: 0;
  color: var(--mist);
  font-size: 16px;
}
@media (max-width: 860px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* Features: a real screen beside its words */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 50px 0;
}
.feature.flip .text {
  order: 2;
}
.feature h3 {
  font: 720 30px/1.15 var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
:lang(zh) .feature h3 {
  letter-spacing: 0;
}
.feature p {
  color: var(--mist);
  margin: 0 0 10px;
}
.feature .phone {
  justify-self: center;
  width: min(100%, 270px);
  border-radius: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 8px var(--raise),
    0 0 0 9px rgba(255, 255, 255, 0.07);
}
.feature .tablet {
  justify-self: center;
  width: min(100%, 400px);
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    0 0 0 8px var(--raise),
    0 0 0 9px rgba(255, 255, 255, 0.07);
}
.feature .desk {
  border-radius: 14px;
  border: 1px solid var(--hair);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
@media (max-width: 860px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .feature.flip .text {
    order: 0;
  }
}

/* Languages, each in its own script */
.langs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin: 38px auto 0;
  max-width: 940px;
}
.langs span {
  white-space: nowrap;
  font-size: 17px;
  padding: 7px 15px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--card);
}
.langs span.mixed {
  border-color: rgba(255, 178, 26, 0.55);
  background: var(--amber-soft);
}
.note {
  color: var(--faint);
  font-size: 14px;
  margin-top: 20px;
}

/* FAQ */
details {
  border-bottom: 1px solid var(--hair);
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 18px;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  float: right;
  color: var(--amber);
  font-weight: 400;
  font-size: 22px;
  line-height: 1;
}
details[open] summary::after {
  content: "–";
}
details p {
  color: var(--mist);
  margin: 10px 0 0;
}
.faq {
  max-width: 760px;
  margin: 30px auto 0;
}

.final {
  text-align: center;
  padding: 100px 0 110px;
}
.final h2 {
  margin-bottom: 28px;
}

footer {
  border-top: 1px solid var(--hair);
  padding: 34px 0 50px;
  color: var(--faint);
  font-size: 14px;
}
footer .wrap {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}
footer a {
  color: var(--mist);
}
footer .right {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Text pages: privacy, support */
.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 64px 24px 90px;
}
.doc h1 {
  font-size: clamp(36px, 5vw, 48px);
  max-width: none;
  margin-bottom: 10px;
}
.doc h2 {
  font-size: 26px;
  margin: 44px 0 10px;
}
.doc p,
.doc li {
  color: var(--mist);
}
.doc li {
  margin: 6px 0;
}
.doc strong {
  color: var(--paper);
}
.doc .meta {
  color: var(--faint);
  font-size: 15px;
}
.doc .switch {
  margin: 18px 0 0;
  font-size: 15px;
}
.doc hr {
  border: 0;
  border-top: 1px solid var(--hair);
  margin: 70px 0 10px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .stage .script,
  .stage .script span {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
}
.pillars.after {
  margin-top: 30px;
}
