/* The product page. Builds on style.css. */
body.home main { padding: 0; }
.home .wide { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.home section { position: relative; }
.eyebrow { font: 600 15px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text3); margin: 0 0 18px; }
.big { font-size: clamp(40px, 7.4vw, 88px); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 0; color: var(--text); }
.mid { font-size: clamp(32px, 5vw, 60px); line-height: 1.06; letter-spacing: -.03em; font-weight: 700; margin: 0 0 18px; color: var(--text); }
.sheen { background: linear-gradient(180deg, #ffd27a 10%, #f5a30f 55%, #a86400 110%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.4; color: var(--text2); max-width: 34em; margin: 22px auto 0; }
.center { text-align: center; }
.btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.pill { display: inline-block; padding: 13px 24px; border-radius: 99px; font-weight: 600; font-size: 17px; text-decoration: none; }
.pill.solid { background: var(--accent); color: var(--accent-ink); }
.pill.solid:hover { background: var(--accent-hi); color: var(--accent-ink); }
.pill.line { color: var(--accent); border: 1px solid var(--raised); }
.pill.line:hover { border-color: var(--accent); color: var(--accent-hi); }
.section-pad { padding: 140px 0; }

/* Hero */
.hero { padding: 92px 0 40px; overflow: hidden; }
.hero-stage { position: relative; max-width: 1000px; margin: 56px auto 0; padding: 0 22px; }
#wave { width: 100%; height: 260px; display: block; }
.hero-glow { position: absolute; inset: -40px 0 auto 0; height: 360px; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(245,163,15,.12), transparent 70%); }
.hero-under { display: flex; flex-direction: column; align-items: center; }
.caption { min-height: 2.9em; margin: 8px auto 0; max-width: 32em; font-size: clamp(17px, 2vw, 21px); line-height: 1.4; color: var(--text);
  transition: opacity .35s; }
.caption.fade { opacity: 0; }
.hero-bar { display: flex; gap: 16px; align-items: baseline; justify-content: center; flex-wrap: wrap; margin-top: 10px; font-size: 15px; color: var(--text3); }
.hero-bar b { color: var(--text2); font-weight: 600; }
.hero-bar .time { font: 500 14px var(--mono); color: var(--text2); }
.save { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 16px 34px;
  border-radius: 18px; font-weight: 650; font-size: 18px; color: var(--accent);
  background: linear-gradient(180deg, rgba(245,163,15,.16), rgba(245,163,15,.08)); border: 1px solid rgba(245,163,15,.45);
  transition: transform .12s, background .2s, box-shadow .3s; }
.save span { color: rgba(245,163,15,.65); font-weight: 500; font-size: 15px; }
.save svg { width: 24px; height: 24px; }
.save:hover { background: linear-gradient(180deg, rgba(245,163,15,.24), rgba(245,163,15,.12)); }
.save:active, .save.press { transform: scale(.96); box-shadow: 0 0 0 8px rgba(245,163,15,.12); }
.save:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hint-tap { font-size: 14px; color: var(--text3); margin: 12px 0 0; }
.toast { position: absolute; z-index: 3; top: -14px; left: 50%; transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 18px 11px 14px; border-radius: 18px;
  background: rgba(28,28,31,.92); border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0,0,0,.5);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: opacity .35s, transform .45s cubic-bezier(.2,.8,.2,1); white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.toast b { display: block; font-size: 15px; color: var(--text); }
.toast div span { font: 500 13px var(--mono); color: var(--text3); }
.toast em { font-style: normal; font-size: 14px; color: var(--accent); margin-left: 8px; max-width: 16em; overflow: hidden; text-overflow: ellipsis; }

/* Statement, lit word by word on scroll */
.statement { padding: 160px 0 160px; }
.statement p { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.16; letter-spacing: -.025em; font-weight: 700;
  margin: 0; max-width: 20em; color: var(--text); }
.statement .w { color: #2f2d2a; transition: color .35s; }
.statement .w.lit { color: var(--text); }
.statement .w.lit.dim { color: var(--text2); }

/* Story: a phone that stays put while the steps change */
.story { height: 420vh; }
.story-sticky { position: sticky; top: 60px; height: calc(100vh - 60px); display: grid;
  grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
.steps-text { position: relative; height: 320px; }
.step { position: absolute; inset: 0; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .5s; pointer-events: none; }
.step.on { opacity: 1; transform: none; pointer-events: auto; }
.step .num { font: 600 14px var(--mono); color: var(--accent); letter-spacing: .1em; }
.step h3 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.025em; margin: 12px 0 14px; color: var(--text); }
.step p { font-size: 19px; max-width: 26em; }
.progress { display: flex; gap: 8px; margin-top: 26px; }
.progress i { width: 26px; height: 4px; border-radius: 4px; background: var(--raised); transition: background .3s, width .3s; }
.progress i.on { background: var(--accent); width: 44px; }
.phone { justify-self: center; position: relative; height: min(calc(100vh - 140px), 700px); width: auto; aspect-ratio: 1320 / 2868; border-radius: 54px;
  padding: 12px; background: linear-gradient(145deg, #3d3a36, #181715 40%, #2d2b28); box-shadow: 0 40px 120px rgba(0,0,0,.6),
  inset 0 0 0 1.5px #4d4a45; }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 43px; overflow: hidden; background: #000; }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03);
  transition: opacity .6s, transform .8s; }
.phone img.on { opacity: 1; transform: none; }
.phone .island { position: absolute; top: 2.2%; left: 50%; transform: translateX(-50%); width: 31%; height: 3.4%;
  background: #000; border-radius: 99px; z-index: 2; }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 28px; min-height: 230px;
  display: flex; flex-direction: column; }
.tile svg { width: 44px; height: 44px; color: var(--accent); margin-bottom: auto; }
.tile h3 { font-size: 21px; margin: 26px 0 6px; color: var(--text); }
.tile p { margin: 0; font-size: 16px; }
.tile.span2 { grid-column: span 2; background: radial-gradient(80% 120% at 100% 0%, rgba(245,163,15,.10), transparent 60%), var(--panel); }

/* Transcript reader */
.reader { max-width: 760px; margin: 56px auto 0; background: var(--panel); border: 1px solid var(--line); border-radius: 28px; padding: 18px; }
.reader-top { display: flex; align-items: center; gap: 12px; padding: 4px 4px 14px; }
.reader-top input { flex: 1; border-radius: 99px; padding: 11px 18px; }
.found { font: 500 14px var(--mono); color: var(--text3); min-width: 6ch; text-align: right; }
.lines { list-style: none; margin: 0; padding: 0; max-height: 430px; overflow-y: auto; scroll-behavior: smooth; }
.lines li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 12px 12px; border-radius: 14px; cursor: pointer;
  color: var(--text3); transition: background .25s, color .25s; }
.lines li:hover { background: var(--card); }
.lines li .t { font: 500 13px/1.9 var(--mono); color: var(--text3); }
.lines li.now { background: var(--card); color: var(--text); font-weight: 600; }
.lines li.now .t { color: var(--accent); }
.lines li.past { color: var(--text2); }
.lines li.miss { opacity: .3; }
.lines mark { background: rgba(245,163,15,.28); color: var(--text); border-radius: 4px; padding: 0 2px; }
.lines li:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* Export */
.export { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 4px; margin-top: 18px; flex-wrap: wrap; }
.seg button { all: unset; cursor: pointer; padding: 8px 16px; border-radius: 99px; font-size: 15px; color: var(--text2); }
.seg button[aria-pressed=true] { background: var(--raised); color: var(--text); }
.seg button:focus-visible { outline: 2px solid var(--accent); }
.note-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 26px 28px; min-height: 470px; }
.note-card [data-view] { display: none; }
.note-card [data-view].on { display: block; animation: fadeup .4s ease; }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } }
.md { margin: 0; font: 14px/1.65 var(--mono); color: var(--text2); white-space: pre-wrap; word-break: break-word; }
.md .fm { color: var(--text3); }
.md i { font-style: normal; color: var(--accent); }
.md b { color: var(--text); }
.md u { text-decoration: none; color: #8ab4ff; }
.rendered h4 { font-size: 28px; letter-spacing: -.02em; margin: 0 0 6px; color: var(--text); }
.rendered .src { margin: 0 0 22px; font-size: 15px; }
.rendered h5 { font-size: 18px; margin: 22px 0 6px; color: var(--text); }
.rendered p { margin: 0; }
.rendered blockquote { margin: 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--accent); color: var(--text); font-style: italic; }
.rendered .tags span { display: inline-block; margin-top: 24px; font-size: 14px; color: var(--accent); background: rgba(245,163,15,.12); border-radius: 99px; padding: 4px 12px; }

/* A complete player */
.player { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.phone.still { height: 620px; max-height: 80vh; }
.feature-list { list-style: none; margin: 24px 0 0; padding: 0; }
.feature-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text2); font-size: 16px; }
.feature-list li:last-child { border-bottom: 0; }
.feature-list b { display: block; color: var(--text); font-size: 17px; margin-bottom: 2px; }
.feature-list .dot { width: 24px; height: 24px; border-radius: 99px; flex: none; display: grid; place-items: center; margin-top: 1px;
  background: rgba(245,163,15,.14); color: var(--accent); font-size: 13px; font-weight: 700; }

/* Privacy */
.privacy-band { background: radial-gradient(50% 60% at 50% 50%, rgba(245,163,15,.06), transparent 70%); }
.nos { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.nos span { border: 1px solid var(--line); background: var(--panel); border-radius: 99px; padding: 10px 20px; color: var(--text); font-size: 17px; }
.nos span::before { content: "✕"; color: var(--accent); margin-right: 10px; font-size: 14px; }

/* CTA */
.cta { padding: 150px 0 170px; text-align: center; background: radial-gradient(60% 60% at 50% 100%, rgba(245,163,15,.10), transparent 70%); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

@media (max-width: 860px) {
  .section-pad { padding: 96px 0; }
  .hero { padding-top: 48px; }
  .hero-stage { margin-top: 36px; }
  #wave { height: 180px; }
  .toast { top: -26px; }
  .toast em { display: none; }
  .sub { margin-top: 16px; }
  .btns { gap: 10px; margin-top: 24px; }
  .pill { padding: 11px 18px; font-size: 16px; }
  .statement { padding: 110px 0; }
  .story { height: 400vh; }
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 18px; align-content: center; padding-top: 12px; }
  .story .phone { height: min(calc(100vh - 360px), 440px); border-radius: 34px; padding: 8px; order: -1; }
  .story .phone .screen { border-radius: 27px; }
  .steps-text { height: 230px; text-align: center; }
  .step p { margin: 0 auto; font-size: 17px; }
  .step h3 { font-size: 28px; margin: 8px 0 10px; }
  .progress { justify-content: center; margin-top: 16px; }
  .grid { grid-template-columns: 1fr; }
  .tile.span2 { grid-column: auto; }
  .tile { min-height: 0; }
  .export, .player { grid-template-columns: 1fr; gap: 36px; }
  .note-card { min-height: 0; padding: 20px; }
  .phone.still { height: 480px; border-radius: 38px; padding: 9px; }
  .phone.still .screen { border-radius: 30px; }
  .lines { max-height: 380px; }
  .lines li { grid-template-columns: 44px 1fr; padding: 10px 8px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal, .step, .phone img, .statement .w, .toast, .caption, .lines li { transition: none; }
  .note-card [data-view].on { animation: none; }
}
