/* STEMPA public site - design C2 "The Press" (FPH-approved 2026-10-06, reference sha256 2cca9852..., filed outside the repo).
   STEMPA tokens only. Copper is a mark colour: on light grounds it is used for large numerals and decorative marks,
   never for small text (copper on bone is 2.8:1); small text is iron or muted (>= 5.2:1). */
@font-face { font-family: "Inter"; src: url("/static/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap; }
:root {
  --cream: #EDEAE4; --bone: #E6DCC8; --stone: #2B2B2B; --iron: #1A1612; --copper: #B87333;
  --line: #D6D0C4; --muted: #5E584F; --ok: #2F6B3A; --bad: #9A2F22; --paper: #FAF7F1; --white: #FFFFFF;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --spring: cubic-bezier(.34, 1.56, .64, 1); --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow-lift: 0 26px 40px -22px rgba(26, 22, 18, .6);
  --gutter: 32px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.locked { overflow: hidden; }
body { margin: 0; font-family: "Inter", ui-sans-serif, system-ui, sans-serif; background: var(--bone); color: var(--iron);
  font-size: 16px; line-height: 1.5; overflow-x: hidden; }
body.inner { background: var(--cream); }
a { color: var(--iron); text-underline-offset: 3px; }
a:hover { color: var(--muted); }
:focus-visible { outline: 3px solid var(--iron); outline-offset: 3px; border-radius: 4px; }
.site-foot :focus-visible, .card-dark :focus-visible, .plan-dark :focus-visible { outline-color: var(--cream); }
.defs { position: absolute; width: 0; height: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--iron); color: var(--cream); padding: 10px 16px;
  border-radius: 8px; z-index: 300; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.wrap.narrow { max-width: 1000px; }
.wrap.mid { max-width: 1100px; }
.col { display: flex; flex-direction: column; gap: 28px; }
.col.tight { gap: 12px; }
.pad { padding-top: 56px; padding-bottom: 88px; }
.pad-top { margin-top: 18px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
h2 { margin: 0; font-size: 42px; letter-spacing: -.01em; line-height: 1.1; }
.h-sm { font-size: 40px; margin: 0; letter-spacing: -.01em; }
.h-xs { font-size: 22px; margin: 18px 0 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin: 0; }

/* ---- header ---- */
.site-head .head-row { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between; }
/* STEMPA's logo: the supplied stone lockup image, only sized here (D124). */
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--iron); line-height: 0; }
.brand picture { display: block; }
.brand .lockup { height: 36px; width: auto; display: block; }
.top-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; align-items: center; }
.top-nav a { text-decoration: none; }
.top-nav a:hover { text-decoration: underline; }
.pill { min-height: 44px; padding: 0 20px; border: 2px solid var(--iron); border-radius: 999px; background: transparent;
  font: inherit; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; color: var(--iron);
  text-decoration: none; }

/* ---- buttons ---- */
.btn { font: inherit; font-weight: 700; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center;
  justify-content: center; text-decoration: none; min-height: 46px; padding: 0 24px; border: 0; }
.btn-lg { min-height: 56px; padding: 0 34px; font-size: 17px; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-wide { width: 100%; min-height: 54px; font-size: 17px; }
.btn-dark { background: var(--iron); color: var(--cream); }
.btn-dark:hover { color: var(--white); background: #2a241f; }
.btn-line { background: transparent; color: var(--iron); border: 2px solid var(--iron); font-weight: 600; }
.btn-danger { background: transparent; color: var(--bad); border: 2px solid var(--bad); }
.btn-sso { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 10px; background: var(--white);
  color: var(--iron); font-weight: 500; }
.textlink { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 4px; min-height: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- mini stamp marks ---- */
.mark { flex: none; margin-top: 3px; }
.mark circle, .mark path { fill: none; stroke: var(--copper); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.r-6 { transform: rotate(-6deg); } .r\+4 { transform: rotate(4deg); } .r-3 { transform: rotate(-3deg); }
.r\+5 { transform: rotate(5deg); } .r-4 { transform: rotate(-4deg); } .r\+2 { transform: rotate(2deg); }
.stamps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.stamps li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.stamps.grow { flex-grow: 1; }

/* ---- hero ---- */
.hero-grid { padding-top: 32px; padding-bottom: 96px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { margin: 0; font-size: clamp(44px, 6.4vw, 72px); line-height: 1.0; font-weight: 800; letter-spacing: -.035em; }
.lead { margin: 0; font-size: 20px; line-height: 1.55; color: var(--stone); }
.note { margin: 0; font-size: 14px; color: var(--muted); }
.hero-art { display: flex; justify-content: center; }
/* The stone K alone, as supplied; the wrapper tilts toward the cursor (D124). */
.hero-mark { width: min(340px, 72vw); transition: transform 400ms var(--ease); transform: rotate(var(--tilt, 0deg)); }
.hero-mark picture { display: block; }
.hero-mark .stone-k { width: 100%; height: auto; display: block; }
/* The plain story (R20, D352): the four lines and two buttons are the whole first screen, at 1440 and at 390. */
.hero-story h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.05; }
.story { display: flex; flex-direction: column; gap: 10px; }
.story-step { margin: 0; font-size: 21px; line-height: 1.4; font-weight: 600; }
.story-proof { margin: 0; }
.plans-line { margin: 0; font-size: 18px; font-weight: 600; }
/* Another product's own interface words, quoted exactly (R20's one exemption besides the address to paste). */
kbd.ui { font: inherit; font-weight: 600; background: var(--bone); border: 1px solid var(--line); border-radius: 6px;
  padding: 0 5px; overflow-wrap: anywhere; }

/* ---- bands ---- */
.band { background: var(--cream); }
.band > .wrap { padding-top: 88px; padding-bottom: 88px; }

/* ---- how it works: hover-expand panels ---- */
.panels { display: flex; flex-wrap: wrap; gap: 16px; min-height: 320px; }
.panel { flex: 1 1 260px; opacity: .72; background: var(--white); color: var(--iron); border-radius: 16px; padding: 30px;
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
  transition: flex-grow 320ms var(--ease), opacity 240ms ease, background-color 240ms ease, color 240ms ease; }
.panel.open { flex-grow: 2.4; opacity: 1; background: var(--iron); color: var(--cream); }
.panel .num { font-size: 60px; font-weight: 800; line-height: 1; color: var(--copper); }
.panel h3 { margin: 0; font-size: 26px; }
.panel-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.panel .short { margin: 0; line-height: 1.6; font-size: 17px; }
.panel .more { margin: 0; line-height: 1.6; font-size: 15px; opacity: .9; animation: fade 260ms ease both; }

/* ---- the stagger: a few px, under half a degree; straightens and lifts 3% on hover, springs back ---- */
.stag, .tilted { position: relative; transition: transform 420ms var(--spring), box-shadow 300ms ease; }
.stagrow > .stag:nth-child(odd) { transform: translate(-4px, 2px) rotate(-.45deg); }
.stagrow > .stag:nth-child(even) { transform: translate(4px, -2px) rotate(.45deg); }
.stagrow > .stag:hover, .tilted:hover, .tilted:focus-within {
  transform: translate(0, 0) rotate(0) scale(1.03); box-shadow: var(--shadow-lift); z-index: 2; }
.compare { padding-top: 96px; padding-bottom: 96px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 36px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 34px; display: flex;
  flex-direction: column; gap: 14px; }
.compare h2 { font-size: 28px; }
.card p { margin: 0; line-height: 1.6; }
.card-dark { background: var(--iron); color: var(--cream); border: 0; }
.card-dark .eyebrow { color: var(--bone); }

/* ---- the positioning line (D188): the conclusion of the two cards above; a copper rule is its mark ---- */
.positioning { padding-bottom: 96px; }
.position-line { max-width: 960px; margin: 0 auto; text-align: center; font-size: 34px; line-height: 1.3;
  letter-spacing: -.01em; text-wrap: balance; }
.position-line::before { content: ""; display: block; width: 56px; height: 4px; margin: 0 auto 26px;
  background: var(--copper); border-radius: 2px; }
.pos-a { display: block; color: var(--muted); font-weight: 500; }
.pos-b { display: block; color: var(--iron); font-weight: 800; }

/* ---- connect ---- */
.tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab { min-height: 46px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--iron); background: transparent;
  color: var(--iron); font: inherit; font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--iron); color: var(--cream); }
.connect-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 32px;
  transform: rotate(-.25deg); display: flex; flex-direction: column; gap: 14px; }
.steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; line-height: 1.5; }
.stepnum { flex: none; width: 32px; height: 32px; border-radius: 999px; border: 2px solid var(--copper); color: var(--iron);
  font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; }
.url-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.mcp-url { font-family: var(--mono); font-size: 15px; background: var(--cream); padding: 12px 14px; border-radius: 8px;
  flex: 1 1 260px; overflow-wrap: anywhere; }
.copied { font-size: 14px; color: var(--ok); }

/* ---- plans ---- */
.plans-sec { padding-top: 88px; padding-bottom: 88px; gap: 36px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 32px; padding: 8px 12px; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: flex;
  flex-direction: column; gap: 12px; }
.plan.t0 { transform: translate(-4px, 2px) rotate(-.45deg); } .plan.t1 { transform: translate(4px, -2px) rotate(.45deg); }
.plan.t2 { transform: translate(-3px, -2px) rotate(-.3deg); } .plan.t3 { transform: translate(3px, 3px) rotate(.35deg); }
.plan-strong { border: 2px solid var(--iron); }
.plan-dark { background: var(--iron); color: var(--cream); border: 0; }
.plan h3 { margin: 0; font-size: 20px; }
.price { font-size: 38px; font-weight: 800; }
.price span { font-size: 15px; font-weight: 500; }
.btn-plan { min-height: 46px; background: var(--iron); color: var(--cream); }
.plan-dark .btn-plan { background: var(--bone); color: var(--iron); }

/* ---- FAQ: staggered expandable stamp cards ---- */
.faq-group { display: flex; flex-direction: column; gap: 18px; }
.faq-group .eyebrow { letter-spacing: .16em; font-size: 14px; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 26px; padding: 6px 12px;
  align-items: start; }
.faq { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.faq.q0 { transform: translate(-3px, 2px) rotate(-.35deg); } .faq.q1 { transform: translate(3px, -2px) rotate(.35deg); }
.faq.is-open { background: var(--white); }
.faq h4 { margin: 0; }
.faq-btn { width: 100%; min-height: 64px; display: flex; gap: 12px; align-items: flex-start; padding: 20px 22px; border: 0;
  background: transparent; color: inherit; font: inherit; font-size: 18px; font-weight: 600; text-align: left; cursor: pointer; }
.faq-btn .q { flex-grow: 1; }
.faq-btn .sign { font-size: 22px; line-height: 1; }
.ans { margin: 0; padding: 0 22px 22px 54px; line-height: 1.6; font-size: 16px; animation: fade 260ms ease both; }

/* ---- footer ---- */
.site-foot { position: relative; background: var(--iron); color: var(--bone); }
.foot-row { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between;
  align-items: center; font-size: 13px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; }
.lnk { background: transparent; border: 0; padding: 0; font: inherit; font-size: 13px; color: var(--bone); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.lnk:hover { color: var(--white); }
.foot-reach { gap: 18px; }
.prices-note { margin: 0; font-weight: 700; }

/* ---- overlays: centred, blurred backdrop, focus trapped by site.js ---- */
.overlay { position: fixed; inset: 0; z-index: 80; }
.overlay[hidden] { display: none; }
.veil { position: absolute; inset: 0; background: rgba(26, 22, 18, .38); backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px); animation: fade 260ms ease both; }
.dialog { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--white);
  border-radius: 18px; box-shadow: 0 40px 80px -40px rgba(26, 22, 18, .7); animation: pop 340ms var(--spring) both;
  overflow-y: auto; }
.dialog-plan { width: min(720px, 92vw); max-height: 84vh; padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.dialog-signup { width: min(480px, 92vw); max-height: 88vh; padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dhead > div { display: flex; flex-direction: column; gap: 6px; }
.dhead h2 { font-size: 28px; }
.dprice { font-size: 44px; font-weight: 800; line-height: 1; }
.dprice span { font-size: 16px; font-weight: 500; }
.x { min-width: 44px; min-height: 44px; border: 0; background: transparent; font: inherit; font-size: 26px; cursor: pointer;
  color: var(--iron); border-radius: 999px; }
.blurb { margin: 0; font-size: 18px; line-height: 1.55; color: var(--stone); }
.dgroups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 22px; }
.dgroup { display: flex; flex-direction: column; gap: 10px; }
.basics { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.basics dl { margin: 0; display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 8px 16px; font-size: 15px; line-height: 1.5; }
.basics dt { color: var(--muted); }
.basics dd { margin: 0; }
.basics-links { margin: 0; }
#signup-form label, .dialog-signup label { font-size: 14px; font-weight: 600; }
input[type=email], input[type=text], input[type=password], input:not([type]), textarea { min-height: 50px; padding: 0 14px; border: 1px solid #8E877C;
  border-radius: 10px; font: inherit; background: var(--white); color: var(--iron); }
textarea { padding: 12px 14px; font-family: var(--mono); font-size: 13px; }
.status { margin: 0; min-height: 1.5em; font-size: 15px; }
.status.ok { color: var(--ok); } .status.bad { color: var(--bad); }

/* ---- account, verify, messages ---- */
.banner { border-radius: 10px; padding: 12px 16px; font-weight: 500; }
.banner.ok { background: #DDEBDF; color: var(--ok); border: 1px solid #B5D1BA; }
.banner.bad { background: #F2DEDA; color: var(--bad); border: 1px solid #E2B7AF; }
.banner.note { background: var(--bone); border: 1px solid var(--line); }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.account .card { padding: 22px; }
.big { font-size: 28px; font-weight: 800; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bone); letter-spacing: .06em; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
form.inline { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; }
form.inline input { min-height: 44px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-weight: 600; border-bottom: 2px solid var(--line); padding: 8px 10px; }
td { border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
td.links a { margin-right: 10px; }
code, pre { font-family: var(--mono); font-size: 13px; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.brief-md { font-size: 14px; line-height: 1.55; }
/* walk fixes (D128): brief names, the formatted brief, the trial in plain words */
.trial-plain { margin: 0; font-size: 16px; line-height: 1.5; }
.bname { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; overflow-wrap: anywhere; }
.bname .client { color: var(--muted); }
.sealed-row .links { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0; }
.seal-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.brief-page { gap: 14px; }
.brief-title { overflow-wrap: anywhere; }
.brief-facts { display: grid; grid-template-columns: minmax(110px, 160px) 1fr; gap: 6px 16px; margin: 0; }
.brief-facts dt { color: var(--muted); } .brief-facts dd { margin: 0; overflow-wrap: anywhere; }
.brief-sec { display: flex; flex-direction: column; gap: 12px; }
.brief-card { padding: 20px 22px; gap: 8px; }
.brief-card p { overflow-wrap: anywhere; }
.h-xxs { font-size: 17px; margin: 0; }
.brief-list { margin: 0; padding-left: 20px; line-height: 1.55; overflow-wrap: anywhere; }
.wrap-code { overflow-wrap: anywhere; word-break: break-all; }
.lead-sm { font-size: 18px; margin: 0; }
.verify label { font-weight: 600; font-size: 14px; }
.verify .check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.verify .check input { width: 22px; height: 22px; }
.rc-out:empty { display: none; }
.rc-out { display: flex; flex-direction: column; gap: 10px; }
.rc-head { font-size: 22px; font-weight: 800; }
.rc-head.ok { color: var(--ok); } .rc-head.bad { color: var(--bad); }
.rc-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rc-list li { display: flex; gap: 10px; align-items: flex-start; }
.rc-list .pass { color: var(--ok); font-weight: 700; } .rc-list .fail { color: var(--bad); font-weight: 700; }
.rc-facts { display: grid; grid-template-columns: minmax(120px, 170px) 1fr; gap: 6px 16px; font-size: 15px; margin: 0; }
.rc-facts dt { color: var(--muted); } .rc-facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---- the cursor stamp and its ink ---- */
.follower { position: fixed; left: 0; top: 0; width: 64px; height: 64px; pointer-events: none; z-index: 220; opacity: 0;
  transform: translate(-50%, -110%) rotate(-8deg); transition: transform 110ms ease-out, opacity 140ms ease;
  filter: drop-shadow(0 10px 8px rgba(26, 22, 18, .3)); }
.follower.on { opacity: 1; }
.follower.press { transform: translate(-50%, -55%) rotate(-8deg) scale(.84); }
.ink { position: absolute; width: 96px; height: 96px; pointer-events: none; mix-blend-mode: multiply; filter: url(#inkrough);
  z-index: 210; animation: inkIn 1900ms ease-out both; }
.ink circle { fill: none; stroke: var(--copper); stroke-width: 7; }
.ink text { font-family: "Inter", sans-serif; font-size: 24px; font-weight: 800; letter-spacing: 3px; fill: var(--copper); }
.has-stamp-cursor [data-stamp] { cursor: none; }

@keyframes inkIn {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.4) rotate(var(--r, 0deg)); }
  14% { opacity: .92; transform: translate(-50%, -50%) scale(1) rotate(var(--r, 0deg)); }
  70% { opacity: .88; transform: translate(-50%, -50%) scale(1) rotate(var(--r, 0deg)); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1) rotate(var(--r, 0deg)); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.94); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* ---- phone width ---- */
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  h2 { font-size: 32px; }
  .h-sm { font-size: 30px; }
  .top-nav { gap: 14px; font-size: 14px; }
  .hero-grid { padding-bottom: 56px; gap: 28px; }
  .hero-story .hero-grid { padding-top: 12px; }
  .hero-story .hero-copy { gap: 18px; }
  .hero-story h1 { font-size: 34px; }
  .story-step { font-size: 18px; }
  .lead { font-size: 18px; }
  .band > .wrap, .plans-sec { padding-top: 56px; padding-bottom: 56px; }
  .compare { padding-top: 56px; padding-bottom: 56px; }
  .positioning { padding-bottom: 56px; }
  .position-line { font-size: 24px; text-align: left; }
  .position-line::before { margin: 0 0 18px; }
  .panel { padding: 22px; } .card { padding: 24px; } .connect-card { padding: 22px; }
  .plan-grid, .faq-grid { padding: 4px 0; }
  .dialog-plan, .dialog-signup { padding: 24px 20px; }
  .basics dl, .rc-facts { grid-template-columns: 1fr; gap: 2px 0; }
  .basics dd, .rc-facts dd { margin-bottom: 8px; }
  .ans { padding-left: 22px; }
}

/* ---- no hover (touch): no cursor stamp; reduced motion: nothing moves ---- */
@media (hover: none), (pointer: coarse) {
  .follower { display: none; }
  .has-stamp-cursor [data-stamp] { cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .follower, .ink { display: none; }
  .veil, .dialog, .panel .more, .ans { animation: none; }
  .stag, .tilted, .panel, .hero-mark { transition: none; }
  .hero-mark { transform: none; }
  .stagrow > .stag:hover, .tilted:hover, .tilted:focus-within { transform: none; box-shadow: var(--shadow-lift); }
}
.card.row-between { flex-direction: row; justify-content: space-between; }

/* ---- two-party briefs (stempa.site.twoparty_pages; brief g_5361da32f6564da2) ---- */
.cp-view { display: flex; flex-direction: column; gap: 14px; }
.cp-view .h-xs { margin: 8px 0 0; }
.cp-row { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--paper);
  display: flex; flex-direction: column; gap: 8px; overflow-wrap: anywhere; }
.cp-row p { margin: 0; white-space: pre-line; }
.cp-before, .cp-after { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: baseline; }
.cp-before p { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.cp-after p { font-weight: 600; }
.cp-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cp-rows { border: 0; padding: 0; margin: 0; }
.cp-rows legend { font-weight: 700; margin-bottom: 8px; }
.cp-pick { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: var(--white); overflow-wrap: anywhere; }
.cp-pick input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.cp-pick p { margin: 6px 0 0; }
.cp-version { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.cp-version p { margin: 0; }
.tag.cp-asserted { background: #F4E7D3; border-color: #E0C79E; }
.tag.cp-confirmed { background: #DDEBDF; color: var(--ok); border-color: #B5D1BA; }
.tag.cp-disputed { background: #F2DEDA; color: var(--bad); border-color: #E2B7AF; }
.tag.cp-asserted, .tag.cp-confirmed, .tag.cp-disputed { letter-spacing: 0; white-space: normal; }
.cp-ev summary { list-style: none; cursor: pointer; }
.cp-ev summary::-webkit-details-marker { display: none; }
.cp-ev[open] form { margin-top: 12px; }
.cp-preview { padding: 22px; }
.cp input[name=pin] { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; max-width: 220px; }
@media (max-width: 700px) {
  .cp-before, .cp-after { grid-template-columns: 1fr; gap: 2px; }
}
.cp-nature { margin: 0; font-size: 14px; color: var(--muted); }
.cp-private { align-items: center; background: var(--paper); }

/* ---- the operating profile (brief 5, D169): phone first ---------------------------------------------------------- */
.pf .pf-explainer, .pf .pf-approve { gap: 14px; }
.pf-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.pf-col { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pf-col h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pf-col ul { margin: 0; padding-left: 18px; display: grid; gap: 7px; line-height: 1.5; }
.pf-does h3 { color: var(--ok); }
.pf-doesnt h3 { color: var(--bad); }
.pf-lines { display: grid; grid-template-columns: minmax(84px, max-content) 1fr; gap: 6px 14px; margin: 4px 0 0; }
.pf-lines dt { font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); padding-top: 2px; }
.pf-lines dd { margin: 0; overflow-wrap: anywhere; }
.pf-tick { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.pf-tick input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--iron); }
.pf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pf-btns .btn { text-align: center; justify-content: center; white-space: nowrap; }
.card.pf-asst { flex-direction: column; align-items: flex-start; gap: 12px; }
.pf-asst-who { display: flex; flex-direction: column; gap: 2px; }
.pf-asst .btn, .pf-conn .btn { white-space: nowrap; }
.pf-seal { gap: 10px; }
@media (max-width: 520px) {
  .pf-btns { grid-template-columns: 1fr; }
  .pf-lines { grid-template-columns: 1fr; gap: 2px; }
  .pf-lines dd { margin-bottom: 8px; }
}
/* Connect an assistant (D181): the one-time connect code, big enough to read off and type on a phone. */
.connect-code { font-family: var(--mono); font-size: 28px; font-weight: 700; letter-spacing: .14em; margin: 4px 0; }

/* ---- self-serve act governance (brief GTM-1 v8 row 8; stempa.site.acts_pages) ---- */
select { min-height: 50px; padding: 0 12px; border: 1px solid #8E877C; border-radius: 10px; font: inherit;
  background: var(--white); color: var(--iron); max-width: 100%; }
.code-in { font-family: var(--mono); letter-spacing: .2em; width: 10.5em; max-width: 100%; }
.approvals .held { gap: 10px; }
.approvals .act-title { overflow-wrap: anywhere; }
.approvals .decide { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.approvals .decide form { margin: 0; }
.declare-form, .scope-form { gap: 10px; }
.declare-form label, .scope-form label, .account .row-wrap label { font-size: 14px; font-weight: 600; }
.dest-table td code { overflow-wrap: anywhere; }
.acts-card p { margin: 0; }
.secret code { font-size: 16px; letter-spacing: .08em; overflow-wrap: anywhere; }
.breakall { word-break: break-all; }
@media (max-width: 560px) {
  .approvals .decide, .approvals .decide form.inline { flex-direction: column; align-items: stretch; width: 100%; }
  .approvals .decide input, .approvals .decide button, .code-in { width: 100%; }
}
.approvals details.decline summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.approvals details.decline[open] summary { margin-bottom: 8px; }
.dest .dest-id { font-size: 15px; overflow-wrap: anywhere; }

/* Walkthrough: reserve its aspect ratio and keep native touch/keyboard controls. */
.explainer { padding-block: clamp(2rem, 5vw, 4rem); }
.explainer video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #1a1612; border-radius: 12px; }
.explainer > p { max-width: 70ch; }
/* job B (R1): the ad consent box, shown only with an ad click id */
.ad-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.ad-consent input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--iron); }
.ad-consent-note { margin: -4px 0 0 32px; }

/* ---- use-case pages and their landing links (lane STEMPA-FINISH-1, D225) ---- */
.uses { padding-bottom: 72px; }
.uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.uc-card { text-decoration: none; color: var(--iron); gap: 10px; }
.uc-card h3 { margin: 0; font-size: 22px; }
.uc-card:hover { border-color: var(--iron); color: var(--iron); }
.usecase h1 { margin: 0; font-size: 46px; letter-spacing: -.01em; line-height: 1.1; }
.usecase .lead { font-size: 19px; margin: 0; max-width: 62ch; }
.usecase .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.uc-sec h2 { font-size: 26px; margin: 0 0 10px; }
.uc-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; max-width: 70ch; }
.uc-fig { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.uc-pic { display: block; width: 100%; max-width: 460px; height: auto; margin: 0 auto; }
.uc-box { fill: var(--white); stroke: var(--iron); stroke-width: 2; }
.uc-ok { fill: #E3EEDF; stroke: var(--ok); }
.uc-wait { fill: var(--bone); stroke: var(--copper); }
.uc-bad { fill: #F3E1DC; stroke: var(--bad); }
.uc-t { font-size: 16px; font-weight: 600; fill: var(--iron); }
.uc-arrow { stroke: var(--muted); stroke-width: 2; }
.uc-headp { fill: var(--muted); }
@media (max-width: 700px) {
  .uc-grid { grid-template-columns: 1fr; }
  .usecase h1 { font-size: 34px; }
  .uc-fig { padding: 12px; }
}

/* Team seats (brief GTM-1 v9): one row per person; a grid on wide screens, stacked on a phone. */
.team-list { display: flex; flex-direction: column; }
.team-row { display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(0, 1.1fr) minmax(0, 2fr); gap: 8px 16px;
  align-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.team-row .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.team-row .addr { overflow-wrap: anywhere; }
.team-row .acts { justify-content: flex-end; gap: 8px; }
.team-row .acts form.inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.team-row .code-in { width: 11.5em; }
@media (max-width: 760px) {
  .team-row { grid-template-columns: minmax(0, 1fr) auto; }
  .team-row .at, .team-row .acts { grid-column: 1 / -1; }
  .team-row .acts { justify-content: flex-start; }
  .team-row .acts form.inline, .team-row .acts form.inline input, .team-row .acts form.inline button { width: 100%; }
}

/* the account's connect step (STEMPA-USERS-1): picker, address, and the waiting line that turns green */
.connect-step { border: 2px solid var(--iron); gap: 14px; }
.connect-step .tabpanel .steps { margin: 6px 0 0; }
.ai-wait { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 10px;
  background: var(--paper); border: 1px solid var(--line); font-weight: 500; }
.ai-wait .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--copper); flex: none; }
.ai-wait.ok { background: #DDEBDF; color: var(--ok); border-color: #B5D1BA; }
.ai-wait.ok .dot { background: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .ai-wait:not(.ok) .dot { animation: ai-pulse 1.4s ease-in-out infinite; }
  @keyframes ai-pulse { 50% { opacity: .3; } }
}
.hero-url { margin: 18px 0 4px; }
.hero-url .mcp-url { font-size: 15px; }
/* The connect code inside a new account's connect step (lane STEMPA-SIGNUP-FIX-1, D290): the sign-in part of step 3. */
.connect-box.inline { border-top: 1px solid var(--line); padding-top: 12px; }

/* ---- the one door (D299-D302): Log in / Sign up, setting up, the account home ---- */
.top-nav .pill { background: var(--iron); color: var(--cream); }
.top-nav .pill.pill-line { background: transparent; color: var(--iron); }
.door .door-form input, .door .have-code input { min-height: 48px; }
.door-form .btn-line { white-space: normal; text-align: center; min-height: 48px; }
.code-form[hidden], .setup-next[hidden] { display: none; }
.home-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.home-tab { min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex;
  align-items: center; text-decoration: none; color: var(--iron); font-weight: 600; font-size: 15px; background: var(--white); }
.home-tab.on { background: var(--iron); color: var(--cream); border-color: var(--iron); }
.setup-left { align-self: flex-start; }
.versions, .history { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.versions .ver { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.history .hist { display: flex; flex-wrap: wrap; gap: 4px 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.skip-form { margin-top: 4px; }
.plan-pick .btn { align-self: flex-start; }
@media (max-width: 700px) {
  .home-tab { min-height: 36px; padding: 0 12px; font-size: 14px; }
  .top-nav .pill { padding: 0 14px; }
}
.home-nav form.inline { display: inline-flex; }
.home-tab.home-out { cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; }
form[hidden] { display: none !important; }  /* a hidden form stays hidden whatever its layout class (the dialog's code step) */
.dialog-signup { overflow-y: auto; }
.dialog-signup > * { flex-shrink: 0; }      /* never squeeze one line onto the next when the dialog is full */
/* Continue with Google / Microsoft (client-path v7, D320): the providers' own light button looks, compact (Google's
   standard 40px), side by side where there is room, so the email way in stays in the first screen */
.sso-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 2px; }
@media (max-width: 559px) { .sso-long { display: none; } }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 4px; background: #FFFFFF; text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; }
.sso-google { border: 1px solid #747775; color: #1F1F1F; font-family: Roboto, Arial, sans-serif; }
.sso-microsoft { border: 1px solid #8C8C8C; color: #5E5E5E; font-family: "Segoe UI", Arial, sans-serif; font-weight: 600; }
.sso-btn:focus-visible { outline: 3px solid #1B1712; outline-offset: 2px; }
.sso-logo { flex: none; }
.sso-or { grid-column: 1 / -1; text-align: center; margin: 0; line-height: 1.2; }
