/* Smart Central — www.smartcentral.is
   Inter (same face as the Smart Approvals web), Smart finance teal family, hairline structure. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --deep: #042B2E;
  --deep-2: #06393E;
  --deep-3: #0B474C;
  --brand: #0E585D;
  --brand-hover: #0A4A4F;
  --aqua: #6FD3C1;
  --aqua-soft: rgba(111, 211, 193, 0.14);

  --ink: #0F2729;
  --ink-2: #3B5654;
  --ink-3: #506664;
  --on-deep: #EAF4F2;
  --on-deep-2: #CFE1DD;
  --on-deep-3: #A9C4BF;

  --canvas: #F6F9F8;
  --surface: #FFFFFF;
  --tint: #E5F0EE;
  --tint-2: #F0F6F5;
  --line: #DAE4E2;
  --line-2: #E8EFEE;
  --line-deep: rgba(234, 244, 242, 0.12);

  --live-bg: #DDF1EA;   --live-tx: #0A5646;  --live-dot: #1E9C7C;
  --roll-bg: #FBEFD8;   --roll-tx: #6F4B0E;  --roll-dot: #D19A33;
  --soon-bg: #ECF0EF;   --soon-tx: #485C5A;  --soon-dot: #8A9C9A;
  --new-bg: transparent; --new-tx: #0E585D;

  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.05), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.07), 0 18px 48px -12px rgba(0, 0, 0, 0.2);
  --shadow-deep: 0 30px 80px -20px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.25);

  --wrap: 1200px;
  --gutter: 24px;
  --header-h: 64px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }
::selection { background: #BFE6DE; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.on-deep :focus-visible, .deep :focus-visible { outline-color: var(--aqua); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 650; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

html { scrollbar-color: #B7C8C5 transparent; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 16px; top: 12px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--radius-s); transform: translateY(-200%); opacity: 0; }
.skip:focus { transform: none; opacity: 1; box-shadow: var(--shadow-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); color: #fff; }
.btn-light { background: var(--on-deep); color: var(--deep); }
.btn-light:hover { background: #fff; color: var(--deep); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: #B9CAC7; color: var(--ink); }
.btn-ghost-deep { color: var(--on-deep); border-color: rgba(234, 244, 242, 0.28); background: transparent; }
.btn-ghost-deep:hover { border-color: rgba(234, 244, 242, 0.6); color: #fff; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 0.875rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: var(--header-h);
  background: rgba(246, 249, 248, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.site-header.is-deep { background: rgba(6, 57, 62, 0.86); border-bottom-color: var(--line-deep); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 680; font-size: 1.0625rem; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; }
.is-deep .brand, .is-deep .brand:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav a, .nav button.navlink {
  font: inherit; font-size: 0.9375rem; font-weight: 500; color: var(--ink-2);
  text-decoration: none; padding: 8px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav button.navlink:hover { color: var(--ink); background: var(--tint-2); }
.nav a[aria-current="page"] { color: var(--ink); }
.is-deep .nav a, .is-deep .nav button.navlink { color: var(--on-deep-2); }
.is-deep .nav a:hover, .is-deep .nav button.navlink:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }

.search-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 8px 0 12px; min-width: 210px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 0.875rem; color: var(--ink-3); cursor: pointer;
  transition: border-color .18s ease;
}
.search-trigger:hover { border-color: #B9CAC7; }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger kbd { margin-left: auto; }
.is-deep .search-trigger { background: rgba(255, 255, 255, 0.05); border-color: var(--line-deep); color: var(--on-deep-3); }
.is-deep .search-trigger:hover { border-color: rgba(234, 244, 242, 0.3); }
kbd {
  font: inherit; font-size: 0.75rem; font-weight: 600; color: var(--ink-3);
  border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--tint-2);
}
.is-deep kbd { color: var(--on-deep-2); border-color: var(--line-deep); background: rgba(255, 255, 255, 0.04); }

/* Login menu */
.login { position: relative; }
.login-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 340px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-2); padding: 8px;
  opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top right;
  pointer-events: none; visibility: hidden;
  transition: opacity .16s ease, transform .2s var(--ease-out), visibility 0s linear .2s;
}
.login.is-open .login-menu { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .16s ease, transform .2s var(--ease-out); }
.login-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.login-menu a:hover { background: var(--tint-2); color: var(--ink); }
.login-menu .ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--tint); color: var(--brand); flex: none; }
.login-menu .ico svg { width: 20px; height: 20px; }
.login-menu b { display: block; font-weight: 600; font-size: 0.9375rem; }
.login-menu span { display: block; font-size: 0.8125rem; color: var(--ink-3); line-height: 1.4; }
.login-menu .all { display: block; text-align: center; font-size: 0.8125rem; color: var(--ink-2); padding: 10px; border-top: 1px solid var(--line-2); margin-top: 6px; border-radius: 0 0 10px 10px; }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.deep { background: var(--deep-2); color: var(--on-deep); }
.hero { position: relative; overflow: hidden; margin-top: calc(-1 * var(--header-h)); padding: calc(var(--header-h) + 44px) 0 0; isolation: isolate; }

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.25rem);
  font-weight: 640; letter-spacing: -0.04em; line-height: 1.02;
  max-width: 22ch; color: #fff; text-wrap: balance;
}
.hero .lede { margin-top: 20px; max-width: 64ch; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--on-deep-2); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; font-size: 0.875rem; color: var(--on-deep-3); }
.hero-facts li { list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--aqua); }

/* ---------- Journey demo (hero product panel) ---------- */
.journey {
  margin-top: 40px; position: relative;
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  background: #F9FBFB; color: var(--ink);
  box-shadow: var(--shadow-deep);
  border: 1px solid rgba(255, 255, 255, 0.5); border-bottom: 0;
  overflow: hidden;
}
.journey-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: var(--surface); }
.journey-bar .dots { display: flex; gap: 6px; }
.journey-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: #DCE4E2; display: block; }
.journey-bar .crumb { font-size: 0.8125rem; color: var(--ink-3); }
.journey-bar .crumb b { color: var(--ink); font-weight: 600; }
.sample { margin-left: auto; font-size: 0.75rem; font-weight: 600; color: var(--ink-3); border: 1px dashed #C4D3D0; border-radius: 999px; padding: 2px 10px; }
.journey-body { display: grid; grid-template-columns: 260px 1fr; min-height: 470px; }
.stages { border-right: 1px solid var(--line-2); padding: 16px 12px; background: var(--surface); }
.stages ol { list-style: none; }
.stage {
  width: 100%; display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center;
  padding: 10px; border-radius: 10px; border: 0; background: none; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink-3);
  transition: background-color .2s ease, color .2s ease;
}
.stage:hover { background: var(--tint-2); color: var(--ink-2); }
.stage .mark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-3); transition: all .3s var(--ease-out); }
.stage .mark svg { width: 15px; height: 15px; }
.stage .mark .ok { display: none; }
.stage b { display: block; font-size: 0.875rem; font-weight: 600; color: inherit; }
.stage small { display: block; font-size: 0.75rem; color: var(--ink-3); }
.stage.is-done .mark { background: var(--live-bg); border-color: transparent; color: var(--live-tx); }
.stage.is-done .mark .ok { display: block; }
.stage.is-done .mark .ic { display: none; }
.stage.is-done { color: var(--ink-2); }
.stage.is-active { background: var(--tint); color: var(--ink); }
.stage.is-active .mark { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 0 0 5px rgba(14, 88, 93, 0.12); }
.stage.is-active .mark .ok { display: none; }
.stage.is-active .mark .ic { display: block; }
.journey-replay { display: flex; align-items: center; gap: 8px; margin: 14px 10px 0; font: inherit; font-size: 0.8125rem; color: var(--ink-3); background: none; border: 0; cursor: pointer; padding: 6px 0; }
.journey-replay:hover { color: var(--brand); }
.journey-replay svg { width: 14px; height: 14px; }

.doc { padding: 18px 28px 28px; min-width: 0; }
.doc-caption { min-height: 0; font-size: 0.9375rem; color: var(--ink-2); max-width: 70ch; }
.doc-caption b { color: var(--ink); font-weight: 600; }
.doc-head { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; margin-top: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.doc-head h3 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.015em; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 4px; font-size: 0.8125rem; color: var(--ink-3); }
.doc-total { text-align: right; }
.doc-total small { display: block; font-size: 0.75rem; color: var(--ink-3); }
.doc-total strong { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.02em; }
.pill-state { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--soon-bg); color: var(--soon-tx); transition: background-color .3s ease, color .3s ease; }
.pill-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.pill-state.st-new { background: var(--soon-bg); color: var(--soon-tx); }
.pill-state.st-review { background: var(--live-bg); color: var(--live-tx); }
.pill-state.st-approval { background: var(--roll-bg); color: var(--roll-tx); }
.pill-state.st-approved, .pill-state.st-posted, .pill-state.st-closed { background: var(--live-bg); color: var(--live-tx); }

.lines { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 0.8125rem; }
.lines th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 0.75rem; padding: 10px 10px 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.lines td { padding: 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.lines td.amt, .lines th.amt { text-align: right; font-variant-numeric: tabular-nums; }
.lines .slot { display: inline-block; min-width: 3.4em; border-radius: 6px; padding: 2px 6px; margin: -2px -6px; transition: background-color .5s ease, color .3s ease; }
.lines .slot.empty { color: #A9B9B7; }
.lines .slot.fresh { background: #DDF1EA; }
.lines .slot.changed { background: var(--roll-bg); }
.trace { color: var(--ink-3); font-size: 0.75rem; white-space: nowrap; }
.doc-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.panel-mini { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; min-height: 120px; }
.panel-mini h4 { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-bottom: 10px; }
.checks-mini li, .chain li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 0.8125rem; padding: 4px 0; color: var(--ink-2); }
.checks-mini svg, .chain svg { width: 16px; height: 16px; flex: none; }
.checks-mini .ok, .chain .ok { color: var(--live-dot); }
.checks-mini .wait, .chain .wait { color: #B8C6C4; }
.chain .who { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--brand); font-size: 0.6875rem; font-weight: 700; flex: none; }
.chain .when { margin-left: auto; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chain li.is-wait { opacity: .5; }
.learn { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.learn svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 3px; }
[data-reveal] { transition: opacity .45s ease, transform .45s var(--ease-out); }
[data-reveal].is-hidden { opacity: 0; transform: translateY(4px); }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section + .section { padding-top: 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 112px 0; }
.section.alt + .section { padding-top: 112px; }
/* a jump to a section lands with its heading just under the header, not the section's top padding */
.section[id] { scroll-margin-top: -96px; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.875rem, 3.6vw, 2.75rem); letter-spacing: -0.035em; font-weight: 650; }
.section-head p { margin-top: 16px; font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }

/* Module overview */
.groups { display: grid; gap: 72px; }
.group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.group-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.group-intro h3 { font-size: 1.375rem; letter-spacing: -0.025em; }
.group-intro p { margin-top: 10px; color: var(--ink-2); font-size: 0.9375rem; max-width: 40ch; }
.mod-list { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-1); }
.mod-list li + li { border-top: 1px solid var(--line-2); }
.mod {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 4px 18px; align-items: start;
  padding: 22px 24px; text-decoration: none; color: inherit;
  transition: background-color .18s ease;
}
.mod:hover { background: var(--tint-2); color: inherit; }
.mod .ico { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--tint); color: var(--brand); grid-row: span 2; }
.mod .ico svg { width: 22px; height: 22px; }
.mod h4 { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.015em; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.mod .tag { font-size: 0.875rem; color: var(--ink-3); font-weight: 500; letter-spacing: 0; }
.mod p { grid-column: 2; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; max-width: 64ch; }
.mod .go { grid-row: 1 / span 2; grid-column: 3; align-self: center; color: #A8B9B6; transition: transform .2s var(--ease-out), color .2s ease; }
.mod .go svg { width: 18px; height: 18px; }
.mod:hover .go { color: var(--brand); transform: translateX(3px); }
.mod.is-core { background: linear-gradient(0deg, var(--surface), var(--surface)); }
.mod.is-core .ico { background: var(--brand); color: #fff; }

.status { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.status.live { background: var(--live-bg); color: var(--live-tx); }
.status.live::before { background: var(--live-dot); }
.status.rollout { background: var(--roll-bg); color: var(--roll-tx); }
.status.rollout::before { background: var(--roll-dot); }
.status.coming { background: var(--soon-bg); color: var(--soon-tx); }
.status.coming::before { background: var(--soon-dot); }
.badge-new { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border: 1px solid #8CBFB7; border-radius: 999px; font-size: 0.6875rem; font-weight: 650; background: var(--new-bg); color: var(--new-tx); letter-spacing: 0.01em; }
.status-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 20px; font-size: 0.875rem; color: var(--ink-3); }
.status-legend li { list-style: none; display: flex; align-items: center; gap: 8px; }

/* Flow strip */
.flow { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); counter-reset: flow; border-top: 1px solid var(--line); }
.flow li { counter-increment: flow; padding: 22px 20px 0 0; position: relative; }
.flow li::before {
  content: counter(flow); position: absolute; top: -13px; left: 0;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); font-size: 0.75rem; font-weight: 650; color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.flow h3 { font-size: 1rem; font-weight: 650; margin-top: 12px; letter-spacing: -0.01em; }
.flow p { font-size: 0.875rem; color: var(--ink-2); margin-top: 6px; line-height: 1.5; }
.flow .by { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.flow .by a { font-size: 0.75rem; font-weight: 600; text-decoration: none; color: var(--brand); background: var(--tint); border-radius: 999px; padding: 3px 9px; }
.flow .by a:hover { background: #D3E7E3; }
.flow-foot { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; color: var(--ink-2); }

/* Reasons */
.reasons { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.reason-list { list-style: none; display: grid; gap: 0; }
.reason-list li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 36px 1fr; gap: 14px; }
.reason-list li:last-child { border-bottom: 1px solid var(--line); }
.reason-list .ico { width: 36px; height: 36px; border-radius: 9px; background: var(--tint); color: var(--brand); display: grid; place-items: center; }
.reason-list .ico svg { width: 19px; height: 19px; }
.reason-list h3 { font-size: 1.0625rem; letter-spacing: -0.015em; }
.reason-list p { color: var(--ink-2); font-size: 0.9375rem; margin-top: 4px; max-width: 62ch; }

/* Phone vignette */
.phone {
  width: 300px; margin: 0 auto; border-radius: 40px; padding: 10px; background: #0D1F21;
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.phone-screen { border-radius: 31px; background: var(--canvas); overflow: hidden; height: 600px; display: flex; flex-direction: column; }
.phone-top { height: 34px; display: flex; justify-content: center; align-items: center; }
.phone-top i { width: 84px; height: 22px; border-radius: 999px; background: #0D1F21; display: block; }
.ph-head { padding: 6px 18px 12px; display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; color: var(--ink-3); }
.ph-head b { color: var(--ink); font-size: 0.875rem; }
.ph-card { margin: 0 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 16px; }
.ph-card .v { font-size: 0.8125rem; color: var(--ink-3); }
.ph-card .amt { font-size: 1.75rem; font-weight: 650; letter-spacing: -0.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ph-card .sub { font-size: 0.75rem; color: var(--ink-3); }
.ph-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ph-actions span { height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 0.8125rem; font-weight: 600; }
.ph-actions .ok { background: var(--brand); color: #fff; }
.ph-actions .no { background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.ph-insight { margin: 10px 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--tint-2); font-size: 0.75rem; color: var(--ink-2); }
.ph-insight b { display: block; font-size: 0.8125rem; color: var(--ink); margin-bottom: 2px; }
.ph-bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; margin-top: 10px; }
.ph-bars i { flex: 1; background: #B9D8D2; border-radius: 3px 3px 0 0; display: block; }
.ph-bars i:last-child { background: var(--brand); }
.ph-lines { margin: 10px 12px 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px 14px; font-size: 0.75rem; }
.ph-lines div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.ph-lines div:last-child { border: 0; }
.ph-lines span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); }
.ph-note { text-align: center; font-size: 0.6875rem; color: var(--ink-3); margin-top: auto; padding: 12px; }

/* Start */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
.way { padding: 28px; }
.way + .way { border-left: 1px solid var(--line-2); }
.way h3 { font-size: 1.125rem; letter-spacing: -0.02em; }
.way p { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; }
.way .mods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.way .mods span { font-size: 0.75rem; font-weight: 600; color: var(--brand); background: var(--tint); border-radius: 999px; padding: 3px 9px; }
.steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.steps li { counter-increment: st; }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.875rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.steps h3 { font-size: 1.0625rem; margin-top: 16px; letter-spacing: -0.015em; }
.steps p { margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; }

/* Reference band */
.ref { border-radius: 24px; padding: 56px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; background: var(--deep-2); color: var(--on-deep); position: relative; overflow: hidden; isolation: isolate; }

.ref h2 { font-size: clamp(1.75rem, 3vw, 2.375rem); letter-spacing: -0.03em; color: #fff; }
.ref p { margin-top: 14px; color: var(--on-deep-2); max-width: 52ch; }
.ref .search-big {
  margin-top: 28px; width: 100%; max-width: 480px; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 18px;
  border-radius: 14px; border: 1px solid var(--line-deep); background: rgba(255, 255, 255, 0.06);
  font: inherit; font-size: 1rem; color: var(--on-deep-3); cursor: pointer; text-align: left;
  transition: border-color .18s ease, background-color .18s ease;
}
.ref .search-big:hover { border-color: rgba(234, 244, 242, 0.35); background: rgba(255, 255, 255, 0.09); }
.ref .search-big svg { width: 20px; height: 20px; }
.ref .search-big kbd { margin-left: auto; }
.guide-list { list-style: none; display: grid; gap: 10px; }
.guide-list a { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-deep); text-decoration: none; color: var(--on-deep); transition: background-color .18s ease, border-color .18s ease; }
.guide-list a:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(234, 244, 242, 0.3); color: #fff; }
.guide-list .pdf { width: 40px; height: 48px; border-radius: 6px; background: var(--on-deep); color: var(--deep); display: grid; place-items: end center; padding-bottom: 7px; font-size: 0.625rem; font-weight: 700; position: relative; }
.guide-list .pdf::before { content: ""; position: absolute; top: 0; right: 0; border-style: solid; border-width: 0 10px 10px 0; border-color: transparent var(--deep-2) #B8D1CC transparent; }
.guide-list b { display: block; font-weight: 600; }
.guide-list small { display: block; font-size: 0.8125rem; color: var(--on-deep-3); line-height: 1.4; }
.guide-list svg { width: 18px; height: 18px; color: var(--on-deep-3); }

/* ---------- Footer ---------- */
.site-footer { background: var(--deep); color: var(--on-deep-2); padding: 56px 0 40px; margin-top: 0; font-size: 0.875rem; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer p { margin-top: 14px; max-width: 42ch; color: var(--on-deep-3); line-height: 1.55; }
.site-footer h4 { color: #fff; font-size: 0.875rem; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: var(--on-deep-2); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .sf { margin-top: 22px; display: flex; align-items: center; gap: 12px; color: var(--on-deep-3); font-size: 0.8125rem; }
.site-footer .sf img { height: 34px; width: auto; }
.footnote { grid-column: 1 / -1; border-top: 1px solid var(--line-deep); padding-top: 22px; margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--on-deep-3); font-size: 0.8125rem; }

/* ---------- Module page ---------- */
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr) 200px; gap: 48px; padding-top: 40px; padding-bottom: 112px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 24px); max-height: calc(100vh - var(--header-h) - 48px); overflow: auto; padding-bottom: 24px; }
.side-nav h2 { font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin: 18px 0 6px 10px; }
.side-nav h2:first-child { margin-top: 0; }
.side-nav ul { list-style: none; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; font-size: 0.875rem; color: var(--ink-2); text-decoration: none; }
.side-nav a:hover { background: var(--tint-2); color: var(--ink); }
.side-nav a[aria-current="page"] { background: var(--tint); color: var(--brand); font-weight: 600; }
.side-nav .dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.side-nav .dot.live { background: var(--live-dot); } .side-nav .dot.rollout { background: var(--roll-dot); } .side-nav .dot.coming { background: var(--soon-dot); }

.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.8125rem; }
.toc h2 { font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; margin-bottom: 8px; }
.toc ul { list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -1px; border-left: 1px solid transparent; color: var(--ink-3); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 550; }
.toc .to-top { margin-top: 16px; display: inline-flex; gap: 6px; align-items: center; color: var(--ink-3); text-decoration: none; }

.article { min-width: 0; max-width: 780px; }
.crumbs { font-size: 0.875rem; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--brand); }
.crumbs svg { width: 14px; height: 14px; }
.mod-hero { margin-top: 18px; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.mod-hero .ico { width: 56px; height: 56px; border-radius: 14px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.mod-hero .ico svg { width: 28px; height: 28px; }
.mod-hero h1 { font-size: clamp(2.125rem, 4.2vw, 3.125rem); letter-spacing: -0.04em; font-weight: 660; }
.mod-hero .lede { margin-top: 12px; font-size: 1.1875rem; color: var(--ink-2); line-height: 1.5; max-width: 60ch; }
.mod-status { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 0.875rem; color: var(--ink-3); }

.block { margin-top: 64px; }
.block > h2 { font-size: 1.625rem; letter-spacing: -0.03em; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.block > h2 + .sub { margin: -12px 0 24px; color: var(--ink-3); font-size: 0.9375rem; }
.does { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.does li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.does svg { width: 18px; height: 18px; color: var(--brand); margin-top: 3px; }
.does strong, .prose strong { color: var(--ink); font-weight: 600; }

.steps-v { list-style: none; counter-reset: sv; position: relative; }
.steps-v li { counter-increment: sv; position: relative; padding: 0 0 22px 48px; color: var(--ink-2); line-height: 1.6; }
.steps-v li::before { content: counter(sv); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--brand); font-size: 0.8125rem; font-weight: 650; font-variant-numeric: tabular-nums; z-index: 1; }
.steps-v li::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 0; width: 1px; background: var(--line); }
.steps-v li:last-child { padding-bottom: 0; }
.steps-v li:last-child::after { display: none; }
.flow-title { font-size: 1.0625rem; font-weight: 650; margin: 28px 0 16px; letter-spacing: -0.015em; }
.flow-title:first-child { margin-top: 0; }

.feat-group + .feat-group { margin-top: 44px; }
.feat-group > h3 { font-size: 1.1875rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.feats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.feat { padding: 20px 0; border-bottom: 1px solid var(--line-2); scroll-margin-top: calc(var(--header-h) + 24px); }
.feat h4 { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.feat p { margin-top: 6px; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }
.feat:target { animation: flash 2.4s var(--ease-out); }
@keyframes flash { 0%, 30% { background: #E7F4F0; box-shadow: -12px 0 0 #E7F4F0, 12px 0 0 #E7F4F0; } 100% { background: transparent; box-shadow: none; } }

.deep-box { margin-top: 28px; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); padding: 22px 24px; }
.deep-box h4 { font-size: 1rem; font-weight: 650; }
.deep-box ul { list-style: none; margin-top: 10px; display: grid; gap: 8px; }
.deep-box li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 0.9375rem; }
.deep-box li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: #9FC3BC; }

.setup { list-style: none; counter-reset: su; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); overflow: hidden; }
.setup li { counter-increment: su; display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 16px 20px; color: var(--ink-2); font-size: 0.9375rem; }
.setup li + li { border-top: 1px solid var(--line-2); }
.setup li::before { content: counter(su); font-weight: 650; color: var(--brand); font-variant-numeric: tabular-nums; }

.statuses { display: grid; gap: 12px; }
.statuses div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); font-size: 0.9375rem; }
.statuses b { font-weight: 600; }
.statuses p { color: var(--ink-2); }

.faq details { border-bottom: 1px solid var(--line-2); scroll-margin-top: calc(var(--header-h) + 24px); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; transition: transform .25s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 32px 18px 0; color: var(--ink-2); font-size: 0.9375rem; }
.faq summary:hover { color: var(--brand); }

.terms { display: grid; grid-template-columns: max-content 1fr; gap: 0 28px; }
.terms dt { font-weight: 600; padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 0.9375rem; }
.terms dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line-2); color: var(--ink-2); font-size: 0.9375rem; }

.note { margin-top: 20px; padding: 14px 18px; border-radius: var(--radius); background: var(--tint-2); color: var(--ink-2); font-size: 0.9375rem; }
.note b { color: var(--ink); }

.guides-inline { list-style: none; display: grid; gap: 10px; }
.guides-inline a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.guides-inline a:hover { border-color: #B6CAC6; color: var(--ink); }
.guides-inline .pdf { width: 34px; height: 40px; border-radius: 5px; background: var(--tint); color: var(--brand); display: grid; place-items: end center; padding-bottom: 5px; font-size: 0.5625rem; font-weight: 700; }
.guides-inline b { font-weight: 600; display: block; }
.guides-inline small { color: var(--ink-3); font-size: 0.8125rem; }
.guides-inline svg { width: 18px; height: 18px; color: var(--ink-3); }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 80px; }
.pager a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--surface); color: var(--ink); }
.pager a:hover { border-color: #B6CAC6; color: var(--ink); }
.pager small { display: block; color: var(--ink-3); font-size: 0.8125rem; }
.pager b { font-weight: 600; }
.pager .next { text-align: right; grid-column: 2; }

/* ---------- Example page ---------- */
.ex-hero { padding: 56px 0 8px; }
.ex-hero h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); letter-spacing: -0.04em; max-width: 18ch; }
.ex-hero p { margin-top: 16px; font-size: 1.1875rem; color: var(--ink-2); max-width: 62ch; }
.ex-cast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.ex-cast > div { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); padding: 20px 22px; font-size: 0.875rem; color: var(--ink-2); }
.ex-cast h3 { font-size: 0.9375rem; color: var(--ink); margin-bottom: 8px; }
.ex-cast table { width: 100%; border-collapse: collapse; }
.ex-cast td { padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.ex-cast td:last-child { text-align: right; color: var(--ink); }
.ex-cast ul { list-style: none; display: grid; gap: 6px; }
.timeline { list-style: none; margin-top: 56px; position: relative; }
.timeline > li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 32px; padding-bottom: 48px; position: relative; }
.timeline > li::before { content: ""; position: absolute; left: 136px; top: 10px; bottom: 0; width: 1px; background: var(--line); }
.timeline > li:last-child::before { display: none; }
.timeline .t { text-align: right; padding-top: 2px; font-size: 0.875rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.timeline .t b { display: block; color: var(--brand); font-size: 0.8125rem; font-weight: 650; }
.timeline .c { position: relative; padding-left: 32px; }
.timeline .c::before { content: ""; position: absolute; left: -12px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.timeline h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.timeline .c > p { margin-top: 8px; color: var(--ink-2); max-width: 66ch; }
.tbl { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 0.875rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl th { text-align: left; font-weight: 600; font-size: 0.75rem; color: var(--ink-3); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--tint-2); }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .amt { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.tbl .sum td { font-weight: 650; color: var(--ink); }
.quote { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); background: var(--tint-2); font-size: 0.9375rem; color: var(--ink); }
.more-ex { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ex-card { border: 1px solid var(--line); border-radius: var(--radius-l); background: var(--surface); padding: 26px 28px; }
.ex-card h3 { font-size: 1.1875rem; letter-spacing: -0.02em; }
.ex-card > p { margin-top: 8px; color: var(--ink-2); font-size: 0.9375rem; }
.ex-card ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
.ex-card li { position: relative; padding-left: 18px; font-size: 0.9375rem; color: var(--ink-2); }
.ex-card li::before { content: ""; position: absolute; left: 2px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: #9FC3BC; }
.ex-card .tbl { font-size: 0.8125rem; }

/* ---------- Gate + login chooser ---------- */
.gate { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; position: relative; overflow: hidden; isolation: isolate; }

.gate-top { padding: 24px; display: flex; justify-content: space-between; align-items: center; max-width: var(--wrap); width: 100%; margin: 0 auto; }
.gate-top .brand { color: #fff; }
.gate-top a.link { color: var(--on-deep-2); font-size: 0.875rem; text-decoration: none; }
.gate-top a.link:hover { color: #fff; }
.gate-main { display: grid; place-items: center; padding: 24px 16px 64px; }
.gate-card { width: 100%; max-width: 440px; text-align: center; }
.gate-card .mark { width: 64px; height: 64px; margin: 0 auto 28px; }
.gate-card h1 { font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -0.035em; color: #fff; }
.gate-card > p { margin-top: 12px; color: var(--on-deep-2); }
.gate-form { margin-top: 32px; display: grid; gap: 12px; text-align: left; }
.gate-form label { font-size: 0.875rem; font-weight: 600; color: var(--on-deep); }
.field { position: relative; }
.field input {
  width: 100%; height: 54px; border-radius: 14px; border: 1px solid rgba(234, 244, 242, 0.22); background: rgba(255, 255, 255, 0.06);
  color: #fff; font: inherit; font-size: 1.0625rem; padding: 0 52px 0 18px; letter-spacing: 0.02em;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder { color: var(--on-deep-3); }
.field input:hover { border-color: rgba(234, 244, 242, 0.4); }
.field input:focus { outline: none; border-color: var(--aqua); background: rgba(255, 255, 255, 0.09); box-shadow: 0 0 0 4px var(--aqua-soft); }
.field input[aria-invalid="true"] { border-color: #F2A38E; }
.field .reveal { position: absolute; right: 8px; top: 8px; width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--on-deep-3); cursor: pointer; display: grid; place-items: center; }
.field .reveal:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.field .reveal svg { width: 20px; height: 20px; }
.gate-form .btn { height: 52px; justify-content: center; font-size: 1rem; border-radius: 14px; }
.gate-form .btn[disabled] { opacity: .7; cursor: progress; }
.form-error { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(242, 163, 142, 0.12); color: #FFD9CF; font-size: 0.875rem; text-align: left; }
.form-error svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.gate-help { margin-top: 28px; font-size: 0.875rem; color: var(--on-deep-3); }
.gate-help a { color: var(--on-deep); }
.gate-foot { text-align: center; padding: 24px; font-size: 0.8125rem; color: var(--on-deep-3); }

.chooser { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 1040px; margin-top: 40px; }
.chooser a { display: flex; flex-direction: column; height: 100%; padding: 28px; border-radius: 20px; text-decoration: none; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-deep); color: var(--on-deep); text-align: left; transition: background-color .2s ease, border-color .2s ease, transform .25s var(--ease-out); }
.chooser a:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(234, 244, 242, 0.32); color: #fff; transform: translateY(-2px); }
.chooser .ico { width: 48px; height: 48px; border-radius: 13px; background: var(--on-deep); color: var(--deep); display: grid; place-items: center; }
.chooser .ico svg { width: 24px; height: 24px; }
.chooser h2 { font-size: 1.25rem; margin-top: 22px; color: #fff; letter-spacing: -0.02em; }
.chooser p { margin-top: 8px; font-size: 0.9375rem; color: var(--on-deep-2); line-height: 1.5; }
.chooser .who { margin-top: 16px; font-size: 0.8125rem; color: var(--on-deep-3); }
.chooser .host { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 8px; font-size: 0.875rem; font-weight: 600; color: var(--aqua); }
.chooser .host svg { width: 16px; height: 16px; }
.chooser-wrap { display: grid; justify-items: center; text-align: center; width: 100%; }
.chooser-wrap h1 { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.04em; color: #fff; }
.chooser-wrap > p { margin-top: 12px; color: var(--on-deep-2); max-width: 54ch; }

/* ---------- Search palette ---------- */
.palette { border: 0; padding: 0; width: min(680px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px)); margin: 12vh auto 0; border-radius: 18px; background: var(--surface); box-shadow: 0 30px 90px -20px rgba(4, 30, 32, 0.5), 0 0 0 1px rgba(6, 40, 43, 0.08); overflow: hidden; color: var(--ink); }
.palette::backdrop { background: rgba(4, 30, 32, 0.45); backdrop-filter: blur(3px); }
.palette[open] { animation: pop .22s var(--ease-out); display: flex; flex-direction: column; }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.985); } to { opacity: 1; transform: none; } }
.palette-input { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--line-2); flex: none; }
.palette-input svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.palette-input input { flex: 1; height: 58px; border: 0; outline: none; font: inherit; font-size: 1.0625rem; color: var(--ink); background: transparent; }
.palette-input input::placeholder { color: var(--ink-3); }
.palette-results { overflow: auto; padding: 8px; flex: 1; }
.palette-results h3 { font-size: 0.75rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; padding: 10px 10px 4px; }
.palette-results a { display: grid; grid-template-columns: 30px 1fr; gap: 2px 12px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.palette-results a .k { grid-row: span 2; width: 30px; height: 30px; border-radius: 8px; background: var(--tint); color: var(--brand); display: grid; place-items: center; }
.palette-results a .k svg { width: 16px; height: 16px; }
.palette-results a b { font-weight: 600; font-size: 0.9375rem; }
.palette-results a span { font-size: 0.8125rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-results a[aria-selected="true"] { background: var(--tint); }
.palette-results mark { background: #CDEBE3; color: inherit; border-radius: 3px; padding: 0 1px; }
.palette-empty { padding: 36px 20px; text-align: center; color: var(--ink-3); font-size: 0.9375rem; }
.palette-foot { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid var(--line-2); font-size: 0.75rem; color: var(--ink-3); flex: none; }
.palette-foot span { display: inline-flex; gap: 6px; align-items: center; }

/* ---------- Error page ---------- */
.err { padding: 120px 0; text-align: center; }
.err h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.04em; }
.err p { margin: 14px auto 28px; color: var(--ink-2); max-width: 48ch; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .doc-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; margin-left: auto; }
  .is-deep .menu-toggle { background: transparent; border-color: var(--line-deep); color: #fff; }
  .menu-toggle svg { width: 20px; height: 20px; }
  .search-trigger { min-width: 0; }
  .search-trigger .lbl, .search-trigger kbd { display: none; }
  .search-trigger { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .site-header .wrap { gap: 10px; }
  .site-header .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; box-shadow: var(--shadow-2);
  }
  .site-header .nav.is-open a, .site-header .nav.is-open button.navlink { color: var(--ink); padding: 12px; font-size: 1rem; text-align: left; }
  .journey-body { grid-template-columns: minmax(0, 1fr); }
  .stages { border-right: 0; border-bottom: 1px solid var(--line-2); padding: 10px; overflow-x: auto; }
  .stages ol { display: flex; gap: 4px; }
  .stage { grid-template-columns: 24px auto; width: auto; white-space: nowrap; padding: 8px 10px; }
  .stage .mark { width: 24px; height: 24px; }
  .stage small { display: none; }
  .journey-replay { margin: 0 0 0 6px; white-space: nowrap; }
  .group { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .group-intro { position: static; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .reasons { grid-template-columns: minmax(0, 1fr); }
  .ref { grid-template-columns: minmax(0, 1fr); padding: 40px; gap: 36px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > :first-child { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); padding-top: 24px; }
  .side-nav { display: none; }
  .chooser { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }
  .journey { margin-top: 44px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); border-radius: 0; border-left: 0; border-right: 0; }
  .doc { padding: 18px 16px 20px; }
  .doc-head { grid-template-columns: 1fr; }
  .doc-total { text-align: left; }
  .lines .hide-sm { display: none; }
  .doc-foot { grid-template-columns: 1fr; }
  .section, .section.alt, .section.alt + .section { padding: 72px 0; }
  .section + .section { padding-top: 0; }
  .section.alt { padding-top: 72px; }
  .section[id] { scroll-margin-top: -56px; }
  .mod { grid-template-columns: 40px minmax(0, 1fr); padding: 18px 16px; gap: 4px 14px; }
  .mod .ico { width: 40px; height: 40px; }
  .mod .go { display: none; }
  .flow { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line); row-gap: 28px; margin-left: 13px; }
  .flow li { padding: 0 0 0 28px; }
  .flow li::before { left: -13px; top: 0; }
  .flow h3 { margin-top: 2px; }
  .ways { grid-template-columns: 1fr; }
  .way + .way { border-left: 0; border-top: 1px solid var(--line-2); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .ref { padding: 28px 20px; border-radius: 18px; }
  .phone { width: 280px; }
  .phone-screen { height: 560px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .does, .feats { grid-template-columns: 1fr; }
  .statuses div { grid-template-columns: 1fr; gap: 4px; }
  .terms { grid-template-columns: 1fr; }
  .terms dt { border-bottom: 0; padding-bottom: 0; }
  .mod-hero { grid-template-columns: 1fr; gap: 16px; }
  .pager { grid-template-columns: 1fr; }
  .pager .next { grid-column: 1; }
  .ex-cast, .more-ex { grid-template-columns: 1fr; }
  .timeline > li { grid-template-columns: 1fr; gap: 6px; }
  .timeline > li::before { left: 5px; top: 28px; }
  .timeline .t { text-align: left; padding-left: 28px; }
  .timeline .c { padding-left: 28px; }
  .timeline .c::before { left: 0; top: -22px; }
  .tbl-scroll { overflow-x: auto; }
  .login-menu { position: fixed; left: 16px; right: 16px; top: calc(var(--header-h) + 6px); width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

.linklike { all: unset; cursor: pointer; color: inherit; }
.linklike:hover { color: #fff; text-decoration: underline; }
.linklike:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 4px; }

.ph-bars i:nth-child(1) { height: 52%; }
.ph-bars i:nth-child(2) { height: 61%; }
.ph-bars i:nth-child(3) { height: 48%; }
.ph-bars i:nth-child(4) { height: 70%; }
.ph-bars i:nth-child(5) { height: 55%; }
.ph-bars i:nth-child(6) { height: 63%; }
.ph-bars i:nth-child(7) { height: 58%; }
.ph-bars i:nth-child(8) { height: 66%; }
.ph-bars i:nth-child(9) { height: 51%; }
.ph-bars i:nth-child(10) { height: 60%; }
.ph-bars i:nth-child(11) { height: 84%; }
.to-top svg { width: 14px; height: 14px; }

.mod p strong { color: var(--ink); font-weight: 600; }
.site-header:not(.is-deep) .login > .btn-light { background: var(--brand); color: #fff; }
.site-header:not(.is-deep) .login > .btn-light:hover { background: var(--brand-hover); }
[data-check].is-pending, [data-chain].is-pending { opacity: .42; }
[data-check].is-pending .ok, [data-chain].is-pending .ok { color: #B8C6C4; }
[data-chain].is-pending .when { visibility: hidden; }
.brand span { white-space: nowrap; }
.ref .search-big span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) {
  .ref .search-big kbd { display: none; }
  .site-header .login > .btn { padding: 0 12px; }
  .flow-foot .btn { white-space: normal; height: auto; min-height: 44px; padding: 10px 20px; text-align: center; }
}
@media (max-width: 340px) {
  .brand span { display: none; }
}
/* features read as a reference list: title left, description right */
.feats { grid-template-columns: 1fr; }
.feat { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr); gap: 4px 28px; }
.feat h4 { align-content: start; }
.feat p { margin-top: 0; }
@media (max-width: 720px) { .feat { grid-template-columns: 1fr; } .feat p { margin-top: 6px; } }
.palette-input input::-webkit-search-cancel-button { display: none; }
.chooser .hostname { margin-top: 4px; font-size: 0.8125rem; color: var(--on-deep-3); overflow-wrap: anywhere; }

.doc-head .vendor { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.015em; line-height: 1.2; }
.ex-cast h2 { font-size: 0.9375rem; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.01em; }
.chooser a { display: grid; grid-template-columns: 48px 1fr; gap: 0 16px; align-content: start; }
.chooser .ico { grid-row: span 2; }
.chooser h2 { margin-top: 2px; }
.chooser p { grid-column: 2; }
.chooser .who, .chooser .host, .chooser .hostname { grid-column: 2; }
.chooser .host { padding-top: 18px; }

kbd { white-space: nowrap; }
.timeline { padding-bottom: 32px; }
.err { padding-bottom: 160px; }
/* the trace repeats under the line text where its column is hidden */
.trace-sm { display: none; }
@media (max-width: 720px) {
  .ways, .steps, .more-ex, .ex-cast, .does, .feats, .site-footer .wrap, .doc-head, .doc-foot, .terms, .pager { grid-template-columns: minmax(0, 1fr); }
  .trace-sm { display: block; margin-top: 2px; white-space: normal; }
  .crumb .c-hide { display: none; }
  .journey-bar .crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .site-header .wrap { gap: 8px; }
}
.nav .nav-search { display: none; }
@media (max-width: 1024px) {
  .site-header .search-trigger { margin-left: auto; }
  .menu-toggle { margin-left: 0; }
}
@media (max-width: 430px) {
  .site-header .search-trigger { display: none; }
  .site-header .login { margin-left: auto; }
  .site-header .nav.is-open .nav-search { display: block; }
}
