/* Kouzina marketing site — Paper & Ink, matching the app. No build step. */

:root {
  --paper: #F7F6F2;
  --card: #FDFCF9;
  --ink: #1F2733;
  --muted: #5B6470;
  --blue: #2B4C9B;
  --blue-ink: #24407f;
  --rule: #BCD3E2;
  --red: #C0392B;
  --line: rgba(31, 39, 51, 0.14);
  --line-soft: rgba(31, 39, 51, 0.08);
  --lift: 0 1px 2px rgba(31, 39, 51, 0.06), 0 12px 32px rgba(31, 39, 51, 0.09);
  --lift-hover: 0 2px 4px rgba(31, 39, 51, 0.07), 0 20px 44px rgba(31, 39, 51, 0.13);
  --display: 'Young Serif', 'Iowan Old Style', Georgia, serif;
  --body: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --hand: 'Homemade Apple', 'Bradley Hand', 'Segoe Script', cursive;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --grid: 28px;
  --wrap: 1100px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  font-optical-sizing: auto;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
::selection { background: var(--rule); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
strong { font-weight: 600; }

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

.skip {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--card); color: var(--ink); padding: 0.5rem 0.9rem; z-index: 100;
}
.skip:focus { left: 0.5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-ink);
  display: block;
  margin-bottom: 0.9rem;
}
.hand {
  font-family: var(--hand);
  color: var(--blue);
  font-size: 1.05rem;
  line-height: 1.7;
}
.hand.red { color: var(--red); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }

/* ---- Buttons ---- */
.btn {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 3px;
  padding: 0.75rem 1.4rem;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
  line-height: 1.3;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  white-space: nowrap;
}
.btn:hover { background: var(--blue-ink); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(43, 76, 155, 0.25); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--blue-ink); }
.btn.ghost:hover { background: rgba(43, 76, 155, 0.06); box-shadow: none; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

/* ---- Header ---- */
.top {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
  background: transparent;
}
.top.is-scrolled {
  background: rgba(247, 246, 242, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 var(--line-soft);
}
.top .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 4rem;
}
.wordmark {
  display: inline-flex; align-items: baseline; gap: 0.55rem;
  text-decoration: none; color: var(--ink);
}
.wordmark .name { font-family: var(--display); font-size: 1.45rem; letter-spacing: -0.01em; }
.wordmark .tag { font-family: var(--hand); font-size: 0.72rem; color: var(--blue); white-space: nowrap; }
.wordmark img { width: 30px; height: 30px; border-radius: 7px; align-self: center; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; white-space: nowrap; }
.nav a:hover { color: var(--blue-ink); }
.nav .btn { padding: 0.5rem 1rem; font-size: 0.9rem; }
.nav .app-link { color: var(--blue-ink); }
@media (max-width: 960px) {
  .wordmark .tag { display: none; }
  .nav { gap: 1rem; }
  .nav a { font-size: 0.9rem; }
}
@media (max-width: 760px) {
  .nav .hide-m { display: none; }
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 11fr) minmax(0, 9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-top: clamp(2rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}
.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; }
.hero-copy .lede { font-size: 1.18rem; }
.hero .hand-note { font-size: 1rem; margin-top: -0.4rem; }

.waitlist { display: flex; flex-direction: column; gap: 0.55rem; max-width: 30rem; width: 100%; }
.waitlist .row { display: flex; gap: 0.6rem; }
.waitlist label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.waitlist input[type="email"] {
  flex: 1; min-width: 0;
  font: inherit; color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.72rem 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist input[type="email"]:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 76, 155, 0.14); outline: none; }
.waitlist .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.waitlist .msg { min-height: 1.6rem; font-family: var(--hand); color: var(--blue); font-size: 1rem; line-height: 1.6; }
.waitlist .msg.error { color: var(--red); }
.waitlist .fine { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 480px) { .waitlist .row { flex-direction: column; } }

.stores { display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center; }
.store {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 9.6rem; height: 3.1rem; padding: 0 0.9rem;
  border: 1px solid var(--line); border-radius: 7px;
  color: var(--muted); background: transparent;
  line-height: 1.15; opacity: 0.85;
}
.store .small { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.12em; text-transform: uppercase; }
.store .big { font-family: var(--body); font-weight: 600; font-size: 1.02rem; color: var(--ink); opacity: 0.6; }

/* Hero visual: big ruled card + phone */
.hero-visual { position: relative; min-height: 34rem; display: flex; align-items: center; justify-content: center; }
.big-card {
  position: absolute; inset: 6% 0 6% -4%;
  width: 104%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--lift);
  transform: rotate(-3deg);
  overflow: hidden;
}
.big-card svg { width: 100%; height: 100%; display: block; }
.big-card .rule { stroke: var(--rule); stroke-width: 1.2; }
.big-card .margin { stroke: var(--red); stroke-width: 1.5; }
.big-card .k { fill: none; stroke: var(--blue); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }

.phone {
  position: relative;
  width: min(280px, 72%);
  aspect-ratio: 375 / 812;
  border-radius: 42px;
  background: #101418;
  padding: 10px;
  box-shadow: 0 30px 60px rgba(31, 39, 51, 0.28), 0 4px 10px rgba(31, 39, 51, 0.16), inset 0 0 0 2px #2a3038;
  transform: rotate(4deg) translateX(6%);
  z-index: 2;
}
.phone::before {
  content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 24px; background: #101418; border-radius: 14px; z-index: 3;
}
.phone .screen { border-radius: 33px; overflow: hidden; width: 100%; height: 100%; background: var(--paper); padding-top: 40px; }
.phone .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .hero-visual { min-height: 0; margin-top: 1rem; padding: 1.5rem 0; }
  .big-card { inset: 4% 4%; width: 92%; }
  .phone { width: min(250px, 62%); transform: rotate(3deg); }
}

/* Hero motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { opacity: 0; transform: translateY(14px); animation: rise 0.7s var(--ease) forwards; }
  .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(2) { animation-delay: 0.13s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.21s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.29s; }
  .hero-copy > :nth-child(5) { animation-delay: 0.37s; }
  .hero-copy > :nth-child(6) { animation-delay: 0.45s; }
  .big-card { opacity: 0; animation: cardin 0.8s var(--ease) 0.2s forwards; }
  .big-card .rule, .big-card .margin {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: draw 0.9s var(--ease) forwards;
  }
  .big-card .margin { animation-delay: 0.35s; animation-duration: 1.1s; }
  .big-card .k {
    stroke-dasharray: 1; stroke-dashoffset: 1;
    animation: draw 1.2s cubic-bezier(0.4, 0, 0.3, 1) 1.15s forwards;
  }
  .big-card .k.k2 { animation-delay: 1.85s; animation-duration: 0.7s; }
  .phone { opacity: 0; animation: floatin 1s var(--ease) 0.55s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes cardin { from { opacity: 0; transform: rotate(-1deg) translateY(20px); } to { opacity: 1; transform: rotate(-3deg); } }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes floatin {
    from { opacity: 0; transform: rotate(6deg) translate(6%, 40px); }
    to { opacity: 1; transform: rotate(4deg) translateX(6%); }
  }
  @media (max-width: 900px) {
    @keyframes floatin {
      from { opacity: 0; transform: rotate(5deg) translateY(40px); }
      to { opacity: 1; transform: rotate(3deg); }
    }
  }
}

/* ---- Sections ---- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line-soft); }
.section-head { max-width: 40rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head .lede { margin-top: 0.9rem; }

/* Reveal */
[data-reveal] { opacity: 1; }
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---- Shoebox ---- */
.shoebox { background: var(--card); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.shoebox-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.shoebox .kicker { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; }
.shoebox .kicker em { font-style: normal; color: var(--blue-ink); }
.shoebox p + p { margin-top: 1rem; }
.scatter { position: relative; min-height: 20rem; }
.mini-card {
  position: absolute;
  width: min(64%, 17rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--lift);
  padding: 0.8rem 0.9rem 0.9rem calc(0.9rem + 22px);
  font-family: var(--hand); font-size: 0.82rem; line-height: var(--grid); color: var(--ink);
  background-image:
    linear-gradient(var(--red), var(--red)),
    repeating-linear-gradient(transparent, transparent calc(var(--grid) - 1px), var(--rule) calc(var(--grid) - 1px), var(--rule) var(--grid));
  background-size: 1.5px 100%, 100% var(--grid);
  background-position: 22px 0, 0 0.8rem;
  background-repeat: no-repeat, repeat-y;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.mini-card:hover { transform: translateY(-4px) rotate(0deg) !important; box-shadow: var(--lift-hover); }
.mini-card .t { font-size: 0.95rem; color: var(--blue); }
.mini-card.stain::after {
  content: ""; position: absolute; right: 8%; bottom: 10%; width: 46px; height: 40px; border-radius: 50%;
  background: radial-gradient(ellipse at center, transparent 58%, rgba(140, 94, 43, 0.18) 62%, transparent 74%);
}
.mini-card.c1 { top: 4%; left: 2%; transform: rotate(-5deg); }
.mini-card.c2 { top: 30%; right: 0; transform: rotate(3deg); }
.mini-card.c3 { bottom: 2%; left: 14%; transform: rotate(-1.5deg); }
.chat {
  position: absolute; top: 2%; right: 4%;
  background: var(--blue); color: #fff; font-size: 0.82rem; line-height: 1.4;
  border-radius: 16px 16px 4px 16px; padding: 0.55rem 0.8rem; max-width: 12rem;
  box-shadow: var(--lift); transform: rotate(2deg);
  font-family: var(--body);
}
.chat small { display: block; opacity: 0.75; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.1em; margin-top: 0.3rem; }
@media (max-width: 800px) {
  .shoebox-grid { grid-template-columns: 1fr; }
  .scatter { min-height: 30rem; }
  .mini-card { width: min(62%, 16rem); }
  .mini-card.c1 { top: 0; left: 0; }
  .chat { top: 1%; right: 0; max-width: 10.5rem; }
  .mini-card.c2 { top: 33%; right: 0; }
  .mini-card.c3 { top: 62%; bottom: auto; left: 6%; }
}

/* ---- Capture grid ---- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.3rem 1.3rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  box-shadow: 0 1px 2px rgba(31, 39, 51, 0.04);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  position: relative;
  background-image: linear-gradient(var(--rule) 1px, transparent 1px);
  background-size: 100% 100%; background-position: 0 3.5rem; background-repeat: no-repeat;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--lift-hover); }
.card .num { font-family: var(--hand); color: var(--red); font-size: 1.1rem; line-height: 1; }
.card h3 { margin-top: 0.4rem; }
.card p { font-size: 0.97rem; color: var(--muted); }
.card .glyph { width: 40px; height: 40px; color: var(--blue); }
.card .glyph svg { width: 100%; height: 100%; }
.after-note { margin-top: 1.4rem; font-size: 1rem; color: var(--muted); max-width: 44rem; }
@media (max-width: 800px) { .cards { grid-template-columns: 1fr; } }

/* ---- Feature rows ---- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.feature + .feature { border-top: 1px solid var(--line-soft); }
.feature.flip .feature-media { order: -1; }
.feature-copy { display: flex; flex-direction: column; gap: 1rem; max-width: 30rem; }
.feature-copy p { color: var(--muted); font-size: 1.05rem; }
.feature-copy ul { margin: 0.3rem 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.feature-copy li { padding-left: 1.4rem; position: relative; font-size: 0.98rem; }
.feature-copy li::before { content: "—"; position: absolute; left: 0; color: var(--red); }
.feature-media { display: flex; justify-content: center; }
.shot {
  width: min(100%, 22rem);
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--lift);
  overflow: hidden;
  background: var(--card);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.shot:hover { transform: translateY(-6px); box-shadow: var(--lift-hover); }
.shot.tall { width: min(100%, 17rem); border-radius: 26px; border-width: 6px; border-color: #101418; }
.shot img { width: 100%; }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; gap: 1.8rem; }
  .feature.flip .feature-media { order: 0; }
  .feature-media { order: 1; }
}

/* Printed book illustration */
.book { position: relative; width: min(100%, 22rem); aspect-ratio: 4 / 3; }
.book .page {
  position: absolute; inset: 8% 10% 0 10%;
  background: var(--card); border: 1px solid var(--line); border-radius: 3px;
  box-shadow: var(--lift);
  padding: 1.1rem 1.2rem;
  background-image: repeating-linear-gradient(transparent, transparent calc(var(--grid) - 1px), var(--rule) calc(var(--grid) - 1px), var(--rule) var(--grid));
  background-position: 0 1.1rem;
  transition: transform 0.45s var(--ease);
}
.book .page.p1 { transform: rotate(-4deg) translate(-6%, 4%); }
.book .page.p2 { transform: rotate(2deg) translate(4%, -2%); }
.book .page.p3 { transform: rotate(-0.5deg); }
.book:hover .page.p1 { transform: rotate(-6deg) translate(-9%, 5%); }
.book:hover .page.p2 { transform: rotate(4deg) translate(7%, -3%); }
.book .page h4 { font-size: 1.15rem; line-height: var(--grid); }
.book .page .by { font-family: var(--hand); color: var(--blue); font-size: 0.8rem; line-height: var(--grid); }
.book .page .li { font-size: 0.85rem; line-height: var(--grid); color: var(--muted); }
.book .page .photo {
  float: right; width: 34%; aspect-ratio: 1; margin: 0.2rem 0 0.4rem 0.8rem; border-radius: 3px;
  background: linear-gradient(135deg, #e8c48a, #b9773c 60%, #7a4a22); box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* ---- Greek row ---- */
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; width: min(100%, 26rem); }
.two-cards .mini-card { position: static; width: auto; transform: rotate(-2deg); }
.two-cards .mini-card:last-child { transform: rotate(2deg); }
.two-cards .mini-card:hover { transform: translateY(-4px) rotate(0) !important; }
.badge-soon {
  display: inline-block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--red); border: 1px solid currentColor; border-radius: 999px; padding: 0.15rem 0.6rem; margin-left: 0.5rem; vertical-align: middle;
}
@media (max-width: 480px) { .two-cards { grid-template-columns: 1fr; } }

/* ---- Pricing ---- */
.pricing { background: var(--card); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.price-card {
  max-width: 34rem; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  box-shadow: var(--lift);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
  display: flex; flex-direction: column; gap: 1rem; align-items: center;
  position: relative;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 1.5px 100%; background-position: 2.2rem 0; background-repeat: no-repeat;
}
.price { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1; }
.price small { font-family: var(--body); font-size: 1rem; color: var(--muted); margin-left: 0.3rem; }
.price-card ul { list-style: none; padding: 0; margin: 0.4rem 0; display: flex; flex-direction: column; gap: 0.35rem; }
.price-card li { color: var(--ink); }
.price-card .fine { font-size: 0.9rem; color: var(--muted); }
.price-card .hand { font-size: 1.05rem; }

/* ---- FAQ ---- */
.faq { max-width: 46rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-q {
  all: unset;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  width: 100%; padding: 1.05rem 0; cursor: pointer;
  font-family: var(--display); font-size: 1.12rem; line-height: 1.3;
  color: var(--ink);
}
.faq-q:hover { color: var(--blue-ink); }
.faq-q:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
.faq-q .plus { flex: none; width: 22px; height: 22px; position: relative; color: var(--red); }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transition: transform 0.35s var(--ease);
}
.faq-q .plus::before { width: 14px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-q .plus::after { width: 1.5px; height: 14px; transform: translate(-50%, -50%); }
.faq-q[aria-expanded="true"] .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .plus::before { transform: translate(-50%, -50%) rotate(180deg); }
.faq-a { height: 0; overflow: hidden; transition: height 0.4s var(--ease); }
.faq-a > div { padding: 0 0 1.3rem; color: var(--muted); font-size: 1rem; max-width: 40rem; }
.faq-a p + p { margin-top: 0.6rem; }
@media (prefers-reduced-motion: reduce) { .faq-a { transition: none; } }

/* ---- Founder ---- */
.founder { max-width: 42rem; margin: 0 auto; text-align: center; display: flex; flex-direction: column; gap: 1.2rem; align-items: center; }
.founder p { font-size: 1.12rem; }
.founder .sig { font-family: var(--hand); color: var(--blue); font-size: 1.15rem; }
.founder .ornament { width: 44px; height: 2px; background: var(--red); }

/* ---- Closing CTA ---- */
.closing { text-align: center; }
.closing .waitlist { margin: 1.5rem auto 0; align-items: center; }
.closing .waitlist .row { width: 100%; }

/* ---- Footer ---- */
.foot { border-top: 1px solid var(--line); padding: 2rem 0 2.6rem; font-size: 0.9rem; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.foot nav { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--blue-ink); text-decoration: underline; }
.foot .made { width: 100%; font-family: var(--hand); color: var(--blue); font-size: 0.9rem; }
.foot .credit { width: 100%; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.02em; color: var(--muted); }

/* ---- Prose pages (privacy, support) ---- */
.page { max-width: 42rem; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 7vw, 5rem); }
.page h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); margin-bottom: 0.6rem; }
.page .dateline { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.page h2 { font-size: 1.45rem; margin: 2.4rem 0 0.7rem; }
.page h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
.page p { margin: 0 0 0.9rem; }
.page ul, .page ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.page li { margin-bottom: 0.35rem; }
.page .summary {
  background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 1.1rem 1.2rem 1.1rem calc(1.2rem + 18px); margin: 1.4rem 0 2rem;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 1.5px 100%; background-position: 18px 0; background-repeat: no-repeat;
}
.page .summary p:last-child { margin: 0; }
.page code { font-family: var(--mono); font-size: 0.85em; background: rgba(31, 39, 51, 0.06); padding: 0.1em 0.35em; border-radius: 3px; }
.page table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0 0 1.2rem; }
.page th, .page td { text-align: left; padding: 0.5rem 0.6rem 0.5rem 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.page th { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.table-wrap { overflow-x: auto; }
