:root {
  --bench: #dcdfda;
  --paper: #f3f4f1;
  --ink: #17191c;
  --muted: #55595e;
  --tape: #f5c518;
  --tape-dark: #e0b000;
  --steel: #2f4a61;
  --rule: #b9bdb7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.2rem;
  line-height: 1.6;
  font-optical-sizing: auto;
}
main { flex: 1; }

h1, h2, h3, .brand, .btn, .row-name, .price, .tag {
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-stretch: 125%;
  letter-spacing: -0.01em;
}

a { color: var(--steel); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--tape); color: var(--ink); padding: 0.5rem 1rem;
}
.skip:focus { left: 1rem; top: 1rem; z-index: 10; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1.25rem; }

/* top bar */
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand { font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap; padding: 0.5rem 0; }
.crumb { color: var(--muted); font-weight: 400; }
.top nav { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: 1.25rem; }
.top nav a { font-size: 1rem; padding: 0.5rem 0; }
.home .top { justify-content: flex-end; }
@media (max-width: 30rem) { .crumb { display: none; } }

/* hero band */
.hero { background: var(--bench); border-bottom: 2px solid var(--ink); }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 800;
  margin: 1.75rem 0 1rem;
  text-wrap: balance;
}
.hero .for { font-size: 1.05rem; color: var(--muted); margin: 0 0 1.25rem; max-width: 34rem; }
.hero p { max-width: 34rem; margin: 0 0 1.75rem; }
.hero p.fine { font-size: 0.95rem; color: var(--muted); margin: 1rem 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

.home .hero h1 {
  font-size: min(8.5rem, calc((100vw - 2.5rem) / 7.8));
  line-height: 0.92;
  letter-spacing: -0.03em;
  white-space: nowrap;
  margin: 2.5rem 0 1.5rem;
}
.home .hero p { font-size: 1.35rem; max-width: 30rem; }
.home .hero .wrap { padding-bottom: 3.5rem; }

/* buttons */
.btn {
  display: inline-block;
  background: var(--tape);
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.95rem 1.6rem;
  border: 2px solid var(--ink);
  transition: background-color 0.12s;
}
.btn:hover { background: var(--tape-dark); }

/* clip frame */
.frame {
  justify-self: center;
  width: min(16rem, 70vw);
  aspect-ratio: 9 / 16;
  background: var(--ink);
  border: 2px solid var(--ink);
  position: relative;
  display: grid;
  place-items: center;
  color: var(--paper);
  text-align: center;
  padding: 1rem;
  overflow: hidden;
}
.frame video, .frame img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.frame span { font-family: "Archivo", sans-serif; font-size: 0.9rem; opacity: 0.8; }

/* content sections */
section.block { padding: 3.5rem 0; border-bottom: 1px solid var(--rule); }
.block .wrap { display: grid; gap: 1rem; }
.block h2 { font-size: 1.45rem; line-height: 1.2; margin: 0; font-weight: 800; }
.block h3 { font-size: 1.1rem; margin: 0 0 0.75rem; font-weight: 700; }
.block .body { max-width: 40rem; }
.block .body > p:first-child { margin-top: 0; }
.block .body > p:last-child { margin-bottom: 0; }
.block ol, .block ul { padding-left: 1.2rem; margin: 0; }
.block li { margin-bottom: 0.6rem; padding-left: 0.25rem; }
.block ol li::marker { font-family: "Archivo", sans-serif; font-weight: 700; color: var(--muted); }

.split { display: grid; gap: 2.5rem; max-width: none; }

.note {
  border-left: 4px solid var(--ink);
  padding: 0.25rem 0 0.25rem 1.1rem;
  margin: 2rem 0 0;
}
.note strong { font-family: "Archivo", sans-serif; font-stretch: 125%; }

details { border-top: 1px solid var(--rule); padding: 0.9rem 0; }
details:last-child { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.6rem 0 0; color: var(--muted); }

.buy { background: var(--bench); }
.buy .price { font-size: 2.6rem; font-weight: 800; line-height: 1; margin: 0 0 0.75rem; }
.buy p { margin: 0 0 1.5rem; }
.buy .small { font-size: 1rem; color: var(--muted); margin: 1.25rem 0 0; }

/* home: product list */
.block .shelf { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.block .shelf li { border-bottom: 1px solid var(--rule); margin: 0; padding: 0; }
.shelf a.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1.5rem;
  padding: 1.4rem 0;
  color: var(--ink);
  text-decoration: none;
}
.row-name { font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
.row-desc { grid-column: 1 / -1; color: var(--muted); }
.row-go { grid-column: 1 / -1; color: var(--steel); text-decoration: underline; text-underline-offset: 3px; font-size: 1.05rem; }
.price { font-weight: 700; font-size: 1.2rem; align-self: baseline; }
.tag { font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-left: 0.6rem; }
.shelf a.row:hover .row-go { text-decoration-thickness: 2px; }
.after-list { margin: 1.25rem 0 0; color: var(--muted); font-size: 1.05rem; }

footer { padding: 2rem 0 2.5rem; font-size: 1rem; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }
footer a { padding: 0.4rem 0; display: inline-block; }
.foot-links { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }

/* phones: show the clip right under the headline, before the pitch */
@media (max-width: 51.99rem) {
  .hero-grid { gap: 0; }
  .hero-text { display: contents; }
  .hero-grid h1 { order: 1; }
  .hero-grid .demo { order: 2; margin: 0 0 1.75rem; }
  .hero-text > :not(h1) { order: 3; }
  .hero-grid .btn { justify-self: start; }
}

/* hero illustration: chat + meter + clip being cut */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.demo {
  --pw: 14rem;                      /* phone width; the chat panel matches its height */
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 11rem) var(--pw);
  grid-template-areas: "chat phone" "status status";
  gap: 0.75rem 1rem;
  align-self: end;
}
.chat {
  grid-area: chat;
  height: calc(var(--pw) * 16 / 9);
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--ink);
  min-width: 0;
}
.chat-head { font: 700 0.8rem "Archivo", sans-serif; padding: 0.45rem 0.6rem; border-bottom: 1px solid var(--rule); }
.chat-log {
  list-style: none; margin: 0; padding: 0.4rem 0.6rem; flex: 1;
  overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  font: 400 0.8rem/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-mask-image: linear-gradient(transparent, #000 2.2rem);
  mask-image: linear-gradient(transparent, #000 2.2rem);
}
.chat-log li { margin: 0 0 0.2rem; overflow-wrap: anywhere; }
.chat-log b { font-weight: 700; }
.u0 { color: #2f4a61; } .u1 { color: #8a3b12; } .u2 { color: #2f6b3a; } .u3 { color: #6a3f8f; }
.meter { display: flex; align-items: flex-end; gap: 2px; height: 2.6rem; padding: 0.4rem 0.6rem; border-top: 1px solid var(--rule); }
.meter i { flex: 1; height: 6%; background: var(--ink); transition: height 0.25s; }
.meter i.hot { background: var(--tape); box-shadow: inset 0 0 0 1px var(--ink); }

.demo .phone { grid-area: phone; width: var(--pw); padding: 0; display: block; justify-self: auto; margin: 0; }
.phone::after { content: none; }
.phone .cam, .phone .game { position: absolute; left: 0; right: 0; transition: filter 0.3s; }
.phone .cam {
  top: 0; height: 38%;
  background:
    radial-gradient(circle at 50% 40%, #8c9096 0 15%, transparent 16%),
    radial-gradient(ellipse 34% 30% at 50% 100%, #8c9096 0 98%, transparent 100%),
    #2a2d31;
  border-bottom: 2px solid #000;
}
.phone .live {
  position: absolute; top: 0.5rem; left: 0.5rem;
  font: 700 0.65rem "Archivo", sans-serif; color: #fff; background: #c8322b; padding: 0.1rem 0.35rem;
}
.phone .game {
  top: 38%; bottom: 0; overflow: hidden;
  background: linear-gradient(#3c5a73, #7d97ab 52%, #3a3f45 52.5%, #1e2125);
}
.phone .game::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 5px;
  background: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.35) 18px 32px);
}
.demo.playing .game::after { animation: road 0.6s linear infinite; }
@keyframes road { to { background-position: -32px 0; } }
.demo:not(.playing) .cam, .demo:not(.playing) .game { filter: grayscale(0.7) brightness(0.65); }
.phone .cap {
  position: absolute; left: 0; right: 0; top: 56%; padding: 0 0.4rem;
  text-align: center; color: #fff;
  font: 800 1.45rem/1 "Archivo", sans-serif; font-stretch: 125%;
  text-shadow: 0 0 8px rgba(255, 40, 40, 0.95), 0 0 2px #000, 2px 2px 0 #000;
}
.phone .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.2); }
.phone .prog i { display: block; height: 100%; width: 0; background: var(--tape); }
.phone .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.demo.cut .flash { animation: flash 0.35s ease-out; }
@keyframes flash { from { opacity: 0.85; } to { opacity: 0; } }
.phone .ok {
  position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%);
  background: var(--paper); color: var(--ink); border: 2px solid var(--ink);
  font: 700 0.8rem "Archivo", sans-serif; padding: 0.35rem 0.7rem; white-space: nowrap;
  opacity: 0; transition: opacity 0.2s;
}
.demo.ask .ok { opacity: 1; }
.demo-status { grid-area: status; font: 700 0.9rem "Archivo", sans-serif; text-align: right; min-height: 1.4em; }
.demo-note { grid-column: 1 / -1; font-size: 0.85rem; color: var(--muted); text-align: right; margin-top: -0.5rem; }

@media (max-width: 51.99rem) {   /* phones: chat and clip side by side, smaller */
  .demo { --pw: min(9.5rem, 44vw); grid-template-columns: minmax(0, 1fr) var(--pw); gap: 0.5rem 0.75rem; }
  .chat-head { font-size: 0.72rem; padding: 0.35rem 0.5rem; }
  .chat-log { font-size: 0.72rem; padding: 0.3rem 0.5rem; }
  .meter { height: 2rem; padding: 0.3rem 0.5rem; }
  .phone .cap { font-size: 1rem; }
  .phone .ok { font-size: 0.7rem; bottom: 0.7rem; }
  .demo-status { font-size: 0.8rem; }
}

.home-grid { display: grid; gap: 2rem; }
.home .hero p.home-now { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.5rem; }
.home-grid .demo { justify-self: start; }
@media (min-width: 52rem) {
  .home-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .home-grid .demo { justify-self: end; }
}

/* plain text pages (terms, privacy) */
.doc .body h3 { margin-top: 1.75rem; }

@media (min-width: 52rem) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 3rem; }
  .frame { justify-self: end; margin-top: 2rem; }
  .block .wrap { grid-template-columns: 15rem 1fr; gap: 3rem; }
  .split { grid-template-columns: 1fr 1fr; }
  .shelf a.row { grid-template-columns: 15rem 1fr auto; align-items: baseline; }
  .row-desc { grid-column: auto; }
  .row-go { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
