/* PageWaffle. Plain CSS, no build step. Tokens first; everything below uses them. */
:root {
  --bg: #f4f5f3;
  --surface: #e6e9e5;
  --ink: #14244a;        /* blueberry */
  --muted: #4c5878;
  --accent: #ffc52b;     /* butter */
  --accent-ink: #14244a;
  --berry: #c9283a;      /* strawberry, used once: the placeholder marks */

  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(1.625rem, 1rem + 2.1vw, 2.75rem);
  --step-display: clamp(3.25rem, 11vw, 11rem);

  --m: clamp(16px, 2.4vw, 32px);
  --gap-section: clamp(88px, 12vw, 180px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--text); font-size: var(--step-body); line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol, figure, table { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.display, h1, h2, h3 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.025em; line-height: 0.95;
  font-variation-settings: "wdth" 88;
}

/* Buttons: square, flat, one fill. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 26px; background: var(--accent); color: var(--accent-ink);
  font: 600 var(--step-body)/1 var(--text); text-decoration: none; border: 0; cursor: pointer;
  transition: transform 180ms var(--ease), background-color 180ms var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #ffd45c; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: #20366b; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--m);
}
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 800 1.375rem/1 var(--display); letter-spacing: -0.03em; }
.mark svg { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); font-size: var(--step-small); font-weight: 500; }
.top nav a:not(.btn) { text-decoration: none; padding: 8px 0; transition: opacity 160ms; }
.top nav a:not(.btn):hover { text-decoration: underline; }
.top .btn { min-height: 42px; padding: 0 18px; font-size: var(--step-small); }

/* Hero: the sentence split by a frame */
.hero { min-height: calc(100svh - 66px); display: grid; grid-template-rows: 1fr auto; padding: 0 var(--m) var(--m); }
.hero h1 {
  align-self: center; display: grid; grid-template-columns: 1fr minmax(0, 31vw) 1fr; align-items: center;
  gap: clamp(16px, 2.2vw, 36px); font-size: clamp(2.5rem, 5.3vw, 6.25rem); white-space: nowrap;
}
.hero h1 .b { text-align: right; }
.frame { overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface); }
.frame img { width: 100%; height: 100%; object-fit: cover; animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.16) translate(-2%, 2%); } }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.hero-foot p { max-width: 34ch; font-size: var(--step-lead); line-height: 1.35; }

/* Who it's for: statements on colour fields */
.field { min-height: 72svh; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto 1fr;
  gap: 0 var(--m); padding: clamp(28px, 4vw, 56px) var(--m); }
.field p { grid-column: 8 / 13; max-width: 32ch; font-size: var(--step-lead); line-height: 1.4; }
.field h2, .field h3 { grid-column: 1 / 13; align-self: end; font-size: var(--step-display); }
.field:nth-of-type(even) p { grid-column: 2 / 7; }
.field:nth-of-type(even) h3 { text-align: right; }
.f-butter { background: var(--accent); color: var(--accent-ink); }
.f-ink { background: var(--ink); color: var(--bg); }
.f-paper { background: var(--surface); }

/* What you get */
.get { padding: var(--gap-section) var(--m); display: grid; grid-template-columns: repeat(12, 1fr); gap: 56px var(--m); }
.get h2 { grid-column: 1 / 13; font-size: var(--step-display); }
.get-list { grid-column: 1 / 6; display: grid; gap: 18px; align-content: start; }
.get-list li { padding-left: 34px; position: relative; }
.get-list li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 16px; height: 16px; background: var(--accent); }
.get-list strong { font-weight: 600; }
.maker { grid-column: 7 / 13; }
.maker fieldset { border: 0; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.maker legend { float: left; margin-right: 8px; padding: 0; font-weight: 600; min-width: 9.5ch; line-height: 44px; }
.maker label { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  background: var(--surface); font-size: var(--step-small); font-weight: 500; cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease), transform 160ms var(--ease); }
.maker label:hover { transform: translateY(-2px); }
.maker input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.maker label:has(input:checked) { background: var(--ink); color: var(--bg); }
.maker label:has(input:focus-visible) { outline: 3px solid var(--berry); outline-offset: 3px; }

/* The sample page: six pockets. A real interface fragment, so it keeps its own colours. */
.sample { --s-bg: #ffffff; --s-pocket: #eef1f4; --s-ink: #17202b; --s-accent: #1f6feb; --s-accent-ink: #ffffff;
  margin-top: 22px; background: var(--s-bg); color: var(--s-ink); padding: clamp(10px, 1.4vw, 18px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(8px, 1vw, 14px);
  font-size: var(--step-small); line-height: 1.45; transition: background-color 320ms var(--ease), color 320ms var(--ease); }
.maker:has(#look-dark:checked) .sample { --s-bg: #101214; --s-pocket: #1d2126; --s-ink: #f3f4f5; --s-accent: #f6e15a; --s-accent-ink: #101214; }
.maker:has(#look-warm:checked) .sample { --s-bg: #f3ece2; --s-pocket: #e6dccd; --s-ink: #2b2118; --s-accent: #2f6b4f; --s-accent-ink: #ffffff; }
.pocket { background: var(--s-pocket); padding: clamp(14px, 1.6vw, 24px); min-height: clamp(150px, 15vw, 210px);
  display: flex; flex-direction: column; gap: 8px; transition: background-color 320ms var(--ease); }
.pocket b { font: 800 var(--step-lead)/1.05 var(--display); letter-spacing: -0.02em; }
.pocket .go { margin-top: auto; align-self: flex-start; background: var(--s-accent); color: var(--s-accent-ink);
  padding: 9px 14px; font-weight: 600; transition: background-color 320ms var(--ease), color 320ms var(--ease); }
.go span { display: none; }
.maker:has(#do-call:checked) .go .call, .maker:has(#do-email:checked) .go .email,
.maker:has(#do-book:checked) .go .book, .maker:has(#do-form:checked) .go .form { display: inline; }
.sample-note { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }

/* How it works: one verb at a time */
.steps li { display: grid; grid-template-columns: 1fr 1fr; min-height: 135svh; }
.steps li > div { position: sticky; top: 66px; align-self: start; height: calc(100svh - 66px); padding: clamp(28px, 4vw, 56px) var(--m); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.steps h3 { font-size: var(--step-display); }
.steps p { max-width: 36ch; font-size: var(--step-lead); line-height: 1.4; }
.steps figure { position: relative; overflow: hidden; }
.steps figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.steps li:nth-child(even) figure { order: -1; }
.steps .wide { grid-template-columns: 1fr; min-height: 0; }
.steps .wide > div { position: static; height: 80svh; }

/* Price */
.price { background: var(--surface); padding: var(--gap-section) var(--m); }
.price h2 { font-size: var(--step-display); }
.price h2 .tag { display: inline-block; background: var(--accent); padding: 0 0.15em; }
.price-row { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 32px var(--m); align-items: start; }
.price-row > p { grid-column: 1 / 7; font-size: var(--step-lead); line-height: 1.4; }
.price-act { grid-column: 9 / 13; display: grid; gap: 14px; justify-items: start; }
.hold { background: var(--bg); padding: 16px 18px; font-size: var(--step-small); }
.hold strong { color: var(--berry); }
.notin { margin-top: clamp(56px, 7vw, 96px); width: 100%; border-collapse: collapse; }
.notin caption { text-align: left; font: 800 var(--step-head)/1.05 var(--display); letter-spacing: -0.03em; padding-bottom: 28px; }
.notin th, .notin td { text-align: left; vertical-align: top; padding: 16px 18px; font-weight: 400; }
.notin thead th { font-weight: 600; }
.notin tbody tr:nth-child(odd) { background: var(--bg); }
.notin td:first-child, .notin th:first-child { width: 48%; }

/* Questions */
.faq { padding: var(--gap-section) var(--m); display: grid; gap: clamp(56px, 6vw, 88px); }
.faq > h2, .faq h3 { font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.03em; }
.faq > h2 { color: var(--muted); }
.qa { display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px var(--m); }
.qa h3 { grid-column: 1 / 7; }
.qa p { grid-column: 8 / 13; max-width: 44ch; }

/* Close and footer */
.close { background: var(--ink); color: var(--bg); min-height: 88svh; padding: clamp(40px, 6vw, 88px) var(--m) 40px;
  display: grid; grid-template-rows: 1fr auto; }
.close h2 { font-size: var(--step-display); }
.close-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.close-row p { max-width: 36ch; font-size: var(--step-lead); line-height: 1.4; }
.foot { background: var(--accent); color: var(--accent-ink); min-height: 80svh; padding: 40px var(--m) 28px;
  display: grid; grid-template-rows: auto 1fr auto; gap: 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 24px; font-size: var(--step-small); }
.foot-top p { max-width: 46ch; }
.foot .call { align-self: end; font: 800 var(--step-display)/0.95 var(--display); letter-spacing: -0.035em;
  font-variation-settings: "wdth" 88; text-decoration: none; display: block; transition: transform 240ms var(--ease); }
.foot .call:hover { transform: translateX(10px); }
.foot-meta { display: grid; gap: 10px; font-size: var(--step-small); }
.foot-meta .credits { max-width: 110ch; }

/* Motion: entrances. Content is visible without script. */
.js [data-r] { opacity: 0; transform: translateY(26px); transition: opacity 620ms var(--ease), transform 620ms var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js [data-r].in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .top nav a:not(.btn) { display: none; }
  .hero { min-height: 0; padding-top: 20px; gap: 28px; }
  .hero h1 { grid-template-columns: 1fr; font-size: 14.5vw; gap: 14px; }
  .hero-foot { flex-direction: column; align-items: stretch; gap: 20px; }
  .hero-foot .btn { width: 100%; }
  .field { min-height: 62svh; padding: 28px var(--m); }
  .field p, .field:nth-of-type(even) p { grid-column: 1 / 13; max-width: 28ch; }
  .field:nth-of-type(even) p { justify-self: end; text-align: right; }
  .field:nth-of-type(even) h3 { text-align: left; }
  .get { gap: 36px var(--m); }
  .get-list, .maker { grid-column: 1 / 13; }
  .maker { order: 2; }
  .maker legend { float: none; width: 100%; line-height: 1.4; margin-bottom: 4px; }
  .steps li { grid-template-columns: 1fr; min-height: 0; }
  .steps li > div, .steps .wide > div { position: static; height: auto; min-height: 58svh; }
  .steps figure, .steps li:nth-child(even) figure { order: -1; height: 42svh; min-height: 0; }
  .steps h3 { font-size: 24vw; }
  .price-row > p, .price-act { grid-column: 1 / 13; }
  .price-act .btn { width: 100%; }
  .notin thead { display: none; }
  .notin tr { display: block; padding: 14px 16px; }
  .notin th, .notin td { display: block; width: auto !important; padding: 0; }
  .notin tbody th { font-weight: 600; margin-bottom: 4px; }
  .qa h3, .qa p { grid-column: 1 / 13; }
  .close { min-height: 80svh; }
  .close-row { flex-direction: column; align-items: stretch; }
  .close-row .btn { width: 100%; min-height: 56px; }
  .foot-top { flex-direction: column; }
  .foot .call { font-size: 13vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame img { animation: none; }
  .js [data-r] { transform: none; transition: opacity 300ms; }
  .btn, .maker label, .foot .call { transition: none; }
}
