/* Torrevia website. One stylesheet, no framework.
   Palette and type from the app's Torrevia look (Peripheral portal/src/web/torrevia.ts):
   Ink #1F1F3A instead of blue, warm off-white page, the four tower colours as
   accents only (sunflower, orange, coral, teal), Figtree 400 to 800. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("../fonts/figtree-var.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --bg: #FAFAF7;
  --card: #FFFFFF;
  --sunken: #F6F5F0;
  --hair: #E6E4EE;
  --line: #CFCDDB;
  --ink: #1F1F3A;
  --ink-hover: #2E2E52;
  --ink-press: #15152A;
  --ink2: #4B4B66;
  --ink3: #5E5E78;
  --sun: #FFC93C;
  --sun-soft: #FFF3C4;
  --orange: #FF9F1C;
  --orange-soft: #FFDDB0;
  --coral: #FF6B57;
  --coral-soft: #FFE0DC;
  --teal: #14C6A4;
  --teal-soft: #D4F5EC;
  --good: #0E7A62;
  --warn: #B4382C;
  --amber-ink: #7A5410;
  --on-dark: #ECECF3;
  --on-dark2: #B9B9CC;
  --sans: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
  --r-lg: 20px;
  --r-md: 14px;
  --shadow: 0 1px 2px rgba(31,31,58,.05), 0 6px 20px rgba(31,31,58,.06);
  --shadow-lift: 0 2px 4px rgba(31,31,58,.08), 0 18px 40px rgba(31,31,58,.12);
  --bar: linear-gradient(90deg,
    var(--sun) 0 calc((100% - 18px) * .41667),
    transparent 0 calc((100% - 18px) * .41667 + 6px),
    var(--orange) 0 calc((100% - 18px) * .69792 + 6px),
    transparent 0 calc((100% - 18px) * .69792 + 12px),
    var(--coral) 0 calc((100% - 18px) * .88542 + 12px),
    transparent 0 calc((100% - 18px) * .88542 + 18px),
    var(--teal) 0 100%);
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* The brand is a light brand: the page stays light in dark mode too. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: light; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ink); border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------ the bar */
.bar { display: flex; gap: 6px; height: 5px; }
.bar i { display: block; height: 100%; border-radius: 99px; }
.bar i:nth-child(1) { flex: 80; background: var(--sun); }
.bar i:nth-child(2) { flex: 54; background: var(--orange); }
.bar i:nth-child(3) { flex: 36; background: var(--coral); }
.bar i:nth-child(4) { flex: 22; background: var(--teal); }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: 700 1rem/1 var(--sans); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-hover); }
.btn-ink:active { background: var(--ink-press); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #FFD465; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,247,.86);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hair); }
.site-header::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--bar); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding-top: 4px; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.lockup svg { width: 26px; height: 40px; }
.lockup .word { font-weight: 800; font-size: 1.5rem; letter-spacing: -.035em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--ink2); text-decoration: none; font-weight: 600; font-size: .97rem;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:not(.btn):hover { color: var(--ink); background: var(--sunken); }
.nav .btn { margin-left: 8px; }
@media (max-width: 819px) { .nav a:not(.btn) { display: none; } .nav .btn { margin-left: 0; } }

/* ------------------------------------------------------------ hero */
.hero { padding: clamp(40px, 7vw, 96px) 0 clamp(16px, 3vw, 40px); position: relative; }
.hero .wrap { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }
@media (min-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); } }
.eyebrow {
  display: inline-flex; align-items: flex-start; line-height: 1.5; gap: 10px; margin-bottom: 22px;
  font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2);
}
.eyebrow::before { content: ""; flex: none; margin-top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.hero h1 { font-size: clamp(2.9rem, 7.4vw, 6rem); line-height: .96; letter-spacing: -.045em; }
.hero h1 .stop { color: var(--coral); }
.hero h1 .mark { background: linear-gradient(transparent 62%, var(--sun-soft) 0 92%, transparent 0); padding: 0 .04em; margin: 0 -.04em; }
.hero .lede { margin-top: 26px; max-width: 34em; font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink2); }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .note { margin-top: 18px; font-size: .92rem; color: var(--ink3); }

/* The tower: the logo, scaled up, its floors carrying words. */
.tower { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 8px 0 0; }
.tower .beacon { width: 25%; aspect-ratio: 1; max-width: 76px; border-radius: 50%; background: var(--teal); position: relative; margin-bottom: 6px; }
.tower .beacon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal); animation: ping 3.2s ease-out 1.6s infinite; opacity: 0; }
@keyframes ping { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
.floor {
  display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 0 26px; border-radius: 999px;
  color: var(--ink); text-decoration: none; position: relative;
  box-shadow: inset 0 -3px 0 rgba(31,31,58,.08);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease;
}
a.floor:hover { transform: translateY(-3px); box-shadow: inset 0 -3px 0 rgba(31,31,58,.08), var(--shadow-lift); }
.floor .no { font-size: .78rem; font-weight: 800; letter-spacing: .06em; opacity: .62; font-variant-numeric: tabular-nums; }
.floor .t { font-weight: 800; font-size: clamp(1rem, 1.5vw, 1.18rem); letter-spacing: -.015em; line-height: 1.15; }
.floor .s { display: block; font-weight: 600; font-size: .86rem; opacity: .75; letter-spacing: 0; margin-top: 2px; }
.floor .ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.55); display: grid; place-items: center; }
.floor .ic svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f3 { width: 50%; background: var(--coral); }
.f2 { width: 75%; background: var(--orange); }
.f1 { width: 100%; background: var(--sun); }
.f3 .s { display: none; }
.tower .ground { width: 100%; height: 1px; background: var(--line); margin-top: 14px; }
.tower .caption { font-size: .85rem; color: var(--ink3); text-align: center; margin-top: 10px; }
@media (max-width: 959px) { .tower { max-width: 560px; margin: 0 auto; width: 100%; } }
@media (max-width: 520px) {
  .floor { min-height: 66px; padding: 0 16px; gap: 10px; }
  .floor .ic { width: 34px; height: 34px; }
  .floor .ic svg { width: 17px; height: 17px; }
  .floor .s { display: none; }
  .f3 { width: 64%; } .f2 { width: 84%; }
  .f3 .ic { display: none; }
  .tower .beacon { width: 46px; }
}

/* load sequence: floors rise in from the ground up */
.js .tower .f1, .js .tower .f2, .js .tower .f3, .js .tower .beacon { animation: rise .7s cubic-bezier(.2,.75,.2,1) both; }
.js .tower .f1 { animation-delay: .1s; }
.js .tower .f2 { animation-delay: .24s; }
.js .tower .f3 { animation-delay: .38s; }
.js .tower .beacon { animation-name: drop; animation-delay: .56s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px) scaleX(.94); } }
@keyframes drop { from { opacity: 0; transform: translateY(-28px) scale(.6); } }
.js .hero-copy > * { animation: fadeup .7s cubic-bezier(.2,.75,.2,1) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .06s; }
.js .hero-copy > :nth-child(3) { animation-delay: .14s; }
.js .hero-copy > :nth-child(4) { animation-delay: .22s; }
.js .hero-copy > :nth-child(5) { animation-delay: .28s; }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } }

/* ------------------------------------------------------------ sections */
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section-tight { padding-top: 0; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.kicker { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); display: flex; align-items: center; gap: 12px; }
.kicker::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--sun); }
.section-head h2 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.04em; }
.section-head p { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--ink2); max-width: 40em; }

/* the six floors */
.floors { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .floors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .floors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; } }
.card {
  background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-lg);
  padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
  box-shadow: var(--shadow); position: relative;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); border-color: var(--line); }
.card .tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.card .tag b { display: inline-grid; place-items: center; min-width: 30px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--sun-soft); color: var(--amber-ink); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.card h3 { font-size: 1.42rem; letter-spacing: -.025em; line-height: 1.15; }
.card p { color: var(--ink2); font-size: 1rem; line-height: 1.6; }
.card .mock { margin: 2px 0 4px; }

/* small drawn examples of each screen (decorative, aria-hidden) */
.mock { background: var(--sunken); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 14px; display: grid; gap: 8px; font-size: .82rem; line-height: 1.3; color: var(--ink); overflow: hidden; }
.mock .row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.mock .row > span:first-child { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.pill { flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.p-grey { background: #ECECF3; color: var(--ink); }
.p-sun { background: var(--sun-soft); color: var(--amber-ink); }
.p-orange { background: var(--orange-soft); color: #7A3F00; }
.p-coral { background: var(--coral-soft); color: var(--warn); }
.p-teal { background: var(--teal-soft); color: var(--good); }
.p-ink { background: var(--ink); color: #fff; }
.tick { flex: none; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; }
.tick.on { background: var(--ink); border-color: var(--ink); }
.tick.on::after { content: ""; width: 8px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.tick.in { display: inline-grid; vertical-align: -4px; margin-right: 8px; }
.row.done > span:first-child { color: var(--ink3); text-decoration: line-through; text-decoration-color: var(--line); }

.clock { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding-top: 14px; }
.clock::before { content: ""; position: absolute; left: 6px; right: 6px; top: 4px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--sun), var(--orange) 50%, var(--coral)); }
.clock > div { position: relative; background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 8px; min-width: 0; }
.clock > div::before { content: ""; position: absolute; top: -14px; left: 10px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2.5px solid var(--ink); }
.clock b { display: block; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); font-weight: 800; }
.clock span { display: block; font-weight: 700; font-size: .78rem; margin-top: 2px; overflow-wrap: anywhere; }

.sig { display: flex; align-items: center; gap: 8px; padding: 2px 2px 0; }
.sig i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .68rem; font-weight: 800; background: #fff; border: 1.5px dashed var(--line); color: var(--ink3); }
.sig i.on { background: var(--ink); border: 1.5px solid var(--ink); color: #fff; }
.sig span { margin-left: auto; font-weight: 700; font-size: .78rem; }
.row.chosen { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.reason { background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; color: var(--ink2); font-style: italic; }

.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.steps3 > div { background: #fff; border: 1px solid var(--hair); border-radius: 10px; padding: 8px; text-align: center; font-weight: 700; font-size: .76rem; }
.steps3 > div.on { background: var(--teal-soft); border-color: transparent; color: var(--good); }

.cells { display: grid; grid-template-columns: 1.3fr repeat(2, minmax(0, 1fr)); gap: 4px; }
.cells > span { background: #fff; border: 1px solid var(--hair); border-radius: 8px; padding: 7px 8px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cells > span.h { background: transparent; border-color: transparent; color: var(--ink3); font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; padding-bottom: 2px; }
.cells > span.q { border-style: dashed; color: var(--ink3); font-weight: 500; }
.tip { display: flex; gap: 8px; align-items: flex-start; background: var(--ink); color: var(--on-dark); border-radius: 10px; padding: 8px 10px; font-size: .76rem; }
.tip::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); margin-top: 4px; }

/* ------------------------------------------------------------ decision chain (dark) */
.dark { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.dark .kicker { color: var(--on-dark2); }
.dark .section-head h2 { color: #fff; }
.dark .section-head p { color: var(--on-dark2); }
.dark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--bar); }
.chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 960px) { .chain { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; } }
.chain li {
  counter-increment: step; position: relative; padding: 22px 20px 24px; border-radius: var(--r-md);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); min-width: 0;
}
.chain li::before {
  content: counter(step, decimal-leading-zero); display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-weight: 800; font-size: .85rem; color: var(--ink); background: var(--sun); margin-bottom: 16px; font-variant-numeric: tabular-nums;
}
.chain li:nth-child(2)::before { background: var(--orange); }
.chain li:nth-child(3)::before { background: var(--coral); }
.chain li:nth-child(4)::before { background: var(--teal); }
.chain li:nth-child(5)::before { background: #fff; }
.chain h3 { color: #fff; font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.2; margin-bottom: 8px; }
.chain p { color: var(--on-dark2); font-size: .95rem; line-height: 1.55; }
@media (min-width: 960px) {
  .chain li:not(:last-child)::after { content: ""; position: absolute; top: 41px; right: -14px; width: 14px; height: 2px; background: rgba(255,255,255,.25); }
}
.chain-note { margin-top: 30px; display: flex; gap: 14px; align-items: flex-start; max-width: 760px; color: var(--on-dark); font-size: 1rem; }
.chain-note::before { content: ""; flex: none; width: 4px; align-self: stretch; border-radius: 4px; background: var(--sun); }

/* ------------------------------------------------------------ who it's for */
.who { display: grid; gap: 18px; }
@media (min-width: 900px) { .who { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; } }
.who-card { border-radius: 24px; padding: clamp(26px, 4vw, 44px); display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.who-card.mgmt { background: var(--sun); }
.who-card.board { background: var(--card); border: 1px solid var(--hair); box-shadow: var(--shadow); }
.who-card .label { font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.who-card.mgmt .label { color: var(--amber-ink); }
.who-card.board .label { color: var(--ink3); }
.who-card h3 { font-size: clamp(1.7rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.who-card > p { font-size: 1.06rem; line-height: 1.6; }
.who-card.mgmt > p { color: #3A3320; }
.who-card.board > p { color: var(--ink2); }
.checks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; line-height: 1.45; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.who-card.board .checks li::before { background-color: var(--teal); }
.who-card .btn { align-self: flex-start; margin-top: auto; }

/* ------------------------------------------------------------ rules it keeps */
.rules { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 820px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.rule { align-content: start; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.rule .n { grid-row: span 2; font-weight: 800; font-size: .85rem; color: var(--ink3); padding-top: 5px; font-variant-numeric: tabular-nums; }
.rule h3 { font-size: 1.22rem; letter-spacing: -.02em; line-height: 1.25; }
.rule p { color: var(--ink2); font-size: .99rem; }

/* ------------------------------------------------------------ contact */
.contact { background: var(--sunken); border-top: 1px solid var(--hair); }
.contact .wrap { display: grid; gap: clamp(32px, 5vw, 72px); }
@media (min-width: 960px) { .contact .wrap { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: start; } }
.contact .section-head { margin-bottom: 0; }
.signin-box { margin-top: 28px; display: grid; gap: 12px; padding: 22px; border-radius: var(--r-md); background: var(--card); border: 1px solid var(--hair); max-width: 440px; }
.signin-box p { color: var(--ink2); font-size: .98rem; }
.signin-box .btn { justify-self: start; }
.form { display: grid; gap: 18px; grid-template-columns: 1fr; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 36px); box-shadow: var(--shadow); min-width: 0; }
@media (min-width: 620px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .95rem; }
.field legend { padding: 0; margin-bottom: 8px; }
.mock .row .day { flex: none; width: 66px; font-size: .7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink3); font-weight: 800; }
.opt { font-weight: 500; color: var(--ink3); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); font: 400 16px/1.4 var(--sans);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--sun); }
.field [aria-invalid="true"] { border-color: var(--warn); }
.err { color: var(--warn); font-size: .88rem; font-weight: 600; min-height: 0; }
.err:empty { display: none; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .95rem; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.choice span:hover { border-color: var(--ink3); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--sun); outline-offset: 2px; box-shadow: 0 0 0 2px var(--ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot small { color: var(--ink3); font-size: .88rem; flex: 1 1 220px; }
.form-status { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: 12px; background: var(--sunken); font-weight: 600; }
.form-status.is-shown { display: block; }
.form-status.is-ok { background: var(--teal-soft); color: var(--good); }
.form-status.is-error { background: var(--coral-soft); color: var(--warn); }
.form button[disabled] { opacity: .6; cursor: wait; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--ink); color: var(--on-dark2); padding: 56px 0 36px; position: relative; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--bar); }
.site-footer .wrap { display: grid; gap: 32px; }
@media (min-width: 820px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer .lockup { color: #fff; }
.site-footer .tagline { margin-top: 10px; color: var(--on-dark); font-size: 1.05rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: .95rem; }
.foot-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .86rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ------------------------------------------------------------ legal pages */
.doc { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 112px); }
.doc .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.doc h1 { font-size: clamp(2.4rem, 5.5vw, 3.8rem); letter-spacing: -.04em; margin-bottom: 18px; }
.doc h2 { font-size: 1.45rem; letter-spacing: -.02em; margin: 40px 0 12px; line-height: 1.2; }
.doc p, .doc li { color: var(--ink2); font-size: 1.03rem; line-height: 1.7; }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 1.2em; margin: 12px 0 0; display: grid; gap: 6px; }
.doc a { color: var(--ink); font-weight: 600; text-decoration-color: var(--sun); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.draft { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--r-md); background: var(--sun-soft); color: var(--amber-ink); font-weight: 600; margin-bottom: 32px; }
.draft::before { content: "DRAFT"; flex: none; font-size: .72rem; font-weight: 800; letter-spacing: .1em; background: var(--ink); color: var(--sun); border-radius: 6px; padding: 3px 8px; margin-top: 2px; }
.ph { background: var(--sun-soft); box-shadow: 0 0 0 2px var(--sun-soft); border-radius: 3px; color: var(--amber-ink); font-weight: 600; }

/* ------------------------------------------------------------ scroll reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .floors .reveal:nth-child(3n+2) { transition-delay: .07s; }
.js .floors .reveal:nth-child(3n+3) { transition-delay: .14s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.mock .row .day + span { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
