/* Augre homepage. Loaded only by home.html; other pages use site.css. */
:root {
  --paper: #f6f3ec;
  --scrap: #fbf8ef;
  --ink: #141414;
  --ink-soft: #55524b;
  --rule: #d6d0c2;
  --cobalt: #2438d6;
  --cobalt-ink: #1a2bb0;
  --yellow: #ffd43b;
  --display: 'Young Serif', Georgia, serif;
  --body: 'Literata', Georgia, serif;
  --label: 'Source Sans 3', system-ui, sans-serif;
  /* Snappy, slightly springy. Everything here animates transform/opacity only. */
  --spring: cubic-bezier(0.3, 1.45, 0.55, 1);
  --out: cubic-bezier(0.2, 0.8, 0.2, 1);
  /* One stroke, one set of letterpress offsets, one section rhythm */
  --stroke: 2px;
  --press-s: 3px;
  --press-m: 5px;
  --slab: 20px;
  --section: clamp(88px, 11vw, 168px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ---------- Masthead ---------- */
.masthead {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 4.4vw, 64px);
  border-bottom: 2px solid var(--ink);
  background: var(--paper);
}
.wordmark { font-family: var(--display); font-size: 30px; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 32px; font-family: var(--label); font-weight: 600; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--cobalt); }

/* ---------- Buttons: letterpress offset ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cobalt);
  color: #fff;
  font-family: var(--label);
  font-weight: 700;
  border-radius: 4px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out, background-color 80ms;
}
.btn:hover { background: var(--cobalt-ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn-small { padding: 9px 16px; font-size: 15px; }
.btn-big { padding: 17px 26px; font-size: 18px; box-shadow: var(--press-m) var(--press-m) 0 var(--ink); }
.btn-big:active { transform: translate(var(--press-m), var(--press-m)); }
.btn.large { padding: 17px 26px; font-size: 18px; box-shadow: var(--press-m) var(--press-m) 0 var(--ink); }
.btn.large:active { transform: translate(var(--press-m), var(--press-m)); box-shadow: 0 0 0 var(--ink); }
.hidden { display: none !important; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 72px);
  padding: 72px 24px 96px;
  overflow: clip;
  touch-action: manipulation;
}
.collage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
}


.headline {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(52px, 7.6vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  isolation: isolate;
}
/* Read-along highlight: one compositor-only scaleX per word */
.w { position: relative; display: inline-block; }
.w::before {
  content: '';
  position: absolute;
  inset: 0.46em -0.06em 0.08em;
  z-index: -1;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 150ms var(--out);
}
.w:not(:last-child)::before { right: -0.22em; }
.w.on::before { transform: scaleX(1); }
.clearing .w::before {
  transform-origin: right center;
  transition-duration: 220ms;
  transition-delay: calc(var(--i) * 22ms);
}

.subhead {
  margin: 26px 0 0;
  max-width: 620px;
  font-size: 20px;
  line-height: 1.6;
  text-wrap: pretty;
}
.cta-row { display: flex; align-items: center; gap: 24px; margin-top: 34px; }
.hero-note {
  margin: 20px 0 0;
  font: 400 16px/1.5 var(--body);
  color: var(--ink-soft);
}
.hero-note a {
  font: 600 16px var(--label);
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--cobalt);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.hero-note a:hover { color: var(--cobalt); }

/* ---------- Collage scraps ---------- */
.scrap {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  margin: 0;
  padding: 9px 9px 7px;
  background: var(--scrap);
  box-shadow: 0 1px 0 rgb(20 20 20 / 0.08), 0 14px 26px -16px rgb(20 20 20 / 0.45);
  rotate: var(--r);
  animation: land 220ms var(--out) backwards;
  isolation: isolate;
  pointer-events: auto;
  cursor: pointer;
  transition: translate 140ms var(--out), scale 140ms var(--out);
}
.scrap::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  box-shadow: 0 22px 34px -18px rgb(20 20 20 / 0.55);
  opacity: 0;
  transition: opacity 140ms var(--out);
  pointer-events: none;
}
.scrap:hover, .scrap:focus-visible, .scrap.picked {
  translate: 0 -4px;
  scale: 1.03;
  z-index: 3;
}
.scrap:hover::after, .scrap:focus-visible::after, .scrap.picked::after { opacity: 1; }
.scrap:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.scrap.picked { outline: 2px solid var(--ink); outline-offset: 3px; }
.scrap .art { position: relative; display: block; }
.scrap img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.08); }
/* Cobalt plate: the engraving's black lines print in cobalt */
.scrap.cobalt .art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--cobalt);
  mix-blend-mode: screen;
}
.scrap figcaption {
  padding-top: 6px;
  font: 600 11px/1.2 var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scrap.out { animation: lift 200ms ease-in both; pointer-events: none; }
/* Set down like a print on a table: starts a little big and raised, settles flat */
@keyframes land {
  from { opacity: 0; scale: 1.14; translate: 0 -14px; }
  40% { opacity: 1; }
  to { opacity: 1; scale: 1; translate: 0 0; }
}
@keyframes lift {
  to { opacity: 0; scale: 0.92; }
}

/* ---------- Book card ---------- */
.book-card {
  position: absolute;
  z-index: 5;
  width: 340px;
  padding: 20px 22px 16px;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 5px 5px 0 var(--ink);
  rotate: -1.5deg;
}
.book-card[hidden] { display: none; }
.book-card.land { animation: land 220ms var(--out) backwards; }
.card-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
}
.card-close:hover { background: var(--paper); color: var(--ink); }
.card-line {
  margin: 0;
  padding-right: 18px;
  font-size: 18px;
  line-height: 1.55;
  isolation: isolate;
}
.card-foot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.card-book { font: 600 13px/1.3 var(--label); color: var(--ink-soft); }
.card-link {
  align-self: flex-start;
  font: 700 15px var(--label);
  color: var(--cobalt);
}
.card-link:hover { color: var(--cobalt-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Showcase ---------- */
.feature { padding: 40px clamp(20px, 4.4vw, 64px) var(--section); }
.feature-copy {
  display: flex;
  align-items: last baseline;
  justify-content: flex-start;
  gap: 72px;
  max-width: 1180px;
  margin: 0 auto 48px;
}
.feature h2, .print h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.feature h2 { max-width: 640px; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.02; isolation: isolate; }
.feature-copy > p { max-width: 380px; margin: 0; font-size: 19px; line-height: 1.6; text-wrap: pretty; }
.plate { position: relative; max-width: 1180px; margin: 0 auto; }
.slab {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--cobalt);
  transform: translate(0, 0);
  transition: transform 520ms var(--out) 80ms;
}
.shot {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 12px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 280ms ease-out, transform 520ms var(--out);
}
.plate.in .shot { opacity: 1; transform: none; }
.plate.in .slab { transform: translate(var(--slab), var(--slab)); }

/* Phone screenshot in a simple bezel. Overlaps the desktop shot; stands alone on phones. */
.phone {
  position: absolute;
  right: -6%;
  bottom: -20%;
  width: 19%;
  padding: 7px;
  border-radius: 34px;
  background: #0d0d0d;
  box-shadow: 0 30px 50px -24px rgb(20 20 20 / 0.6);
  rotate: 3deg;
  opacity: 0;
  translate: 0 60px;
  transition: opacity 300ms ease-out 160ms, translate 600ms var(--out) 160ms;
}
.plate.in .phone { opacity: 1; translate: 0 0; }
/* The bezel is its own black box; the screen sits inside it, so the tilted edge blends into black. */
.phone img { display: block; width: 100%; height: auto; border-radius: 27px; }
.print picture {
  display: block;
  padding: 12px;
  background: var(--scrap);
  border: var(--stroke) solid var(--ink);
  box-shadow: var(--press-m) var(--press-m) 0 var(--ink);
  rotate: var(--r);
}

/* Library + Store, set down like two prints */
.pair {
  display: flex;
  align-items: flex-start;
  gap: clamp(28px, 4vw, 64px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.4vw, 64px) var(--section);
  box-sizing: content-box;
}
.print {
  flex: 1;
  margin: 0;
  opacity: 0;
  translate: 0 48px;
  transition: opacity 300ms ease-out, translate 560ms var(--out);
}
.print:nth-child(2) { margin-top: 96px; transition-delay: 90ms; }
.print.in { opacity: 1; translate: 0 0; }
.print img { display: block; width: 100%; height: auto; border-radius: 6px; }
.print figcaption { padding: 22px 4px 0; }
.print h3 { font-size: 30px; line-height: 1.1; }
.print p { margin: 8px 0 0; max-width: 440px; font-size: 19px; line-height: 1.6; color: var(--ink); }

/* ---------- Read together ---------- */
.together {
  display: grid;
  grid-template-columns: minmax(0, 430px) minmax(0, 1fr);
  column-gap: 54px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.4vw, 64px) calc(var(--section) + 60px);
  box-sizing: content-box;
}
.kicker {
  margin: 0 0 24px;
  font: 700 13px/16px var(--label);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.together h2 {
  margin: 0;
  isolation: isolate;
  font: 400 clamp(38px, 4.6vw, 64px) / 1.03 var(--display);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.together-copy p:not(.kicker) { max-width: 400px; margin: 24px 0 0; font-size: 19px; line-height: 1.63; text-wrap: pretty; }

/* The stage is sized by the screenshot. Friends and threads are placed in its
   coordinates and sized in cqw, so the whole picture scales as one. */
.room { position: relative; margin-top: 56px; container-type: inline-size; }
.room-plate { position: relative; }
.room-slab {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: var(--ink);
  transition: transform 520ms var(--out) 80ms;
}
.room-shot {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid var(--ink);
  border-radius: 10px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 280ms ease-out, transform 520ms var(--out);
}
.room.in .room-shot { opacity: 1; transform: none; }
.room.in .room-slab { transform: translate(10px, 10px); }

.threads { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.thread path {
  fill: none;
  stroke: var(--c);
  stroke-width: 2.5;
  stroke-dasharray: 6 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
  transition: opacity 260ms ease-out calc(var(--d) + 140ms);
}
.thread circle {
  fill: var(--c);
  stroke: #fff;
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  scale: 0;
  transition: scale 320ms var(--spring) calc(var(--d) + 300ms);
}
.room.in .thread path { opacity: 1; }
.room.in .thread circle { scale: 1; }

.friend {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  max-width: 14em;
  padding: 0.75em 1.05em 0.75em 0.75em;
  font-size: max(13px, 2.04cqw);
  background: #fff;
  border: var(--stroke) solid var(--ink);
  border-radius: 6px;
  box-shadow: var(--press-m) var(--press-m) 0 var(--ink);
  rotate: var(--r);
  opacity: 0;
  scale: 1.12;
  translate: 0 -12px;
  transition: opacity 180ms ease-out var(--d), scale 320ms var(--spring) var(--d), translate 320ms var(--out) var(--d);
}
.friend.speaking { padding: 0.95em 1.05em; }
.room.in .friend { opacity: 1; scale: 1; translate: 0 0; }
.room.in .friend:hover { translate: -2px -3px; transition-delay: 0ms; }
.who { display: flex; align-items: center; gap: 0.7em; }
.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  font: 700 0.9em/1 var(--label);
}
.name { display: flex; flex-direction: column; gap: 0.15em; font: 700 1em/1.2 var(--label); }
.status {
  display: flex;
  align-items: center;
  gap: 0.45em;
  font: 700 0.7em/1.2 var(--label);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--c-ink);
}
.said {
  margin: 0;
  min-height: 2.9em;
  font: italic 0.94em/1.45 var(--body);
  transition: opacity 180ms ease-out;
}
.said.swap { opacity: 0; }

/* Voice bars: compositor-only scaleY, running only while the room is on screen. */
.bars { display: flex; align-items: center; gap: 2px; height: 1.2em; }
.bars i { display: block; width: 3px; height: 100%; border-radius: 2px; background: var(--c); transform: scaleY(0.4); }
.bars i:nth-child(2) { transform: scaleY(0.9); }
.bars i:nth-child(3) { transform: scaleY(0.6); }
.bars i:nth-child(4) { transform: scaleY(1); }
.room.live .bars i { animation: talk 520ms ease-in-out infinite alternate; }
.room.live .bars i:nth-child(2) { animation-duration: 380ms; animation-delay: -120ms; }
.room.live .bars i:nth-child(3) { animation-duration: 610ms; animation-delay: -300ms; }
.room.live .bars i:nth-child(4) { animation-duration: 450ms; animation-delay: -80ms; }
@keyframes talk { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

/* Not enough width beside the copy: stack, and keep a left margin for Maya to hang into. */
@media (max-width: 1100px) {
  .together { grid-template-columns: minmax(0, 1fr); }
  .together-copy { max-width: 560px; }
  .room { width: 72%; margin: 140px 0 0 auto; }
}

/* ---------- From the blog ---------- */
.from-blog {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.4vw, 64px) var(--section);
  box-sizing: content-box;
}
.from-blog ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin: 0; padding: 0; list-style: none; }
.from-blog li { padding-top: 20px; border-top: var(--stroke) solid var(--ink); }
.from-blog a {
  font: 400 28px/1.15 var(--display);
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  text-wrap: balance;
}
.from-blog a:hover { color: var(--cobalt); text-decoration-color: var(--cobalt); }
.from-blog p { max-width: 440px; margin: 10px 0 0; font-size: 17px; line-height: 1.6; }

/* ---------- Download ---------- */
.download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  column-gap: 72px;
  row-gap: 104px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.4vw, 64px) var(--section);
  box-sizing: content-box;
}
.download h2 {
  margin: 0;
  font: 400 clamp(38px, 4.6vw, 64px) / 1.03 var(--display);
  letter-spacing: -0.03em;
  isolation: isolate;
}
.dl-sub { max-width: 440px; margin: 20px 0 0; font-size: 19px; line-height: 1.6; text-wrap: pretty; }
.dl-caption {
  margin: 14px 0 0;
  font: 600 13px/1.3 var(--label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
/* The shared download-buttons partial: site.js shows only the visitor's group */
.download-buttons { margin-top: 36px; }
/* Visitors with an unknown OS see several groups at once */
.download-buttons > div:not(.hidden) ~ div:not(.hidden) { margin-top: 32px; }
.dl-group .dl-caption { display: block; }
.download-buttons .dl-alts { margin: 10px 0 0; font: 400 16px/1.5 var(--body); }
.download-note { display: none; }
.download-buttons .dl-alts a, .files a, .beta-alt a {
  font-family: var(--label);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--cobalt);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.download-buttons .dl-alts a:hover, .files a:hover { color: var(--cobalt); }

/* Every platform, set like a printed timetable */
.dl-table {
  padding: 22px 28px 10px;
  background: var(--scrap);
  border: var(--stroke) solid var(--ink);
  box-shadow: var(--press-m) var(--press-m) 0 var(--ink);
  opacity: 0;
  translate: 0 32px;
  transition: opacity 280ms ease-out, translate 520ms var(--out);
}
.dl-table.in { opacity: 1; translate: 0 0; }
.dl-table-title { margin: 0 0 6px; font: 700 13px/16px var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cobalt); }
.dl-table ul { margin: 0; padding: 0; list-style: none; }
.dl-table li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.dl-table li:first-child { border-top: 0; }
.os-name { position: relative; font: 400 24px/1.1 var(--display); letter-spacing: -0.01em; isolation: isolate; }
/* The visitor's own platform gets the read-along marker */
.is-yours .os-name::before {
  content: '';
  position: absolute;
  inset: 0.46em -0.12em 0.04em;
  z-index: -1;
  background: var(--yellow);
}
.files { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 18px; font-size: 15px; }
.files-note { font: 400 15px/1.4 var(--body); color: var(--ink-soft); }

/* What happens after the download */
.steps {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
  margin: 0;
  padding: 40px 0 0;
  list-style: none;
  border-top: var(--stroke) solid var(--ink);
}
.steps li { opacity: 0; translate: 0 24px; transition: opacity 260ms ease-out, translate 480ms var(--out); }
.steps li:nth-child(2) { transition-delay: 90ms; }
.steps li:nth-child(3) { transition-delay: 180ms; }
.steps.in li { opacity: 1; translate: 0 0; }
.steps .n { display: block; font: 400 64px/1 var(--display); color: var(--cobalt); }
.steps h3 { margin: 14px 0 0; font: 400 28px/1.15 var(--display); letter-spacing: -0.02em; }
.steps p { margin: 8px 0 0; max-width: 320px; font-size: 17px; line-height: 1.6; text-wrap: pretty; }

/* iPhone and iPad visitors get the beta signup from the shared partial */
.mobile-banner { max-width: 460px; }
.mobile-banner h3 { margin: 0; font: 400 28px/1.15 var(--display); letter-spacing: -0.02em; }
.mobile-banner p { margin: 10px 0 0; font-size: 17px; line-height: 1.6; }
.beta-signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; margin-top: 20px; }
.beta-label { grid-column: 1 / -1; font: 600 13px/1.3 var(--label); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.beta-signup input[type='email'] {
  min-width: 0;
  padding: 14px 16px;
  font: 400 17px var(--body);
  color: var(--ink);
  background: #fff;
  border: var(--stroke) solid var(--ink);
  border-radius: 4px;
}
.beta-signup input[type='email']:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.beta-signup .btn { justify-content: center; padding: 0 20px; font-size: 16px; border: 0; cursor: pointer; }
.beta-signup .btn:disabled { opacity: 0.6; cursor: default; }
.beta-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.beta-status { grid-column: 1 / -1; min-height: 1.5em; margin: 4px 0 0; font-size: 16px; }
.beta-done { font-weight: 500; }
.mobile-banner .beta-alt { margin-top: 24px; color: var(--ink-soft); }
.btn.ghost {
  margin-top: 12px;
  padding: 12px 18px;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: var(--stroke) solid var(--ink);
  box-shadow: var(--press-s) var(--press-s) 0 var(--ink);
}
.btn.ghost:hover { background: var(--scrap); }

/* ---------- Footer (shared partial) ---------- */
footer { border-top: var(--stroke) solid var(--ink); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px 40px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px clamp(20px, 4.4vw, 64px) 56px;
  box-sizing: content-box;
  font: 600 15px var(--label);
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.footer-links a:hover { color: var(--cobalt); }
.mono-emoji { font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }

/* ---------- Without home.js ----------
   Everything above starts hidden and fades in when home.js adds .in. home.js
   puts .reveals on <html> as it starts, so if it never runs (blocked,
   failed to load, old browser) the page shows in its final state instead. */
html:not(.reveals) :is(.shot, .phone, .print, .room-shot, .friend, .dl-table, .steps li) {
  opacity: 1;
  transform: none;
  translate: 0 0;
  scale: 1;
}
html:not(.reveals) .thread path { opacity: 1; }
html:not(.reveals) .thread circle { scale: 1; }
html:not(.reveals) .slab { transform: translate(var(--slab), var(--slab)); }
html:not(.reveals) .room-slab { transform: translate(10px, 10px); }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .hero { padding: 48px 20px 230px; align-items: flex-start; }
  .headline { letter-spacing: -0.02em; }
  .subhead { font-size: 18px; }
  .cta-row { flex-direction: column; gap: 18px; }
  .plate.in .slab { transform: translate(12px, 12px); }
  .feature { padding-bottom: 72px; }
  .plate .shot, .plate .slab { display: none; }
  .plate { display: flex; justify-content: center; }
  .plate .phone { box-shadow: 10px 10px 0 var(--cobalt); }
  .phone { position: relative; right: auto; bottom: auto; width: min(72%, 280px); rotate: -1.5deg; }
  .print picture { width: min(78%, 280px); margin: 0 auto; padding: 6px; background: #0d0d0d; border: 0; border-radius: 30px; box-shadow: none; }
  .print img { border-radius: 24px; }
  .print p { font-size: 17px; }
  .feature-copy > p, .together-copy p:not(.kicker) { font-size: 17px; }
  .feature-copy { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 28px; }
  .pair { flex-direction: column; gap: 40px; padding-bottom: 96px; }
  .print:nth-child(2) { margin-top: 0; }
  /* Phones: the friends are pinned onto the screenshot instead of hanging around it. No threads. */
  .together { padding: 0 20px var(--section); }
  .room { width: 100%; margin: 52px 0 0; padding-bottom: 92px; }
  .room.in .room-slab { transform: translate(10px, 10px); }
  .threads { display: none; }
  .friend { font-size: 13px; }
  .friend.theo { left: auto; right: 3%; top: -12%; }
  .friend.june { left: auto; right: -2%; top: 44%; }
  .friend.maya { left: -2%; top: 70%; max-width: 15em; }
  .from-blog ul { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .from-blog a { font-size: 24px; }
  .download { grid-template-columns: minmax(0, 1fr); row-gap: 56px; padding-bottom: 88px; }
  .dl-table { padding: 18px 20px 6px; }
  .dl-table li { flex-direction: column; gap: 8px; }
  .files { justify-content: flex-start; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .beta-signup { grid-template-columns: minmax(0, 1fr); }
  .beta-signup .btn { padding: 14px 20px; }
  .footer-inner { flex-direction: column; }
  .book-card {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    rotate: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scrap, .scrap.out, .book-card.land { animation: none; }
  .scrap { transition: none; }
  .w::before, .slab, .shot, .print, .phone { transition: none; }
  .room-slab, .room-shot, .thread path, .thread circle, .friend, .said { transition: none; }
  .dl-table, .steps li { transition: none; }
}
