/* Stuffed — the app's own site.

   This shares nothing with the studio stylesheet on purpose. Doros Studios is
   the company; Stuffed is the product, and it gets its own identity: warm
   cream paper, terracotta, Young Serif over Karla, and pill-shaped everything.
   Adding app #2 means a third stylesheet beside this one, not a variant of it.

   Tokens are Palette.swift's, unchanged — the site and the app must never
   drift apart on colour. Type is Young Serif for figures and titles, Karla
   400/700 for everything else.
   Source: design_handoff_v15_envelopes_and_flows, README §7. */

@font-face {
  font-family: 'Young Serif';
  src: url('../fonts/young-serif-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #F2E8DA;
  --card: #FFFDF9;
  --ink: #3F2E27;
  --terracotta: #D2694B;
  --terracotta-text: #B4543A;
  --terracotta-deep: #8F4029;
  --kicker: #A2603F;
  --dark: #2E211C;
  --cream: #FFF6EC;
  --sage: #8FA07A;
  --error: #C0603F;
  --error-text: #A2472B;

  /* Body tones, raised for contrast. The originals sat at .72–.75, which is
     about 4.3:1 over the cream — under the 4.5:1 floor for body text. These
     clear it without changing the palette's character. */
  --ink-75: rgba(63, 46, 39, .86);
  --ink-72: rgba(63, 46, 39, .84);
  --ink-70: rgba(63, 46, 39, .82);
  --ink-62: rgba(63, 46, 39, .74);
  --ink-55: rgba(63, 46, 39, .66);
  --ink-50: rgba(63, 46, 39, .62);
  --hair: rgba(63, 46, 39, .16);
  --hair-soft: rgba(63, 46, 39, .10);

  --serif: 'Young Serif', Georgia, serif;
  --sans: 'Karla', system-ui, -apple-system, sans-serif;

  --shell: 1120px;
  --pad: 40px;
  --ease: cubic-bezier(.2, .9, .3, 1);

  --lift: 0 1px 2px rgba(63, 46, 39, .05), 0 8px 22px rgba(63, 46, 39, .07);
  --lift-2: 0 2px 4px rgba(63, 46, 39, .07), 0 22px 50px rgba(63, 46, 39, .16);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--terracotta-text); text-decoration: none; }
a:hover { color: var(--terracotta-deep); }

img { max-width: 100%; display: block; }
::selection { background: rgba(210, 105, 75, .22); }

:focus-visible { outline: 2px solid var(--terracotta-text); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--cream);
  padding: 12px 18px; border-radius: 999px;
  font: 700 13px var(--sans);
}
.skip-link:focus { left: 12px; top: 12px; color: var(--cream); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

@keyframes floatIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ---------- reveal ----------
   Scoped to .js, with a CSS dead man's switch: if the script never runs,
   everything is visible anyway after three seconds. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s ease, transform .7s var(--ease);
  animation: reveal-failsafe .001s linear 3s forwards;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
@keyframes reveal-failsafe { to { opacity: 1; transform: none; } }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--terracotta);
  color: var(--cream);
  font: 700 15.5px var(--sans);
  padding: 15px 26px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(210, 105, 75, .28);
  transition: filter .18s ease;
}
.btn:hover { filter: brightness(.93); color: var(--cream); }

.btn--ghost {
  background: rgba(255, 253, 249, .6);
  color: var(--ink);
  font-size: 15px;
  border: 1px solid var(--hair);
  box-shadow: none;
}
.btn--ghost:hover { background: var(--card); color: var(--ink); filter: none; }
.btn--ink { background: var(--ink); color: var(--cream); box-shadow: none; font-size: 14px; padding: 13px 20px; }
.btn--sm { font-size: 13.5px; padding: 11px 19px; }

/* ---------- header ----------
   The waitlist header is a plain row, not a sticky bar: there is nothing to
   navigate to yet, so a nav would be furniture pretending to be a product. */

.head-in {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.mark { font: 400 24px var(--serif); color: var(--ink); letter-spacing: -.3px; }
.mark:hover { color: var(--ink); }
.head .spacer { flex: 1; }

.coming {
  font: 700 11px var(--sans);
  letter-spacing: 1.1px;
  color: var(--kicker);
  background: rgba(180, 84, 58, .1);
  padding: 6px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.head-mail { font: 700 13px var(--sans); color: var(--ink-70); }
.head-mail:hover { color: var(--terracotta-text); }

/* Interior pages (legal, support, press) get a rule under the header so the
   reading column has something to start against. */
.head--doc { background: #F7EFE3; border-bottom: 1px solid rgba(63, 46, 39, .12); }
.head--doc nav { display: flex; gap: 26px; }
.head--doc nav a { font: 700 13.5px var(--sans); color: var(--ink-62); }
.head--doc nav a:hover { color: var(--ink); }
.head--doc nav a[aria-current="page"] { color: var(--ink); }

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

.hero {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 34px var(--pad) 0;
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(360px, .95fr);
  gap: 58px;
  align-items: center;
}
.hero-copy { animation: floatIn 700ms var(--ease); }

.hero h1 {
  font: 400 58px var(--serif);
  line-height: 1.02;
  letter-spacing: -1.4px;
  margin: 0;
  text-wrap: pretty;
}
.hero .lede {
  font: 400 18.5px var(--sans);
  line-height: 1.62;
  color: var(--ink-75);
  margin: 18px 0 0;
  max-width: 440px;
  text-wrap: pretty;
}

/* ---------- waitlist capture ----------
   The only interactive thing on the page, so it gets the only filled button. */

.wl { margin-top: 28px; max-width: 470px; }
.wl-form { display: flex; gap: 9px; flex-wrap: wrap; margin: 0; }
.wl-form input {
  flex: 1;
  min-width: 210px;
  font: 400 16px var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 15px 20px;
  outline: none;
  transition: border-color .2s ease;
}
.wl-form input::placeholder { color: rgba(63, 46, 39, .42); }
.wl-form button { flex: none; }
.wl-note { font: 400 13.5px var(--sans); color: var(--ink-55); margin: 11px 0 0; line-height: 1.5; min-height: 1.4em; }
.wl.is-error .wl-form input { border-color: var(--error); }
.wl.is-error .wl-note { color: var(--error-text); }

.interests { border: 0; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.interests legend {
  font: 700 11px var(--sans);
  letter-spacing: 1.3px;
  color: var(--ink-50);
  text-transform: uppercase;
  padding: 0;
  margin-bottom: 10px;
  float: left;
  width: 100%;
}
.chip-btn { cursor: pointer; }
.chip-btn input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-btn span {
  display: inline-block;
  font: 700 13px var(--sans);
  color: var(--ink-72);
  background: rgba(255, 253, 249, .7);
  border: 1px solid rgba(63, 46, 39, .14);
  padding: 8px 13px;
  border-radius: 999px;
  transition: background .16s, color .16s, border-color .16s;
}
.chip-btn input:checked + span {
  color: var(--cream);
  background: var(--terracotta-text);
  border-color: var(--terracotta-text);
}
.chip-btn input:focus-visible + span { outline: 2px solid var(--terracotta-text); outline-offset: 2px; }

.wl-done {
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--hair-soft);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(63, 46, 39, .05), 0 10px 26px rgba(63, 46, 39, .08);
  animation: popIn 420ms var(--ease);
}
.wl-done-top { display: flex; align-items: center; gap: 10px; }
.dot-tick {
  width: 26px; height: 26px; flex: none;
  border-radius: 50%;
  background: var(--sage);
  display: flex; align-items: center; justify-content: center;
}
.dot-tick svg { width: 11px; height: 11px; }
.wl-done-h { font: 400 24px var(--serif); }
.wl-done-line { font: 400 15px var(--sans); color: var(--ink-72); margin: 10px 0 0; line-height: 1.6; }

/* Once submitted, the form and the question are gone — leaving a live form
   under a "you're on the list" card invites a second submission. */
.wl.is-done .wl-form, .wl.is-done .wl-note, .wl.is-done .interests { display: none; }

.proof { display: flex; align-items: center; gap: 11px; margin-top: 26px; font: 700 13px var(--sans); color: rgba(63, 46, 39, .68); }
.dots { display: flex; }
.dots i { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg); }
.dots i + i { margin-left: -9px; }

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

.hero-art { position: relative; animation: floatIn 900ms var(--ease); }
.hero-photo {
  aspect-ratio: 1 / 1;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--lift-2);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 38% center; }

.hero-phone {
  position: absolute;
  bottom: -22px;
  right: -22px;
  width: 39%;
  padding: 1.7%;
  background: var(--dark);
  border-radius: 9%;
  box-shadow: 0 2px 6px rgba(63, 46, 39, .14), 0 20px 44px rgba(63, 46, 39, .26);
  animation: floatIn 1100ms var(--ease);
}
.hero-phone .screen { aspect-ratio: 402 / 798; overflow: hidden; border-radius: 7.5%; background: var(--bg); }
.hero-phone img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---------- the three moves ---------- */

.wsteps-sec { max-width: var(--shell); margin: 0 auto; padding: 76px var(--pad) 0; }
.rule { height: 2px; background: var(--hair); }
.wsteps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 32px 0 0;
  margin: 0;
  list-style: none;
}
.wsteps li { display: flex; gap: 14px; align-items: flex-start; }
.wsteps h2 { font: 400 22px var(--serif); line-height: 1.2; margin: 0; font-weight: 400; }
.wsteps p { font: 400 15.5px var(--sans); color: var(--ink-72); margin: 8px 0 0; line-height: 1.62; }
.env { width: 64px; flex: none; filter: drop-shadow(0 4px 7px rgba(63, 46, 39, .16)); }
.env svg { width: 100%; display: block; }

/* ---------- footer ----------
   One line, per the spec. The studio credit is the only thing on the whole
   site that mentions Doros — the app stands on its own name. */

.foot { max-width: var(--shell); margin: 0 auto; padding: 44px var(--pad) 56px; }
.foot .hr { height: 1px; background: rgba(63, 46, 39, .14); }
.foot-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding-top: 22px; }
.foot .claim { font: 700 13px var(--sans); color: var(--ink-70); }
.foot .spacer { flex: 1; }
.foot .mark { font-size: 20px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { font: 700 12.5px var(--sans); color: var(--ink-70); }
.foot-links a:hover { color: var(--terracotta-text); }
.foot .made { font: 400 13.5px var(--sans); color: var(--ink-55); margin: 14px 0 0; }

/* ---------- section furniture (interior pages) ---------- */

.sec { max-width: var(--shell); margin: 0 auto; padding: 60px var(--pad) 0; }
.kicker { font: 700 11.5px var(--sans); letter-spacing: 1.5px; color: var(--kicker); text-transform: uppercase; }
.sec h2 { font: 400 42px var(--serif); line-height: 1.1; letter-spacing: -.8px; margin: 14px 0 0; font-weight: 400; }
.sec .lede { font: 400 17px var(--sans); line-height: 1.68; color: var(--ink-72); margin: 16px 0 0; max-width: 62ch; }
.sec-head { max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }

/* ---------- long-form pages ----------
   Legal pages earn trust by being legible and boring, not by being designed.
   One 760px column, no cards, no illustration, no animation. */

.doc { max-width: 760px; margin: 0 auto; padding: 58px 32px 96px; }
.doc h1 { font: 400 44px var(--serif); line-height: 1.08; margin: 14px 0 0; letter-spacing: -.8px; }
.doc .kicker { display: block; }
.doc .standfirst { font: 400 19.5px var(--sans); line-height: 1.68; color: var(--ink-75); margin: 18px 0 0; text-wrap: pretty; }
.doc .updated { font: 400 13.5px var(--sans); color: var(--ink-55); margin: 18px 0 0; }
.doc h2 {
  font: 400 26px var(--serif);
  line-height: 1.2;
  margin: 46px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--hair-soft);
  font-weight: 400;
}
.doc h3 { font: 700 17px var(--sans); margin: 28px 0 0; }
.doc p { font: 400 17.5px var(--sans); line-height: 1.75; color: var(--ink-75); margin: 16px 0 0; text-wrap: pretty; }
.doc ul { margin: 14px 0 0; padding: 0; list-style: none; }
.doc ul li {
  position: relative;
  padding-left: 22px;
  margin-top: 10px;
  font: 400 17.5px var(--sans);
  line-height: 1.75;
  color: var(--ink-75);
}
.doc ul li::before { content: '·'; position: absolute; left: 7px; color: var(--terracotta-text); font-weight: 700; }
.doc a { border-bottom: 1px solid transparent; }
.doc a:hover { border-bottom-color: currentColor; }
.doc strong { color: var(--ink); }

/* the one boxed thing a legal page is allowed */
.doc .short {
  background: var(--card);
  border: 1px solid var(--hair-soft);
  border-radius: 20px;
  padding: 24px 26px;
  margin-top: 30px;
}
.doc .short p:first-child { margin-top: 0; }

.qa h3 { font: 700 17.5px var(--sans); margin: 32px 0 0; }
.qa h3:first-child { margin-top: 0; }

/* ---------- press ---------- */

.press-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(340px, 1fr); gap: 56px; }
.quote { background: var(--card); border-radius: 20px; padding: 26px; box-shadow: var(--lift); }
.quote .k { font: 700 10.5px var(--sans); letter-spacing: 1.3px; color: var(--ink-50); text-transform: uppercase; margin-bottom: 12px; }
.quote p { font: 400 22px var(--serif); line-height: 1.35; margin: 0; text-wrap: pretty; }
.facts {
  background: rgba(63, 46, 39, .055);
  border: 1px solid var(--hair-soft);
  border-radius: 20px;
  padding: 24px 26px;
  margin-top: 16px;
}
.facts .k { font: 700 10.5px var(--sans); letter-spacing: 1.3px; color: var(--ink-50); text-transform: uppercase; margin-bottom: 14px; }
.facts dl { margin: 0; }
.facts .row { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--hair-soft); }
.facts .row:last-child { border-bottom: 0; }
.facts dt { font: 700 12.5px var(--sans); color: var(--ink-55); width: 106px; flex: none; }
.facts dd { font: 400 14.5px var(--sans); line-height: 1.55; margin: 0; }

/* ---------- screenshot row (press) ---------- */

/* auto-fit rather than a fixed count: adding a screen should not mean editing
   the grid, and four across still leaves each phone room at 1120px. */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 34px 24px; margin-top: 40px; }
.shots figure { margin: 0; display: flex; flex-direction: column; gap: 20px; align-items: center; }
.phone {
  width: 240px;
  border-radius: 34px;
  background: var(--ink);
  padding: 9px;
  box-shadow: 0 3px 6px rgba(63, 46, 39, .1), 0 22px 44px rgba(63, 46, 39, .2);
}
.phone .screen { border-radius: 26px; overflow: hidden; height: 460px; background: var(--bg); }
/* Centred, not top-aligned: at this size the crop is about twenty pixels, and
   centring is what keeps a full-screen modal like the payday tear from
   showing its empty half. */
.phone img { height: 100%; width: 100%; object-fit: cover; object-position: center; }
.shots figcaption { font: 400 14.5px var(--sans); line-height: 1.5; color: var(--ink-72); text-align: center; max-width: 26ch; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  :root { --pad: 28px; }
  .hero { grid-template-columns: 1fr; gap: 52px; padding-top: 20px; }
  .hero h1 { font-size: 48px; letter-spacing: -1.1px; }
  .hero-art { order: -1; }
  .hero-phone { right: 0; bottom: -18px; }
  .wsteps { grid-template-columns: 1fr; gap: 24px; }
  .wsteps li { max-width: 46ch; }
  .press-grid { grid-template-columns: 1fr; gap: 34px; }
  .shots { grid-template-columns: 1fr; gap: 40px; }
  .sec h2 { font-size: 34px; }
}

@media (max-width: 620px) {
  .hero h1 { font-size: 38px; letter-spacing: -.8px; }
  .hero .lede { font-size: 17px; }
  .wl-form button { width: 100%; justify-content: center; }
  .hero-phone { width: 44%; }
  .doc { padding: 40px 24px 72px; }
  .doc h1 { font-size: 34px; }
  .facts .row { flex-direction: column; gap: 2px; }
  .facts dt { width: auto; }
  .hero-actions .btn, .doc .btn { width: 100%; justify-content: center; }
  .foot-in { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
