/* inboxglow.ai, the public page. Paper studio tokens (src/index.css), Inter, one accent (#C2410C), no gradients or glows.
   One 1280px wrap and a 12-column grid; every section is a screen tall from 1024px. Motion: the hero's entrance on load,
   the editor chapters (pinned while you scroll, home.js), hover and press steps. All of it rests under reduced motion. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/home/fonts/inter-latin.3100e775e8.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #F6F4EF;
  --ink: #17161A;
  --card: #FFFFFF;
  --surface: #EFECE5;
  --surface-2: #FBFAF7;
  --muted: #6B675F;
  --subtle: #3F3C37;
  --border: #E6E2D9;
  --border-strong: #D6D1C5;
  --field: #8A8478;
  --accent: #C2410C;
  --danger: #B42318;
  --success: #2F7D4F;
  --on-ink: #F6F4EF;
  --on-ink-muted: #B3ADA2;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-enter: cubic-bezier(.22, 1, .36, 1);
  --gut: 24px;
  --nav: 72px;
  --padt: 96px;
  --padb: 72px;
  --r: 10px;
  --r-lg: 16px;
  --wrap: min(100% - 2 * var(--gut), 1280px);
}
@media (min-width: 640px) { :root { --gut: 48px; --padt: 120px; --padb: 96px; } }
@media (min-width: 1280px) { :root { --gut: 80px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sec--ink :focus-visible { outline-color: var(--on-ink); }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 50;
  padding: 10px 16px; border-radius: var(--r);
  background: var(--ink); color: #FFF; font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

.wrap { width: var(--wrap); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r);
  font: 600 15px/1 Inter, system-ui, sans-serif;
  text-decoration: none; cursor: pointer;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}
.btn--primary { background: var(--ink); color: #FFF; }
.btn--quiet { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { cursor: progress; opacity: .72; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: #2E2C31; transform: translateY(-1px); }
  .btn--quiet:hover { border-color: var(--ink); transform: translateY(-1px); }
}
.btn:active { transform: translateY(1px) scale(.985); transition-duration: 90ms; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20; height: var(--nav);
  background: rgba(246, 244, 239, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__row { height: 100%; display: flex; align-items: center; gap: 32px; }
.mark {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 17px; text-decoration: none;
}
.nav__links { display: none; gap: 4px; margin-left: auto; }
.nav__links a {
  padding: 10px 12px; border-radius: 8px;
  color: var(--subtle); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: color 150ms var(--ease), background-color 150ms var(--ease);
}
.nav__links a:hover { color: var(--ink); background: var(--surface); }
.nav .btn { margin-left: auto; }
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav .btn { margin-left: 8px; }
}

/* ---------- Type ---------- */
h1 {
  font-size: clamp(38px, 3.4vw + 8px, 58px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 600;
  text-wrap: balance;
}
h2 {
  font-size: clamp(30px, 2.6vw + 6px, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600;
  max-width: 22ch; text-wrap: balance;
}
h3 { font-size: 18px; line-height: 1.35; font-weight: 600; }
.lead { font-size: clamp(17px, .5vw + 14px, 20px); line-height: 1.5; color: var(--subtle); max-width: 40ch; text-wrap: pretty; }
.intro { font-size: 17px; line-height: 1.55; color: var(--subtle); max-width: 44ch; text-wrap: pretty; }
p { text-wrap: pretty; }

/* ---------- Sections ---------- */
.sec { padding: var(--padt) 0 var(--padb); }
.sec > .wrap > h2, .sec > .wrap > .split > h2 { margin-bottom: 48px; }
.sec--surface { background: var(--surface-2); }
.sec--ink { background: var(--ink); color: var(--on-ink); }
.sec--ink .intro, .sec--ink p { color: var(--on-ink-muted); }
.split { display: grid; gap: 40px; }
@media (min-width: 1024px) {
  .sec { min-height: 100svh; display: flex; flex-direction: column; }
  .split { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 0; align-items: start; }
  .split > :first-child { grid-column: 1 / span 5; }
  .split > :last-child { grid-column: 6 / -1; }
}

/* Frames hold product screenshots: hairline, radius, nothing else. */
.frame {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--r-lg);
  background: var(--card);
}
.frame img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav) + 40px) 0 48px; }
.hero__grid { display: grid; gap: 40px; }
.hero__text { display: flex; flex-direction: column; align-items: flex-start; }
.notice {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px; font-size: 14px; font-weight: 500; color: var(--subtle);
}
.notice { align-items: baseline; }
.notice::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-1px); }
.hero h1 { margin-bottom: 24px; }
.hero .lead { margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__klaviyo { margin-top: 20px; font-size: 14px; color: var(--muted); }
.hero__visual { aspect-ratio: 628 / 714; width: 100%; }
@media (max-width: 639px) {
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 100%; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .hero__visual { aspect-ratio: 4 / 3; }
}
@media (min-width: 1024px) {
  .hero { height: 100svh; min-height: 720px; max-height: 1100px; padding: calc(var(--nav) + 48px) 0 64px; }
  .hero__grid { height: 100%; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }
  .hero__text { grid-column: 1 / span 6; padding-top: 24px; padding-right: 24px; }
  .hero__visual { grid-column: 7 / -1; aspect-ratio: auto; height: 100%; min-height: 0; }
}

/* The hero enters once on load: the words rise into place, then the canvas settles. CSS only. */
@media (prefers-reduced-motion: no-preference) {
  [data-enter] { animation: hero-rise 760ms var(--ease-enter) both; }
  [data-enter="2"] { animation-delay: 70ms; }
  [data-enter="3"] { animation-delay: 160ms; }
  [data-enter="4"] { animation-delay: 240ms; }
  [data-enter="5"] { animation: hero-settle 1000ms var(--ease-enter) 180ms both; }
}
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes hero-settle { from { opacity: 0; transform: translateY(20px) scale(.985); } to { opacity: 1; transform: none; } }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 32px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; row-gap: 6px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: 0; padding-bottom: 0; }
.steps__n {
  grid-row: span 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--accent); font-weight: 600; font-size: 15px;
}
.steps p { color: var(--subtle); max-width: 40ch; }
.emails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.frame--email { border-radius: 12px; aspect-ratio: 267 / 610; }
@media (max-width: 639px) {
  .emails { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .emails > :last-child { display: none; }
}
@media (min-width: 1024px) {
  .emails { gap: 24px; }
}

/* ---------- Designed ---------- */
.points .intro { margin-bottom: 40px; }
.points ul { display: grid; gap: 28px; }
.points li { padding-left: 20px; border-left: 2px solid var(--accent); }
.points li p { margin-top: 4px; color: var(--subtle); max-width: 40ch; }
#designed .frame { aspect-ratio: 665 / 688; }
@media (min-width: 1024px) {
  #designed .split > :first-child { grid-column: 1 / span 6; }
  #designed .split > :last-child { grid-column: 8 / -1; }
}

/* ---------- Editor chapters (the pinned moment) ---------- */
.chapters__list { display: grid; gap: 64px; }
.chapter { display: grid; gap: 24px; }
.chapter__text p { margin-top: 8px; color: var(--subtle); max-width: 42ch; }
.chapter__pic { background: var(--surface-2); }
@media (min-width: 1024px) {
  .chapter { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
  .chapter__text { grid-column: 1 / span 5; }
  .chapter__pic { grid-column: 6 / -1; }
}
/* With script and room (home.js adds .is-pinned): two screens tall, the list on the left and one stage on the right
   that stays in view while the steps change. */
.chapters.is-pinned { height: 200svh; padding: 0; display: block; min-height: 0; }
.chapters.is-pinned > .wrap {
  position: sticky; top: 0; height: 100svh; padding: calc(var(--nav) + 48px) 0 64px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto 1fr; column-gap: 24px;
}
.chapters.is-pinned h2 { grid-column: 1 / span 4; margin-bottom: 0; }
.chapters.is-pinned .chapters__list { grid-column: 1 / span 4; grid-row: 2; align-content: start; gap: 8px; margin-top: 40px; }
.chapters.is-pinned .chapter { display: block; padding: 20px 0 20px 20px; border-left: 2px solid var(--border); transition: border-color 240ms var(--ease); }
.chapters.is-pinned .chapter__text h3 { color: var(--muted); transition: color 240ms var(--ease); }
.chapters.is-pinned .chapter__text p { display: none; }
.chapters.is-pinned .chapter.is-active { border-left-color: var(--accent); }
.chapters.is-pinned .chapter.is-active h3 { color: var(--ink); }
.chapters.is-pinned .chapter.is-active .chapter__text p { display: block; }
/* The stage is a size container, so each picture takes the most room its own ratio allows. */
.chapters__stage { grid-column: 5 / -1; grid-row: 1 / span 2; position: relative; min-height: 0; container-type: size; }
.chapters__stage .chapter__pic {
  position: absolute; top: 0; right: 0; width: min(100cqw, calc(100cqh * var(--ratio)));
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 320ms var(--ease), transform 420ms var(--ease-enter), visibility 0s linear 420ms;
}
.chapters__stage .chapter__pic.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.chapter__pic { aspect-ratio: var(--ratio); }
.chapter[data-chapter="0"] .chapter__pic, .chapter__pic[data-chapter-pic="0"] { --ratio: 1.6; }
.chapter[data-chapter="1"] .chapter__pic, .chapter__pic[data-chapter-pic="1"] { --ratio: 0.957; }
.chapter[data-chapter="2"] .chapter__pic, .chapter__pic[data-chapter-pic="2"] { --ratio: 1.219; }
@media (prefers-reduced-motion: reduce) {
  .chapters__stage .chapter__pic, .chapters.is-pinned .chapter, .chapters.is-pinned .chapter__text h3 { transition: none; transform: none; }
}

/* ---------- Checks ---------- */
.split--top { align-items: start; }
.sec--ink h2 { margin-bottom: 20px; }
.checklist { display: grid; gap: 0 32px; }
.checklist li { padding: 20px 0; border-top: 1px solid #34323A; }
.checklist h3 { font-size: 16px; color: var(--on-ink); }
.checklist p { margin-top: 4px; font-size: 15px; line-height: 1.5; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { #checks .split > :last-child { grid-column: 7 / -1; } }

/* ---------- Pricing ---------- */
.pricing__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.pricing__head h2 { margin-bottom: 16px; }
.billing { display: inline-flex; padding: 4px; margin: 0; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--card); }
.billing input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.billing label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--subtle); cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.billing input:checked + label { background: var(--ink); color: #FFF; }
.billing input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.save { font-size: 12px; font-weight: 600; color: var(--accent); }
.billing input:checked + label .save { color: #F4C7AE; }
.plans { display: grid; gap: 16px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.plan {
  display: flex; flex-direction: column; padding: 28px 24px;
  border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card);
}
.plan--pick { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.plan h3 { font-size: 18px; }
.plan__who { margin-top: 4px; font-size: 14px; color: var(--muted); }
.plan__price { margin-top: 24px; display: flex; align-items: baseline; gap: 6px; }
.plan__amount { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan__amount--year, .plan__billed--year { display: none; }
.plan__per { font-size: 14px; color: var(--muted); }
.plan__billed { margin-top: 8px; font-size: 13px; color: var(--muted); min-height: 21px; }
#pricing:has(#bill-year:checked) .plan__amount:not(.plan__amount--year),
#pricing:has(#bill-year:checked) .plan__billed--month { display: none; }
#pricing:has(#bill-year:checked) .plan__amount--year,
#pricing:has(#bill-year:checked) .plan__billed--year { display: inline; }
.plan__limits { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.plan__limits div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.plan__limits dt { color: var(--muted); }
.plan__limits dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.plan__features { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); display: grid; gap: 8px; font-size: 14px; color: var(--subtle); }
.plan__features li { position: relative; padding-left: 24px; }
.plan__features li::before {
  content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 6px;
  border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent); transform: rotate(-45deg);
}
.plans__note { margin-top: 24px; font-size: 14px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 1.8px solid var(--subtle); border-bottom: 1.8px solid var(--subtle);
  transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease);
}
.faq details[open] summary::after { transform: translateY(2px) rotate(225deg); }
.faq summary:hover { color: var(--subtle); }
.faq details p { padding: 0 32px 20px 0; color: var(--subtle); max-width: 60ch; }
@media (min-width: 1024px) { #faq h2 { margin-bottom: 0; } #faq { min-height: 0; } }

/* ---------- Closing: the early access form and the footer ---------- */
.closing { padding: var(--padt) 0 32px; border-top: 1px solid var(--border); }
@media (min-width: 1024px) { .closing { min-height: 100svh; display: flex; flex-direction: column; } .closing > .wrap { flex: 1; display: flex; flex-direction: column; } }
.closing h2 { margin-bottom: 20px; }
.closing__row { flex: 1; }
@media (min-width: 1024px) { .closing__row > :last-child { grid-column: 7 / -1; } }
.join { padding: 32px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--card); }
.join__form { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
.field input {
  width: 100%; min-height: 48px; padding: 0 16px;
  border: 1px solid var(--field); border-radius: var(--r); background: #FFF;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field input:hover { border-color: var(--subtle); }
.field input:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.field__error { font-size: 14px; color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.join__status { min-height: 22px; font-size: 14px; color: var(--muted); }
.join__status.is-error { color: var(--danger); }
.join__done h3 { font-size: 22px; letter-spacing: -0.02em; }
.join__done p { margin-top: 8px; color: var(--subtle); }
.join__done:focus { outline: none; }
.join__done::before {
  content: ""; display: block; width: 36px; height: 36px; margin-bottom: 20px; border-radius: 50%;
  background: var(--success) no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.legal {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  margin-top: 72px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--muted);
}
.mark--small { font-size: 15px; color: var(--ink); margin-right: auto; }
.legal__links { display: flex; gap: 4px; }
.legal__links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  color: var(--subtle); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 4px;
  transition: text-decoration-color 150ms var(--ease), color 150ms var(--ease);
}
.legal__links a:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- The plain pages: privacy, terms, joined ---------- */
.doc { padding: calc(var(--nav) + 64px) 0 96px; }
.doc .wrap { max-width: 680px; }
.doc h1 { font-size: clamp(34px, 3vw + 12px, 48px); margin-bottom: 16px; }
.doc h2 { font-size: 22px; letter-spacing: -0.015em; margin: 40px 0 12px; max-width: none; }
.doc p, .doc li { color: var(--subtle); }
.doc p + p { margin-top: 12px; }
.doc ul { list-style: disc; padding-left: 24px; display: grid; gap: 6px; }
.doc .updated { color: var(--muted); font-size: 14px; }
.doc .back { display: inline-flex; margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .btn, .btn:active { transition: none; transform: none; }
}
