/* Lissom marketing site. Colours and type follow the app's brand guide
   (master context docs/apps/stretching-brand-guide.md): oat ground, plum is
   the one action colour, glow only marks where a stretch is felt. */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #f6f1e9;
  --surface: #fffcf7;
  --ink: #2a2630;
  --ink-soft: #6b6470;
  --plum: #2e2437;
  --plum-wash: #ece5f0;
  --sage: #3f6b5a;
  --sage-wash: #dde9e2;
  --glow: #e8803f;
  --line: #e4dccf;
  --on-plum: #f6f1e9;
  --plum-soft: #cdb8e0;
  --link: #2e2437;
  --art: #f6f1e9;
  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 66ch;
  --gutter: clamp(16px, 5vw, 48px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17121d;
    --surface: #241d2c;
    --ink: #f6f1e9;
    --ink-soft: #b9b2c0;
    --plum-wash: #33293d;
    --sage: #8fc4ae;
    --glow: #f29a5c;
    --line: #3a3144;
    --link: #cdb8e0;
  }
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}

::selection { background: var(--plum); color: var(--on-plum); }
@media (prefers-color-scheme: dark) { ::selection { background: var(--plum-soft); color: var(--plum); } }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 2px; }

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

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3, .brand span {
  font-family: var(--serif);
  font-variation-settings: "SOFT" 50, "WONK" 0;
  font-optical-sizing: auto;
  text-wrap: balance;
}

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-top: 20px; padding-bottom: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-weight: 500; font-size: 1.375rem; line-height: 1; letter-spacing: -0.01em; }
.nav { display: flex; gap: clamp(12px, 3vw, 28px); font-size: 0.95rem; }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px); align-items: center;
  padding-top: clamp(24px, 5vw, 64px); padding-bottom: clamp(48px, 8vw, 104px);
}
.hero h1 {
  font-weight: 500; font-size: clamp(2.6rem, 6.6vw, 4.8rem); line-height: 1.02;
  letter-spacing: -0.025em; margin: 0 0 24px;
}
.hero p { font-size: 1.15rem; color: var(--ink-soft); max-width: 36ch; margin: 0 0 28px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 16px; font: 600 1rem/1 var(--sans); text-decoration: none;
  background: var(--plum); color: var(--on-plum);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.alt { background: var(--plum-wash); color: var(--plum); }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 10px 20px -12px rgba(46, 36, 55, 0.55); }
.btn:active { transform: none; }
@media (prefers-color-scheme: dark) {
  .btn { background: var(--plum-soft); color: var(--plum); }
  .btn.alt { background: var(--plum-wash); color: var(--plum-soft); }
}
.status { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* The player: the site's one moving element, the way the app's player shows
   a stretch with its side chip and spoken cue. */
.player {
  position: relative; margin: 0; background: var(--art); border-radius: 28px;
  border: 1px solid var(--line); padding: 20px 20px 24px; overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(46, 36, 55, 0.5);
}
.player .stage { position: relative; aspect-ratio: 1; }
.player .stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(1);
  transition: opacity 700ms var(--ease);
}
.player .stage img.on { opacity: 1; animation: breathe 5s ease-in-out infinite alternate; }
@keyframes breathe { to { transform: scale(1.035); } }
.chip {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  background: #e8803f; color: #2a2630; font: 700 0.75rem/1 var(--sans);
  letter-spacing: 0.06em; padding: 7px 10px; border-radius: 999px;
}
.cue { color: #2a2630; margin: 10px 4px 0; min-height: 3.2em; }
.cue strong { display: block; font: 500 1.35rem/1.2 var(--serif); font-variation-settings: "SOFT" 50; margin-bottom: 4px; }
.cue span { color: #6b6470; }
.cue span::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.15em; background: var(--glow); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.bar { position: relative; height: 4px; border-radius: 4px; background: #dde9e2; margin: 16px 4px 0; overflow: hidden; }
.bar i { position: absolute; inset: 0; background: #3f6b5a; transform-origin: left; transform: scaleX(0); }
.bar i.run { animation: fill var(--dur, 6s) linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* Screens strip */
.screens { padding-bottom: clamp(48px, 8vw, 96px); }
.screens h2, .features > h2 { font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 28px; }
.screens ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2.4vw, 28px); }
.screens img { border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.screens p { margin: 12px 2px 0; font-size: 0.95rem; font-weight: 600; line-height: 1.35; }

/* Features: an illustration beside short text, no cards. */
.features { padding-bottom: clamp(48px, 8vw, 96px); }
.feature {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(20px, 5vw, 56px);
  align-items: center; padding: clamp(20px, 3.5vw, 36px) 0; border-top: 1px solid var(--line);
}
.feature img { width: 200px; aspect-ratio: 1; border-radius: 20px; background: var(--art); }
.feature h3 { font-weight: 500; font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.01em; }
.feature p { margin: 0; max-width: 56ch; color: var(--ink-soft); }

/* Price band: a plum field. */
.band { background: var(--plum); color: var(--on-plum); }
.band .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 64px); padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.band h2 { font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.08; margin: 0; letter-spacing: -0.02em; }
.band p { margin: 0 0 14px; max-width: 52ch; }
.band .price { font: 500 clamp(1.4rem, 2.6vw, 1.8rem)/1.3 var(--serif); color: var(--plum-soft); }
.band a { color: var(--on-plum); }
.band .fine { font-size: 0.92rem; color: var(--plum-soft); }
.band ::selection { background: var(--on-plum); color: var(--plum); }

/* Reading pages: support, privacy, terms. */
.doc { max-width: var(--measure); padding-top: clamp(16px, 4vw, 48px); padding-bottom: clamp(48px, 8vw, 96px); }
.doc h1 { font-weight: 500; font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 8px; }
.doc .updated { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 28px; }
.doc .lede { font-size: 1.12rem; margin: 0 0 8px; }
.doc h2 { font-weight: 500; font-size: 1.45rem; line-height: 1.25; margin: 44px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul { padding-left: 1.25rem; margin: 0 0 12px; }
.doc strong { font-weight: 600; }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 28px; padding-bottom: 40px; font-size: 0.92rem; color: var(--ink-soft); }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--ink-soft); }

.notfound { padding-top: 48px; padding-bottom: 120px; max-width: 40ch; }
.notfound h1 { font-weight: 500; font-size: 2.6rem; line-height: 1.1; margin: 0 0 12px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .player { max-width: 460px; }
  .screens ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .band .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .feature { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .feature img { width: 140px; }
  .nav a.opt { display: none; }
  .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .player .stage img, .btn { transition: none; }
  .player .stage img.on, .cue span::after, .bar i.run { animation: none; }
}
