/* Pocket Gate - pocket-gate site
   Paper, ink, and one accent. Nothing else. */

:root {
  --paper: #f4f1e8;
  --paper-2: #ece7d9;
  --paper-3: #e3ddcc;
  --ink: #16150f;
  --ink-2: #3d3a30;
  --muted: #6f6a5b;
  --rule: #d3ccb6;
  --gold: #97783c;
  --aether: #2b3f4f;
  --aether-soft: #dfe4e4;

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    "Hoefler Text", Georgia, serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --bezel: #26251f;

  --wrap: 74rem;
  --gutter: clamp(1.15rem, 5vw, 4rem);
  --section: clamp(4.5rem, 10vw, 9rem);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

a {
  color: inherit;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-color: var(--ink);
}

/* ---------------------------------------------------------------- typography */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.12;
  margin: 0 0 0.55em;
}

h1 {
  font-size: clamp(2.4rem, 1.55rem + 3.9vw, 4.6rem);
}

h2 {
  font-size: clamp(1.85rem, 1.35rem + 2.1vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
}

p {
  margin: 0 0 1.1em;
  max-width: 42rem;
}

.lede {
  font-size: clamp(1.08rem, 1rem + 0.42vw, 1.32rem);
  color: var(--ink-2);
  max-width: 34rem;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
  display: block;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.9rem;
  height: 1px;
  background: var(--gold);
  vertical-align: 0.32em;
  margin-right: 0.7rem;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
  letter-spacing: 0.02em;
}

.muted {
  color: var(--muted);
}

/* ------------------------------------------------------------------- header */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.site-head.is-stuck {
  border-bottom-color: var(--rule);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark img {
  width: 1.55rem;
  height: 1.55rem;
  display: block;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2.1rem);
  font-size: 0.9rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--gold);
}

@media (max-width: 44rem) {
  .site-nav a.nav-hide {
    display: none;
  }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72em 1.35em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.btn:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  color: var(--ink);
}

.btn.ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* -------------------------------------------------------------------- rules */
.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.section {
  padding-block: var(--section);
}

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

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* --------------------------------------------------------------------- hero */
.hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

@media (max-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero .device::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 45%;
  left: 50%;
  width: min(90%, 25rem);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid var(--rule);
  outline: 1px solid var(--paper-3);
  outline-offset: 0.65rem;
  border-radius: 50%;
}

.batch-offer {
  margin: 1.25rem 0 0;
  color: var(--ink-2);
  font-size: 0.9rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--aether);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.8rem;
  margin-top: 2.6rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------- device mock */
.device {
  display: grid;
  place-items: center;
  position: relative;
}

.device-shell {
  position: relative;
  width: min(100%, 16rem);
  margin-inline: auto;
  filter: drop-shadow(0 18px 18px rgba(22, 21, 15, 0.23));
}

.cast-shell {
  width: min(100%, 14rem);
}

.device-case {
  display: block;
  width: 100%;
  height: auto;
}

.device-window {
  position: absolute;
  top: 29.7%;
  left: 19.5%;
  width: 61%;
  height: 60.4%;
  overflow: hidden;
  background: #f7f4ec;
}

.device-screen {
  display: block;
  width: 100%;
  height: 100%;
}

.device-caption {
  margin: 1.1rem auto 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
}

.replay-reading {
  font: inherit;
  font-size: .9rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: .45rem .6rem;
  text-decoration: underline;
  text-underline-offset: .2em;
  cursor: pointer;
}

.screen-refresh {
  animation: epd-refresh .48s steps(7, end) both;
}

@keyframes epd-refresh {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0); }
}

.cast-status {
  min-height: 1.55em;
  margin: .8rem 0 0;
  color: var(--muted);
}

#cast-btn[aria-disabled="true"],
.replay-reading[aria-disabled="true"] {
  cursor: progress;
}

@media (prefers-reduced-motion: reduce) {
  .screen-refresh { animation: none; }
  .replay-reading { display: none; }
}

/* --------------------------------------------------------------- stat strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.stat {
  background: var(--paper);
  padding: 1.5rem 1.35rem;
}

.stat dt {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1.15;
}

.stat dd small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.3rem;
  letter-spacing: 0;
}

/* ------------------------------------------------------------------- steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: clamp(1.6rem, 3vw, 2.6rem);
  counter-reset: step;
}

.step {
  counter-increment: step;
  border-top: 1px solid var(--rule);
  padding-top: 1.1rem;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.step h3 {
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.step code {
  font-family: var(--font-mono);
  font-size: 0.82em;
  background: var(--paper-2);
  padding: 0.1em 0.36em;
  border-radius: 2px;
}

/* ------------------------------------------------------------------- gates */
.gates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

@media (min-width: 62rem) {
  .gates {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gate {
  background: var(--paper);
  padding: 1.6rem 1.5rem 1.75rem;
  transition: background 0.25s ease;
}

.gate:hover {
  background: var(--paper-2);
}

.gate-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.gate.is-ninth .gate-num {
  background: var(--ink);
  color: var(--paper);
}

.gate h3 {
  font-size: 1.22rem;
  margin-bottom: 0.3rem;
}

.gate-cond {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.gate p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-2);
}

/* -------------------------------------------------------------------- deck */
.deck {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.4rem;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.deck img {
  height: 15rem;
  width: auto;
  border: 1px solid var(--rule);
  background: #f7f4ec;
  padding: 0.35rem;
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* ------------------------------------------------------------------ tables */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.8rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.72rem 1rem 0.72rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.table th {
  font-weight: 500;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td:last-child,
.table th:last-child {
  padding-right: 0;
}

.table code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

/* --------------------------------------------------------------------- faq */
.faq {
  max-width: 46rem;
}

.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0.15rem 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-family: var(--font-display);
  font-size: 1.14rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--muted);
  flex: 0 0 auto;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0 0 1.3rem;
  color: var(--ink-2);
}

/* ---------------------------------------------------------------- waitlist */
.waitlist {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: clamp(1.75rem, 4vw, 3rem);
  max-width: 44rem;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

.waitlist-form input[type="email"] {
  flex: 1 1 16rem;
  padding: 0.72em 0.9em;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 0;
}

.waitlist-form input[type="email"]:focus {
  outline: 2px solid var(--aether);
  outline-offset: 1px;
  border-color: var(--aether);
}

.form-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.9rem;
  min-height: 1.2em;
}

.form-note.ok {
  color: #3f6b4a;
}

.form-note.err {
  color: #8c3a2e;
}

/* ------------------------------------------------------------------ footer */
.site-foot {
  border-top: 1px solid var(--rule);
  padding-block: 3.5rem 4rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  align-items: baseline;
  justify-content: space-between;
}

.site-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.site-foot a {
  text-decoration: none;
}

.site-foot a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------- utilities */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.callout {
  border-left: 2px solid var(--gold);
  padding: 0.15rem 0 0.15rem 1.15rem;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.callout strong {
  color: var(--ink);
  font-weight: 500;
}

pre {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

code {
  font-family: var(--font-mono);
}

.inline-code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--paper-2);
  padding: 0.12em 0.38em;
  border-radius: 2px;
}

.reveal {
  opacity: 1;
  transform: none;
}

/* Only hide content for the reveal effect when scripting is running, so a
   failed or blocked script can never leave the page blank. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* -------------------------------------------------- ad landing additions */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.drop-bar {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.drop-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  padding-block: 0.52rem;
  text-align: center;
}

.drop-bar a {
  color: #e6c989;
  text-decoration: none;
}

.drop-bar a:hover {
  text-decoration: underline;
}

.site-nav a.nav-pill {
  padding: 0.42rem 0.82rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a.nav-pill:hover {
  background: #000;
  color: var(--paper);
}

.hero-waitlist {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.55rem;
  max-width: 32rem;
}

.hero-waitlist input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  padding: 0.72em 0.9em;
  font: inherit;
  font-size: 0.96rem;
  color: var(--ink);
  background: #fbf9f3;
  border: 1px solid #b8b09b;
  border-radius: 0;
}

.hero-waitlist input[type="email"]:focus {
  outline: 2px solid var(--aether);
  outline-offset: 1px;
  border-color: var(--aether);
}

.hero-form-note {
  margin-top: 0.6rem;
}

.hero-sublinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 1.4rem;
  margin-top: 0.95rem;
  font-size: 0.9rem;
}

.hero-demo-link {
  font-weight: 600;
  color: var(--ink);
}

.hero-alt-link {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-alt-link:hover {
  color: var(--ink);
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.edition-box {
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: clamp(1.4rem, 3.5vw, 2.2rem);
}

.edition-box.is-current {
  border-color: var(--ink);
  background: #f8f5ec;
}

.edition-tag {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  background: var(--ink);
  color: var(--paper);
  margin-bottom: 0.85rem;
}

.edition-tag.is-alt {
  background: var(--paper-3);
  color: var(--ink-2);
}

.edition-box h3 {
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  margin-bottom: 0.35rem;
}

.edition-sub {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 1.15rem;
}

.edition-points {
  list-style: none;
  padding: 1.15rem 0 1.55rem;
  margin: 0 0 auto;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.6rem;
  font-size: 0.93rem;
  color: var(--ink-2);
}

.edition-points li {
  display: flex;
  gap: 0.55rem;
}

.edition-points li::before {
  content: "\2014";
  color: var(--gold);
  flex: 0 0 auto;
}

.edition-box .btn {
  width: 100%;
}

.edition-choices {
  border: 0;
  padding: 0;
  margin: 1.35rem 0 0.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice-pill {
  cursor: pointer;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill span {
  display: inline-block;
  padding: 0.42rem 0.85rem;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.choice-pill input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.choice-pill input:focus-visible + span {
  outline: 2px solid var(--aether);
  outline-offset: 2px;
}

.sticky-cta {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 48;
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
}

.sticky-cta[hidden] {
  display: none !important;
}

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  max-width: 34rem;
  margin-inline: auto;
}

.sticky-cta-inner strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  line-height: 1.15;
}

.sticky-cta-inner span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.sticky-cta-inner .btn {
  padding: 0.58em 0.95em;
  font-size: 0.7rem;
}

@media (max-width: 56rem) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .sticky-cta {
    display: block;
  }
  body {
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 36rem) {
  .hero-waitlist {
    flex-direction: column;
  }
  .hero-waitlist .btn {
    width: 100%;
  }
}


/* Finished-device case gallery */
.case-gallery-section { border-top: 1px solid var(--rule); }
.case-gallery-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, .9fr); align-items: end; gap: clamp(1.5rem, 5vw, 4rem); margin-bottom: 2rem; }
.case-gallery-heading h2 { margin: .4rem 0 0; }
.case-gallery-heading > p { max-width: 42rem; margin: 0; color: var(--muted); }
.case-gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.case-gallery-card { min-width: 0; margin: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: .55rem; background: var(--paper-2); }
.case-gallery-image { aspect-ratio: 1.42 / 1; display: grid; place-items: center; overflow: hidden; padding: clamp(.75rem, 2vw, 1.5rem); background: linear-gradient(145deg, var(--paper-2), var(--paper-3)); }
.case-gallery-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.case-gallery-card figcaption { display: grid; gap: .2rem; border-top: 1px solid var(--rule); padding: 1rem 1.1rem; }
.case-gallery-card figcaption strong { color: var(--ink); }
.case-gallery-card figcaption span, .case-gallery-footnote { color: var(--muted); font-size: .9rem; }
.case-gallery-footnote { margin-top: 1rem; }
.case-gallery-footnote a { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 48rem) { .case-gallery-heading { grid-template-columns: 1fr; } }
@media (max-width: 36rem) { .case-gallery-grid { grid-template-columns: 1fr; } }

/* The keychain leads the page. Put buying details below the visual on phones. */
.hero-grid { grid-template-areas: "intro device" "offer device"; row-gap: 1.15rem; }
.hero-intro { grid-area: intro; align-self: end; }
.hero-intro h1 { max-width: 14ch; }
.hero-offer { grid-area: offer; align-self: start; }
.hero-grid > .device { grid-area: device; }
.hero-intro .hero-actions { align-items: center; margin-top: 1.5rem; }
.hero-intro .hero-demo-link { color: var(--ink); }
.hero-offer .batch-offer { margin-top: 0; }
.hero-offer .hero-facts { margin-top: 1.6rem; }

.moments-section { background: var(--paper-2); }
.moment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.moment { min-width: 0; overflow: hidden; border: 1px solid var(--rule); border-radius: .55rem; background: var(--paper); }
.moment-art {
  aspect-ratio: 3 / 2;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  background: radial-gradient(ellipse, #f5eee0, #dfd6bd);
}
.moment-sky { background: radial-gradient(ellipse, #e8eae7, #a9b9c1); }
.moment-field img,
.moment-sky img {
  width: auto;
  height: 84%;
  max-height: 100%;
  position: absolute;
  border: 1px solid #3d382a;
  border-radius: .15rem;
  box-shadow: 0 .4rem 1.1rem #3c331d38;
}
.moment-cards { background: radial-gradient(ellipse, #ece3cf, #cfc2a4); }
.moment-cards img { position: absolute; height: 81%; width: auto; box-shadow: 0 .35rem 1rem #251c1945; }
.moment-cards img:first-child { transform: translateX(-31%) rotate(-12deg); }
.moment-cards img:last-child { transform: translateX(31%) rotate(12deg); }
.moment-library { background: #282624; }
.moment-library img { width: 100%; height: 100%; object-fit: contain; }
.moment-copy { padding: 1.25rem; }
.moment-copy h3 { margin: 0 0 .5rem; }
.moment-copy p { color: var(--ink-2); margin: 0; line-height: 1.55; }
.ritual-section .section-head { margin-bottom: 0; }
.dial-actions { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.dial-actions li { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--rule); }
.dial-actions strong { color: var(--aether); }

@media (max-width: 56rem) {
  .hero-grid { grid-template-areas: "intro" "device" "offer"; }
  .hero-grid > .device { margin-block: 1rem 1.25rem; }
  .hero .device-shell { width: min(56vw, 13rem); }
  .hero .device-caption { margin-top: .7rem; }
  .moment-grid { grid-template-columns: 1fr; }
  .moment { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; }
  .moment-art { aspect-ratio: 1; }
}
@media (max-width: 36rem) {
  .hero { padding-top: 2rem; }
  .hero-intro h1 { font-size: clamp(1.8rem, 8.7vw, 3.15rem); max-width: none; margin-bottom: .7rem; }
  .hero-intro h1 em { display: block; }
  .site-head .wrap { min-height: 3.25rem; gap: .75rem; }
  .site-nav .nav-pill { padding-inline: .7rem; white-space: nowrap; }
  .drop-bar-inner { gap: .25rem .7rem; }
  .hero-grid > .device { margin-top: .25rem; }
  .hero-intro .hero-actions { gap: .7rem 1rem; }
  .hero-intro .lede { font-size: 1.05rem; }
  .moment { display: block; }
  .moment-art { aspect-ratio: 3 / 2; }
}

.hero-product { grid-area: device; width: 100%; margin: 0; align-self: center; }
.product-scene { position: relative; overflow: hidden; aspect-ratio: 896 / 800; border-radius: .55rem; }
.product-scene img { position: absolute; width: 200%; max-width: none; height: auto; }
.product-scene-keys img { top: 0; left: 0; }
@media (max-width: 56rem) {
  .hero-product { margin-block: .6rem 1rem; }
}

.hero-facts { list-style: none; padding: 0; margin-left: 0; }
.tier-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; margin: 1rem 0; }
.tier-card { border: 1px solid var(--rule); background: var(--paper-2); padding: 0.9rem 1rem; }
.tier-card h3 { margin: 0 0 0.4rem; font-size: 1rem; display: flex; justify-content: space-between; gap: 0.6rem; }
.tier-card p, .ship-line, .preorder-note { margin: 0.4rem 0 0; color: var(--ink-2); font-size: 0.92rem; }
.edition-chooser { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin: 1.2rem 0; }
.edition-chooser a { display: block; padding: 0.8rem; border: 1px solid var(--rule); text-decoration: none; color: inherit; }
.edition-chooser span { display: block; color: var(--muted); font-size: 0.8rem; }
@media (max-width: 40rem) {
  .tier-cards, .edition-chooser { grid-template-columns: 1fr; }
}
