/* TransferDesk public pages (layout/public.html): the landing page, sign-in and the plain pages.
   Colours come only from tokens.css. Ink (dark) for the hero, the sign-in panel, the call to action and the footer;
   lime only on ink. Laid out for 390 px phones up to wide screens. */

.public { min-height: 100vh; background: var(--bg); }
.public-auth { background: var(--surface); }

.skip-link {
  position: absolute; left: var(--s-3); top: -48px; z-index: 100;
  padding: var(--s-2) var(--s-4); border-radius: var(--r);
  background: var(--accent); color: var(--on-accent); font-weight: 600;
}
.skip-link:focus { top: var(--s-3); color: var(--on-accent); text-decoration: none; }

.wrap {
  width: 100%; max-width: 1200px; margin: 0 auto;
  padding: 0 max(var(--s-6), env(safe-area-inset-right)) 0 max(var(--s-6), env(safe-area-inset-left));
}

/* Brand (the mark itself is styled in base.css) */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.brand:hover { color: var(--text); text-decoration: none; }
.brand .logo-word { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
.brand-inverse, .brand-inverse:hover { color: var(--ink-text); }
.brand-inverse .logo-mark { --lm-tile: var(--ink-3); --lm-edge: var(--ink-border); }
.brand-sm .logo-mark { width: 28px; height: 28px; }

/* Buttons for ink surfaces, and the large size */
.btn-lg { height: 48px; padding: 0 22px; font-size: var(--fs-md); border-radius: var(--r-lg); }
.btn-lg svg { width: 18px; height: 18px; }
.btn-lime { background: var(--lime); color: var(--on-lime); font-weight: 600; box-shadow: 0 8px 24px -10px var(--lime); }
.btn-lime:hover { background: var(--lime-hover); color: var(--on-lime); }
@media (hover: hover) { .btn-lime:not(:disabled):hover { box-shadow: 0 12px 32px -10px var(--lime); transform: translateY(-1px); } }
.btn-lime:not(:disabled):active { transform: scale(0.97); }
.btn-ink { background: var(--ink-fill); border-color: var(--ink-border); color: var(--ink-text); }
.btn-ink:hover { background: var(--ink-line); border-color: var(--ink-muted); color: var(--ink-text); }
.btn-lime:focus-visible, .btn-ink:focus-visible { box-shadow: 0 0 0 3px var(--lime-soft), 0 0 0 1px var(--lime); }

/* Landing: top bar (ink, stays on top) */
.site-top {
  position: sticky; top: 0; z-index: 20;
  background: var(--ink); border-bottom: 1px solid var(--ink-line);
}
.site-top-in { display: flex; align-items: center; gap: var(--s-7); height: 68px; }
.site-nav { display: flex; gap: var(--s-6); margin-left: auto; }
.site-nav a { position: relative; padding: 6px 0; color: var(--ink-muted); font-size: var(--fs-base); font-weight: 500; transition: color var(--dur-1) ease; }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-2) var(--ease-out);
}
.site-nav a:hover, .site-nav a.is-on { color: var(--ink-text); text-decoration: none; }
.site-nav a:hover::after, .site-nav a.is-on::after { transform: scaleX(1); }
.site-menu-btn { display: none; }

/* Landing: hero (ink) */
.hero {
  position: relative; overflow: hidden; padding: 88px 0 0;
  background:
    radial-gradient(ellipse 60% 55% at 78% 30%, var(--ink-glow), transparent 70%),
    radial-gradient(ellipse 40% 40% at 8% 0%, var(--lime-soft), transparent 70%),
    var(--ink);
  color: var(--ink-text);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, var(--ink), transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, var(--ink), transparent 80%);
  opacity: 0.6;
}
.hero-in {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 64px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2); padding: 5px 12px 5px 10px;
  font-size: var(--fs-sm); font-weight: 500; color: var(--ink-text);
  background: var(--ink-fill); border: 1px solid var(--ink-border); border-radius: var(--r-pill);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 3px var(--lime-soft);
}
.hero h1 {
  margin-top: var(--s-5); font-size: clamp(36px, 4.6vw, 58px); font-weight: 700;
  line-height: 1.04; letter-spacing: -0.04em; color: var(--surface);
}
.hero h1 .accent { color: var(--lime); }
.hero .lede {
  margin-top: var(--s-5); max-width: 540px; font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-7); }
.hero-note { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-5); font-size: var(--fs-sm); color: var(--ink-muted); }
.hero-note svg { width: 15px; height: 15px; color: var(--lime); }

/* The proof strip under the hero: what every answer carries. Facts about the product, not numbers. */
.proof {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 80px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink-line);
}
.proof li {
  display: flex; align-items: center; gap: var(--s-3); padding: var(--s-6) var(--s-5);
  font-size: var(--fs-base); font-weight: 500; color: var(--ink-text);
}
.proof li + li { border-left: 1px solid var(--ink-line); }
.proof li:first-child { padding-left: 0; }
.proof svg { width: 18px; height: 18px; flex: none; color: var(--lime); }

/* Landing: the product picture, an app window around a made-up answer */
.demo { position: relative; margin: 0; }
.demo::before {
  content: ""; position: absolute; inset: 8% -6% -8% 6%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, var(--ink-glow), transparent); filter: blur(24px);
}
.window {
  position: relative; z-index: 1; overflow: hidden;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--ink-border); border-radius: var(--r-xl);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, 0.6), 0 0 0 6px var(--ink-fill);
}
.window-bar {
  display: flex; align-items: center; gap: var(--s-3); height: 40px; padding: 0 var(--s-4);
  background: var(--surface-3); border-bottom: 1px solid var(--border);
}
.window-dots { display: inline-flex; gap: 6px; }
.window-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.window-url {
  flex: 1; max-width: 300px; margin: 0 auto; padding: 3px 10px; text-align: center;
  font-size: var(--fs-xs); color: var(--text-3); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.window-body { display: grid; grid-template-columns: 52px minmax(0, 1fr); min-height: 0; }
.window-rail {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--s-3) 0;
  background: var(--surface-2); border-right: 1px solid var(--border);
}
.window-rail span {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r); color: var(--text-3);
}
.window-rail span.on { background: var(--accent-soft); color: var(--accent); }
.window-rail svg { width: 16px; height: 16px; }
.window-main { min-width: 0; padding-bottom: var(--s-2); }

.demo-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
  padding: var(--s-4) var(--s-5) 0;
}
.demo-building { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; }
.demo-building svg { width: 18px; height: 18px; color: var(--text-3); }
.demo-q {
  display: flex; align-items: flex-start; gap: var(--s-3); margin: var(--s-4) var(--s-5) 0;
  padding: var(--s-3) var(--s-4); background: var(--surface-3); border-radius: var(--r-lg);
}
.demo-q .who {
  display: inline-grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 50%;
  background: var(--ink); color: var(--lime); font-size: 11px; font-weight: 600;
}
.demo-q .who svg { width: 14px; height: 14px; }
.demo-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.demo-q p { margin-top: 2px; font-size: var(--fs-md); font-weight: 500; }
.demo-answer {
  margin: var(--s-3) var(--s-5) 0; padding: var(--s-4);
  border: 1px solid var(--ok-border); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.demo-answer-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.demo-field { font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
.demo-value { margin-top: var(--s-2); font-size: 22px; font-weight: 650; letter-spacing: -0.02em; }
.demo-cite {
  display: flex; align-items: flex-start; gap: var(--s-4);
  margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px dashed var(--border-strong);
}
.demo-page { flex: none; width: 52px; height: auto; }
.demo-page .pg { fill: var(--surface); stroke: var(--border-strong); }
.demo-page .ln { fill: var(--border); }
.demo-page .ln-strong { fill: var(--border-strong); }
.demo-page .hl { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 0.75; }
.demo-page .ln-hl { fill: var(--accent); opacity: 0.55; }
.demo-page .pg-num { fill: var(--text-3); font-family: var(--font); font-size: 7px; }
.demo-cite dl { display: grid; gap: 6px; min-width: 0; margin: 0; font-size: var(--fs-sm); }
.demo-cite dl div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: var(--s-2); }
.demo-cite dt { color: var(--text-3); }
.demo-cite dd { margin: 0; font-weight: 500; color: var(--text); }
.demo-rows { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-3); margin: var(--s-3) var(--s-5) var(--s-3); padding: 0; list-style: none; }
.demo-rows li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px var(--s-2);
  padding: var(--s-3); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface-2);
}
.demo-rows p { grid-column: 1 / -1; font-size: var(--fs-xs); line-height: 1.45; color: var(--text-2); }
.demo figcaption { position: relative; z-index: 1; margin-top: var(--s-4); font-size: var(--fs-xs); text-align: center; color: var(--ink-muted); }

/* Landing: sections */
.section { padding: 104px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent);
}
.kicker::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--accent); }
.section-head.center .kicker::after { content: ""; width: 16px; height: 2px; border-radius: 2px; background: var(--accent); }
.section-head h2 {
  margin-top: var(--s-3); font-size: clamp(28px, 3.4vw, 40px); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.035em;
}
.section-head p { margin-top: var(--s-4); font-size: var(--fs-lg); line-height: 1.6; color: var(--text-2); }

.icon-tile {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: var(--r-lg); background: var(--accent-soft); color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent-border);
}
.icon-tile svg { width: 20px; height: 20px; }

/* The four rules, joined by a line through their numbers */
.steps {
  position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5);
  margin: 0; padding: 0; list-style: none;
}
.steps::before {
  content: ""; position: absolute; top: 19px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--accent-border), var(--accent), var(--accent-border));
}
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step-num {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--lime);
  background: var(--ink); box-shadow: 0 0 0 6px var(--bg);
}
.step-card {
  flex: 1; width: 100%; margin-top: var(--s-5); padding: var(--s-6) var(--s-5); text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), border-color var(--dur-2) ease;
}
@media (hover: hover) { .step-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); transform: translateY(-3px); } }
.step-num { transition: transform var(--dur-3) var(--ease-spring); }
@media (hover: hover) { .steps li:hover .step-num { transform: scale(1.12); } }
.steps h3 { margin-top: var(--s-4); font-size: var(--fs-lg); font-weight: 650; letter-spacing: -0.02em; }
.steps p { margin-top: var(--s-2); line-height: 1.6; color: var(--text-2); }

/* What an answer can say: one card per outcome */
.outcomes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.outcomes li {
  display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  border-top: 3px solid var(--tone, var(--border-strong));
  transition: box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
@media (hover: hover) { .outcomes li:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); } }
.outcomes .o-ok { --tone: var(--ok-fill); }
.outcomes .o-warn { --tone: var(--warn-fill); }
.outcomes .o-danger { --tone: var(--danger-fill); }
.outcomes .o-muted { --tone: var(--muted-fill); }
.outcomes .o-restricted { --tone: var(--restricted-fill); }
.outcomes li > span:first-child { display: flex; }
.outcomes h3 { font-size: var(--fs-md); font-weight: 650; }
.outcomes p { font-size: var(--fs-sm); line-height: 1.55; color: var(--text-2); }
.outcomes .then {
  margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--border);
  font-size: var(--fs-sm); font-weight: 600; color: var(--text);
}

/* Who it is for */
.audience {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-4);
  margin: 0; padding: 0; list-style: none;
}
.audience li {
  padding: var(--s-6) var(--s-5); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl);
  transition: border-color var(--dur-2) ease, box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.icon-tile { transition: background-color var(--dur-2) ease, color var(--dur-2) ease, transform var(--dur-3) var(--ease-spring); }
@media (hover: hover) {
  .audience li:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); transform: translateY(-3px); }
  .audience li:hover .icon-tile, .security li:hover .icon-tile { background: var(--accent); color: var(--on-accent); transform: rotate(-6deg) scale(1.06); }
}
.audience h3 { margin-top: var(--s-5); font-size: var(--fs-md); font-weight: 650; }
.audience p { margin-top: var(--s-2); font-size: var(--fs-sm); line-height: 1.55; color: var(--text-2); }
.audience-note {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2); margin-top: var(--s-7);
  font-size: var(--fs-sm); color: var(--text-3);
}
.audience-note svg { width: 16px; height: 16px; color: var(--accent); }

/* Security: three columns under a split head */
.security-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.security-grid .section-head { margin-bottom: 0; }
.security { display: grid; gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.security li {
  display: flex; align-items: flex-start; gap: var(--s-4); padding: var(--s-5) var(--s-6);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  transition: border-color var(--dur-2) ease, box-shadow var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
@media (hover: hover) { .security li:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); transform: translateX(3px); } }
.security h3 { font-size: var(--fs-md); font-weight: 650; }
.security p { margin-top: var(--s-1); line-height: 1.55; color: var(--text-2); }

/* Call to action (ink) */
.cta-section { padding: 104px 0; }
.cta {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-7);
  padding: 56px; border-radius: 24px;
  background:
    radial-gradient(ellipse 50% 90% at 100% 0%, var(--ink-glow), transparent 70%),
    radial-gradient(ellipse 30% 60% at 0% 100%, var(--lime-soft), transparent 70%),
    var(--ink);
  color: var(--ink-text);
}
.cta h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.035em; color: var(--surface); }
.cta p { margin-top: var(--s-3); max-width: 520px; font-size: var(--fs-md); color: var(--ink-muted); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); flex: none; }

/* Landing: footer (ink) */
.site-foot { padding: 64px 0 calc(var(--s-6) + env(safe-area-inset-bottom)); background: var(--ink); color: var(--ink-muted); }
.site-foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: var(--s-7); }
.site-foot .brand { color: var(--ink-text); }
.site-foot .brand .logo-mark { --lm-tile: var(--ink-3); --lm-edge: var(--ink-border); }
.foot-about { margin-top: var(--s-4); max-width: 360px; font-size: var(--fs-sm); line-height: 1.6; }
.foot-col h3 { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-text); }
.foot-col ul { display: grid; gap: var(--s-3); margin: var(--s-4) 0 0; padding: 0; list-style: none; }
.foot-col a { font-size: var(--fs-sm); color: var(--ink-muted); }
.foot-col a:hover { color: var(--ink-text); text-decoration: none; }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3);
  margin-top: 48px; padding-top: var(--s-5); border-top: 1px solid var(--ink-line); font-size: var(--fs-xs);
}
.foot-base span { display: inline-flex; align-items: center; gap: 6px; }
.foot-base svg { width: 14px; height: 14px; color: var(--lime); }

/* Sign-in: the split screen, ink panel beside the form */
.auth { display: grid; grid-template-columns: minmax(380px, 5fr) 6fr; min-height: 100vh; }
.auth-panel {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
  gap: var(--s-8); padding: 40px 56px;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, var(--ink-glow), transparent 70%),
    radial-gradient(ellipse 60% 40% at 0% 100%, var(--lime-soft), transparent 70%),
    var(--ink);
  color: var(--ink-text);
}
.auth-panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--ink-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--ink-line) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 10%, var(--ink), transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 10%, var(--ink), transparent 75%);
  opacity: 0.5;
}
.auth-panel > * { position: relative; }
.panel-eyebrow { display: inline-flex; }
.panel-title {
  max-width: 440px; margin-top: var(--s-5); font-size: clamp(28px, 2.6vw, 36px); font-weight: 700;
  line-height: 1.12; letter-spacing: -0.035em; color: var(--surface);
}
.panel-title .accent { color: var(--lime); }
.doctrine { display: grid; gap: var(--s-3); max-width: 460px; margin: var(--s-7) 0 0; padding: 0; list-style: none; }
.doctrine li {
  display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-4);
  background: var(--ink-fill); border: 1px solid var(--ink-line); border-radius: var(--r-lg);
  font-size: var(--fs-sm); line-height: 1.5; color: var(--ink-muted);
}
.doctrine strong { display: block; font-size: var(--fs-base); font-weight: 600; color: var(--ink-text); }
.doctrine-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none;
  border-radius: var(--r); background: var(--lime-soft); color: var(--lime);
}
.doctrine-mark svg { width: 16px; height: 16px; }
.auth-panel-foot { display: flex; align-items: flex-start; gap: var(--s-2); font-size: var(--fs-sm); color: var(--ink-muted); }
.auth-panel-foot svg { width: 16px; height: 16px; margin-top: 2px; color: var(--lime); }

.auth-main {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--s-8) var(--s-6);
  background: radial-gradient(ellipse 60% 40% at 50% 0%, var(--surface-2), transparent 70%), var(--surface);
}
.auth-main > * { width: 100%; max-width: 400px; }
.auth-brand-small { display: none; }
.auth-form h1 { font-size: 30px; font-weight: 700; letter-spacing: -0.035em; }
.auth-form .step {
  display: inline-flex; margin-bottom: var(--s-3); padding: 3px 10px; border-radius: var(--r-pill);
  font-size: var(--fs-xs); font-weight: 600; color: var(--accent); background: var(--accent-soft);
}
.auth-form .lede { margin-top: var(--s-2); font-size: var(--fs-md); color: var(--text-2); }
.auth-form .alert { margin-top: var(--s-5); }
.auth-form .alert a { color: inherit; font-weight: 600; text-decoration: underline; }
.auth-form form { margin-top: var(--s-7); }
.auth-form .field input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; font-size: 16px; }
/* Every sign-in field is needed, so no required marks here. */
.auth-form .field > label::after { content: none; }
.auth-form .btn-block { height: 46px; margin-top: var(--s-3); font-size: var(--fs-md); border-radius: var(--r-lg); }
.auth-help {
  margin-top: var(--s-6); padding-top: var(--s-5); border-top: 1px solid var(--border);
  font-size: var(--fs-sm); line-height: 1.55; color: var(--text-3);
}
.auth-help + .auth-help { margin-top: var(--s-2); padding-top: 0; border-top: 0; }
.auth-foot { display: flex; align-items: center; gap: 6px; margin-top: var(--s-8); font-size: var(--fs-xs); color: var(--text-3); }
.auth-foot svg { width: 14px; height: 14px; color: var(--accent); }

.field-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); }
.field-row label { font-size: var(--fs-sm); font-weight: 500; }

/* A password box with a Show button (public.js unhides the button) */
.password { position: relative; }
.field .password input:not([type="checkbox"]):not([type="radio"]) { padding-right: 68px; }
.reveal {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  height: 30px; padding: 0 var(--s-2); border: 0; border-radius: var(--r-sm);
  background: transparent; color: var(--accent); font-size: var(--fs-sm); font-weight: 500;
}
.reveal:hover { background: var(--accent-soft); }

.field input.code-input:not([type="checkbox"]):not([type="radio"]) {
  font-family: var(--font-mono); font-size: var(--fs-xl); letter-spacing: 0.3em;
  font-variant-numeric: tabular-nums;
}

/* Password rules, ticked live by public.js */
.rules { margin: var(--s-5) 0 var(--s-4); padding: var(--s-4); background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-lg); }
.rules-title { font-size: var(--fs-sm); font-weight: 600; }
.rule-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px var(--s-4); margin: var(--s-2) 0 0; padding: 0; list-style: none; }
.rule-list li { display: flex; align-items: center; gap: var(--s-2); font-size: var(--fs-sm); color: var(--text-2); }
.rule-list svg {
  width: 18px; height: 18px; padding: 3px; border-radius: 50%;
  background: var(--muted-bg); color: var(--text-3); stroke-width: 3;
}
.rule-list li.met { color: var(--ok); }
.rule-list li.met svg { background: var(--ok-bg); color: var(--ok); }

/* Plain pages: error, no workspace. Not ".plain": base.css uses that for a chip with no dot. */
.plain-page {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s-6);
  min-height: 100vh; padding: var(--s-8) var(--s-4);
  background: radial-gradient(ellipse 60% 40% at 50% 0%, var(--accent-soft), transparent 70%), var(--bg);
}
.plain-card {
  width: 100%; max-width: 480px; padding: 40px var(--s-7); text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg);
}
.plain-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s-5);
  border-radius: var(--r-lg); background: var(--ink); color: var(--lime);
}
.plain-icon svg { width: 22px; height: 22px; }
.plain-card .step { margin: 0 0 var(--s-2); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.plain-card h1 { font-size: var(--fs-2xl); font-weight: 700; letter-spacing: -0.03em; }
.plain-card p { margin-top: var(--s-3); color: var(--text-2); }
.plain-card .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-3); margin-top: var(--s-6); }
.plain-card form { margin: 0; }
.plain-foot { font-size: var(--fs-xs); color: var(--text-3); }

/* Questions: one open at a time (details name="faq") */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 64px; align-items: start; }
.faq-grid .section-head { position: sticky; top: 100px; margin-bottom: 0; }
.faq { display: grid; gap: var(--s-3); }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  transition: border-color var(--dur-2) ease, box-shadow var(--dur-2) var(--ease-out);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] { border-color: var(--accent-border); box-shadow: var(--shadow-sm); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 56px; padding: var(--s-4) var(--s-5); border-radius: var(--r-xl);
  font-size: var(--fs-md); font-weight: 600; list-style: none; cursor: pointer;
  -webkit-user-select: none; user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: none; box-shadow: var(--focus); }
.faq-item summary svg { width: 18px; height: 18px; color: var(--text-3); transition: transform var(--dur-2) var(--ease-out), color var(--dur-2) ease; }
.faq-item[open] summary svg { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 var(--s-5) var(--s-5); }
.faq-a p { line-height: 1.6; color: var(--text-2); }
.faq-item[open] .faq-a { animation: td-in var(--dur-2) var(--ease-out); }

/* Motion. The hero arrives in a short stagger and the product picture plays its answer once; sections rise into view
   as they scroll in (public.js adds .js-motion, then .in). Nothing moves for people who ask for less motion. */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@keyframes td-glow { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-in > div:first-child > * { animation: td-rise 0.6s var(--ease-out) both; }
  .hero-in > div:first-child > :nth-child(2) { animation-delay: 0.07s; }
  .hero-in > div:first-child > :nth-child(3) { animation-delay: 0.14s; }
  .hero-in > div:first-child > :nth-child(4) { animation-delay: 0.21s; }
  .hero-in > div:first-child > :nth-child(5) { animation-delay: 0.28s; }
  .demo .window { animation: td-rise 0.8s var(--ease-out) 0.15s both; }
  .demo-q { animation: td-rise 0.5s var(--ease-out) 0.6s both; }
  .demo-answer { animation: td-rise 0.5s var(--ease-out) 0.9s both; }
  .demo-rows li { animation: td-rise 0.5s var(--ease-out) 1.15s both; }
  .demo-rows li + li { animation-delay: 1.25s; }
  .demo-rows li + li + li { animation-delay: 1.35s; }
  .demo-rows li + li + li + li { animation-delay: 1.45s; }
  .demo-page .hl { animation: td-glow 1.6s ease-in-out 1.4s 2; }
  .demo figcaption { animation: td-fade 0.6s ease 1.6s both; }
  .site-top .logo-mark .lm-check { animation: td-draw 0.6s var(--ease-out) 0.35s both; }
  .js-motion [data-inview] {
    opacity: 0; transform: translateY(18px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); transition-delay: var(--d, 0s);
  }
  .js-motion [data-inview].in { opacity: 1; transform: none; }
}

@media print { .js-motion [data-inview] { opacity: 1 !important; transform: none !important; } }

/* Narrower screens */
@media (max-width: 1180px) {
  .outcomes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .audience { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .demo { max-width: 620px; }
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof li:nth-child(3) { border-left: 0; padding-left: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); }
  .steps::before { display: none; }
  .security-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .cta { flex-direction: column; align-items: flex-start; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-7); }
  .faq-grid .section-head { position: static; }
}
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-panel { display: none; }
  .auth-brand-small { display: inline-flex; margin-bottom: var(--s-7); }
  .auth-main { justify-content: flex-start; padding: var(--s-7) var(--s-4) var(--s-6); }
  .site-foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 max(var(--s-4), env(safe-area-inset-right)) 0 max(var(--s-4), env(safe-area-inset-left)); }
  .site-top-in { gap: var(--s-2); height: 60px; }
  .site-top-in > .btn { margin-left: auto; }
  .site-menu-btn {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; padding: 0;
    border: 0; border-radius: var(--r); background: transparent; color: var(--ink-text);
  }
  .site-menu-btn svg { width: 22px; height: 22px; }
  .site-menu-btn:active { background: var(--ink-fill); }
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    padding: var(--s-2) max(var(--s-4), env(safe-area-inset-right)) var(--s-4) max(var(--s-4), env(safe-area-inset-left));
    background: var(--ink); border-bottom: 1px solid var(--ink-line); box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.6);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  }
  .site-nav.open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--dur-2) ease, transform var(--dur-2) var(--ease-out); }
  .site-nav a { padding: 14px 0; font-size: var(--fs-md); border-bottom: 1px solid var(--ink-line); }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a::after { display: none; }
  .hero { padding-top: 48px; }
  .hero .lede { font-size: var(--fs-md); }
  .hero-actions .btn { flex: 1 1 auto; }
  .proof { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
  .proof li { padding: var(--s-4) 0; }
  .proof li + li { border-left: 0; border-top: 1px solid var(--ink-line); }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: var(--s-7); }
  .section-head p { font-size: var(--fs-md); }
  .cta-section { padding: 64px 0; }
  .steps, .outcomes, .audience { grid-template-columns: minmax(0, 1fr); }
  .steps li { align-items: flex-start; }
  .cta { padding: var(--s-7) var(--s-5); border-radius: var(--r-xl); }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .window-body { grid-template-columns: minmax(0, 1fr); }
  .window-rail { display: none; }
  .demo-head, .demo-q, .demo-answer, .demo-rows { margin-left: var(--s-3); margin-right: var(--s-3); }
  .demo-head { padding-left: var(--s-3); padding-right: var(--s-3); margin: 0; }
  .demo-rows { grid-template-columns: minmax(0, 1fr); }
  .demo-cite dl div { grid-template-columns: 76px minmax(0, 1fr); }
  .rule-list { grid-template-columns: minmax(0, 1fr); }
  .plain-card { padding: var(--s-6) var(--s-5); }
  .site-foot-grid { grid-template-columns: minmax(0, 1fr); }
}
