/* ==========================================================================
   Hyperly — landing page
   One stylesheet, mobile first. Breakpoints: 720px (tablet), 1080px (desktop).
   Brand tokens come from the Hyperly brand guide v0.1.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: 'Gloock'; font-weight: 400; font-display: swap; src: url('../fonts/gloock-latin.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-weight: 300 700; font-display: swap; src: url('../fonts/space-grotesk-latin.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400 500; font-display: swap; src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2'); }
/* Fonts used only inside the example newsletters */
@font-face { font-family: 'Archivo'; font-weight: 300 500; font-display: swap; src: url('../fonts/archivo-latin.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-weight: 400 600; font-display: swap; src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-garamond-italic-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-weight: 400; font-display: swap; src: url('../fonts/dm-serif-display-latin.woff2') format('woff2'); }
@font-face { font-family: 'DM Serif Display'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/dm-serif-display-italic-latin.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --tomato: #E5482D;
  --tomato-deep: #C23A22;
  --ink: #1E1A16;
  --paper: #F4F0E8;
  --paper-hi: #FBF9F5;
  --blush: #F7DCD2;
  --stone: #6F665C;
  --text-2: #4A433C;
  --muted: #8F867B;
  --line: #E2DBCF;
  --line-2: #D9D1C4;
  --on-ink-2: #CFC6BA;

  --display: 'Gloock', Georgia, serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --gutter: 20px;
  --max: 1320px;
}

/* ---------- Base ---------- */
*, *::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);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* Clip the tilted marquee and floating cards without breaking the sticky nav */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body.is-locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .2s; }
a:hover { color: var(--tomato); }
button { font: inherit; color: inherit; }
input, textarea { font: inherit; }
::placeholder { color: var(--muted); }
:focus-visible { outline: 2px solid var(--tomato); outline-offset: 3px; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.dot { color: var(--tomato); }
.dot-paper { color: var(--paper); }
.pulse-dot { display: inline-block; animation: pulse 2.4s 1.4s ease-in-out infinite; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--tomato);
}
.h2 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(42px, 7vw, 80px); line-height: .96; letter-spacing: -.03em;
  text-wrap: balance;
}
.lede { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 16px; padding: 16px 28px; text-align: center;
  transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--tomato); color: var(--paper); }
.btn-tomato { background: var(--tomato); color: var(--paper-hi); }
.btn-tomato:hover { background: var(--ink); color: var(--paper-hi); }
.btn-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark {
  width: 28px; height: 28px; border-radius: 24%; background: var(--tomato); color: var(--paper);
  display: grid; place-items: center; font-family: var(--display); font-size: 21px; line-height: 1; padding-bottom: 3px;
}
.logo-word { font-family: var(--display); font-size: 23px; letter-spacing: -.02em; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 240, 232, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30, 26, 22, .08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.nav-links { display: none; }
.nav-mobile { display: flex; align-items: center; gap: 8px; }
.nav-join { padding: 11px 16px; font-size: 14px; }
.menu-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); }
.menu-btn span + span { margin-top: 5px; }
.menu-btn > i { display: grid; }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--ink); color: var(--paper);
  display: grid; grid-template-rows: auto 1fr auto; padding: 14px var(--gutter) 32px;
  animation: fadein .25s ease both;
}
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-top .logo-word { color: var(--paper); }
.menu-links { display: grid; align-content: center; gap: 8px; justify-items: center; text-align: center; }
.menu-links a { font-family: var(--display); font-size: 44px; color: var(--paper); padding: 6px; animation: rise .5s both; }
.menu-links a:nth-child(2) { animation-delay: .05s; }
.menu-links a:nth-child(3) { animation-delay: .1s; }
.menu-links a:nth-child(4) { animation-delay: .15s; color: var(--tomato); }
.menu-links a:hover { color: var(--tomato); }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3A342E; background: transparent;
  color: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
.menu .btn { background: var(--tomato); color: var(--ink); padding: 18px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; gap: 24px; justify-items: center; text-align: center;
  padding-top: 48px; padding-bottom: 64px;
}
.hero-copy { display: grid; gap: 24px; justify-items: center; width: 100%; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone);
  border: 1px solid var(--line-2); padding: 8px 14px; border-radius: 999px;
  animation: rise .8s .05s var(--ease) both;
}
.hero-tag::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--tomato); flex-shrink: 0;
  animation: pulse 1.8s ease-in-out infinite;
}
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(52px, 16vw, 72px); line-height: .92; letter-spacing: -.035em;
  animation: rise 1s .15s var(--ease) both;
}
.hero-sub {
  margin: 0; max-width: 340px; font-size: 17px; line-height: 1.5; color: var(--text-2); text-wrap: pretty;
  animation: rise 1s .3s var(--ease) both;
}

/* Waitlist form */
.waitlist { width: 100%; max-width: 400px; animation: rise 1s .45s var(--ease) both; scroll-margin-top: 100px; }
.waitlist-form { display: grid; gap: 10px; }
.waitlist-form input[type=email] {
  width: 100%; min-width: 0; border: 1px solid var(--line-2); background: var(--paper-hi);
  border-radius: 16px; font-size: 17px; padding: 17px 18px; color: var(--ink); outline: none; text-align: center;
  transition: border-color .2s;
}
.waitlist-form input[type=email]:focus { border-color: var(--ink); }
.waitlist-form .btn { font-size: 17px; padding: 18px; border-radius: 16px; box-shadow: 0 16px 30px -16px rgba(229, 72, 45, .7); }
.form-hint { display: block; margin-top: 12px; font-size: 14px; color: var(--stone); }
.form-hint.is-error { color: var(--tomato-deep); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.joined {
  display: grid; justify-items: center; gap: 10px; background: var(--ink); color: var(--paper);
  border-radius: 20px; padding: 24px; animation: pop .5s var(--ease) both;
}
.joined-tick {
  width: 44px; height: 44px; border-radius: 50%; background: var(--tomato); color: var(--paper);
  display: grid; place-items: center; font-size: 20px; flex-shrink: 0;
}
.joined strong { font-weight: 600; font-size: 17px; }
.joined span { font-size: 15px; color: var(--on-ink-2); overflow-wrap: anywhere; }
.joined-text { display: grid; gap: 2px; }

/* Floating newsletter cards */
.hero-art { position: relative; width: 100%; max-width: 420px; height: 360px; margin-top: 12px; animation: rise 1.2s .5s var(--ease) both; }
.art-disc, .art-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; }
.art-disc { width: 300px; height: 300px; margin: -150px 0 0 -150px; background: var(--blush); }
.art-ring { width: 360px; height: 360px; margin: -180px 0 0 -180px; border: 1px dashed #D9B9AC; animation: spin 60s linear infinite; }
.card { position: absolute; display: grid; text-align: left; }
.card-label { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.card-title { font-family: var(--display); line-height: 1.05; }
.card-a {
  left: 0; top: 30px; width: 190px; background: var(--ink); color: var(--paper); border-radius: 16px; padding: 16px; gap: 10px;
  box-shadow: 0 24px 48px -20px rgba(30, 26, 22, .5); animation: f1 7s ease-in-out infinite;
}
.card-a .card-label { color: var(--tomato); }
.card-a .card-title { font-size: 20px; }
.card-a .ph { height: 60px; border-radius: 8px; background: repeating-linear-gradient(135deg, #2E2924 0 7px, #26221D 7px 14px); }
.card-b {
  right: 0; top: 10px; width: 180px; background: var(--tomato); color: var(--ink); border-radius: 16px; padding: 16px; gap: 10px;
  box-shadow: 0 24px 48px -20px rgba(229, 72, 45, .6); animation: f2 8s ease-in-out infinite;
}
.card-b .card-title { font-size: 20px; }
.bars { display: grid; gap: 5px; }
.bars i { display: block; height: 6px; border-radius: 3px; background: rgba(30, 26, 22, .25); }
.bars i:nth-child(2) { width: 75%; }
.bars i:nth-child(3) { width: 55%; }
.card-c {
  left: 50%; margin-left: -130px; bottom: 0; width: 260px; background: var(--paper-hi); border: 1px solid var(--line);
  border-radius: 18px; padding: 18px; gap: 10px; box-shadow: 0 30px 60px -24px rgba(30, 26, 22, .45); animation: f3 6s ease-in-out infinite;
}
.card-c-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-c .card-label { color: var(--stone); }
.card-c .sched { font-family: var(--mono); font-size: 9px; color: var(--tomato); }
.card-c .card-title { font-size: 22px; }
.card-c .ph { height: 64px; border-radius: 10px; background: repeating-linear-gradient(135deg, #EFE8DC 0 7px, #E8E0D2 7px 14px); }
.card-actions { display: flex; gap: 6px; }
.card-actions span { flex: 1; text-align: center; border-radius: 999px; font-weight: 500; font-size: 12px; padding: 8px; border: 1px solid var(--ink); }
.card-actions span:first-child { background: var(--ink); color: var(--paper); }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--tomato); color: var(--ink); padding: 16px 0; transform: rotate(-2deg); margin: 0 -40px;
  overflow: hidden; box-shadow: 0 20px 40px -30px rgba(229, 72, 45, .6);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; font-family: var(--display); font-size: 26px; white-space: nowrap; }
.marquee-group { display: flex; align-items: center; gap: 24px; padding-right: 24px; margin: 0; padding-left: 0; list-style: none; }
.marquee-group li { display: flex; align-items: center; gap: 24px; }
.marquee-group li::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--paper); flex-shrink: 0; }

/* ---------- Section heads ---------- */
.section-head { display: grid; gap: 18px; justify-items: center; text-align: center; padding: 0 var(--gutter); }
.section-head .lede { max-width: 380px; }
.head-title { display: grid; gap: 18px; justify-items: inherit; }
.br-lg { display: none; }
ol.slider { list-style: none; margin-top: 0; margin-bottom: 0; }
.how > *, .examples > *, .pricing > * { min-width: 0; } /* stop sliders stretching the grid */
.lg-only { display: none; }

/* ---------- Sliders (mobile) / grids (desktop) ---------- */
.slider {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-padding: 0 var(--gutter);
}
.slider::-webkit-scrollbar { display: none; }
.slider > * { flex: 0 0 calc(100% - 28px); scroll-snap-align: center; }
.dots { display: flex; justify-content: center; gap: 6px; }
.dots button {
  width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: var(--line-2); transition: width .3s, background .3s;
}
.dots button[aria-current=true] { width: 24px; background: var(--ink); }
.dots-dark button { background: #4A433C; }
.dots-dark button[aria-current=true] { background: var(--tomato); }

/* ---------- How it works ---------- */
.how { padding: 96px 0 72px; display: grid; gap: 36px; scroll-margin-top: 60px; }
.how-head .eyebrow { display: block; }
.step {
  border-radius: 24px; padding: 28px; display: grid; gap: 40px; align-content: space-between; min-height: 300px;
  transition: transform .35s var(--ease), box-shadow .35s;
}
.step-num { font-family: var(--display); font-size: 88px; line-height: .8; color: var(--tomato); }
.step-body { display: grid; gap: 10px; }
.step-body strong { font-weight: 600; font-size: 21px; }
.step-body span { font-size: 16px; line-height: 1.5; color: var(--text-2); }
.step-1 { background: var(--paper-hi); border: 1px solid var(--line); }
.step-2 { background: var(--ink); color: var(--paper); }
.step-2 .step-body span { color: var(--on-ink-2); }
.step-3 { background: var(--blush); }

/* ---------- Examples ---------- */
.examples { background: var(--ink); color: var(--paper); padding: 88px 0 72px; display: grid; gap: 36px; scroll-margin-top: 60px; }
.examples .lede { color: var(--on-ink-2); }
.example { display: grid; gap: 16px; grid-template-rows: 1fr auto; }
.example-caption { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mail {
  border-radius: 20px; overflow: hidden; background: var(--paper-hi);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); display: flex; flex-direction: column;
  transition: transform .5s var(--ease), box-shadow .5s;
}
.mail-head { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; background: var(--paper-hi); }
.avatar { width: 36px; height: 36px; border-radius: 50%; color: var(--paper-hi); display: grid; place-items: center; font-weight: 600; font-size: 15px; flex-shrink: 0; }
.mail-meta { display: grid; gap: 2px; min-width: 0; flex: 1; }
.mail-meta-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.mail-meta-top strong { font-weight: 600; color: var(--ink); }
.mail-meta-top span { color: var(--muted); }
.mail-subject, .mail-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-subject { font-size: 14px; font-weight: 500; color: var(--ink); }
.mail-preview { font-size: 13px; color: var(--muted); }
.mail-body { padding: 28px 22px 32px; display: grid; gap: 18px; flex: 1; align-content: start; }
.mail-body img { width: 100%; height: 200px; object-fit: cover; }

/* Millstream (Cormorant) */
.nl-mill { background: #F3EFE6; color: #23301F; font-family: 'Cormorant Garamond', Georgia, serif; }
.nl-mill .masthead { display: grid; gap: 6px; justify-items: center; text-align: center; padding-bottom: 16px; border-bottom: 1px solid #C9C3B2; }
.nl-mill .masthead em { font-style: italic; font-size: 38px; line-height: 1; font-weight: 500; }
.nl-mill .caps { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.nl-mill img { border-radius: 4px; }
.nl-mill .issue { color: #4F6B3E; }
.nl-mill h3 { margin: 0; font-size: 32px; line-height: 1.02; font-weight: 600; }
.nl-mill p { margin: 0; font-size: 18px; line-height: 1.45; }
.nl-mill .offer { border: 1px solid #23301F; padding: 16px; text-align: center; display: grid; gap: 4px; }
.nl-mill .offer b { font-size: 21px; font-weight: 600; }
.nl-mill .offer span { font-size: 16px; }
.nl-mill .cta { justify-self: center; background: #3E5233; color: #F3EFE6; padding: 13px 24px; font-size: 16px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }

/* Atelier (Archivo) */
.mail-atelier { border: 1px solid #B8875A; }
.nl-atelier { background: #1C1714; color: #EDE4D8; font-family: 'Archivo', system-ui, sans-serif; }
.nl-atelier .masthead { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid #3B322B; gap: 8px; }
.nl-atelier .wordmark { font-weight: 300; font-size: 24px; letter-spacing: .42em; }
.nl-atelier .gold { font-size: 11px; letter-spacing: .2em; color: #B8875A; }
.nl-atelier .kicker { font-size: 11px; letter-spacing: .24em; color: #B8875A; }
.nl-atelier h3 { margin: 0; font-weight: 300; font-size: 31px; line-height: 1.05; letter-spacing: -.01em; }
.nl-atelier p { margin: 0; font-size: 15px; line-height: 1.6; color: #BFB3A4; }
.nl-atelier .rows { display: grid; border-top: 1px solid #3B322B; margin: 0; }
.nl-atelier .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #3B322B; font-size: 14px; }
.nl-atelier .rows dd { margin: 0; color: #B8875A; }
.nl-atelier .cta { text-align: center; border: 1px solid #B8875A; padding: 14px 20px; font-size: 12px; letter-spacing: .22em; }

/* Ember & Oak (DM Serif) */
.nl-ember { background: #FFF8EC; color: #3A1F2B; }
.nl-ember .masthead { display: grid; gap: 4px; justify-items: center; text-align: center; padding-bottom: 16px; border-bottom: 2px solid #3A1F2B; }
.nl-ember .masthead b { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 36px; line-height: 1; }
.nl-ember .masthead em { font-family: 'DM Serif Display', Georgia, serif; font-size: 17px; color: #A36A1F; }
.nl-ember img { border-radius: 14px; }
.nl-ember h3 { margin: 0; font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 31px; line-height: 1.05; }
.nl-ember p { margin: 0; font-size: 15px; line-height: 1.6; color: #5C4450; }
.nl-ember .products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.nl-ember .products div { background: #F6E7C8; border-radius: 10px; padding: 10px; display: grid; gap: 4px; align-content: space-between; }
.nl-ember .products span { font-size: 12px; line-height: 1.3; }
.nl-ember .products b { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; font-size: 19px; }
.nl-ember .code { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #3A1F2B; color: #FFF8EC; border-radius: 999px; padding: 7px 7px 7px 18px; }
.nl-ember .code span { font-size: 13px; }
.nl-ember .code strong { font-weight: 600; color: #E9B655; }
.nl-ember .code i { font-style: normal; background: #E9B655; color: #3A1F2B; padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 13px; white-space: nowrap; }

/* ---------- Pricing ---------- */
.pricing { padding: 96px 0 88px; display: grid; gap: 36px; scroll-margin-top: 60px; }
.plans { display: grid; gap: 16px; }
.plan {
  border-radius: 28px; padding: 30px 26px; display: grid; gap: 26px; align-content: start;
  transition: transform .35s var(--ease); position: relative;
}
.plan-name { display: grid; gap: 6px; }
.plan-name strong { font-weight: 600; font-size: 21px; }
.plan-name span { font-size: 15px; color: var(--stone); }
.plan-price { display: flex; align-items: baseline; gap: 4px; }
.plan-price b { font-family: var(--display); font-weight: 400; font-size: 64px; line-height: 1; letter-spacing: -.03em; }
.plan-price span { color: var(--stone); }
.plan ul { list-style: none; margin: 0; padding: 22px 0 0; display: grid; gap: 12px; font-size: 15px; border-top: 1px solid var(--line); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: '✓'; color: var(--tomato); }
.plan .btn { width: 100%; }
.plan-starter { background: var(--paper-hi); border: 1px solid var(--line); }
.plan-weekly { background: var(--ink); color: var(--paper); box-shadow: 0 40px 80px -40px rgba(229, 72, 45, .6); }
.plan-weekly .plan-name span, .plan-weekly .plan-price span { color: var(--on-ink-2); }
.plan-weekly ul { border-top-color: #3A342E; }
.plan-weekly .btn { background: var(--tomato); color: var(--ink); }
.plan-weekly .btn:hover { background: var(--paper); color: var(--ink); }
.plan-custom { background: var(--blush); }
.plan-custom ul { border-top-color: #E9C5B8; }
.plan-custom li::before { color: var(--tomato-deep); }
.pricing .section-head .lede { max-width: 600px; }
.plan-billed { margin: -16px 0 0; font-size: 14px; color: var(--stone); min-height: 1.4em; }
.plan-weekly .plan-billed { color: var(--on-ink-2); }

/* Monthly / yearly switch */
.billing {
  display: inline-flex; gap: 4px; padding: 4px; margin-top: 8px; border-radius: 999px;
  background: var(--paper-hi); border: 1px solid var(--line-2);
}
.billing button {
  border: 0; background: transparent; cursor: pointer; border-radius: 999px;
  padding: 10px 18px; font-size: 15px; font-weight: 500; color: var(--ink);
  display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s;
}
.billing button[aria-pressed=true] { background: var(--ink); color: var(--paper); }
.billing em {
  font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--blush); color: var(--tomato-deep); padding: 4px 8px; border-radius: 999px;
}
.billing button[aria-pressed=true] em { background: var(--tomato); color: var(--ink); }
.badge {
  position: absolute; top: 30px; right: 26px; background: var(--tomato); color: var(--ink);
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
}

/* ---------- Final CTA ---------- */
.final { background: var(--tomato); position: relative; overflow: hidden; }
.final-inner { padding: 88px var(--gutter); display: grid; gap: 24px; justify-items: center; text-align: center; position: relative; overflow: hidden; }
.final-ring { position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 1px solid rgba(30, 26, 22, .18); left: -140px; top: -180px; animation: spin 80s linear infinite; }
.final-disc { position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(244, 240, 232, .12); right: -80px; bottom: -130px; }
.final h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 9vw, 112px); line-height: .92; letter-spacing: -.035em; color: var(--ink); position: relative; }
.final p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); max-width: 320px; position: relative; }
.final-actions { display: grid; gap: 12px; width: 100%; max-width: 360px; position: relative; }
.final-actions .btn { font-size: 17px; padding: 18px; }
.final-actions .btn-outline { font-size: 16px; }
.final-actions .btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- Footer ---------- */
.footer { padding: 32px var(--gutter) 48px; display: grid; gap: 14px; justify-items: center; text-align: center; font-size: 14px; color: var(--stone); }
.footer .logo-word { font-size: 24px; color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; }
.footer-links a { font-weight: 500; padding: 8px 0; }

/* ---------- Contact dialog ---------- */
.contact {
  position: fixed; inset: 0; z-index: 100; background: rgba(30, 26, 22, .55);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; animation: fadein .25s ease both;
}
.contact-panel {
  width: 100%; max-width: 520px; max-height: 92vh; overflow: auto; background: var(--paper);
  border-radius: 28px 28px 0 0; animation: sheet .45s cubic-bezier(.2, .8, .2, 1) both;
  display: grid; position: relative;
}
.contact-intro { display: grid; gap: 14px; justify-items: center; }
.contact-side {
  background: var(--tomato); color: var(--ink); padding: 12px 24px 28px; display: grid; gap: 14px;
  justify-items: center; text-align: center; position: relative; overflow: hidden;
}
.contact-side .grab { width: 40px; height: 5px; border-radius: 999px; background: rgba(30, 26, 22, .3); }
.contact-side .logo-word { display: none; }
.contact-title { font-family: var(--display); font-size: 38px; line-height: .95; letter-spacing: -.03em; margin: 14px 0 0; font-weight: 400; }
.contact-side p { margin: 0; font-size: 15px; line-height: 1.5; max-width: 320px; }
.contact-side a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.contact-side a:hover { color: var(--paper); }
.contact-email { display: none; }
.contact-ring { position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 1px solid rgba(30, 26, 22, .2); right: -160px; bottom: -160px; animation: spin 60s linear infinite; display: none; }
.contact-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(30, 26, 22, .3); background: transparent; cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink);
  z-index: 2; transition: background .2s;
}
.contact-close:hover { background: rgba(30, 26, 22, .08); }
.contact-main { padding: 24px var(--gutter) 32px; position: relative; }
.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span, .field legend { font-size: 13px; font-weight: 500; color: var(--text-2); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line-2); background: var(--paper-hi); border-radius: 14px;
  padding: 14px 16px; font-size: 16px; color: var(--ink); outline: none; transition: border-color .2s;
}
.field input:focus, .field textarea:focus { border-color: var(--ink); }
.field textarea { resize: vertical; line-height: 1.5; min-height: 110px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-block; border: 1px solid var(--line-2); background: transparent; color: var(--ink);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: background .2s, color .2s, border-color .2s;
}
.chip input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--tomato); outline-offset: 2px; }
.contact-foot { display: grid; gap: 12px; }
.contact-foot .btn { width: 100%; }
.contact-hint { font-size: 14px; color: var(--stone); }
.contact-hint.is-error { color: var(--tomato-deep); }

.sent { display: grid; gap: 18px; justify-items: start; padding: 12px 0; animation: pop .45s var(--ease) both; }
.sent-tick { width: 60px; height: 60px; border-radius: 50%; background: var(--tomato); color: var(--paper); display: grid; place-items: center; font-size: 26px; }
.sent h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.sent p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text-2); max-width: 360px; overflow-wrap: anywhere; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; translate: 0 32px; transition: opacity .8s var(--ease), translate .8s var(--ease), transform .35s var(--ease), box-shadow .35s; }
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ==========================================================================
   Tablet and up
   ========================================================================== */
@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .hero-sub { max-width: 480px; font-size: 19px; }
  .waitlist { max-width: 540px; }
  .waitlist-form {
    display: flex; gap: 8px; background: var(--paper-hi); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px;
    box-shadow: 0 20px 40px -24px rgba(30, 26, 22, .35);
  }
  .waitlist-form:focus-within { border-color: var(--ink); }
  .waitlist-form input[type=email] { flex: 1; border: 0; background: transparent; padding: 0 20px; text-align: left; border-radius: 999px; }
  .waitlist-form .btn { border-radius: 999px; padding: 16px 28px; font-size: 16px; box-shadow: none; }
  .joined { display: flex; align-items: center; gap: 16px; text-align: left; border-radius: 24px; padding: 20px 24px; }

  .hero-art { max-width: 560px; height: 480px; }

  .slider { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 0 var(--gutter); max-width: var(--max); margin: 0 auto; width: 100%; gap: 20px; }
  .slider > * { flex: none; }
  .dots { display: none; }
  .examples .slider { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 var(--gutter); }

  .field-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .contact-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .contact-foot .btn { width: auto; flex-shrink: 0; }
  .contact { align-items: center; padding: 32px; }
  .contact-panel { border-radius: 32px; animation: pop .45s var(--ease) both; }

  .footer { display: flex; justify-content: space-between; align-items: center; max-width: var(--max); margin: 0 auto; }
}

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 1080px) {
  :root { --gutter: 48px; }

  .nav { position: relative; background: transparent; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; animation: rise .8s var(--ease) both; }
  .nav-inner { padding-top: 28px; padding-bottom: 28px; }
  .logo { gap: 10px; }
  .logo-mark { width: 32px; height: 32px; font-size: 24px; }
  .logo-word { font-size: 26px; }
  .nav-links { display: flex; align-items: center; gap: 36px; font-size: 15px; font-weight: 500; }
  .nav-links .btn { padding: 12px 22px; font-size: 15px; font-weight: 500; }
  .nav-mobile { display: none; }
  .br-lg, .lg-only { display: inline; }

  .hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: center;
    justify-items: stretch; text-align: left; padding-top: 72px; padding-bottom: 120px;
  }
  .hero-copy { gap: 32px; justify-items: start; }
  .hero-tag { border: 0; padding: 0; font-size: 13px; gap: 10px; animation-delay: .1s; }
  .hero-tag::before { width: 8px; height: 8px; }
  .hero h1 { font-size: clamp(96px, 9.6vw, 128px); line-height: .9; animation-delay: .2s; }
  .hero-sub { max-width: 520px; font-size: 21px; animation-delay: .35s; }
  .waitlist { scroll-margin-top: 140px; }

  .hero-art { max-width: none; height: 600px; margin-top: 0; animation-delay: .4s; }
  .art-disc { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
  .art-ring { width: 520px; height: 520px; margin: -260px 0 0 -260px; }
  .card-label { font-size: 11px; }
  .card-a { top: 70px; width: 300px; padding: 22px; gap: 14px; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(30, 26, 22, .45); }
  .card-a .card-title { font-size: 28px; }
  .card-a .ph { height: 110px; border-radius: 10px; }
  .card-b { top: 20px; width: 290px; padding: 22px; gap: 12px; border-radius: 18px; box-shadow: 0 30px 60px -20px rgba(229, 72, 45, .55); }
  .card-b .card-title { font-size: 28px; }
  .bars i { height: 8px; border-radius: 4px; }
  .card-c { margin-left: -180px; bottom: 20px; width: 360px; padding: 24px; gap: 14px; border-radius: 20px; box-shadow: 0 40px 80px -24px rgba(30, 26, 22, .4); }
  .card-c .sched { font-size: 11px; }
  .card-c .card-title { font-size: 32px; line-height: 1.02; letter-spacing: -.01em; }
  .card-c .ph { height: 120px; border-radius: 12px; }
  .card-actions { gap: 8px; }
  .card-actions span { font-size: 14px; padding: 10px; }

  .marquee { padding: 22px 0; transform: rotate(-1.2deg); }
  .marquee-track { font-size: 36px; animation-duration: 40s; }
  .marquee-group, .marquee-group li { gap: 36px; }
  .marquee-group { padding-right: 36px; }
  .marquee-group li::after { width: 10px; height: 10px; }

  .section-head .lede { font-size: 19px; max-width: 480px; }
  .section-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end;
    justify-items: start; text-align: left; max-width: var(--max); margin: 0 auto; width: 100%; padding: 0 var(--gutter);
  }
  .section-split .lede { font-size: 20px; }
  .how { padding: 160px 0 120px; gap: 80px; scroll-margin-top: 20px; }
  .how-head .eyebrow { display: none; }
  .step { padding: 40px; min-height: 380px; gap: 56px; }
  .step:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(30, 26, 22, .35); }
  .step-num { font-size: 120px; }
  .step-body { gap: 12px; }
  .step-body strong { font-size: 24px; }
  .step-body span { font-size: 17px; }
  .slider { gap: 24px; }

  .examples { padding: 140px 0; gap: 72px; scroll-margin-top: 0; }
  .examples .section-split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .examples .section-split .lede { font-size: 18px; max-width: 400px; }
  .examples .slider { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
  .example-caption { font-size: 12px; }
  .mail:hover { transform: translateY(-8px); box-shadow: 0 60px 100px -40px rgba(0, 0, 0, .85); }
  .mail-head { padding: 16px 20px; }
  .avatar { width: 38px; height: 38px; }
  .mail-body { padding: 32px 28px 36px; gap: 20px; }
  .mail-body img { height: 220px; }
  .nl-mill .masthead em { font-size: 42px; }
  .nl-mill h3 { font-size: 36px; }
  .nl-mill p { font-size: 19px; }
  .nl-atelier h3, .nl-ember h3 { font-size: 34px; }
  .nl-ember .products div { padding: 12px; }
  .nl-ember .products span { font-size: 13px; }

  .pricing { padding: 160px 0; gap: 72px; scroll-margin-top: 0; }
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: var(--max); margin: 0 auto; width: 100%; }
  .plan-wide {
    grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
    align-items: center; gap: 40px; padding: 36px 44px;
  }
  .plan-wide ul { grid-template-columns: 1fr 1fr; border-top: 0; padding-top: 0; border-left: 1px solid #E9C5B8; padding-left: 40px; }
  .plan-wide .btn { width: auto; padding: 16px 36px; }
  .plan { padding: 44px; gap: 36px; }
  .plan:hover { transform: translateY(-6px); }
  .plan-name strong { font-size: 22px; }
  .plan-name span { font-size: 16px; }
  .plan-price b { font-size: 80px; }
  .plan ul { gap: 14px; font-size: 16px; padding-top: 28px; }
  .badge { top: 44px; right: 44px; font-size: 11px; }

  .final { background: transparent; max-width: var(--max); margin: 0 auto 48px; padding: 0 var(--gutter); overflow: visible; }
  .final-inner { background: var(--tomato); border-radius: 40px; padding: 120px 80px; gap: 40px; }
  .final-ring { width: 640px; height: 640px; left: -200px; top: -260px; }
  .final-disc { width: 480px; height: 480px; right: -120px; bottom: -220px; }
  .final p { font-size: 20px; max-width: 520px; }
  .final-actions { display: grid; justify-items: center; max-width: none; gap: 40px; }
  .final-actions .btn-ink { padding: 20px 36px; }
  .final-actions .btn-outline { border: 0; padding: 0; background: none; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
  .final-actions .btn-outline:hover { background: none; color: var(--paper); }

  .footer { padding: 32px var(--gutter) 48px; }
  .footer .logo-word { font-size: 22px; }

  .contact-panel { max-width: 880px; max-height: calc(100vh - 64px); grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
  .contact-side { padding: 44px; align-content: space-between; justify-items: start; text-align: left; gap: 40px; }
  .contact-side .grab { display: none; }
  .contact-side .logo-word { display: block; font-size: 24px; position: relative; }
  .contact-ring { display: block; }
  .contact-title { font-size: 52px; margin: 0; }
  .contact-side .contact-intro { gap: 16px; justify-items: start; position: relative; }
  .contact-side .or-email-inline { display: none; }
  .contact-email { display: grid; gap: 4px; position: relative; }
  .contact-email small { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
  .contact-email a { font-size: 17px; text-decoration: none; }
  .contact-close { top: 20px; right: 20px; border-color: var(--line-2); }
  .contact-close:hover { background: var(--line); }
  .contact-main { padding: 44px; }
  .sent { min-height: 420px; align-content: center; }
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes f1 { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-12px); } }
@keyframes f2 { 0%, 100% { transform: rotate(6deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-16px); } }
@keyframes f3 { 0%, 100% { transform: rotate(-1deg) translateY(0); } 50% { transform: rotate(0deg) translateY(-10px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { 0% { opacity: 0; transform: scale(.94); } 100% { opacity: 1; transform: none; } }
@keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }

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