/* Want 2 Watch — landing page.
   Colours are the app's own tokens (src/theme.ts), so the site and the app read
   as one product. The indigo and teal glows come from the logo lockup. */

:root {
  --bg: #0B0B0F;
  --surface: #16161D;
  --surface-2: #1E1E27;
  --border: #2A2A35;
  --text: #F5F5F7;
  --muted: #9A9AA8;
  --dim: #6C6C7A;
  --accent: #FFC857;
  --like: #35D07F;
  --nope: #FF4D6D;
  --seen: #5EA8FF;
  --later: #8E8AA8;
  --indigo: 91 95 208;
  --teal: 34 193 195;

  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --shadow-phone: drop-shadow(0 28px 50px rgb(0 0 0 / 0.55));

  color-scheme: dark;
}

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

/* Author `display` rules (form { display: grid }) beat the browser's own
   [hidden] style, which once left an unconfigured contact form on screen. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -9999px; top: 0.5rem; z-index: 100;
  background: var(--accent); color: #111; padding: 0.5rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 0.5rem; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.5rem;
  background: var(--accent); color: #17130A;
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { background: #FFD47A; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }

.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-ghost:hover { background: var(--surface); }

.btn-small { min-height: 2.25rem; padding: 0 1rem; font-size: 0.9rem; }

.text-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* ------------------------------------------------------------ nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgb(11 11 15 / 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgb(42 42 53 / 0.6);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 4rem; }
.brand img { height: 30px; width: auto; }
.nav nav { display: flex; gap: 1.5rem; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav nav a:hover { color: var(--text); }

@media (max-width: 47.99rem) {
  .nav nav { display: none; }
  .nav .btn-small { margin-left: auto; }
  .brand img { height: 26px; }
}
/* Small Android phones (~360px): the lockup and button only just fit. */
@media (max-width: 23.5rem) {
  .brand img { height: 22px; }
  .nav .btn-small { padding: 0 0.8rem; }
}

/* ------------------------------------------------------------ hero */

.hero { position: relative; isolation: isolate; padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: -10rem 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40rem 28rem at 12% 18%, rgb(var(--indigo) / 0.28), transparent 70%),
    radial-gradient(36rem 30rem at 88% 60%, rgb(var(--teal) / 0.18), transparent 70%);
}

.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 2rem; } }

.eyebrow {
  display: inline-block; margin-bottom: 1.25rem;
  padding: 0.3rem 0.8rem; border-radius: 999px;
  background: rgb(255 200 87 / 0.12); color: var(--accent);
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em;
}

/* One sentence per line on wide screens, as the design depends on. The longest
   line measures ~12.7em, so sizing the font to 7.6% of the column (container
   query units) keeps all three on one line at any width. Phones wrap instead. */
.hero-copy { container-type: inline-size; }
h1 { font-size: clamp(2rem, 8.5vw, 2.75rem); font-weight: 800; }
h1 span { display: block; text-wrap: balance; }
@media (min-width: 56rem) {
  h1 { font-size: min(3.25rem, 7.6cqi); }
  h1 span { white-space: nowrap; }
}
h1 .accent { color: var(--accent); }

.lede { margin-top: 1.5rem; max-width: 34rem; color: var(--muted); font-size: 1.15rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.cta-row.center { justify-content: center; }

.price-note { margin-top: 1rem; max-width: 34rem; color: var(--muted); font-size: 0.95rem; }
.price-note em { font-style: normal; color: var(--accent); font-weight: 600; }

.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.stores.center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 1rem 0.45rem 0.75rem; border-radius: 12px;
  border: 1px dashed var(--border); color: var(--muted);
  font-size: 0.95rem; font-weight: 600; line-height: 1.2;
  cursor: default; user-select: none;
}
.store svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.store small { display: block; font-size: 0.7rem; font-weight: 500; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }

/* The two hero phones: the friend page tilted behind, the deck in front. */
.hero-art { position: relative; height: clamp(26rem, 60vw, 38rem); }
.hero-art .phone { position: absolute; width: auto; height: 92%; filter: var(--shadow-phone); }
.phone-back { left: 50%; top: 4%; transform: translateX(-88%) rotate(-7deg); opacity: 0.92; }
.phone-front { left: 50%; top: 2%; transform: translateX(-12%) rotate(4deg); }
@media (max-width: 55.99rem) {
  .hero-art { height: clamp(24rem, 110vw, 34rem); }
}

/* ------------------------------------------------------------ sections */

.section { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section-title { font-size: clamp(1.75rem, 3.6vw, 2.5rem); font-weight: 800; text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

/* How it works */
.how { border-top: 1px solid var(--border); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps > li { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.steps h3 { font-size: 1.25rem; margin: 1rem 0 0.5rem; }
.steps p { color: var(--muted); }
.step-num {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: rgb(255 200 87 / 0.14); color: var(--accent); font-weight: 800;
}

.gestures { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.gestures li {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.45rem 0.75rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  background: rgb(var(--tint) / 0.12); color: rgb(var(--tint));
}
.gestures span { font-size: 1.1rem; width: 1.2rem; text-align: center; }
.g-like  { --tint: 53 208 127; }
.g-nope  { --tint: 255 77 109; }
.g-seen  { --tint: 94 168 255; }
.g-later { --tint: 142 138 168; }

/* Showcase rows: copy beside phones, alternating sides on wide screens. */
.showcase { padding-top: 0; }
.row { display: grid; gap: 2.5rem; align-items: center; }
.row + .row { margin-top: clamp(4rem, 10vw, 7rem); }
@media (min-width: 56rem) {
  .row { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .row-flip .row-copy { order: 2; }
}
.kicker { color: var(--accent); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem; }
.row h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); font-weight: 800; margin-bottom: 1rem; }
.row-copy p:not(.kicker) { color: var(--muted); max-width: 32rem; }
.row-copy p + p { margin-top: 1rem; }
.note { font-size: 0.95rem; color: var(--dim) !important; }

.row-art { display: flex; justify-content: center; gap: 1rem; position: relative; isolation: isolate; }
.row-art::before {
  content: ""; position: absolute; inset: 10% 5%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--indigo) / 0.22), transparent);
}
.row-art .phone { width: min(17rem, 70vw); filter: var(--shadow-phone); }
.row-art.pair .phone { width: min(15rem, 42vw); }
.row-art.pair .phone:last-child { margin-top: 3rem; }

/* Feature grid, after Letterboxd's "lets you…" list */
.features { background: var(--surface); border-block: 1px solid var(--border); }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 40rem) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-grid li { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.feature-grid svg { flex: none; width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: 0.1rem; }
.feature-grid p { color: var(--muted); }
.feature-grid strong { color: var(--text); font-weight: 650; }

/* Privacy band */
.band-inner { max-width: 44rem; text-align: center; }
.band h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); font-weight: 800; }
.band p { color: var(--muted); margin: 1rem 0 1.5rem; }

/* Get it */
.get { position: relative; isolation: isolate; border-top: 1px solid var(--border); }
.get::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(34rem 20rem at 50% 30%, rgb(var(--teal) / 0.14), transparent 70%);
}
.get-inner { text-align: center; max-width: 40rem; }
.get-mark { margin: 0 auto 1.5rem; border-radius: 20px; }
.get h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; }
.get p { color: var(--muted); margin-top: 0.75rem; }

/* ------------------------------------------------------------ contact */

.contact { border-top: 1px solid var(--border); }
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 56rem) { .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 4rem; } }
.contact h2 { font-size: clamp(1.75rem, 3.6vw, 2.4rem); font-weight: 800; margin-bottom: 1rem; }
.contact-copy p { color: var(--muted); }
.contact-copy p + p { margin-top: 1rem; }
.contact-email a { color: var(--accent); font-weight: 600; }
.contact-copy .note a { color: var(--text); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); }

form { display: grid; gap: 1.1rem; }
form label { display: grid; gap: 0.4rem; }
form label > span { font-size: 0.85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
input, textarea {
  width: 100%; padding: 0.8rem 0.95rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--border); border-radius: 12px;
  font: inherit; font-size: 1rem;
}
textarea { resize: vertical; min-height: 8rem; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(255 200 87 / 0.18); }
form .btn { justify-self: start; }

/* Off-screen rather than display:none, which some bots know to skip. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form-status:empty { display: none; }
.form-status { font-size: 0.95rem; color: var(--muted); }
.form-status.error { color: var(--nope); }

/* The no-JavaScript confirmation: Web3Forms redirects back to #contact-sent. */
.sent-note { display: none; color: var(--text); }
.sent-note:target { display: block; }

.thanks h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.thanks p { color: var(--muted); }

/* ------------------------------------------------------------ footer */

.footer { border-top: 1px solid var(--border); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); font-size: 0.9rem; color: var(--dim); }
.footer-inner { display: grid; gap: 1.75rem; }
@media (min-width: 56rem) { .footer-inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 2.5rem; } }
.footer-brand img { height: 24px; width: auto; margin-bottom: 0.4rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
@media (min-width: 56rem) { .footer-links { justify-content: center; } }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.tmdb { display: flex; align-items: center; gap: 0.9rem; max-width: 22rem; }
.tmdb img { width: 64px; flex: none; }
.tmdb p { font-size: 0.8rem; line-height: 1.4; }
