/* Sennit site. Colours, type and space come from ../brand/tokens.css; nothing here defines a colour.
   Mobile first (390px). One motion: the cord in the hero draws once. State changes 150ms. */

:root {
  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --band: clamp(4rem, 9vw, 8rem);
  /* The braid, one 48x12 tile of six crossings. Two layers so one strand can carry the accent. */
  --cord-strands: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12'%3E%3Cpath d='M0 6L2.88 4.56M5.12 3.44L8 2L16 2L24 6L26.88 7.44M29.12 8.56L32 10L40 10L48 6M0 10L8 10L16 6L18.88 4.56M21.12 3.44L24 2L32 2L40 6L42.88 7.44M45.12 8.56L48 10' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
  --cord-live: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12'%3E%3Cpath d='M0 2L8 6L10.88 7.44M13.12 8.56L16 10L24 10L32 6L34.88 4.56M37.12 3.44L40 2L48 2' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-size: var(--step-0); line-height: var(--leading-body); overflow-wrap: break-word; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }

a { color: var(--color-accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; transition: text-decoration-thickness 150ms, color 150ms; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--radius); }

h1, h2, h3 { font-weight: 600; line-height: var(--leading-tight); letter-spacing: var(--tracking-tight); text-wrap: balance; }
h1 { font-size: var(--step-5); max-width: 18ch; }
h2 { font-size: var(--step-4); max-width: 20ch; }
h3 { font-size: var(--step-2); }
p, li, dd { max-width: var(--measure); }
.lede { font-size: var(--step-1); line-height: 1.4; max-width: 44ch; margin-top: var(--space-5); }
.muted { color: var(--color-muted); }
.small { font-size: var(--step--1); }
.caveat { font-size: var(--step--1); color: var(--color-text); border-left: 2px solid var(--color-line); padding-left: var(--space-3); margin-top: var(--space-5); }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: var(--space-4); top: -4rem; background: var(--color-surface); color: var(--color-text); padding: var(--space-2) var(--space-4); z-index: 2; }
.skip:focus { top: var(--space-4); }

/* Header: the logo, four items, one button. */
.site-head { border-bottom: var(--border); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-5); padding-block: var(--space-4); }
.brand { color: var(--color-text); display: block; padding-block: var(--space-1); }
.brand svg { width: 96px; height: auto; }
.nav { order: 3; flex-basis: 100%; }
.nav ul { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); }
.nav a { color: var(--color-text); text-decoration: none; display: inline-block; padding-block: var(--space-2); font-size: var(--step--1); border-bottom: 2px solid transparent; transition: border-color 150ms; }
.nav a:hover { border-bottom-color: var(--color-line); }
.nav a[aria-current="page"] { border-bottom-color: var(--color-accent); }
@media (min-width: 52rem) {
  .nav { order: 0; flex-basis: auto; margin-left: auto; }
  .nav a { font-size: var(--step-0); }
}

.btn { display: inline-block; background: var(--color-accent); color: var(--color-accent-ink); text-decoration: none; font-weight: 600; padding: 0.65em 1.1em; border: 1px solid var(--color-accent); border-radius: var(--radius); line-height: 1.2; transition: background-color 150ms, color 150ms; }
.btn:hover { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.btn-quiet { background: transparent; color: var(--color-text); border-color: var(--color-muted); }
.btn-quiet:hover { background: var(--color-text); color: var(--color-bg); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

/* Bands and the cord. Each band opens with the braid, running left to right. */
.band { padding-block: var(--band); }
.band + .band { padding-top: 0; }
.cord { position: relative; height: 18px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.cord::before, .cord::after { content: ""; position: absolute; inset: 0; -webkit-mask: var(--cord-strands) 0 0 / 72px 18px repeat-x; mask: var(--cord-strands) 0 0 / 72px 18px repeat-x; background: var(--color-muted); }
.cord::after { -webkit-mask-image: var(--cord-live); mask-image: var(--cord-live); background: var(--color-accent); }
.sunk { background: var(--color-sunken); }
.sunk.band + .band { padding-top: var(--band); }
.head { display: grid; gap: var(--space-5); margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.head p { font-size: var(--step-1); line-height: 1.4; max-width: 46ch; }

/* Hero */
.hero { padding-top: clamp(3rem, 7vw, 6rem); }
.tagline { font-size: var(--step-1); color: var(--color-muted); margin-bottom: var(--space-5); max-width: none; }
.hero h1 { font-size: var(--step-4); max-width: 24ch; }
.hero .cord { margin: clamp(3rem, 6vw, 5rem) 0 var(--space-5); }
@media (prefers-reduced-motion: no-preference) {
  .hero .cord { animation: draw 1400ms cubic-bezier(0.22, 0.61, 0.36, 1) 200ms both; }
  @keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* Product stills: real screenshots, cropped from the top left. */
.still { margin-top: var(--space-5); }
.still .frame { aspect-ratio: 16 / 10; background: var(--color-sunken); border: var(--border); border-radius: var(--radius); overflow: hidden; }
.still img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.still figcaption { margin-top: var(--space-3); font-size: var(--step--1); color: var(--color-muted); }

/* The four tools */
.tools { display: grid; gap: clamp(4rem, 8vw, 7rem); }
.tool { display: grid; gap: var(--space-5); align-items: start; }
.tool h3 { display: flex; align-items: center; gap: var(--space-3); font-size: var(--step-3); }
.tool h3 svg { width: 28px; height: 28px; color: var(--color-accent); flex: none; }
.tool .pain { font-size: var(--step-1); line-height: 1.35; margin-top: var(--space-4); }
.facts { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.facts dt { font-weight: 600; }
.facts dd { color: var(--color-text); }
.tool .still { margin-top: 0; }
@media (min-width: 60rem) {
  .tool { grid-template-columns: 5fr 7fr; gap: var(--space-7); }
}

/* Review sample, rendered from the product's own fixture */
.split { display: grid; gap: var(--space-5); }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; } }
.pane { background: var(--color-surface); border: var(--border); border-radius: var(--radius); padding: var(--space-5); }
.pane h3 { display: flex; align-items: center; gap: var(--space-2); font-size: var(--step-0); margin-bottom: var(--space-4); }
.pane h3 svg { width: 20px; height: 20px; }
.pane.stay h3 { color: var(--color-stay); }
.pane.leave h3 { color: var(--color-leave); }
.pane .text { white-space: pre-wrap; max-width: none; }
.swap { font-family: var(--font-mono); font-size: 0.92em; text-decoration: underline 2px var(--color-swap); text-underline-offset: 0.2em; }
.unsure { font-family: var(--font-mono); font-size: 0.92em; outline: 1px solid var(--color-unsure); background: var(--color-unsure-bg); padding: 0 0.2em; }
.unsure small { font-family: var(--font-sans); font-size: 0.75em; color: var(--color-unsure); margin-left: 0.3em; }
.route { margin-top: var(--space-5); display: grid; gap: var(--space-2); }
.route li { display: grid; grid-template-columns: 1fr auto; gap: var(--space-4); padding-block: var(--space-2); border-bottom: var(--border); max-width: none; }
.route li span:last-child { font-variant-numeric: tabular-nums; text-align: right; }
.sample-label { margin-top: var(--space-4); font-size: var(--step--1); color: var(--color-muted); }
.loading { color: var(--color-muted); }

/* The monthly page (BRAND.md, "The monthly page") */
.sheet { max-width: 48rem; margin: 0 auto; background: var(--color-surface); border: var(--border); border-radius: var(--radius); padding: var(--space-5); display: flex; flex-direction: column; font-size: var(--step--1); }
@media (min-width: 48rem) { .sheet { padding: var(--space-6); aspect-ratio: 8.5 / 11; } }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--space-3) var(--space-4); padding-bottom: var(--space-4); border-bottom: 1px solid var(--color-text); }
.sheet-firm { display: flex; align-items: center; gap: var(--space-3); }
.sheet-firm svg { width: 24px; height: 24px; flex: none; }
.sheet-firm p { font-size: var(--step-1); font-weight: 600; line-height: 1.2; letter-spacing: var(--tracking-tight); }
.sheet-month { text-align: right; color: var(--color-muted); }
.sheet-month p:first-child { font-size: var(--step-0); }
.sheet-month p + p { font-family: var(--font-mono); }
@media (max-width: 30rem) { .sheet-month { text-align: left; } }
.rows { display: grid; grid-template-columns: minmax(4.5rem, max-content) 1fr; column-gap: var(--space-4); }
.rows > div { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; padding: var(--space-3) 0; border-bottom: var(--border); align-items: start; }
.rows > div:last-child { border-bottom: 0; }
.rows dt { font-size: var(--step-3); font-weight: 600; letter-spacing: var(--tracking-tight); line-height: 0.95; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows dt.word { font-size: var(--step-1); line-height: 1.2; }
.rows dd b { display: block; font-weight: 600; }
.rows dd span { display: block; color: var(--color-muted); }
.rows .ok span { color: var(--color-ok); display: flex; gap: var(--space-2); align-items: flex-start; }
.rows .ok svg { width: 1rem; height: 1rem; margin-top: 0.2em; flex: none; }
.rows .bad { border-left: 2px solid var(--color-bad); }
.rows .bad span { color: var(--color-bad); font-weight: 600; }
@media (max-width: 30rem) { .rows { column-gap: var(--space-3); } .rows dt { font-size: var(--step-2); } }
.misses { padding-top: var(--space-4); border-top: 1px solid var(--color-text); display: grid; gap: var(--space-1); }
.misses b { font-weight: 600; }
.sheet-foot { margin-top: auto; padding-top: var(--space-6); display: grid; gap: var(--space-3); }
.sheet-foot .share { font-weight: 600; }
.fp-line { display: flex; justify-content: space-between; gap: var(--space-4); color: var(--color-muted); max-width: none; }
.sheet .fp { font-family: var(--font-mono); color: var(--color-muted); overflow-wrap: anywhere; word-spacing: 0.25em; }
.sheet-note { max-width: 48rem; margin: var(--space-4) auto 0; font-size: var(--step--1); color: var(--color-muted); }

/* Prose blocks, lists and the "not yet" list */
.cols { display: grid; gap: var(--space-6); }
@media (min-width: 60rem) { .cols { grid-template-columns: 5fr 7fr; gap: var(--space-7); } }
.prose { display: grid; gap: var(--space-4); }
.prose h3 { font-size: var(--step-1); margin-top: var(--space-4); }
.ticks { display: grid; gap: var(--space-3); }
.ticks li { padding-left: var(--space-5); position: relative; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 0.6em; border-top: 2px solid var(--color-accent); }
.ticks.no li::before { border-top-color: var(--color-muted); }
.next { font-weight: 600; }
.sources { font-size: var(--step--1); color: var(--color-muted); }

/* Pricing */
.price-facts { display: grid; gap: var(--space-5); margin-top: var(--space-6); }
@media (min-width: 52rem) { .price-facts { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.price-facts h2 { font-size: var(--step-1); max-width: none; margin-bottom: var(--space-2); }
.calc { display: grid; gap: var(--space-6); }
@media (min-width: 60rem) { .calc { grid-template-columns: 5fr 7fr; gap: var(--space-7); } }
.fields { display: grid; gap: var(--space-4); }
@media (min-width: 30rem) { .fields { grid-template-columns: 1fr 1fr; } }
.fields label { display: grid; gap: var(--space-2); font-weight: 600; }
.fields input { width: 100%; padding: 0.6em 0.7em; background: var(--color-surface); border: 1px solid var(--color-muted); border-radius: var(--radius); font-variant-numeric: tabular-nums; }
.result { background: var(--color-surface); border: var(--border); border-radius: var(--radius); padding: var(--space-5); display: grid; gap: var(--space-3); align-content: start; }
.result .sum { font-size: var(--step-3); font-weight: 600; line-height: 1.05; letter-spacing: var(--tracking-tight); font-variant-numeric: tabular-nums; }

.faq { display: grid; }
.faq details { border-top: var(--border); }
.faq details:last-child { border-bottom: var(--border); }
.faq summary { cursor: pointer; padding-block: var(--space-4); font-weight: 600; font-size: var(--step-1); list-style: none; display: flex; justify-content: space-between; gap: var(--space-4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--color-accent); font-weight: 400; transition: transform 150ms; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: var(--space-5); }

/* Record */
.pre { font-family: var(--font-mono); font-size: var(--step--1); background: var(--color-surface); border: var(--border); border-radius: var(--radius); padding: var(--space-4); white-space: pre-wrap; overflow-wrap: anywhere; max-width: none; }
.steps { display: grid; gap: var(--space-4); list-style: decimal; padding-left: 1.5em; }
.steps li::marker { font-weight: 600; }
.diagram { margin-top: var(--space-6); }
.diagram svg { width: 100%; max-width: 48rem; height: auto; }
.diagram .strand { stroke: var(--color-muted); }
.diagram .live { stroke: var(--color-accent); }
.diagram text { fill: var(--color-muted); font-family: var(--font-sans); font-size: 18px; }
.diagram .rec path { stroke: var(--color-muted); stroke-width: 1; }
.diagram figcaption { margin-top: var(--space-3); font-size: var(--step--1); color: var(--color-muted); }

/* Partners flow: left to right, stacking on phones */
.flow { display: grid; gap: var(--space-3); margin-top: var(--space-6); }
.flow li { background: var(--color-surface); border: var(--border); border-radius: var(--radius); padding: var(--space-4); max-width: none; }
.flow b { display: block; }
.flow span { color: var(--color-muted); font-size: var(--step--1); }
@media (min-width: 60rem) {
  .flow { grid-template-columns: repeat(4, 1fr); gap: 0; }
  .flow li + li { border-left: 0; position: relative; }
  .flow li + li::before { content: ""; position: absolute; left: -1px; top: 50%; width: 9px; height: 9px; background: var(--color-accent); transform: translate(-50%, -50%); }
}
.sum-line { font-size: var(--step-2); font-weight: 600; letter-spacing: var(--tracking-tight); line-height: 1.2; font-variant-numeric: tabular-nums; max-width: 30ch; }

/* Services */
.offers { display: grid; gap: clamp(3rem, 6vw, 5rem); }
.offer { display: grid; gap: var(--space-5); }
.offer-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2) var(--space-5); border-bottom: 1px solid var(--color-text); padding-bottom: var(--space-4); }
.offer-top h2 { font-size: var(--step-3); max-width: none; }
.offer-top p { font-size: var(--step-2); font-weight: 600; font-variant-numeric: tabular-nums; max-width: none; }
.offer-top p span { font-size: var(--step-0); font-weight: 400; color: var(--color-muted); margin-left: var(--space-2); }
.offer dl { display: grid; gap: var(--space-4); }
@media (min-width: 52rem) { .offer dl { grid-template-columns: repeat(3, 1fr); gap: var(--space-6); } }
.offer dt { font-weight: 600; margin-bottom: var(--space-1); }

/* Contact */
.contact-card { display: grid; gap: var(--space-4); margin-top: var(--space-6); }
.contact-card .who { font-size: var(--step-2); font-weight: 600; letter-spacing: var(--tracking-tight); }
.contact-card a.mail { font-size: var(--step-2); }

/* Footer */
.site-foot { border-top: var(--border); padding-block: var(--space-7); font-size: var(--step--1); color: var(--color-muted); }
.foot { display: grid; gap: var(--space-5); }
.foot ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }
.foot a { color: var(--color-text); }
@media (min-width: 52rem) { .foot { grid-template-columns: 1fr auto; align-items: start; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print { .site-head, .site-foot, .cord, .actions { display: none; } }
.after { margin-top: var(--space-6); }
.hero + .band { padding-top: 0; }
.prose { align-content: start; }
.calc-form { display: grid; gap: var(--space-5); }
