/* © 2026 LFM Labs. All rights reserved. */
/* site.css: the Paper site past the intro (docs/PAPER-SITE-PLAN.md). Colours, fonts,
   radii and shadows come only from the tokens on :root in index.html, so each look
   (looks-mock.css) carries through by setting its own ink and paper. */

/* ------------------------------------------------------------ page mode */
/* Before the CTA the page is one screen (the intro). After it, the page scrolls on:
   the story stays where it was, in flow, and the journey follows. */
html.site-open { scrollbar-gutter: stable; }
html.site-open, html.site-open body { height: auto; }
html.site-open { overflow-x: clip; }
html.site-open body { overflow: visible; }
html.site-open .stage { height: auto; }
html.site-open .story { position: relative; inset: auto; min-height: 100vh; min-height: 100svh; overflow: visible; }
html.site-open .motto { opacity: 0; pointer-events: none; } /* it moves into the footer */
/* The wordmark stays put; on a scrolling page it sits on a frosted chip so text passes under it cleanly. */
html.site-open .brand { left: var(--badge-x); width: var(--badge-w); box-sizing: border-box; background: var(--surface); -webkit-backdrop-filter: blur(var(--glass-blur)); backdrop-filter: blur(var(--glass-blur)); padding: 6px 10px 6px 6px; border-radius: var(--radius-pill); }
html.sheet-open { overflow: hidden; }
html:not(.js) body { overflow: auto; }
.noscript { max-width: 34rem; margin: 2rem auto; padding: 0 16px; text-align: center; color: var(--ink-2); font: 500 15px/1.5 var(--type); }
.noscript a { color: var(--ink); }

.site { position: relative; color: var(--ink); font: 500 16px/1.5 var(--type); }
.site[hidden] { display: none; }
.site-sec {
  box-sizing: border-box;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(72px, 12vh, 140px) clamp(20px, 6vw, 72px);
}
.site-sec[hidden] { display: none; }
.sec-head { max-width: 40rem; margin: 0 0 clamp(28px, 5vh, 48px); }
.sec-eyebrow {
  margin: 0 0 18px; color: var(--ink-2);
  font: 500 11px/1.2 var(--brand-type); letter-spacing: 0.32em; text-transform: uppercase;
}
.sec-h { margin: 0; font: 300 clamp(32px, 4.4vw, 60px)/1.06 var(--type); letter-spacing: -0.025em; outline: none; }
.sec-sub { margin: 16px 0 0; color: var(--ink-2); font: 500 clamp(16px, 1.4vw, 18px)/1.45 var(--type); }
.sub-h { margin: 0 0 14px; font: 500 20px/1.25 var(--type); letter-spacing: -0.01em; }

/* ---------------------------------------------------------- controls */
/* The glass pill (.choice in index.html) outside the four choices: no rise-in. */
.site .choice, .sheet .choice { opacity: 1; transform: none; }
.site-pill.small { padding: 11px 18px; font-size: 14px; }
.site-pill[aria-pressed="true"] { --hov: 1; outline: 2px solid var(--ink); outline-offset: 3px; }
.site-pay {
  font: 600 15px/1.2 var(--type);
  padding: 14px 24px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--on-ink);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  translate: 0 0;
  transition: translate 300ms var(--ease-lfm-out), box-shadow 300ms var(--ease-lfm-out);
}
.site-pay:hover, .site-pay:focus-visible { translate: 0 -2px; }
.site-pay:active { translate: 0 0; }
.site-pay:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* The real sends (the brief, the referral join) are mailto: links dressed as buttons. */
a.site-pay, a.site-pill { display: inline-flex; align-items: center; box-sizing: border-box; text-decoration: none; } /* a link sizes like a button (min-height includes the padding) */
.sent-how { margin: 0 0 16px; }
.sent-copy { display: grid; gap: 10px; margin: 0 0 18px; }
.sent-text { border-radius: 14px; resize: vertical; font: 500 14px/1.45 var(--type); white-space: pre-wrap; }
.sent-copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sent-copied { color: var(--ink-2); font-size: 14px; }
.refer-join-note { margin: 0 0 4px; color: var(--ink-2); font-size: 15px; }
.site-link {
  padding: 4px 0; border: 0; background: none; cursor: pointer;
  color: var(--ink); font: 500 15px/1.4 var(--type);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--rule-strong);
}
.site-link:hover { text-decoration-color: var(--ink); }
.site-link:focus-visible, .faq-q:focus-visible, .inc-more:focus-visible, .price-btn:focus-visible,
.foot-links a:focus-visible, .foot-brand:focus-visible, .sheet-close:focus-visible {
  outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px;
}
.site-field {
  box-sizing: border-box; width: 100%; min-width: 0; margin: 0;
  padding: 14px 20px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: 500 16px/1.2 var(--type); /* 16 px: no zoom on iOS focus */
}
.site-field::placeholder { color: var(--quiet); opacity: 1; }
.site-field:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.site-field[aria-invalid="true"] { border-color: var(--danger); }
.site-fieldrow { display: grid; gap: 6px; margin: 0 0 16px; }
.site-fieldrow label { font: 500 14px/1.3 var(--type); color: var(--ink-2); }
.site-fieldrow.inline { margin-top: 22px; max-width: 22rem; }
.field-hint { margin: -2px 0 2px; color: var(--ink-2); font-size: 13px; }
.field-err { margin: 0; min-height: 0; color: var(--danger); font: 500 14px/1.35 var(--type); }
.field-err:empty { display: none; }
.inline-form { display: flex; flex-wrap: wrap; gap: 12px; max-width: 40rem; }
.inline-form .site-field { flex: 1 1 15rem; width: auto; }
.inline-form[hidden] { display: none; }
/* House cursor (intro.js): text fields keep their caret; sliders and boxes show the arrow. */
html.has-cursor .site input[type="range"], html.has-cursor .sheet input[type="range"] { cursor: none !important; }

/* ---------------------------------------------------------- Refresh */
.calc input[type="range"] { width: 100%; accent-color: var(--ink); }

/* --------------------------------------------------------- Automate */
.chat { max-width: 30rem; padding: 18px; border: 1px solid var(--rule-strong); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.chat-top { display: grid; gap: 2px; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); font-size: 14px; }
.chat-top span { color: var(--ink-2); font-size: 12.5px; }
.chat-log { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; max-height: 46vh; overflow-y: auto; }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; display: grid; gap: 4px; font-size: 15px; }
.chat-msg.me { justify-self: end; background: var(--ink); color: var(--on-ink); border-bottom-right-radius: 6px; }
.chat-msg.bot { justify-self: start; background: var(--sheet-bg); border: 1px solid var(--rule); border-bottom-left-radius: 6px; }
.chat-msg.typing .chat-text { animation: site-pulse 1s ease-in-out infinite; }
.chat-time { font-size: 11px; opacity: 0.6; }
.brief-slot { max-width: 30rem; margin-top: 24px; }
.brief { padding: 22px; border-radius: var(--radius-card); background: var(--sheet-bg); border: 1px solid var(--rule-strong); box-shadow: var(--shadow-card); }
.brief-h { margin: 0 0 14px; }
.brief-h span { color: var(--ink-2); }
.brief dl { margin: 0 0 18px; display: grid; gap: 12px; }
.brief dt { color: var(--ink-2); font-size: 13px; }
.brief dd { margin: 2px 0 0; }

/* ------------------------------------------------------ Just looking */
.reel {
  position: relative; /* keeps the links' screen-reader text inside the scroller */
  list-style: none; margin: 0; padding: 6px 2px 18px;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 340px); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.reel-item { scroll-snap-align: start; display: grid; }
.fits { margin-top: clamp(40px, 7vh, 72px); max-width: 40rem; }
.fits-q { margin: 0 0 16px; color: var(--ink-2); }
.fits-answers { display: grid; gap: 12px; justify-items: start; }
.fits-pick { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.fits-line { margin: 0; font: 300 26px/1.2 var(--type); }

/* ------------------------------------------------------------ Proof */
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; }
.proof-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--rule); border-radius: var(--radius-card); background: var(--surface); overflow: hidden; box-shadow: var(--shadow-card); }
.proof-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-bottom: 1px solid var(--rule); }
.proof-copy { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.proof-card.no-img .proof-copy { justify-content: flex-end; min-height: 200px; }
.proof-kind { margin: 0; color: var(--ink-2); font: 500 11px/1.2 var(--brand-type); letter-spacing: 0.24em; text-transform: uppercase; }
.proof-h { margin: 0; font: 500 21px/1.2 var(--type); letter-spacing: -0.01em; }
.proof-line { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
.proof-copy .site-link { margin-top: auto; align-self: flex-start; font-size: 14px; }

/* ------------------------------------------------------------ Tiers */
.tiers-hint { margin: -20px 0 22px; color: var(--ink-2); font-size: 14px; }
.tier-name { margin: 0; font: 300 30px/1.1 var(--type); letter-spacing: -0.02em; }
.tier-job { margin: 0; color: var(--ink-2); min-height: 3em; }
.tier-price { position: relative; margin: 8px 0 6px; }
.price-plain, .price-btn { margin: 0; font: 500 22px/1.25 var(--type); color: var(--ink); letter-spacing: -0.01em; }
.price-btn { padding: 2px 0; border: 0; background: none; cursor: pointer; text-align: left; text-decoration: underline dotted; text-underline-offset: 6px; text-decoration-color: var(--rule-strong); }
.price-local { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; opacity: 0; translate: 0 -4px; transition: opacity 250ms var(--ease-lfm-out), translate 250ms var(--ease-lfm-out); }
/* Shown by the toggle state (site.js: tap, Enter, keyboard focus), and by a real mouse hover. */
.tier-price.open .price-local { opacity: 1; translate: 0 0; }
@media (hover: hover) { .tier-price.has-local:hover .price-local { opacity: 1; translate: 0 0; } }
.tiers-foot { margin: 24px 0 0; color: var(--ink-2); }

/* ------------------------------------------------- Band, FAQ, footer */
.site-band { padding-top: 0; }
.band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: clamp(26px, 4vw, 40px); border-radius: var(--radius-card); border: 1px solid var(--rule-strong); background: var(--surface); }
.band-h { margin: 0; max-width: 24em; font: 300 clamp(24px, 2.6vw, 34px)/1.15 var(--type); letter-spacing: -0.02em; }
.faqs { list-style: none; margin: 0; padding: 0; max-width: 46rem; border-top: 1px solid var(--rule); }
.faq { border-bottom: 1px solid var(--rule); }
.faq-h { margin: 0; font: inherit; }
.faq-q { width: 100%; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border: 0; background: none; color: var(--ink); font: 500 17px/1.35 var(--type); text-align: left; cursor: pointer; }
.faq-q[aria-expanded="true"] .faq-caret { rotate: 45deg; }
.faq-caret { transition: rotate 200ms var(--ease-lfm-out); }
.faq-a { margin: 0 0 18px; max-width: 38rem; color: var(--ink-2); }
.faq-a > p { margin: 0 0 8px; }
.site-foot { display: grid; justify-items: center; gap: 14px; padding: 56px 20px calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rule); text-align: center; }
.foot-brand { display: flex; align-items: center; gap: 9px; color: var(--ink-2); text-decoration: none; font: 500 12px/1 var(--brand-type); letter-spacing: 0.18em; text-transform: uppercase; }
.foot-motto { margin: 0; color: var(--ink-3); font: 500 10.5px/1 var(--brand-type); letter-spacing: 0.32em; text-transform: uppercase; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 14px; }
.foot-links a { color: var(--ink-2); text-underline-offset: 4px; }

/* ----------------------------------------------------------- Sheets */
.sheet-layer { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; }
.sheet-layer[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity 250ms ease; }
.sheet {
  position: relative; box-sizing: border-box; width: min(720px, 100%); max-height: min(88vh, 900px);
  display: flex; flex-direction: column;
  background: var(--sheet-bg); color: var(--ink); font: 500 16px/1.5 var(--type);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0; box-shadow: var(--shadow-sheet);
  transform: translateY(100%); transition: transform 300ms var(--ease-lfm-out);
}
.sheet-layer.in .sheet-scrim { opacity: 1; }
.sheet-layer.in .sheet { transform: translateY(0); }
.sheet.dragging { transition: none; }
/* 640 px and up (Sir, 2026-11-13: "the form ends up at the bottom not the middle of the
   page"): a centred dialog, all corners round, the body scrolling inside, a small fade and
   scale in. Under 640 px it stays a bottom sheet with the slide-up and swipe-down. */
@media (min-width: 640px) {
  .sheet-layer { align-items: center; padding: 24px; box-sizing: border-box; }
  .sheet { max-height: 85vh; border-radius: var(--radius-sheet); opacity: 0; transform: scale(0.97);
    transition: opacity 220ms var(--ease-lfm-out), transform 260ms var(--ease-lfm-out); }
  .sheet-layer.in .sheet { opacity: 1; transform: none; }
  .sheet-grab { visibility: hidden; padding-top: 6px; }
  .sheet-body { padding-bottom: 28px; }
}
.sheet-grab { display: flex; justify-content: center; padding: 10px 0 2px; touch-action: none; }
.sheet-handle { width: 40px; height: 4px; border-radius: 2px; background: var(--rule-strong); }
.sheet-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 8px 20px 10px 24px; touch-action: none; }
.sheet-h { margin: 6px 0 0; font: 300 clamp(24px, 3vw, 32px)/1.15 var(--type); letter-spacing: -0.02em; outline: none; }
.sheet-close { flex: none; width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: none; color: var(--ink); font: 300 26px/1 var(--type); cursor: pointer; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px calc(28px + env(safe-area-inset-bottom, 0px)); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 4px; }
.sheet-form { margin: 0; }
.step-head { display: flex; justify-content: space-between; align-items: center; margin: 0 0 14px; }
.step-of { margin: 0; color: var(--ink-2); font: 500 11px/1.2 var(--brand-type); letter-spacing: 0.24em; text-transform: uppercase; }
.done-next, .refer-steps { margin: 0 0 18px; padding-left: 1.3em; display: grid; gap: 8px; }
.refer-terms { margin: 0 0 18px; padding-left: 1.2em; display: grid; gap: 6px; color: var(--ink-2); font-size: 15px; }
.inc-price { margin: 0 0 8px; color: var(--ink-2); }
.inc-price strong { color: var(--ink); }
.inc-tools { margin: 0 0 14px; }
.inc-group { margin: 0 0 18px; }
.inc-group-h { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font: 600 15px/1.3 var(--type); }
.inc-icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.inc-rows { list-style: none; margin: 0; padding: 0 0 0 30px; }
.inc-row { width: 100%; display: grid; grid-template-columns: minmax(7rem, 0.8fr) minmax(0, 1.4fr) 1em; gap: 12px; padding: 9px 0; border: 0; border-bottom: 1px solid var(--rule); background: none; color: var(--ink); font: inherit; font-size: 15px; text-align: left; }
.inc-more { cursor: pointer; }
.inc-label { color: var(--ink-2); }
.inc-caret { transition: rotate 200ms var(--ease-lfm-out); }
.inc-more[aria-expanded="true"] .inc-caret { rotate: 90deg; }
.inc-detail { margin: 8px 0 10px; color: var(--ink-2); font-size: 14px; }
.inc-note { margin: 4px 0 18px; color: var(--ink-2); font-size: 14px; }
.inc-sub { margin: 22px 0 10px; font: 600 15px/1.3 var(--type); }
.inc-addons { list-style: none; margin: 0; padding: 0; }
.inc-addons li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.inc-addon-price { flex: none; max-width: 45%; text-align: right; color: var(--ink-2); }
.cmp-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.cmp th, .cmp td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.cmp thead th { font-weight: 600; font-size: 15px; }
.cmp tbody th { font-weight: 500; color: var(--ink-2); width: 26%; }
.cmp-group { display: block; color: var(--ink-2); font: 500 10px/1.4 var(--brand-type); letter-spacing: 0.2em; text-transform: uppercase; }
.cmp-price td { font-weight: 600; color: var(--ink); }
.calc { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule); }
.calc-label { display: block; margin-bottom: 10px; color: var(--ink-2); }
.calc-line { margin: 12px 0 0; }
.calc-total { font: 300 34px/1 var(--type); letter-spacing: -0.02em; }
.site-check { display: flex; align-items: center; gap: 12px; padding: 6px 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.site-check-box { flex: none; width: 20px; height: 20px; border: 1.5px solid var(--ink); border-radius: 6px; box-sizing: border-box; display: grid; place-items: center; }
.site-check[aria-checked="true"] .site-check-box { background: var(--ink); box-shadow: inset 0 0 0 3px var(--sheet-bg); }
.site-check[aria-invalid="true"] .site-check-box { border-color: var(--danger); }

@keyframes site-pulse { 50% { opacity: 0.3; } }

/* ------------------------------------------------------------ Phone */
@media (max-width: 860px) {
  .tier-job { min-height: 0; }
}
@media (max-width: 639px) {
  .sheet { max-height: 92vh; }
}
@media (max-width: 699px) {
  .sheet-body { padding-left: 18px; padding-right: 18px; }
  .sheet-top { padding-left: 18px; }
  .cmp-wrap { margin: 0 -18px; padding: 0 18px; }
  .inc-rows { padding-left: 0; }
  .inc-row { grid-template-columns: minmax(0, 1fr) 1em; }
  .inc-row .inc-value { grid-column: 1; grid-row: 2; }
  .inc-row .inc-caret { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  .site-pay, .site .choice, .sheet .choice { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet-scrim, .price-local, .faq-caret, .inc-caret, .site-pay { transition: none; }
}
