/* notesCraft website. Direction "The product performs" (tasteskill draw, seed 2011032121):
   one face (Switzer), a dark ground taken from the app's editor backdrop, white paper and the
   notebook-cover blue from the app as the colour. Product fragments carry data-ui. */

@font-face { font-family: "Switzer"; src: url("fonts/switzer-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/switzer-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Noto Sans"; src: url("fonts/noto-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  /* The app's own colours (app/lib/theme.dart, tools.dart, new_notebook_sheet.dart). */
  --bg: #101113;          /* editor backdrop, dark mode */
  --surface: #1b1c1f;     /* sidebar, dark mode */
  --surface-2: #26272b;   /* input fill, dark mode */
  --ink: #ecebe6;
  --muted: #a6a8ae;
  --accent: #b8c7db;      /* the rule colour of white paper */
  --accent-strong: #d3deea;
  --accent-ink: #101113;
  --cover: #2f5bea;       /* default notebook cover */
  --paper: #ffffff;
  --light: #efefed;       /* a neutral bone, close to the app surface */
  --light-2: #ecebe7;
  --light-ink: #1d1d1f;
  --light-muted: #5b5d63;

  --font: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --font-note: "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  /* Five sizes. */
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.375rem, 1.05rem + 1.1vw, 2.125rem);   /* 22–34px */
  --step-head: clamp(2.375rem, 1.1rem + 4.4vw, 5rem);        /* 38–80px */
  --step-display: clamp(6.5rem, 1rem + 12vw, 11.5rem);       /* 104–184px */

  --margin: clamp(1rem, 2.8vw, 2.5rem);
  --gutter: clamp(0.75rem, 1.7vw, 1.5rem);
  --section: clamp(6rem, 13vw, 13.5rem);
  --radius: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.5; letter-spacing: -0.01em;
  font-kerning: normal; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 5rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; hyphens: manual; }
p { text-wrap: pretty; }
strong { font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nums { font-variant-numeric: tabular-nums; }
.only-wide { display: none; }
@media (min-width: 48em) { .only-wide { display: inline; } .only-narrow { display: none; } }

.wrap { padding-inline: var(--margin); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }

.head { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; }
.lead { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.02em; }
.small { font-size: var(--step-small); line-height: 1.45; letter-spacing: 0; }
.muted { color: var(--muted); }

.skip { position: absolute; left: var(--margin); top: -4rem; z-index: 50; background: var(--accent); color: var(--accent-ink); padding: 0.6rem 1rem; text-decoration: none; }
.skip:focus { top: 0.75rem; }

/* ---------- controls ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 3rem; padding: 0 1.5rem; border-radius: var(--radius);
  background: var(--accent); color: var(--accent-ink); font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.button--ink { background: var(--light-ink); color: var(--light); }
.link { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 0.22em; text-decoration-thickness: 0.07em; transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) {
  .button:hover { background: var(--accent-strong); }
  .button--ink:hover { background: #000; }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- navigation ---------- */
.nav { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.6rem; font-size: var(--step-small); }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 500; letter-spacing: -0.02em; font-size: var(--step-body); }
.wordmark img { width: 28px; height: 28px; }
.nav__links { display: flex; gap: clamp(0.9rem, 2vw, 2rem); }
.nav__links a { text-decoration: none; color: var(--muted); transition: color var(--t-hover) ease; padding-block: 0.6rem; }
.nav__links a[aria-current="page"], .nav__links a:hover { color: var(--ink); }
@media (max-width: 47.99em) { .nav__links .nav__more { display: none; } }

/* ---------- hero: fragment on a shaped stage ---------- */
.hero { position: relative; min-height: max(100svh, 46rem); overflow: hidden; }
.hero__text { position: relative; z-index: 2; padding-top: clamp(2.5rem, 9vh, 6.5rem); }
.hero h1 { font-size: var(--step-head); line-height: 1.0; letter-spacing: -0.035em; font-weight: 500; }
.hero__lede { margin-top: 1.5rem; max-width: 36ch; }
.hero__actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; }
.hero__store { margin-top: 1.25rem; color: var(--muted); }
.hero__note { margin-top: 1.25rem; max-width: 34ch; color: var(--muted); min-height: 4.5em; }
.hero__note strong { color: var(--ink); }
.stage {
  position: absolute; z-index: 1; right: 0; bottom: 0; top: 36%;
  left: calc(var(--margin) + (100% - 2 * var(--margin) + var(--gutter)) / 12 * 5);
  background: var(--cover);
  clip-path: polygon(5.5rem 0, 100% 0, 100% 100%, 0 100%, 0 5.5rem);
}
.stage__inner { position: absolute; left: 3.5rem; top: 3.5rem; right: 0; bottom: 0; }

@media (max-width: 63.99em) {
  .hero { min-height: auto; padding-bottom: 0; }
  .hero__text { max-width: 40rem; }
  .stage { position: relative; inset: auto; left: auto; margin-top: 2.5rem; height: 42rem; clip-path: polygon(4.5rem 0, 100% 0, 100% 100%, 0 100%, 0 4.5rem); }
  .stage__inner { left: 1rem; top: 3rem; }
}
@media (max-width: 47.99em) {
  .stage { height: 36rem; }
}

/* ---------- the editor fragment (the app's own look) ---------- */
[data-ui].editor {
  --ui-bg: #f7f6f3; --ui-ink: #1d1d1f; --ui-muted: #6b6d73; --ui-sel: #e3e6ef; --ui-line: #dcdad4;
  width: min(44rem, 100%); background: #e9e7e2; color: var(--ui-ink);
  font-family: var(--font); font-size: 14px; letter-spacing: 0; line-height: 1.3;
  border-radius: 12px 0 0 0; overflow: hidden; height: 100%;
  display: flex; flex-direction: column;
}
[data-ui] .editor__bar { background: var(--ui-bg); border-bottom: 1px solid var(--ui-line); padding: 8px 12px 6px; }
[data-ui] .editor__row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
[data-ui] .editor__row + .editor__row { margin-top: 4px; }
[data-ui] .editor__title { font-weight: 500; font-size: 15px; margin-right: auto; padding-left: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12rem; }
[data-ui] .tool { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--ui-ink); transition: background-color 150ms ease; position: relative; }
[data-ui] .tool svg { width: 22px; height: 22px; }
[data-ui] .tool[aria-pressed="true"] { background: var(--ui-sel); }
[data-ui] .tool .tool__mark { position: absolute; left: 11px; right: 11px; bottom: 7px; height: 3px; border-radius: 2px; background: currentColor; }
[data-ui] .tool:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) { [data-ui] .tool:not(:disabled):hover { background: #ecebe7; } [data-ui] .tool[aria-pressed="true"]:hover { background: var(--ui-sel); } }
[data-ui] .sep { width: 1px; height: 24px; background: var(--ui-line); margin-inline: 6px; }
[data-ui] .swatch { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
[data-ui] .swatch span { width: 20px; height: 20px; border-radius: 50%; background: var(--c); transition: transform 150ms ease; }
[data-ui] .swatch[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ui-ink); }
[data-ui] .swatch:active span { transform: scale(0.88); }
[data-ui] .size { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; }
[data-ui] .size span { width: var(--d); height: var(--d); border-radius: 50%; background: var(--ui-ink); }
[data-ui] .size[aria-pressed="true"] { background: var(--ui-sel); }
[data-ui] .papers { display: inline-flex; border: 1px solid #c9c7c1; border-radius: 999px; overflow: hidden; margin-left: auto; }
[data-ui] .papers button { padding: 5px 10px; font-size: 13px; color: var(--ui-ink); transition: background-color 150ms ease; }
[data-ui] .papers button + button { border-left: 1px solid #c9c7c1; }
[data-ui] .papers button[aria-pressed="true"] { background: #dfe5f7; font-weight: 500; }
[data-ui] .editor__desk { position: relative; flex: 1; overflow: hidden; padding: 18px 0 0 22px; }
[data-ui] .sheet { position: relative; width: calc(100% - 22px); max-width: 620px; aspect-ratio: 595 / 842; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
[data-ui] .sheet canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-ui] .sheet canvas.ink { touch-action: none; cursor: crosshair; }
[data-ui] .editor__zoom { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(60,62,68,0.85); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-variant-numeric: tabular-nums; pointer-events: none; }
@media (max-width: 47.99em) {
  [data-ui].editor { border-radius: 10px 0 0 0; }
  [data-ui] .editor__bar { padding: 6px 8px; }
  [data-ui] .editor__title { display: none; }
  [data-ui] .tool { width: 38px; height: 38px; }
  [data-ui] #pad-colors .swatch:nth-child(n+7) { display: none; }
  [data-ui] #pad-colors .sep { display: none; }
  [data-ui] .swatch, [data-ui] .size { width: 28px; height: 28px; }
  [data-ui] .papers { margin-left: 0; margin-top: 2px; }
  [data-ui] .papers button { padding: 5px 8px; }
  [data-ui] .editor__desk { padding: 12px 0 0 12px; }
  [data-ui] .sheet { width: calc(100% - 12px); }
}

/* ---------- sections ---------- */
.section { padding-block: calc(var(--section) / 2); }

/* Showcase: input half, output half */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 90svh; }
.split__in, .split__out { position: relative; padding: clamp(2rem, 6vw, 5rem) var(--margin) 8rem; }
.split__in { background: #0b0c0d; }
.split__out { background: var(--light); color: var(--light-ink); }
.split__in > [data-ui], .split__out > [data-ui] { margin-top: 12vh; }
.split__in > [data-ui] { margin-left: calc((100vw - 2 * var(--margin)) / 12); }
.split__heading { position: absolute; bottom: 2rem; font-size: var(--step-head); line-height: 1; letter-spacing: -0.035em; font-weight: 500; }
.split__in .split__heading { left: var(--margin); }
.split__out .split__heading { right: var(--margin); }
.split__caption { margin-top: 1.75rem; max-width: 30ch; color: var(--light-muted); }
@media (max-width: 47.99em) {
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split__in, .split__out { min-height: 62svh; padding: 1.5rem var(--margin) 6rem; }
  .split__in { padding-top: 2.5rem; }
  .split__in > [data-ui] { margin-left: 0; margin-top: 1rem; }
  .split__out { padding-top: 6.5rem; padding-bottom: 3rem; }
  .split__out > [data-ui] { margin-top: 0; }
  .split__heading { bottom: auto; }
  .split__in .split__heading { bottom: 1.25rem; }
  .split__out .split__heading { top: 1.5rem; }
}

/* New-notebook sheet, dark (app dialog) */
[data-ui].sheetform { width: min(27rem, 100%); background: #1f2024; color: #e7e6e1; border-radius: 22px; padding: 22px 24px 24px; font-size: 14px; letter-spacing: 0; line-height: 1.3; }
[data-ui].sheetform .sheetform__title { font-size: 22px; font-weight: 500; margin-bottom: 14px; letter-spacing: -0.01em; }
[data-ui].sheetform label, [data-ui].sheetform .lbl { display: block; color: #b9b9c0; font-size: 14px; margin: 16px 0 8px; }
[data-ui].sheetform input[type="text"] { width: 100%; background: #2a2b30; border: 0; border-radius: 12px; padding: 13px 14px; font-size: 20px; color: #f1f0eb; }
[data-ui].sheetform input[type="text"]:focus { outline: 2px solid #8fa7f3; outline-offset: 0; }
[data-ui] .covers { display: flex; flex-wrap: wrap; gap: 7px; }
[data-ui] .cover { width: 30px; height: 30px; border-radius: 50%; background: var(--c); display: grid; place-items: center; transition: transform 150ms ease; }
[data-ui] .cover:active { transform: scale(0.9); }
[data-ui] .cover[aria-pressed="true"] { box-shadow: 0 0 0 2px #1f2024, 0 0 0 4px #e7e6e1; }
[data-ui] .cover svg { width: 18px; height: 18px; opacity: 0; color: #fff; }
[data-ui] .cover[aria-pressed="true"] svg { opacity: 1; }
[data-ui] .papers-pick { display: flex; gap: 8px; }
[data-ui] .paperpick { flex: 1; min-width: 0; text-align: center; color: #c9c9cf; font-size: 12.5px; }
[data-ui] .paperpick span { display: block; aspect-ratio: 3 / 4; border-radius: 4px; background-color: #fff; margin-bottom: 6px; border: 2px solid transparent; transition: border-color 150ms ease; }
[data-ui] .paperpick[aria-pressed="true"] { color: #fff; font-weight: 500; }
[data-ui] .paperpick[aria-pressed="true"] span { border-color: #8fa7f3; }
[data-ui] .seg { display: inline-flex; border: 1px solid #55565c; border-radius: 999px; overflow: hidden; }
[data-ui] .seg button { padding: 7px 14px; color: #e7e6e1; font-size: 14px; transition: background-color 150ms ease; }
[data-ui] .seg button + button { border-left: 1px solid #55565c; }
[data-ui] .seg button[aria-pressed="true"] { background: #3a4466; }

/* Library card, light (app library) */
[data-ui].libcard { width: min(15.5rem, 100%); font-size: 14px; letter-spacing: 0; color: #1d1d1f; }
[data-ui] .libcard__cover { position: relative; aspect-ratio: 230 / 324; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.1), 0 6px 16px rgba(0,0,0,0.06); display: flex; }
[data-ui] .libcard__spine { width: 12px; background: var(--cover-c, #2f5bea); transition: background-color 240ms ease; flex: none; }
[data-ui] .libcard__paper { flex: 1; position: relative; transition: background-color 240ms ease; }
[data-ui] .libcard__paper svg { position: absolute; inset: 0; width: 100%; height: 100%; }
[data-ui] .libcard__title { margin-top: 12px; font-weight: 500; font-size: 15px; overflow-wrap: anywhere; }
[data-ui] .libcard__meta { color: #5b5d63; font-size: 13px; margin-top: 2px; }

/* Features: sentences with switches */
.bands { margin-block: 0; }
.band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center; min-height: 20vh; padding: 2rem var(--margin); background: var(--bg); transition: background-color 420ms var(--ease-out), color 420ms var(--ease-out); }
.band__text { grid-column: 1 / 11; }
.band h3 { font-size: var(--step-head); line-height: 1.05; letter-spacing: -0.03em; color: var(--muted); transition: color 420ms var(--ease-out); }
.band__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms var(--ease-out); }
.band__more > p { overflow: hidden; max-width: 58ch; }
.band__more > p > span { display: block; padding-top: 0.9rem; }
.band__switch { grid-column: 11 / 13; justify-self: end; }
.band__media { display: grid; grid-template-columns: minmax(0, 58ch) minmax(0, 22rem); gap: 1.5rem 2.5rem; align-items: start; }
.band__media video { width: 100%; aspect-ratio: 854 / 436; object-fit: cover; background: #0b4f49; margin-top: 0.9rem; }
@media (max-width: 47.99em) { .band__media { grid-template-columns: 1fr; } }
.band.is-on { background: var(--band); color: var(--band-ink); }
.band.is-on h3 { color: var(--band-ink); }
.band.is-on .band__more { grid-template-rows: 1fr; }
@media (max-width: 47.99em) {
  .band { min-height: 8.25rem; grid-template-columns: 1fr auto; padding-block: 1.5rem; }
  .band__text { grid-column: 1; }
  .band__switch { grid-column: 2; }
  .band h3 { font-size: var(--step-lead); }
}

/* A real toggle, sized like the app's Material switch */
[data-ui].switch { --w: 3.25rem; --h: 2rem; position: relative; width: var(--w); height: var(--h); border-radius: 999px; background: #3a3b40; border: 2px solid #76777e; transition: background-color 200ms ease, border-color 200ms ease; flex: none; }
[data-ui].switch::after { content: ""; position: absolute; top: 50%; left: 6px; width: 14px; height: 14px; border-radius: 50%; background: #9a9ba1; transform: translateY(-50%); transition: transform 220ms var(--ease-out), width 220ms var(--ease-out), height 220ms var(--ease-out), background-color 200ms ease; }
[data-ui].switch[aria-checked="true"] { background: #f4f4f1; border-color: #f4f4f1; }
[data-ui].switch[aria-checked="true"]::after { width: 22px; height: 22px; background: #1d1d1f; transform: translate(calc(var(--w) - 22px - 14px), -50%); }
[data-ui].switch::before { content: ""; position: absolute; inset: -6px; }

/* Intro statement with inline frames */
.statement { padding-block: 22vh; }
.statement p { width: min(66%, 52rem); margin-inline: auto; text-align: center; font-size: var(--step-lead); line-height: 1.3; letter-spacing: -0.02em; font-weight: 500; }
.statement .frame { display: inline-block; height: 0.85em; width: 1.3em; vertical-align: -0.1em; margin-inline: 0.12em; border-radius: 0.14em; overflow: hidden; background: var(--surface); }
.statement .frame img { width: 100%; height: 100%; object-fit: cover; }
.statement .frame--wide { width: 1.6em; }
@media (max-width: 47.99em) {
  .statement { padding-block: 6rem; }
  .statement p { width: auto; text-align: left; line-height: 1.3; }
  .statement .frame { height: 0.72em; width: 1.05em; }
}

/* How it works: call and response */
.how__col { width: min(41rem, 100%); margin-left: calc((100% + var(--gutter)) / 12 * 2); }
.how h2 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; margin-bottom: 3.5rem; }
.ex + .ex { margin-top: 5.5rem; }
.ex__say { font-size: var(--step-body); font-weight: 500; letter-spacing: -0.015em; }
.call { margin-top: 1rem; background: var(--surface); padding: 1.25rem; }
.call p { color: var(--muted); }
.resp { margin-top: 1rem; margin-left: 3.5rem; }
.resp__note { margin-top: 0.75rem; color: var(--muted); max-width: 46ch; }
.ex--final .resp { margin-left: 0; width: min(66rem, calc((100vw - 2 * var(--margin)) * 5 / 6 - var(--gutter) / 6 - 16px)); }
@media (max-width: 63.99em) { .ex--final .resp { width: min(66rem, calc(100vw - 2 * var(--margin) - 16px)); } }
.ex--final figure img { width: 100%; aspect-ratio: 1520 / 990; object-fit: cover; object-position: top left; }
pre.code { margin: 0; background: #17181b; color: #d7dbe3; padding: 1rem 1.1rem; overflow: auto; max-height: 22rem; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: var(--step-small); line-height: 1.55; letter-spacing: 0; tab-size: 2; }
pre.code .k { color: #9fb6e6; }
pre.code .s { color: #c7d9a7; }
pre.code .n { color: #e8c38b; }
[data-ui].strip { background: #fff; height: 7.5rem; position: relative; overflow: hidden; }
[data-ui].strip svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 63.99em) { .how__col { margin-left: 0; } }
@media (max-width: 47.99em) { .resp { margin-left: 0; margin-top: 1.5rem; } .ex + .ex { margin-top: 4rem; } }

/* Proof: the import, printed on a page of notesCraft lined paper */
.proof { background: var(--cover); height: clamp(36rem, 82vh, 52rem); overflow: hidden; position: relative; padding-top: clamp(4rem, 9vh, 7rem); }
.proof__card {
  --cw: min(56vw, 46rem); --pad: 3.5rem; --rule: calc(var(--cw) * 24 / 595); --lh: calc(var(--rule) * 2);
  width: var(--cw); margin-inline: auto; aspect-ratio: 5 / 7; transform: rotate(-1.4deg);
  background: var(--paper); color: var(--light-ink); padding: var(--pad) var(--pad) 0;
  text-align: center; display: flex; flex-direction: column;
}
.proof__card h2 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.proof__card figure { margin-block: 1.75rem 0; }
.proof__card figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; }
.proof__ruled {
  flex: 1; margin-inline: calc(var(--pad) * -1); padding: calc(var(--rule) * 0.5) var(--pad) 0;
  background-image: url("img/rule.svg"); background-size: 100% var(--lh); background-repeat: repeat-y;
  background-position: 0 calc(var(--rule) * 0.5);
  line-height: var(--lh); font-size: var(--step-body);
}
@media (min-width: 64em) { .proof__card { --lh: var(--rule); } }
.proof__ruled p + p { margin-top: 0; }
.proof__caption { color: var(--light-muted); font-size: var(--step-small); }
.proof__count { font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 47.99em) {
  .proof { height: 32rem; padding-top: 3rem; }
  .proof__card { --cw: 92vw; --pad: 1.75rem; transform: rotate(-1deg); }
}

/* Pricing: the price, very large */
.pricing { min-height: 80svh; display: grid; align-items: center; }
.pricing__intro { grid-column: 1 / 5; align-self: start; padding-top: 1rem; }
.pricing__intro h2 { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; }
.pricing__intro p { margin-top: 1rem; max-width: 34ch; }
.pricing__figure { grid-column: 6 / 13; }
.period { display: inline-flex; background: var(--surface); padding: 4px; gap: 4px; margin-bottom: 2rem; }
.period button { padding: 0.55rem 1.1rem; color: var(--muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; min-height: 2.75rem; }
.period button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pricing__figure { position: relative; }
.price { display: flex; align-items: flex-start; line-height: 0.85; }
.price__num { font-size: var(--step-display); letter-spacing: -0.06em; font-weight: 500; font-variant-numeric: tabular-nums; }
.price__cur { font-size: var(--step-head); line-height: 1; letter-spacing: -0.03em; margin-top: 0.06em; margin-left: 0.08em; }
.price__per { align-self: flex-end; font-size: var(--step-body); margin-left: 0.5rem; margin-bottom: 0.35rem; line-height: 1.2; letter-spacing: 0; white-space: nowrap; }
.price__icon { position: absolute; top: -1rem; right: 0; width: clamp(5.5rem, 9vw, 8.5rem); transform: rotate(6deg); }
.price__icon img { width: 100%; height: auto; }
.price__equiv { margin-top: 1rem; color: var(--muted); min-height: 1.5em; }
.included { margin-top: 2rem; line-height: 1.75; }
.pricing__cta { margin-top: 2rem; display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
@media (max-width: 63.99em) {
  .pricing__intro, .pricing__figure { grid-column: 1 / -1; }
  .pricing__figure { margin-top: 2.5rem; }
}
@media (max-width: 47.99em) {
  .price__icon { width: 27vw; top: -0.5rem; }
  .pricing__cta .button { width: 100%; }
}

/* FAQ: accordion of filled tiles */
.faq__head { grid-column: 1 / 5; }
.faq__head h2 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.03em; font-weight: 500; position: sticky; top: 6rem; }
.faq__list { grid-column: 5 / 13; display: grid; gap: 8px; }
.tile { background: var(--surface); border-radius: var(--radius); transition: background-color var(--t-ui) ease, color var(--t-ui) ease; }
.tile summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; min-height: 4.5rem; padding: 1.1rem 1.5rem; cursor: pointer; font-size: var(--step-body); font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; }
.tile summary::-webkit-details-marker { display: none; }
.plus { position: relative; width: 16px; height: 16px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; background: currentColor; transition: transform var(--t-ui) var(--ease-out); }
.plus::after { transform: rotate(90deg); }
.tile[open] { background: var(--accent); color: var(--accent-ink); }
.tile[open] .plus::after { transform: rotate(0deg); }
.tile__a { padding: 0 1.5rem 1.5rem; max-width: 52ch; }
.tile__a p + p { margin-top: 0.75em; }
@media (hover: hover) and (pointer: fine) { .tile:not([open]) summary:hover { background: var(--surface-2); } }
@media (max-width: 63.99em) {
  .faq__head, .faq__list { grid-column: 1 / -1; }
  .faq__head h2 { position: static; margin-bottom: 2rem; }
}
@media (max-width: 47.99em) { .tile summary { min-height: 4rem; padding: 1rem 1.25rem; } .tile__a { padding: 0 1.25rem 1.25rem; } .faq__list { gap: 6px; } }

/* Contact: one field */
.contact { padding-top: 12.5rem; padding-bottom: 10rem; }
.contact__col { width: min(32.5rem, 100%); margin-left: calc((100% + var(--gutter)) / 12 * 3); }
.contact__prompt { font-size: var(--step-lead); line-height: 1.25; font-weight: 500; letter-spacing: -0.02em; }
.contact__prompt span { display: block; }
.contact__prompt span:first-child { color: var(--muted); }
.field { position: relative; margin-top: 1.75rem; }
.field textarea { width: 100%; height: 4rem; min-height: 4rem; resize: none; background: var(--ink); color: var(--light-ink); border: 0; border-radius: var(--radius); padding: 1.25rem 4.5rem 1rem 1.25rem; font-size: var(--step-body); line-height: 1.4; overflow: hidden; }
.field textarea::placeholder { color: #55575d; }
.field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cover); } /* taste-skill-ignore: focus ring, not a resting shadow */
.field button { position: absolute; right: 8px; top: 8px; width: 48px; height: 48px; background: var(--bg); color: var(--ink); display: grid; place-items: center; transition: transform var(--t-press) var(--ease-out); }
.field button:active { transform: scale(0.94); }
.field button svg { width: 20px; height: 20px; }
.contact__next { margin-top: 1rem; color: var(--muted); }
.contact__rows { margin-top: 4.5rem; display: grid; gap: 0.6rem; font-size: var(--step-small); }
.contact__rows div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; }
.contact__rows dt { color: var(--muted); }
@media (max-width: 63.99em) { .contact__col { margin-left: 0; } }
@media (max-width: 47.99em) {
  .contact { padding-top: 7rem; padding-bottom: 6rem; }
  .contact__rows div { grid-template-columns: 1fr; gap: 0.15rem; }
  .contact__rows { gap: 1.25rem; }
}

/* Footer: a board of tiles */
.footer { padding: 10px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 8px; }
.ftile { background: var(--surface); padding: 1.5rem; min-height: 13.75rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; text-decoration: none; position: relative; overflow: hidden; }
.ftile--statement { grid-column: 1 / 5; }
.ftile--statement p:first-child { font-size: var(--step-lead); line-height: 1.25; letter-spacing: -0.02em; max-width: 22ch; }
.ftile--nav { grid-column: 5 / 8; }
.ftile--nav ul { display: grid; gap: 0.35rem; padding: 0; list-style: none; }
.ftile--nav a { text-decoration: none; color: var(--ink); transition: color var(--t-hover) ease; }
@media (hover: hover) and (pointer: fine) { .ftile--nav a:hover { color: var(--accent); } }
.ftile--city { grid-column: 8 / 10; color: #fff; background: #2a2219; }
.ftile--city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ftile--city::after { content: ""; position: absolute; inset: 0; background: rgba(10, 10, 12, 0.5); }
.ftile--city > *:not(img) { position: relative; z-index: 1; }
.ftile--mail { grid-column: 10 / 13; justify-content: flex-end; }
.ftile--mail a { font-size: var(--step-body); }
.ftile--mark { grid-column: 1 / 9; min-height: 20rem; background: var(--ink); color: var(--bg); align-items: center; justify-content: center; }
.ftile--mark span { font-size: var(--step-display); letter-spacing: -0.05em; font-weight: 500; line-height: 1; }
.ftile--cta { grid-column: 9 / 13; min-height: 20rem; background: var(--accent); color: var(--accent-ink); transition: background-color var(--t-hover) ease; }
.ftile--cta span { font-size: var(--step-lead); line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; max-width: 12ch; }
.ftile--cta svg { align-self: flex-end; width: 3.5rem; height: 3.5rem; transition: transform var(--t-ui) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .ftile--cta:hover { background: var(--accent-strong); } .ftile--cta:hover svg { transform: translateX(6px); } }
.status-dot { display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; background: #8a8f98; margin-right: 0.45em; vertical-align: 0.05em; }
.status-dot.is-ok { background: #4ade80; }
.status-dot.is-down { background: #f87171; }
.credits { grid-column: 1 / -1; padding: 1rem 0.5rem 0.75rem; color: var(--muted); max-width: 60ch; }
.credits a { color: var(--muted); }
@media (max-width: 63.99em) {
  .footer { grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; }
  .ftile { padding: 1.25rem; min-height: 11rem; }
  .ftile--mark { grid-column: 1 / -1; order: 1; min-height: 10rem; }
  .ftile--cta { grid-column: 1 / -1; order: 2; min-height: 10rem; }
  .ftile--nav { grid-column: 1; order: 3; }
  .ftile--city { grid-column: 2; order: 4; }
  .ftile--mail { grid-column: 1 / -1; order: 5; min-height: 7rem; }
  .ftile--statement { grid-column: 1 / -1; order: 6; min-height: 9rem; }
  .credits { order: 7; }
  .ftile--mark span { font-size: var(--step-head); }
}

/* ---------- subpages: forms and documents ---------- */
.page-head { padding-top: clamp(3rem, 10vh, 7rem); padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.page-head h1 { font-size: var(--step-head); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; max-width: 16ch; }
.page-head p { margin-top: 1.25rem; max-width: 52ch; }

.order { padding-bottom: var(--section); align-items: start; }
.order__aside { grid-column: 1 / 5; position: sticky; top: 2rem; }
.order__form { grid-column: 6 / 13; }
.plans { display: grid; gap: 8px; }
.plan { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; background: var(--surface); padding: 1.25rem 1.5rem; cursor: pointer; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan__dot { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid currentColor; display: grid; place-items: center; }
.plan__dot::after { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; transform: scale(0.4); opacity: 0; transition: transform var(--t-ui) var(--ease-out), opacity var(--t-hover) ease; }
.plan__name { font-weight: 500; }
.plan__name small { display: block; font-weight: 400; font-size: var(--step-small); color: inherit; opacity: 0.8; margin-top: 0.15rem; }
.plan__price { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan:has(input:checked) { background: var(--accent); color: var(--accent-ink); }
.plan:has(input:checked) .plan__dot::after { transform: scale(1); opacity: 1; }
.plan:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.steps { margin-top: 2.5rem; display: grid; gap: 1rem; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.5rem; counter-increment: step; }
.steps li::before { content: counter(step) "."; color: var(--muted); font-variant-numeric: tabular-nums; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.group__title { padding: 0; font-size: var(--step-lead); line-height: 1.2; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.order__form .group, .fields + .group { margin-top: 3rem; }
.order__form > .group:first-child { margin-top: 0; }
.fields { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; }
.f { grid-column: span 6; display: grid; gap: 0.4rem; }
.f--half { grid-column: span 3; }
.f--third { grid-column: span 2; }
.f--twothirds { grid-column: span 4; }
.f label, .f .label { font-size: var(--step-body); color: var(--muted); }
.f label .req { color: var(--ink); }
.f input, .f select, .f textarea { width: 100%; min-height: 3.25rem; background: var(--surface-2); border: 1px solid #3a3b40; border-radius: var(--radius); padding: 0.75rem 0.9rem; color: var(--ink); font-size: var(--step-body); }
.f textarea { min-height: 7rem; resize: vertical; }
.f input::placeholder, .f textarea::placeholder { color: #8e9097; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); } /* taste-skill-ignore: focus ring on a form field */
.f input[aria-invalid="true"], .f select[aria-invalid="true"], .f textarea[aria-invalid="true"] { border-color: #f87171; box-shadow: 0 0 0 1px #f87171; } /* taste-skill-ignore: error state of a form field */
.f .err { color: #fca5a5; font-size: var(--step-small); min-height: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; } /* taste-skill-ignore: off-screen honeypot, not a rule */
.check { display: grid; grid-template-columns: 1.5rem 1fr; gap: 0.75rem; align-items: start; cursor: pointer; }
.check + .check { margin-top: 1.25rem; }
.check input { appearance: none; width: 1.375rem; height: 1.375rem; margin: 0.15rem 0 0; border: 2px solid var(--muted); border-radius: 3px; display: grid; place-items: center; background: transparent; cursor: pointer; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 0.4rem; height: 0.75rem; border: solid var(--accent-ink); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check input[aria-invalid="true"] { border-color: #f87171; }
.check span { line-height: 1.5; }
.summary { margin-top: 3rem; background: var(--surface); padding: 1.5rem; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; }
.summary dt { color: var(--muted); }
.summary dd { font-variant-numeric: tabular-nums; }
.summary__total { font-weight: 500; }
.submit { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.submit .button { min-height: 3.5rem; padding-inline: 2rem; }
.submit .button[disabled] { opacity: 0.6; cursor: progress; }
.form-error { margin-top: 1.25rem; background: #3a1d1f; color: #fecaca; padding: 1rem 1.25rem; }
.form-error:empty { display: none; }
@media (max-width: 63.99em) {
  .order__aside, .order__form { grid-column: 1 / -1; position: static; }
  .order__form { margin-top: 3rem; }
}
@media (max-width: 47.99em) {
  .f--half, .f--third, .f--twothirds { grid-column: span 6; }
  .f--zip { grid-column: span 2; }
  .f--city { grid-column: span 4; }
  .submit .button { width: 100%; }
}

.doc { padding-bottom: var(--section); }
.doc__body { grid-column: 3 / 11; max-width: 46rem; }
.doc__body h2 { font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.02em; font-weight: 500; margin-top: 3.5rem; margin-bottom: 1rem; }
.doc__body h3 { font-size: var(--step-body); font-weight: 500; margin-top: 2rem; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.doc__body p, .doc__body ul, .doc__body ol, .doc__body address { max-width: 64ch; }
.doc__body p + p, .doc__body p + ul, .doc__body ul + p, .doc__body p + ol, .doc__body ol + p { margin-top: 0.9em; }
.doc__body ul, .doc__body ol { padding-left: 1.25rem; }
.doc__body li + li { margin-top: 0.4em; }
.doc__body address { font-style: normal; }
.doc__body .box { background: var(--surface); padding: 1.5rem; margin-top: 1.5rem; }
.doc__meta { margin-top: 4rem; color: var(--muted); }
@media (max-width: 63.99em) { .doc__body { grid-column: 1 / -1; } }

.done { min-height: 60vh; padding-bottom: var(--section); }
.done__nr { margin-top: 2rem; font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.receipt { margin-top: 2rem; background: var(--surface); padding: 1.5rem; max-width: 40rem; }
.receipt dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.5rem; }
.receipt dt { color: var(--muted); }
.receipt dd { overflow-wrap: anywhere; }

/* ---------- motion ---------- */
.lines .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.lines [data-line] { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .lines [data-line] { transform: translateY(108%); animation: line-up 900ms var(--ease-out) forwards; animation-delay: calc(var(--i) * 110ms + 150ms); }
  .js [data-rise] { opacity: 0; transform: translateY(16px); animation: rise 700ms var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 90ms + 520ms); }
  .js .stage { clip-path: polygon(5.5rem 100%, 100% 100%, 100% 100%, 0 100%, 0 100%); animation: stage-in 1100ms var(--ease-in-out) 260ms forwards; }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--d, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .proof__card[data-reveal] { transform: translateY(80px) rotate(-1.4deg); }
  .js .proof__card[data-reveal].is-in { transform: rotate(-1.4deg); }
  @media (max-width: 47.99em) { .js .proof__card[data-reveal].is-in { transform: rotate(-1deg); } }
  .ftile--city img { animation: drift 28s var(--ease-in-out) infinite alternate; }
  @supports (animation-timeline: view()) {
    .ex--final figure img { animation: settle linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 63.99em) {
  .js .stage { clip-path: polygon(4.5rem 100%, 100% 100%, 100% 100%, 0 100%, 0 100%); animation-name: stage-in-narrow; }
}
@keyframes line-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes stage-in { to { clip-path: polygon(5.5rem 0, 100% 0, 100% 100%, 0 100%, 0 5.5rem); } }
@keyframes stage-in-narrow { to { clip-path: polygon(4.5rem 0, 100% 0, 100% 100%, 0 100%, 0 4.5rem); } }
@keyframes drift { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.12) translate(-3%, -2%); } }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
.ex--final figure { overflow: hidden; }

@media print {
  body { background: #fff; color: #000; }
  .nav, .footer, .skip, .no-print { display: none !important; }
  .receipt, .summary { background: #fff; border: 1px solid #999; } /* taste-skill-ignore: print only */
}

[hidden] { display: none !important; }
.band__media { overflow: hidden; min-height: 0; }
.band__media > p { max-width: 58ch; }
.band__media > p > span { display: block; padding-top: 0.9rem; }
.err { color: #fca5a5; font-size: var(--step-small); }
.err:empty { display: none; }
.check-err { display: block; margin: 0.4rem 0 0 2.25rem; }
