/* otterstretch.com
 *
 * Two zones, taken from the app's own design system: the game is navy, the menus
 * are warm. So the page opens in deep water, comes up onto warm ground, and goes
 * back under at the end — splash, picker, game, which is the order a session
 * actually happens in. The water at the top holds three screens of the app,
 * photographed by `make shots`; nothing on the page moves.
 *
 * Every colour here is an asset-catalog value from App/Resources/Assets.xcassets.
 * No gradients, and no cards: the app's design system bans both, and a page of
 * identical rounded boxes with a grey shadow under each is the thing this is not.
 */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url(fonts/fraunces-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Atkinson Hyperlegible Next';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url(fonts/atkinson-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  /* The water. GamePalette, universal — the game zone is dark in any appearance. */
  --water: #0a2d47;        /* LaunchBackground / deepWater */
  --water-mid: #0f4166;    /* GameMidWater */
  --water-far: #175280;    /* GameFarWater */
  --edge: #8cd2f5;         /* GameCorridorEdge — brightest thing in the scene */
  --kelp: #23977a;         /* GameKelp */

  /* The ground. AppBackground / AppSurface, light appearance. */
  --ground: #f0ede9;
  --surface: #fcfbf9;

  /* Ink is the deep water, so the text on the page is the colour of the game.
   * 12.2:1 on --ground. --ink-soft is 6.5:1. Both measured, not assumed. */
  --ink: #0a2d47;
  --ink-soft: #3d5767;
  --rule: #d9d3cc;

  --accent: #236da6;       /* AccentColor, light */
  --accent-lit: #72bbea;   /* AccentColor, dark — used on water */
  --figure: #3b7cab;       /* Figure */

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --text: 'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* DesignTokens.swift: 4 / 8 / 16 / 24 / 32, and the same continuous radii. */
  --s1: 4px;
  --s2: 8px;
  --s3: 16px;
  --s4: 24px;
  --s5: 32px;

  --gutter: clamp(20px, 5vw, 64px);
  --measure: 34rem;
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: clamp(1.0625rem, 0.98rem + 0.4vw, 1.1875rem);
  line-height: 1.62;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 48;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.014em;
  text-wrap: balance;
  margin: 0;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-thickness: 2px; }

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

img, svg, canvas { display: block; max-width: 100%; }

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

.prose { max-width: var(--measure); }

/* ── the hero ─────────────────────────────────────────────────────────────── */

.hero {
  background: var(--water);
  color: var(--surface);
  padding-bottom: clamp(48px, 9vw, 104px);
}

.hero a { color: var(--accent-lit); }

.hero :focus-visible { outline-color: var(--accent-lit); }

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  padding-block: clamp(20px, 3vw, 32px);
}

.masthead b {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 14;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.005em;
}

.masthead nav {
  display: flex;
  gap: var(--s4);
  font-size: 0.9375rem;
}

.hero-copy { padding-top: clamp(8px, 2vw, 24px); }

.hero h1 {
  font-size: clamp(2.375rem, 1.3rem + 5.2vw, 4.75rem);
  max-width: 17ch;
}

.hero .lead {
  margin-top: var(--s4);
  max-width: 30rem;
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  line-height: 1.4;
  color: #cfe2ef;
}

.hero .intro {
  margin-top: var(--s4);
  max-width: 34rem;
  color: #cfe2ef;
}

/* A session in three screens. Three portrait frames in a row where there is
 * room; on a phone three of them side by side would be ~110pt each, so the row
 * becomes a strip that snaps one frame at a time, bleeding to the viewport edge
 * with the page's own gutter as its padding. The page never scrolls sideways;
 * only the strip does. Each frame is the screenshot with a rounded corner and a
 * thin edge in the corridor's own colour — no bezel art, no shadow, no card. */
.session {
  list-style: none;
  margin: clamp(40px, 7vw, 80px) 0 0;
  padding-block: 0;
  counter-reset: beat;
  display: flex;
  gap: var(--s4);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.session::-webkit-scrollbar { display: none; }

.session li {
  flex: 0 0 min(72vw, 300px);
  scroll-snap-align: start;
  counter-increment: beat;
}

.session img {
  width: 100%;
  height: auto;
  border-radius: clamp(20px, 5vw, 36px);
  border: 2px solid var(--edge);
  background: var(--water-mid);
}

.session h2 {
  margin-top: var(--s3);
  font-size: 1.3125rem;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 20;
  max-width: none;
}

.session h2::before {
  content: counter(beat) '\2002';
  color: var(--accent-lit);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 20;
}

.session p {
  margin-top: var(--s2);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #b7cedd;
}

@media (min-width: 45rem) {
  .session {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 48px);
    overflow: visible;
  }

  .session li { flex: none; }
}

/* The ask. One button, one line of context beside it, and the button is a
 * link that opens a mail draft with the subject already written — there is no
 * backend, so there is no form. */
.cta {
  margin-top: var(--s5);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s3) var(--s4);
}

.cta span {
  font-size: 0.9375rem;
  color: #b7cedd;
  max-width: 22rem;
}

.button {
  display: inline-block;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  background: var(--accent-lit);
  color: var(--water);
  font-weight: 600;
  text-decoration: none;
}

.hero .button,
.close .button { color: var(--water); }

.button:hover { background: var(--edge); }

/* ── sections on the warm ground ──────────────────────────────────────────── */

section {
  padding-block: clamp(56px, 9vw, 112px);
}

section + section { border-top: 1px solid var(--rule); }

h2 {
  font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.75rem);
  max-width: 20ch;
}

h2 + p,
h2 + ul { margin-top: var(--s4); }

/* ── what's tight ─────────────────────────────────────────────────────────── */

/* Six complaints, stacked and set large. They are the app's own chips, worded in
 * the first person, and a grid of pills would turn six sentences somebody might
 * recognise themselves in into six controls nobody can press. */
.symptoms {
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 32;
  font-weight: 400;
  font-size: clamp(1.375rem, 0.95rem + 1.9vw, 2.125rem);
  line-height: 1.32;
  color: var(--accent);
}

.symptoms li + li { margin-top: var(--s1); }

.symptoms + p { margin-top: var(--s5); }

/* The stretching otter sits beside the six complaints: it is the one
 * illustration that shows the thing being asked for, and the list is the one
 * place the page names the person rather than the app. Same grid as the
 * privacy panel, so the two otters on the ground sit the same way. */
.tight {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.tight img {
  width: min(200px, 44vw);
  height: auto;
  justify-self: center;
}

@media (min-width: 46rem) {
  .tight { grid-template-columns: 1fr auto; }
  .tight img { width: 220px; }
}

/* ── the argument ─────────────────────────────────────────────────────────── */

.argument p { margin-top: var(--s4); max-width: var(--measure); }

.argument .keystone {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 30;
  font-size: clamp(1.25rem, 1.0rem + 1.1vw, 1.625rem);
  line-height: 1.3;
  max-width: 28rem;
  border-left: 3px solid var(--accent);
  padding-left: var(--s4);
  margin-top: var(--s5);
}

/* ── the research ─────────────────────────────────────────────────────────── */

/* Four findings, stacked, in the rewards list's shape but one column: each is a sentence
   of argument, not a feature, and reads in order. The sources sit under them small and soft,
   still a colour that clears 4.5:1 (--ink-soft is measured at 6.5:1). No card, no box. */

.research > p { margin-top: var(--s4); }

.findings {
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s4);
  max-width: var(--measure);
}

.findings b { display: block; font-weight: 600; }

.findings li { color: var(--ink-soft); }

.sources {
  margin: var(--s5) 0 0;
  padding-left: 1.25em;
  max-width: var(--measure);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.sources li + li { margin-top: var(--s2); }

.sources a { overflow-wrap: anywhere; }

/* ── what you get ─────────────────────────────────────────────────────────── */

.rewards {
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s4) var(--s5);
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  max-width: 44rem;
}

.rewards b { display: block; font-weight: 600; }

.rewards li { color: var(--ink-soft); }

/* ── the catalog ──────────────────────────────────────────────────────────── */

.catalog {
  list-style: none;
  margin: var(--s5) 0 0;
  padding: 0;
  display: grid;
  gap: var(--s3) var(--s4);
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

/* Rows, not tiles: a line, a drawing and two pieces of text, which is what the
 * app's own picker is. Nothing is boxed and nothing casts a shadow. */
.catalog li {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  column-gap: var(--s3);
  padding-block: var(--s2);
  border-bottom: 1px solid var(--rule);
}

.catalog svg {
  grid-row: span 2;
  width: 56px;
  height: 56px;
  color: var(--accent);
}

.catalog span { font-weight: 600; }

.catalog em {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--ink-soft);
}

/* ── privacy ──────────────────────────────────────────────────────────────── */

.privacy-panel {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.privacy-panel .wrap {
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.privacy-panel p { margin-top: var(--s4); max-width: var(--measure); }

.privacy-panel .promise {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 28;
  font-size: clamp(1.1875rem, 1.0rem + 0.9vw, 1.5rem);
  line-height: 1.32;
}

.privacy-panel img {
  width: min(210px, 42vw);
  height: auto;
  justify-self: center;
}

@media (min-width: 46rem) {
  .privacy-panel .wrap { grid-template-columns: 1fr auto; }
  .privacy-panel img { width: 240px; }
}

/* ── the close ────────────────────────────────────────────────────────────── */

.close {
  background: var(--water);
  color: var(--surface);
  padding-block: clamp(56px, 8vw, 96px);
}

.close a { color: var(--accent-lit); }

.close :focus-visible { outline-color: var(--accent-lit); }

.close .status {
  font-family: var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 36;
  font-weight: 600;
  font-size: clamp(1.5rem, 1.1rem + 1.7vw, 2.25rem);
  line-height: 1.14;
  max-width: 18ch;
}

.close .status + p {
  margin-top: var(--s4);
  max-width: 30rem;
  color: #b7cedd;
}

.close .cta { margin-top: var(--s4); }

.close nav {
  margin-top: clamp(32px, 5vw, 56px);
  padding-top: var(--s4);
  border-top: 1px solid rgb(255 255 255 / 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  font-size: 0.9375rem;
}

.close .colophon {
  margin-top: var(--s4);
  font-size: 0.875rem;
  color: #97b2c4;
}

/* ── the document pages ───────────────────────────────────────────────────── */

.doc {
  padding-block: clamp(40px, 6vw, 80px) clamp(64px, 9vw, 112px);
}

.doc .prose { max-width: 38rem; }

.doc h1 {
  font-size: clamp(2rem, 1.4rem + 2.8vw, 3rem);
  margin-bottom: var(--s3);
}

.doc .updated {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.doc h2 {
  font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.5rem);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 22;
  max-width: 34ch;
  margin-top: clamp(40px, 5vw, 56px);
}

.doc h2 + p, .doc h2 + ul { margin-top: var(--s3); }

.doc p + p, .doc ul + p, .doc p + ul { margin-top: var(--s4); }

.doc ul { padding-left: 1.2em; }

.doc li + li { margin-top: var(--s2); }

.doc .note {
  border-left: 3px solid var(--rule);
  padding-left: var(--s4);
  color: var(--ink-soft);
}

.doc .backlink {
  display: inline-block;
  margin-bottom: var(--s5);
  font-size: 0.9375rem;
}

.faq { margin-top: var(--s5); }

.faq h2 {
  margin-top: clamp(36px, 4vw, 48px);
  max-width: 28ch;
}

/* ── motion ───────────────────────────────────────────────────────────────── */

/* Nothing on the page animates, so there is nothing for Reduce Motion to quiet.
 * The one rule left is for the hover thickening on links. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
