/* Hushtype landing page: warm paper, owl-ink type, amber actions. */
@font-face {
  font-family: "Bricolage";
  src: url("/assets/Bricolage-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/assets/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Light only: the token names are from the old night world (night = page ground, cream = ink). */
:root {
  --night: #faf7f0;       /* warm paper, the Android light ground */
  --night-deep: #ffffff;
  --tile: #f1ece1;
  --raised: #f4f0e7;
  --line: #e6e0d2;
  --cream: #1e1c38;       /* owl ink */
  --cream-2: #5f5c74;     /* secondary text */
  --cream-3: #76738a;     /* tertiary, small labels */
  --amber: #f0a030;       /* fills only: fails contrast as text on paper */
  --amber-hi: #f6b955;
  --amber-ink: #8a4e00;   /* amber text on paper */
  --on-amber: #1b1a44;
  --display: "Bricolage", "Geist", system-ui, sans-serif;
  --body: "Geist", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--amber); color: var(--on-amber); }
html { scrollbar-color: var(--line) var(--night-deep); }
a { color: var(--amber-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
code { font-family: "Geist Mono", ui-monospace, monospace; font-size: 0.92em; color: var(--cream); background: var(--tile); padding: 1px 6px; border-radius: 5px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: var(--on-amber); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---- top bar ---- */
.top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 700 21px/1 var(--display); letter-spacing: -0.02em; }
.mark img { border-radius: 9px; }
.mark.small { font-size: 17px; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: 15px; }
.top nav a { color: var(--cream-2); text-decoration: none; }
.top nav a:hover { color: var(--cream); }
.top nav a.login { color: var(--cream); border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.top nav a.login:hover { border-color: var(--cream-3); }
@media (max-width: 760px) {
  .top nav a:not(.login) { display: none; }
}

/* ---- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font: 600 16px/1.2 var(--body);
  text-align: center;
  padding-block: 12px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn.amber { background: var(--amber); color: var(--on-amber); box-shadow: 0 8px 18px -10px rgba(30, 28, 56, 0.25); }
.btn.amber:hover { background: var(--amber-hi); transform: translateY(-1px); text-decoration: none; }
.btn.ghost { color: var(--cream); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--cream-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 14px; }
.cta.center { justify-content: center; }
.fine { font-size: 14px; color: var(--cream-2); margin: 0; }
.fine.center { text-align: center; margin-top: 28px; }

/* ---- hero ---- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(24px, 6vh, 72px) var(--gutter) clamp(40px, 6vh, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
h1, h2, h3 { font-family: var(--display); color: var(--cream); margin: 0; text-wrap: balance; }
h1 {
  font-size: clamp(3.4rem, 8.2vw, 6rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.04em;
}
h1 .typed { color: var(--amber-ink); }
.lede { font-size: clamp(17px, 1.5vw, 19px); color: var(--cream-2); max-width: 34em; margin: 28px 0 0; }

/* the demo: the owl wakes while you hold the key */
.demo {
  margin: 0;
  background: var(--tile);
  border-radius: 28px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 30px 60px -30px rgba(30, 28, 56, 0.25);
  display: grid;
  gap: 20px;
}
.owl { display: flex; justify-content: center; padding: 4px 0 0; }
.eyes { width: min(220px, 60%); height: auto; overflow: visible; }
.eyes path { fill: var(--cream); stroke: var(--cream); stroke-width: 1.5; }
.eyes .lid { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 0.35s var(--ease); }
.eyes .pupil { fill: var(--tile); transform-box: fill-box; transform-origin: 50% 50%; transform: scale(0); transition: transform 0.35s var(--ease); }
.demo.listening .lid, .demo.listening .pupil { transform: none; }

.note {
  background: var(--night-deep);
  border-radius: 16px;
  padding: 16px 18px 18px;
  min-height: 176px;
}
.note-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--cream-3); padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid var(--tile); }
.said { margin: 0; min-height: 0; font-size: 15px; line-height: 1.5; color: var(--cream-2); font-style: italic; }
.said:empty { display: none; }
.said .w { opacity: 0; animation: word 0.25s var(--ease) forwards; }
.out { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; color: var(--cream); }
.out .w { display: inline-block; filter: blur(6px); opacity: 0; animation: settle 0.5s var(--ease) forwards; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--amber); animation: blink 1.05s steps(1) infinite; }
.demo.listening .out, .demo.thinking .out { display: none; }
.demo.thinking .said { opacity: 0.5; transition: opacity 0.3s; }
@keyframes word { to { opacity: 1; } }
@keyframes settle { to { filter: none; opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }

.controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.key {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 22px 0 18px;
  border-radius: 14px;
  border: none;
  background: var(--amber);
  color: var(--on-amber);
  font: 700 16px/1 var(--body);
  cursor: pointer;
  box-shadow: 0 5px 0 #b06d12, 0 12px 22px -10px rgba(30, 28, 56, 0.25);
  transition: transform 0.08s, box-shadow 0.08s;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.key:hover { background: var(--amber-hi); }
.demo.listening .key { transform: translateY(4px); box-shadow: 0 1px 0 #b06d12, 0 4px 10px -6px rgba(30, 28, 56, 0.25); }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 22px; }
.wave i { display: block; width: 3px; height: 6px; border-radius: 2px; background: var(--on-amber); }
.demo.listening .wave i { animation: wave 0.9s var(--ease) infinite alternate; }
.demo.listening .wave i:nth-child(2n) { animation-duration: 0.7s; }
.demo.listening .wave i:nth-child(3n) { animation-duration: 1.1s; animation-delay: -0.3s; }
@keyframes wave { from { height: 4px; } to { height: 22px; } }
.hint { font-size: 13px; color: var(--cream-2); }
.demo figcaption { font-size: 12.5px; color: var(--cream-3); }

/* ---- sections ---- */
section { scroll-margin-top: 16px; }
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1; font-weight: 750; letter-spacing: -0.035em; }
.section-head p { color: var(--cream-2); margin: 18px 0 0; font-size: 18px; }

.how, .features, .platforms, .pricing, .privacy, .faq {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 10vw, 128px) var(--gutter) 0;
}

/* the tape: one sentence through the pipeline */
.tape { list-style: none; margin: 0; padding: 0; counter-reset: step; position: relative; }
.tape::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: var(--line); }
.tape li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  column-gap: clamp(20px, 4vw, 56px);
  row-gap: 8px;
  padding: 0 0 clamp(28px, 4vw, 44px) 48px;
}
.tape li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 24px;
  height: 12px;
  border-radius: 0 0 24px 24px;
  background: var(--cream);
}
.tape li:last-child::before { background: var(--amber); }
.tape h3 { font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -0.015em; grid-row: span 2; }
.sample {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--cream);
  background: var(--tile);
  border-radius: 14px;
  padding: 14px 18px;
}
.sample.spoken { font-style: italic; color: var(--cream-2); background: transparent; padding: 0; font-size: 20px; }
.sample mark { background: none; color: var(--amber-ink); font-weight: 600; }
.sample del { color: var(--cream-3); text-decoration-color: var(--amber); text-decoration-thickness: 2px; }
.sample ins { text-decoration: none; color: var(--amber-ink); font-weight: 600; }
.sample b { display: block; font: 600 12.5px/1.4 var(--body); color: var(--cream-3); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.sample.final { background: var(--cream); color: var(--night); font-weight: 500; }
.sample.final .caret { background: var(--amber); }
.styles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.why { margin: 0; color: var(--cream-2); font-size: 15.5px; max-width: 62ch; }

/* features: four groups, a definition list each */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 6vw, 72px) clamp(32px, 6vw, 88px); }
.group h3 { font-size: 26px; font-weight: 700; letter-spacing: -0.025em; padding-bottom: 14px; border-bottom: 2px solid var(--cream); margin-bottom: 4px; }
.group dl { margin: 0; }
.group dt { font-weight: 600; font-size: 17px; margin-top: 18px; display: flex; align-items: baseline; gap: 10px; }
.group dt small { font: 600 11.5px/1 var(--body); text-transform: uppercase; letter-spacing: 0.07em; color: var(--night); background: var(--cream-2); padding: 4px 7px 3px; border-radius: 999px; }
.group dd { margin: 4px 0 0; color: var(--cream-2); font-size: 16px; }

/* platforms */
.platform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.platform { border-radius: 28px; padding: clamp(24px, 4vw, 44px); min-width: 0; }
.platform h3 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.platform .meta { margin: 12px 0 0; font-size: 14.5px; }
.platform.now { background: var(--cream); color: var(--night); }
.platform.now h3 { color: var(--night); }
.platform.now .meta { color: #c9c3e3; }
.platform.now a:not(.btn) { color: var(--amber); }
.platform.now .btn { margin-top: 28px; }
.steps { margin: 24px 0 0; padding-left: 1.3em; display: grid; gap: 10px; }
.steps li { min-width: 0; }
.steps pre { margin: 10px 0 0; }
.steps pre code { display: block; padding: 10px 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.steps li::marker { font-weight: 700; color: var(--amber); }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.price { background: var(--tile); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; }
.price h3 { font-size: 20px; font-weight: 650; color: var(--cream-2); letter-spacing: -0.01em; }
.price .amount { font: 800 clamp(2.4rem, 4.4vw, 3.4rem)/1 var(--display); letter-spacing: -0.04em; margin: 14px 0 20px; font-variant-numeric: tabular-nums; }
.price .amount small { font: 500 16px/1 var(--body); letter-spacing: 0; color: var(--cream-2); }
.price .save { display: inline-block; font: 600 13px/1 var(--body); color: var(--on-amber); background: var(--amber); border-radius: 999px; padding: 5px 9px; margin-left: 8px; vertical-align: 6px; letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; color: var(--cream-2); font-size: 15.5px; }
.price li { padding-left: 22px; position: relative; }
.price li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 6px; border-radius: 0 0 12px 12px; background: var(--cream); }
.price .btn { margin-top: auto; }
.price.trial { background: var(--amber); color: var(--on-amber); }
.price.trial h3, .price.trial .amount, .price.trial ul { color: var(--on-amber); }
.price.trial li::before { background: var(--on-amber); }
.price.trial .btn.amber { background: var(--night); color: var(--cream); box-shadow: none; }
.price.trial .btn.amber:hover { background: var(--tile); }

/* privacy */
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; max-width: 42rem; }
.facts li { padding: 20px 0; border-top: 1px solid var(--line); color: var(--cream-2); font-size: 17px; }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts b { color: var(--cream); font-weight: 600; }

/* faq */
.qa { max-width: 54rem; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font: 600 19px/1.35 var(--display); letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 18px; height: 9px; margin-top: -5px; border-radius: 0 0 18px 18px; background: var(--cream-3); transition: transform 0.3s var(--ease), background-color 0.2s; }
.qa details[open] summary::after { transform: rotate(180deg); background: var(--amber); }
.qa details p { margin: 0 0 22px; color: var(--cream-2); max-width: 62ch; }

/* close */
.close { text-align: center; padding: clamp(96px, 14vw, 168px) var(--gutter) clamp(72px, 10vw, 120px); }
.sleep { width: min(200px, 50%); height: auto; display: block; margin: 0 auto 36px; }
.sleep path { fill: var(--cream); }
.close h2 { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 0.95; font-weight: 800; letter-spacing: -0.04em; max-width: 14ch; margin: 0 auto; }

.foot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px var(--gutter) 40px;
  border-top: 1px solid var(--tile);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 14.5px; }
.foot nav a { color: var(--cream-2); text-decoration: none; }
.foot nav a:hover { color: var(--cream); }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .tape li { grid-template-columns: 1fr; }
  .tape h3 { grid-row: auto; }
  .groups, .platform-row, .prices { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .styles { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .controls { flex-direction: column; align-items: stretch; }
  .key { justify-content: center; }
  .hint { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .caret { animation: none; }
}
