/* notslop.studio landing. Language: design/landing/ARTCRAFT_LANGUAGE.md. Tokens: tokens.css (a copy of design/landing/tokens.css).
   Rules: tokens only (no ad-hoc hex), square corners (rounded only on hero orbit cards), one serif-italic word per heading. */
@import url("tokens.css");

/* ---------- theme swap + browser surfaces ---------- */
:root { --gutter: 24px; --rail-w: 40px; }
/* --faint, raised to AA (audit 2026-11-18, F16): tokens.css has #1010146b / #f2f1ee61, 2.7:1 and 3.2-3.3:1 on the page
   surfaces, under the 4.5:1 that its 11 px labels need. These alphas give at least 4.65:1 (light) and 4.6:1 (dark) on --bg,
   --bg-raised and --bg-sunken. Same selectors as tokens.css, so the cascade order (this file after its @import) decides. */
:root { --faint: #10101499; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --faint: #f2f1ee80; } }
:root[data-theme="dark"] { --faint: #f2f1ee80; }
*, *::before, *::after { box-sizing: border-box; }
html, body, .nav, .band, .cell, .btn, .well { transition: background-color .4s, color .4s, border-color .4s; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); scrollbar-color: var(--line-strong) var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } html, body, .nav, .band, .cell, .btn, .well { transition: none; } }
::selection { background: var(--accent); color: var(--invert-fg); }
:root[data-theme="dark"] ::selection { color: var(--ink-strong); }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; caret-color: var(--accent); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img, video { display: block; max-width: 100%; }
p { margin: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--invert-bg); color: var(--invert-fg); text-decoration: none; }
.skip:focus { top: 8px; }
/* visually hidden, still read by screen readers (the marquee's format list); text-transform: none = read as written */
.vh { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; text-transform: none; }

/* ---------- bands, frame, crosshairs ---------- */
/* A band runs full width; its bottom hairline runs past the column into the margins.
   The frame is the 80 rem column between two hairlines; a "+" sits where the band's top line meets them. */
.band { position: relative; border-bottom: 1px solid var(--line); overflow-x: clip; }
/* overflow-x: clip (audit 2026-11-18, G-25): where the frame is full width (below 80 rem), the right "+" cross sat half past
   the screen edge and widened a phone/tablet layout viewport to 772 px at 768. clip, not hidden: no scroll box, y stays visible. */
.band-last { border-bottom: 0; }
.frame { position: relative; }
.band > .frame::before, .band > .frame::after {
  content: "+"; position: absolute; top: 0; z-index: 2; font: 400 13px/1 var(--font-mono); color: var(--line-strong);
  translate: -50% -55%; pointer-events: none; }
.band > .frame::before { left: 0; } .band > .frame::after { left: 100%; }
#top > .frame::before, #top > .frame::after { content: none; }      /* the nav line has no column crossing above the hero */
.frame-flush { border-inline: 1px solid var(--line); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 30; height: var(--nav-h); display: flex; align-items: stretch;
  background: color-mix(in srgb, var(--bg) 95%, transparent); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(8px); }
.nav a { text-decoration: none; }
/* nav and buttons at 12 px, not the 11 px label size (audit 2026-11-18, F16: "nav and CTAs at 12-13 px") */
.nav.label, .btn { font-size: 12px; }
.brand, .brand-foot { display: flex; align-items: center; gap: 8px; color: var(--ink-strong); text-decoration: none; }
.brand { padding: 0 20px; border-right: 1px solid var(--line); }
.brand-word { font: 900 17px/1 var(--font-display); font-stretch: 112%; letter-spacing: -0.02em; text-transform: uppercase; }
/* LOGO MARK: the one place the mark is chosen. Option A = assets/logo/mark.svg, option B = assets/logo/mark-frame.svg.
   Drawn as a mask filled with currentColor, so it takes the text colour in both themes. */
.brand-mark { flex: none; display: inline-block; width: 22px; height: 22px; background: currentColor;
  -webkit-mask: url("assets/logo/mark.svg") center / contain no-repeat; mask: url("assets/logo/mark.svg") center / contain no-repeat; }
.nav .links { display: flex; align-items: center; gap: 4px; padding: 0 16px; flex: 1; min-width: 0; overflow: hidden; }
.nav .links a { padding: 2px 6px; color: var(--muted); white-space: nowrap; }
.nav .links a:hover { color: var(--ink); }
.nav .links a[aria-current] { background: var(--invert-bg); color: var(--invert-fg); }
.nav-login { display: flex; align-items: center; padding: 0 16px; color: var(--muted); border-left: 1px solid var(--line); white-space: nowrap; }
.nav-login:hover { color: var(--ink); }
.theme-toggle { display: grid; place-items: center; width: var(--nav-h); border: 0; border-left: 1px solid var(--line); background: transparent;
  color: var(--ink); cursor: pointer; padding: 0; }
.theme-toggle:hover { background: var(--bg-raised); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.nav .cta { display: flex; align-items: center; padding: 0 20px; background: var(--invert-bg); color: var(--invert-fg); font-weight: 700; white-space: nowrap; }
.nav .cta:hover { background: var(--accent); color: var(--invert-fg); }
:root[data-theme="dark"] .nav .cta:hover { color: var(--ink-strong); }
.nav :focus-visible { outline-offset: -3px; }

/* ---------- hero ---------- */
.hero { border-inline: 1px solid var(--line); padding: 0 var(--gutter) 72px; display: grid; justify-items: center;
  background-image: repeating-linear-gradient(0deg, var(--scanline) 0 1px, transparent 1px 3px); }
.stage { position: relative; width: 100%; height: clamp(340px, 44vw, 580px); display: grid; place-items: center; isolation: isolate; }
.arcs { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.arc { fill: none; stroke-width: 1; vector-effect: non-scaling-stroke; }
.arc.a1 { stroke: var(--accent); opacity: .55; }
.arc.a2 { stroke: var(--accent-ink); opacity: .3; }
.orbit { position: absolute; inset: 0; z-index: 1; }
.card { position: absolute; left: 0; top: 0; width: clamp(54px, 7.2vw, 104px); height: auto; aspect-ratio: 9 / 16; object-fit: cover;
  border-radius: var(--radius-media); background: var(--bg-sunken); will-change: transform, opacity;
  outline: 1px solid var(--line); outline-offset: -1px; transition: filter .6s; }
.card.far { filter: blur(2px) brightness(.7); }
.card.mid { filter: blur(.8px) brightness(.85); }
.card.hide-sm { display: none; }
.wordmark { position: relative; z-index: 3; margin: 0; font: 900 clamp(64px, 14vw, 188px)/.82 var(--font-display);
  font-stretch: 125%; letter-spacing: -0.04em; color: var(--ink-strong); user-select: none; white-space: nowrap; }
.wm-letter { display: inline-block; transition: opacity .7s cubic-bezier(.2,.9,.2,1), translate .7s cubic-bezier(.2,.9,.2,1); }
html[data-intro] .wm-letter { opacity: 0; translate: 0 .08em; }
.hero-copy { display: grid; justify-items: center; gap: 20px; text-align: center; max-width: 720px; position: relative; z-index: 3; }
.hero-copy .lead { margin: 0; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.ctas-left { justify-content: flex-start; }
.meta { color: var(--faint); }
.small { font-size: 14px; color: var(--muted); }
.ul { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }
.ul:hover { background-size: 0 1px; background-position: 100% 100%; transition: background-size .3s var(--ease-roll); }
/* "Pause motion" / "Play motion" (site.js adds it; audit 2026-11-18 L19, WCAG 2.2.2) */
.motion-toggle { font: 400 14px/1.5 var(--font-sans); color: var(--muted); background: none; border: 0; padding: 6px 10px; min-height: 32px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.motion-toggle:hover { color: var(--ink); }
html[data-motion="paused"] .marquee-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .motion-toggle { display: none; } }

/* buttons (tokens.css has the base) */
.btn { transition: background-color .2s, color .2s, border-color .2s; }
.btn-primary:hover { background: var(--accent); color: var(--invert-fg); }
:root[data-theme="dark"] .btn-primary:hover { color: var(--ink-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn .arrow { flex: none; }

/* ---------- marquee ---------- */
.marquee { border-block: 0; color: var(--ink); }
.marquee-track > * { white-space: nowrap; }

/* ---------- section parts ---------- */
.band > .frame:not(.hero):not(.frame-flush):not(.foot):not(.foot-base) { border-inline: 1px solid var(--line); }
.strip { border-top: 0; gap: 8px 16px; flex-wrap: wrap; padding-block: 8px; }
.strip > span:last-child { color: var(--faint); text-align: right; }
.strip-sub { border-top: 1px solid var(--line); }
.statement { padding: 72px var(--gutter) 56px; display: grid; gap: 16px; max-width: 900px; }
.statement .lead { margin: 0; }
.cells { border-top: 1px solid var(--line); }
.strip-sub + .cells { border-top: 0; }
.band > .frame > .cells:last-child { margin-bottom: -1px; }   /* last row sits on the band line, no double hairline */
.cells > * { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cells > *:last-child { }
.c2 { grid-template-columns: repeat(2, 1fr); }
.c3 { grid-template-columns: repeat(3, 1fr); }
.c4 { grid-template-columns: repeat(4, 1fr); }
.c2 > :nth-child(2n), .c3 > :nth-child(3n), .c4 > :nth-child(4n) { border-right: 0; }
.cell { display: flex; flex-direction: column; list-style: none; }
.cell-strip { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.cell-strip > span:first-child { color: var(--ink); }
.cell-body { padding: 24px; display: grid; gap: 10px; align-content: start; }
.cell-body p { color: var(--muted); }
.cell-strip .idx { color: var(--faint); }

/* media wells: real footage only. A cell without honest media is a text cell. */
.well { position: relative; aspect-ratio: 4 / 3; background: var(--bg-sunken); border-bottom: 1px solid var(--line); overflow: hidden; }
.well > img, .well > video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.well-ui > img { object-fit: cover; object-position: 0 0; }
.well-ui.at-bottom > img { object-position: 50% 100%; }
/* a vertical ad shown whole, centred on the sunken well like a phone screen */
.well-phone { background-image: repeating-linear-gradient(0deg, var(--scanline) 0 1px, transparent 1px 3px); }
.well-phone > video { position: absolute; top: 24px; left: 50%; translate: -50% 0; width: auto; height: calc(100% - 48px);
  aspect-ratio: 9 / 16; object-fit: cover; outline: 1px solid var(--line); }

/* proof */
.nums .cell-body { gap: 12px; padding-block: 28px 32px; }
.num { font: 620 clamp(44px, 5vw, 64px)/1 var(--font-display); letter-spacing: -0.035em; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.num .unit { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--muted); margin-left: .08em; letter-spacing: 0; }
.nums .idx { color: var(--faint); }
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); border-bottom: 0; }
.why-h { padding: 40px var(--gutter); font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -0.03em; border-right: 1px solid var(--line); }
.why-list { margin: 0; padding: 0; list-style: none; }
.why-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: baseline; padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
.why-list li:last-child { border-bottom: 0; }
.why-list p { font-size: var(--fs-lead); color: var(--ink); line-height: 1.5; }

/* how it runs */
.steps { margin: 0; padding: 0; }
.steps dl { margin: 6px 0 0; display: grid; gap: 6px; }
.steps dt { color: var(--faint); margin-top: 8px; }
.steps dd { margin: 0; color: var(--muted); }
.steps dt:first-of-type + dd { color: var(--ink); }

/* 01 two things */
.two .cell-body { padding: 28px var(--gutter) 32px; }
.two .cell-body p { max-width: 52ch; }
.two .cell-body p + p { color: var(--ink); }

/* 02 two ways to brief */
.ways .cell-body { padding: 28px var(--gutter) 32px; gap: 14px; }
.keeps { margin: 8px 0 0; display: grid; grid-template-columns: 64px 1fr; gap: 0; border-top: 1px solid var(--line); }
.keeps dt, .keeps dd { padding: 12px 0; border-bottom: 1px solid var(--line); }
.keeps dt { color: var(--faint); }
.keeps dd { margin: 0; color: var(--ink); }
.under { padding: 16px var(--gutter); color: var(--ink); text-align: center; }
.under::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 10px; vertical-align: 1px; }

/* 03 for the strategist: a hairline cell list */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: baseline;
  padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
.rows p { color: var(--muted); }
.rows .idx { color: var(--faint); }

/* 06 integrations */
.ints .cell-strip { align-items: flex-start; }
@media (min-width: 1025px) { .ints .cell-strip { min-height: 56px; } }
.ints .cell-strip > span:first-child { color: var(--ink-strong); }
.ints .cell-body { flex: 1; display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 18px; }
.ints .tag { margin-top: auto; color: var(--accent-ink); }
.ints .tag::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.ints.planned .tag { color: var(--faint); }
.ints.planned .tag::before { background: transparent; outline: 1px solid var(--faint); outline-offset: -1px; }

/* faq */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.faq-h { padding: 40px var(--gutter); border-right: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: grid; grid-template-columns: 40px 1fr 16px; gap: 12px; align-items: center; padding: 20px var(--gutter);
  cursor: pointer; list-style: none; font: 620 19px/1.35 var(--font-display); letter-spacing: -0.015em; color: var(--ink-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--bg-raised); }
.faq summary:focus-visible { outline-offset: -2px; }
.faq .plus { position: relative; width: 12px; height: 12px; }
.faq .plus::before, .faq .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--ink); transition: rotate .25s var(--ease-roll); }
.faq .plus::after { rotate: 90deg; }
.faq details[open] .plus::after { rotate: 0deg; }
.faq details p { padding: 0 var(--gutter) 22px calc(var(--gutter) + 52px); color: var(--muted); max-width: 64ch; }

/* closing */
.close { padding: 104px var(--gutter) 72px; text-align: center; display: grid; justify-items: center; gap: 20px; }
.close-split { border-top: 1px solid var(--line); }
.close-split .cell { border-bottom: 0; }
.close-split .cell-body { padding: 32px var(--gutter) 40px; gap: 14px; }
.close-split .label { color: var(--ink); }
.price-line { color: var(--muted); }

/* footer */
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; border-inline: 1px solid var(--line); }
.foot > div { padding: 32px var(--gutter); border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.foot > div:last-child { border-right: 0; }
.foot a { color: var(--ink); text-decoration: none; width: fit-content; }
.foot a:not(.brand-foot):hover { color: var(--accent-ink); }
.foot .label { color: var(--faint); }
.foot-brand p { color: var(--muted); max-width: 34ch; }
.foot-brand .brand-word { font-size: 24px; }
.foot-brand .brand-mark { width: 30px; height: 30px; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px var(--gutter) 28px; border-inline: 1px solid var(--line); border-top: 1px solid var(--line); color: var(--faint); }

/* ---------- right rail (scroll ruler) ---------- */
.rail { display: none; }
@media (min-width: 1424px) {
  .rail { position: fixed; z-index: 20; top: calc(var(--nav-h) + 40px); bottom: 40px; width: var(--rail-w);
    right: calc((100vw - var(--col-max)) / 4 - var(--rail-w) / 2); display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 14px; pointer-events: none; }
  .rail-digits { display: flex; height: 28px; overflow: hidden; font: 620 24px/28px var(--font-display); letter-spacing: -0.02em; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
  .rd { display: flex; flex-direction: column; transition: translate .28s var(--ease-roll); }
  .rail-ticks { position: relative; width: 14px; background: repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px 12px) 100% 0 / 6px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--line-strong) 0 1px, transparent 1px 60px) 100% 0 / 14px 100% no-repeat; }
  .rail-ticks::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: var(--line); }
  .rail-mark { position: absolute; right: 0; top: 0; width: 18px; height: 2px; background: var(--accent); translate: 0 calc(var(--p, 0) * (var(--h, 0px))); transition: translate .28s var(--ease-roll); }
  .rail-name { writing-mode: vertical-rl; rotate: 180deg; color: var(--muted); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .rd, .rail-mark { transition: none; } }

/* ---------- responsive ---------- */
/* 1340, was 1180: at 12 px the 8 links need about 1320 px (measured 18 Nov; 20 px spare); at 1181-1260 the last link was
   already cut off at 11 px */
@media (max-width: 1340px) {
  .nav .links a:nth-child(n+6) { display: none; }
}
@media (max-width: 1024px) {
  .nav .links { visibility: hidden; padding: 0; }
  .c4 { grid-template-columns: repeat(2, 1fr); }
  .c4 > :nth-child(4n) { border-right: 0; }
  .c4 > :nth-child(2n) { border-right: 0; }
  .c4 > :nth-child(2n+1) { border-right: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .c3 { grid-template-columns: repeat(2, 1fr); }
  .c3 > :nth-child(3n) { border-right: 1px solid var(--line); }
  .c3 > :nth-child(2n) { border-right: 0; }
  .c3 > :last-child:nth-child(odd) { grid-column: 1 / -1; border-right: 0; }
  .rows li { grid-template-columns: 40px 1fr; row-gap: 4px; }
  .rows li p { grid-column: 2; }
  .why, .faq-wrap { grid-template-columns: 1fr; }
  .why-h, .faq-h { border-right: 0; border-bottom: 1px solid var(--line); padding-block: 32px; }
  .foot { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; border-right: 0 !important; border-bottom: 1px solid var(--line); }
}
@media (max-width: 768px) {
  :root { --gutter: 16px; }
  .display { font-size: 44px; }
  .statement { padding: 56px var(--gutter) 40px; }
  .nav-login { display: none; }
}
@media (max-width: 600px) {
  .c2, .c3, .c4 { grid-template-columns: 1fr; }
  .c2 > *, .c3 > *, .c4 > * { border-right: 0 !important; }
  .close-split .cell:first-child { border-bottom: 1px solid var(--line); }
  .ctas .btn { width: 100%; justify-content: center; }
  .ctas { width: 100%; }
  .well { aspect-ratio: 4 / 3; }
  .well-phone { aspect-ratio: 4 / 5; }
  .rows li { grid-template-columns: 32px 1fr; }
  .rows li p { grid-column: 2; }
  .strip > span:last-child { text-align: left; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:nth-child(3) { border-right: 0; }
  .foot > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .display { font-size: 34px; }
  h1 { font-size: 30px; }
  .brand { padding: 0 14px; }
  .nav .cta { padding: 0 14px; }
  .hero { padding-bottom: 56px; }
  .band > .frame::before, .band > .frame::after { content: none; }    /* the column lines sit on the screen edge: no orphan crosses */
  .faq summary { grid-template-columns: 28px 1fr 12px; font-size: 17px; }
  .faq details p { padding-left: calc(var(--gutter) + 40px); }
  .why-list li { grid-template-columns: 28px 1fr; }
  .cell-strip { flex-wrap: wrap; row-gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .wm-letter { transition: none; } html[data-intro] .wm-letter { opacity: 1; translate: none; } }

/* ---------- privacy page ---------- */
.doc { padding: 72px var(--gutter) 96px; }
.doc-inner { max-width: 68ch; display: grid; gap: 18px; }
.doc h2 { font-size: var(--fs-h3); line-height: 1.33; letter-spacing: -0.02em; margin-top: 22px; }
.doc p, .doc li { color: var(--muted); }
.doc ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.doc a { color: var(--ink); text-underline-offset: 3px; }

/* ---------- 02 third way + 03 create your own style (planned, IN BUILD) ---------- */
.tag-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.tag-build, .strip .build { color: var(--accent-ink); }
.tag-build::before, .strip .build::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 8px; vertical-align: 1px;
  outline: 1px solid var(--accent); outline-offset: -1px; background: linear-gradient(90deg, var(--accent) 50%, transparent 50%); }
.tag-line .ul { font-size: 14px; }

.band-style > .frame { background-image: repeating-linear-gradient(0deg, var(--scanline) 0 1px, transparent 1px 3px); }
.statement-big { padding-block: 96px 64px; max-width: 980px; }
.statement-big .display { font-size: clamp(2.5rem, 6vw, 5.25rem); line-height: .98; }
.style-steps { margin: 0; padding: 0; }
.style-steps .cell-body { gap: 6px; }
.style-steps h3 { margin-bottom: 6px; }
.style-steps .cell-body p + p { color: var(--ink); }

.style-demo { margin: 0; padding: 56px var(--gutter) 0; background: var(--bg-sunken); border-top: 0;
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.style-card, .style-chat { background: var(--bg-raised); border: 1px solid var(--line); min-width: 0; }
.style-chat { border-left: 0; display: flex; flex-direction: column; }
.style-card .cell-strip > span:first-child { color: var(--ink-strong); }
.style-rows { margin: 0; }
.style-rows > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.style-rows > div:last-child { border-bottom: 0; }
.style-rows dt { color: var(--faint); }
.style-rows dd { margin: 0; font: 620 clamp(17px, 1.6vw, 21px)/1.3 var(--font-display); letter-spacing: -0.015em; color: var(--ink-strong); }
.style-rows .changed { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.style-rows .changed dt { color: var(--accent-ink); }
.style-rows .changed dt::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.chat { margin: 0; padding: 20px; list-style: none; display: grid; gap: 14px; align-content: start; flex: 1; }
.msg { max-width: 88%; display: grid; gap: 6px; }
.msg p { padding: 12px 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.5; }
.msg .who { color: var(--faint); }
.msg.you { justify-self: end; text-align: right; }
.msg.you p { background: var(--invert-bg); color: var(--invert-fg); border-color: var(--invert-bg); text-align: left; }
.rule-note { color: var(--accent-ink); }
.rule-note::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.style-demo figcaption { grid-column: 1 / -1; padding: 14px 0 18px; color: var(--faint); text-align: right; }

@media (max-width: 900px) {
  .style-demo { grid-template-columns: 1fr; padding-top: 40px; }
  .style-chat { border-left: 1px solid var(--line); border-top: 0; }
}
@media (max-width: 600px) {
  .style-rows > div { grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; }
  .statement-big { padding-block: 64px 44px; }
  .msg { max-width: 94%; }
  .style-demo figcaption { text-align: left; }
}

/* ---------- small-screen menu (site-6, CONFIG.MOBILE_MENU in site.js; an unreviewed proposal for open question 30) ----------
   site.js adds .menu-toggle and .menu-sheet only when the switch is on. Every selector here names one of them, so with the
   switch off no rule matches anything (the free-tools pages, which load this file without site.js, are untouched too).
   No transition anywhere: the sheet appears and goes at once, so reduced motion needs nothing extra.
   The sheet sits INSIDE .nav, whose backdrop-filter makes the nav the containing block of fixed children: `top: var(--nav-h)`
   is measured from the nav, not the viewport. That is right only while .nav stays sticky at top 0 and full width; if that
   changes (a banner above it, another offset or width), move the sheet to a sibling after the nav in site.js. */
.menu-toggle { display: none; place-items: center; width: var(--nav-h); border: 0; border-left: 1px solid var(--line); background: transparent;
  color: var(--ink); cursor: pointer; padding: 0; }
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: var(--bg-raised); }
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-menu { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: block; }
.menu-sheet { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 31; display: flex; flex-direction: column;
  max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-bottom: 1px solid var(--line); transition: none; }
.menu-sheet[hidden] { display: none; }
.menu-sheet a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--gutter); color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
.menu-sheet a:last-child { border-bottom: 0; }
.menu-sheet a:hover { background: var(--bg-raised); }
.menu-sheet a[aria-current] { background: var(--invert-bg); color: var(--invert-fg); }
.menu-sheet a:focus-visible { outline-offset: -3px; }
@media (max-width: 1024px) { .menu-toggle { display: grid; } }
/* ---------- end small-screen menu ---------- */

/* ---------- site_next: parts of the 13-part structure (docs/SERVICE_AUDIT_2026-11-18). Tokens only, square corners. ---------- */
/* the work: ten spec-ad tiles (placeholders for now), phone frames on the sunken well */
.gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.gallery > .cell { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-raised); min-width: 0; }
.gallery > :nth-child(5n) { border-right: 0; }
.gallery .well { aspect-ratio: 3 / 4; border-bottom: 0; }
/* until the spec ads exist: an empty sunken well with its label, no footage (audit Q2: no client-job clips here) */
.gallery .well-empty { display: grid; place-items: center; color: var(--faint); }
.gallery:focus-visible { outline-offset: -2px; }

/* what you get: the price block */
.price .cell { border-bottom: 0; }
.price .cell-body { padding: 28px var(--gutter) 32px; gap: 12px; }
.price .price-big { font: 620 clamp(22px, 2.4vw, 30px)/1.2 var(--font-display); letter-spacing: -0.02em; color: var(--ink-strong); }
.price .cell-body p:not(.price-big) { color: var(--ink); max-width: 52ch; }

/* compared with your options: a hairline table, scrolled inside its own box on narrow screens (never the page) */
.compare-wrap { overflow-x: auto; border-top: 1px solid var(--line); background: var(--bg-raised); overscroll-behavior-x: contain; }
.compare-wrap:focus-visible { outline-offset: -2px; }
.compare { width: 100%; min-width: 760px; border-collapse: collapse; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.compare tr > :last-child { border-right: 0; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare tbody th { font: 620 16px/1.35 var(--font-display); letter-spacing: -0.01em; color: var(--ink-strong); }
.compare td { color: var(--muted); }
.compare .us { background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--ink); }
.compare thead .us { color: var(--accent-ink); }

@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; overscroll-behavior-x: contain; }
}
@media (max-width: 768px) {
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(180px, 46%); scroll-snap-type: x mandatory; }
  .gallery > .cell { scroll-snap-align: start; }
  .gallery > :nth-child(5n) { border-right: 1px solid var(--line); }
  .gallery > :last-child { border-right: 0; }
}
@media (max-width: 600px) {
  .price .cell:first-child { border-bottom: 1px solid var(--line); }
}
/* ---------- end site_next ---------- */

/* ---------- 26 Nov 2026 (Jacob): the saving calculator and the portfolio. Tokens only, square corners. ---------- */
/* saving calculator: minutes in on the left, the three sums on the right */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.calc-in { padding: 28px var(--gutter) 32px; border-right: 1px solid var(--line); display: grid; gap: 14px; align-content: start; }
.calc-label { font: 620 18px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink-strong); }
.calc-field { display: flex; align-items: center; border: 1px solid var(--line-strong); background: var(--bg-raised); }
.calc-field:focus-within { border-color: var(--accent); }
.calc-num { flex: 1; min-width: 0; width: 100%; padding: 10px 16px; border: 0; background: transparent; color: var(--ink-strong);
  font: 620 clamp(28px, 3vw, 40px)/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.calc-num:focus-visible { outline: 0; }                      /* the field's border carries the focus (focus-within above) */
.calc-unit { padding: 0 16px; color: var(--muted); white-space: nowrap; }
.calc-range { width: 100%; height: 28px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.calc-out { margin: 0; display: grid; align-content: start; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; align-items: center; padding: 20px var(--gutter); border-bottom: 1px solid var(--line); }
.calc-row:last-child { border-bottom: 0; }
.calc-row dt { display: grid; gap: 4px; }
.calc-what { font: 620 18px/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.calc-rate { color: var(--muted); }
.calc-row dd { margin: 0; text-align: right; }
.calc-big { font: 620 clamp(28px, 3.2vw, 42px)/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.calc-per { font-size: 14px; color: var(--muted); }
.calc-save { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.calc-save .calc-big { color: var(--accent-ink); }
/* the weekly price bands (27 Nov 2026) */
.price-tiers { list-style: none; margin: 4px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 52ch; }
.price-tiers li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-variant-numeric: tabular-nums; }
.price-tiers .label { color: var(--muted); }
.calc-tier-name { font: 620 16px/1.35 var(--font-display); color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.calc-gen { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.calc-year { display: block; margin-top: 8px; font: 620 18px/1.3 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 768px) {
  .calc { grid-template-columns: 1fr; }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .calc-row { grid-template-columns: 1fr; }
  .calc-row dd { text-align: left; }
}

/* the portfolio (written by portfolio.py): 9:16 poster links that become players on a click */
/* every item carries the same right line (equal widths, so equal 9:16 heights); the grid runs 1 px under the frame's own line */
.pf-grid { margin: 0 -1px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.pf-item { display: flex; flex-direction: column; min-width: 0; background: var(--bg-raised); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pf-play, .pf-video { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; background: var(--bg-sunken); }
.pf-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pf-play:focus-visible, .pf-video:focus-visible { outline-offset: -3px; }
.pf-btn { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--invert-bg); color: var(--invert-fg); transition: background-color .2s; }
.pf-play:hover .pf-btn { background: var(--accent); }
.pf-video { object-fit: contain; }
.pf-meta { display: grid; gap: 4px; padding: 12px 16px 16px; }
.pf-title { font: 620 16px/1.35 var(--font-display); letter-spacing: -0.01em; color: var(--ink-strong); }
.pf-sub { color: var(--muted); }
@media (max-width: 1024px) {
  .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-meta { padding: 10px 12px 12px; }
  .pf-title { font-size: 14px; }
  .pf-btn { left: 8px; bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) { .pf-btn { transition: none; } }
/* ---------- end 26 Nov ---------- */
