/* ============================================================
   suma.css — the Suma design system.
   Direction: "a Hong Kong private bank" — cool, institutional,
   data-forward. Deep ink + cool off-white, a structural navy, and
   ONE restrained metallic accent (muted brass). One confident sans,
   sentence case; monospace reserved for real numeric/ledger data.
   Shared by every page (marketing + portal) for one coherent system.
   ============================================================ */

/* ---- self-hosted type: Geist (UI/body) + Geist Mono (ledger numbers) ----
   The wordmark keeps the original serif (--font-brand). A real webfont is the
   single biggest lift from "templated" to "shipped by a design-led company". */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/geist-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/geist-500.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/geist-600.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/geist-700.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/geistmono-400.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/geistmono-500.woff2') format('woff2'); }

:root {
  /* ---- light (default): "account-book paper" ---- */
  --bg:         #F2EDE1;   /* cream paper */
  --surface:    #F8F4EA;   /* raised cards */
  --surface-2:  #EBE4D4;   /* insets, wells */
  --ink:        #181E19;   /* deepest — display headings */
  --text:       #232A24;   /* body */
  --text-dim:   #565E56;   /* secondary */
  --text-faint: #656C5D;   /* tertiary — AA against paper AND card (4.66:1 / 4.96:1) */
  --line:       #DBD3C1;
  --line-strong:#C7BDA6;
  --navy:       #2F573F;   /* structural — deep jade */
  --navy-2:     #14201A;   /* deep green-black — dark bands */
  --accent:     #3C6B4F;   /* jade */
  --accent-bright:#6BA886; /* brighter jade on dark bands */
  --accent-soft: rgba(60,107,79,0.10);
  --brass:      #8A6220;   /* warm secondary */
  --brass-soft: rgba(138,98,32,0.10);
  --good:       #2F7D57;
  --warn:       #9A5A2A;

  --shadow-sm: 0 1px 2px rgba(15,23,32,0.04), 0 1px 3px rgba(15,23,32,0.06);
  --shadow-md: 0 2px 4px rgba(15,23,32,0.04), 0 8px 24px rgba(15,23,32,0.07);
  --shadow-lg: 0 4px 12px rgba(15,23,32,0.08), 0 24px 60px rgba(15,23,32,0.12);

  --font-sans: 'Geist', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Code", "Roboto Mono", monospace;

  --maxw: 1160px;
  --pad: clamp(1.25rem, 5vw, 2.75rem);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:#0E1310; --surface:#161D18; --surface-2:#121814;
    --ink:#ECE6D8; --text:#D7D2C4; --text-dim:#9BA298; --text-faint:#8B9286;
    --line:#262E28; --line-strong:#343D35;
    --navy:#1C3226; --navy-2:#0A0F0C;
    --accent:#86B195; --accent-bright:#9DC4AA; --accent-soft:rgba(134,177,149,0.12);
    --brass:#C9A15C; --brass-soft:rgba(201,161,92,0.12);
    --good:#5FB088; --warn:#D0955C;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 2px 6px rgba(0,0,0,0.35), 0 14px 40px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.45), 0 30px 70px rgba(0,0,0,0.55);
  }
}
/* forced dark (theme toggle) — MUST stay identical to the media-query dark
   above, or toggling dark→light→dark lands in a different dark theme */
:root[data-theme="dark"] {
  --bg:#0E1310; --surface:#161D18; --surface-2:#121814;
  --ink:#ECE6D8; --text:#D7D2C4; --text-dim:#9BA298; --text-faint:#8B9286;
  --line:#262E28; --line-strong:#343D35;
  --navy:#1C3226; --navy-2:#0A0F0C;
  --accent:#86B195; --accent-bright:#9DC4AA; --accent-soft:rgba(134,177,149,0.12);
  --brass:#C9A15C; --brass-soft:rgba(201,161,92,0.12);
  --good:#5FB088; --warn:#D0955C;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 2px 6px rgba(0,0,0,0.35), 0 14px 40px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.45), 0 30px 70px rgba(0,0,0,0.55);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden; font-feature-settings: "kern" 1;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent-soft); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap-narrow { max-width: 820px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -0.022em; line-height: 1.08; text-wrap: balance; font-weight: 600; }
.display { font-size: clamp(2.6rem, 5.6vw, 5rem); font-weight: 560; letter-spacing: -0.035em; line-height: 1.0; }
h1 { font-size: clamp(2.1rem, 4vw, 3.15rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.28rem; letter-spacing: -0.015em; font-weight: 640; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.5; color: var(--text-dim); text-wrap: pretty; }
.prose { color: var(--text-dim); max-width: 62ch; text-wrap: pretty; }
.prose strong { color: var(--text); font-weight: 620; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.metal { color: var(--brass); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
}
.eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: currentColor; opacity: .5; }
.eyebrow.plain { color: var(--text-dim); }

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
/* brand: the app tile (jade S on its squircle — same mark as the desktop app
   and the favicon) + the serif "Suma" wordmark. The PNG carries ~10% transparent
   margin, so it renders oversized for the tile to read at ~28px. */
:root { --font-brand: 'Iowan Old Style', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, ui-serif, serif; }
.nav-inner { display: flex; align-items: center; gap: 1.25rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; margin-right: auto; }
.brand .logo { display: block; width: 36px; height: 36px; margin: -4px -3px -4px 0; flex: none; }
.brand .mark { font-family: var(--font-brand); font-size: 1.85rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
nav.links { display: flex; align-items: center; gap: 1.9rem; }
nav.links a { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-dim); font-weight: 400; position: relative; padding: 2px 0; transition: color .18s var(--ease); }
nav.links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--accent); transition: width .22s var(--ease); }
nav.links a:hover, nav.links a[aria-current="page"] { color: var(--ink); }
nav.links a:hover::after, nav.links a[aria-current="page"]::after { width: 100%; }
nav.links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 3px; }
.nav-cta { display: flex; align-items: center; gap: 0.7rem; }
.desk-label { margin-left: auto; font-size: 0.8rem; color: var(--text-dim); letter-spacing: .02em; }

/* bars carrying the primary links: brand | centered links | actions.
   Portal bars (login/client/staff) have no nav.links and keep the flex layout. */
.nav-inner:has(nav.links) { display: grid; grid-template-columns: 1fr auto 1fr; }
.nav-inner:has(nav.links) .brand { margin-right: 0; justify-self: start; }
.nav-inner:has(nav.links) .nav-cta { justify-self: end; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-sans); font-size: 0.94rem; font-weight: 560; line-height: 1;
  padding: 0.72rem 1.15rem; border-radius: var(--r-pill); cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .14s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); filter: brightness(1.04); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.86rem; }
/* THE SAME TREATMENT THE WIZARD'S .act CARRIES, so the marketing pages, the
   portal and /onboard agree about what "focused" looks like: a ring AND an
   outline, with the outline load-bearing — forced-colors mode discards
   box-shadow outright, which would leave the ring invisible to exactly the
   people it exists for. :focus-visible semantics are kept, so a mouse press
   still draws nothing. A disabled button is deliberately NOT made focusable;
   nothing here changes anything but the focus treatment. */
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 26%, transparent);
}
@media (forced-colors: active) {
  .btn:focus-visible { outline: 3px solid Highlight; outline-offset: 3px; }
}
.on-dark .btn-primary { background: var(--accent-bright); color: var(--navy-2); }
.on-dark .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.28); }
.on-dark .btn-ghost:hover { border-color: #fff; }

.theme-toggle {
  font-size: 0.95rem; line-height: 1; background: transparent; border: 1px solid var(--line-strong);
  color: var(--text-dim); width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; transition: border-color .16s, color .16s;
}
.theme-toggle:hover { border-color: var(--text-dim); color: var(--ink); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* mobile menu */
.hamburger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-strong); background: transparent;
  border-radius: var(--r-xs); cursor: pointer; color: var(--ink); place-items: center; }
.hamburger svg { width: 20px; height: 20px; }
.mobile-drawer { display: none; }

@media (max-width: 880px) {
  nav.links { display: none; }
  .nav-cta .btn { display: none; }
  .hamburger { display: grid; }
  .mobile-drawer[data-open="true"] {
    display: block; position: fixed; inset: 66px 0 0; z-index: 55;
    background: var(--bg); border-top: 1px solid var(--line); padding: 1.5rem var(--pad); overflow-y: auto;
  }
  .mobile-drawer a { display: block; font-size: 1.35rem; font-weight: 600; color: var(--ink); padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .mobile-drawer .btn { display: inline-flex; margin-top: 1.4rem; }
  /* .mobile-drawer a (0-1-1) beats .btn-primary (0-1-0), which painted the
     "Get in touch" label ink-on-ink — restate the button's text color at
     higher specificity so the pill is readable in both themes. */
  .mobile-drawer a.btn-primary { color: var(--bg); border-bottom: none; }
}

/* Drawer-open scroll lock. body{overflow:hidden} alone doesn't stop iOS Safari
   touch scrolling — position:fixed does. The drawer JS scrolls to the top
   BEFORE adding this class, so freezing the body at top:0 never causes a
   content jump, and closing simply unfreezes at the top of the page. */
body.drawer-open { position: fixed; top: 0; left: 0; right: 0; width: 100%; overflow: hidden; }
.mobile-drawer { overscroll-behavior: contain; }

/* ---------- sections ---------- */
.section { padding-top: clamp(3.75rem, 8vw, 6.5rem); padding-bottom: clamp(3.75rem, 8vw, 6.5rem); }
.section + .section, .band + .section, .section.divided { border-top: 1px solid var(--line); }
.sec-head { max-width: 60ch; }
.sec-head h2 { margin-top: 0.9rem; }
.sec-head .prose { margin-top: 1.1rem; }

/* dark band (hero, CTA) */
.band-dark { background: var(--navy-2); color: #ECE6D8; }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #FBF8F0; }
.band-dark .prose, .band-dark .lead { color: #C4C9BC; }
.band-dark .eyebrow { color: var(--accent-bright); }
.band-dark .hairline { border-color: rgba(255,255,255,0.12); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); }
.card.pad { padding: clamp(1.5rem, 2.5vw, 2rem); }
.card-lift { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card-lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin-top: 2.5rem; }
.feature h3 { display: flex; align-items: center; gap: 0.6rem; }
.feature ul { list-style: none; padding: 0; margin: 1.1rem 0 0; }
.feature li { position: relative; padding-left: 1.5rem; margin: 0.65rem 0; color: var(--text-dim); }
.feature li::before { content: ""; position: absolute; left: 0; top: 0.58em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.feature .kicker { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }
.feature .note { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 0.95rem; }

/* stat / trust strip */
.strip { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; align-items: center; }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.trust-row .cell { background: var(--surface); padding: 1.2rem 1.3rem; }
.trust-row .cell .t { font-weight: 620; color: var(--ink); font-size: 0.98rem; }
.trust-row .cell .d { color: var(--text-dim); font-size: 0.88rem; margin-top: 0.3rem; }

/* process timeline */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-top: 2.25rem; }
.step { background: var(--surface); padding: 1.4rem 1.5rem; display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start; }
.step .n { counter-increment: step; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 0.9rem; color: var(--accent);
  width: 2.1rem; height: 2.1rem; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; font-weight: 600; }
.step .n::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-size: 1.08rem; }
.step p { color: var(--text-dim); margin-top: 0.3rem; font-size: 0.97rem; }

/* chips / badges */
.chip { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; font-weight: 550;
  padding: 0.32rem 0.7rem; border-radius: var(--r-pill); border: 1px solid var(--line-strong); color: var(--text-dim); background: var(--surface); }
.chip.ok { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, var(--line)); }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* forms */
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field label, .fieldset legend { font-size: 0.82rem; font-weight: 560; color: var(--text-dim); }
.field input, .field textarea, .field select {
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text);
  border-radius: var(--r-sm); padding: 0.72rem 0.9rem; font: inherit; font-size: 0.98rem; width: 100%;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* footer */
footer.foot { border-top: 1px solid var(--line); background: var(--surface-2); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; padding: clamp(3rem,6vw,4.5rem) 0 2.5rem; }
.foot-brand .mark { font-family: var(--font-brand); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.foot-brand p { color: var(--text-dim); margin-top: 0.8rem; max-width: 34ch; font-size: 0.94rem; }
.foot-col h4 { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); font-weight: 600; margin: 0 0 0.9rem; }
.foot-col a, .foot-col span { display: block; color: var(--text-dim); font-size: 0.92rem; margin: 0.5rem 0; }
.foot-col a:hover { color: var(--ink); }
/* Phones: raise the smallest mono micro-labels to a legible floor. They are
   uppercase + letter-spaced so they read larger than the px suggests, but sub-10px
   is genuinely hard on a handset. */
@media (max-width: 560px) {
  .eyebrow { font-size: 0.76rem; }
  nav.links a { font-size: 0.8rem; }
}

/* Touch devices: every link/control gets a comfortable target (Apple HIG ~44px).
   Scoped to coarse pointers so the desktop rhythm is untouched. */
@media (pointer: coarse) {
  /* iPads >880px keep the desktop nav — its links must still be tappable */
  nav.links a { padding: 0.85rem 0.45rem; }
  nav.links { gap: 1.05rem; }
  .foot-col a, .foot-col span { margin: 0; padding: 0.6rem 0; min-height: 44px; display: flex; align-items: center; }
  .foot-legal { gap: 0.5rem 1rem; }
  .foot-legal span { padding: 0.2rem 0; }
  /* NOTE: links sitting inline inside a sentence are deliberately NOT stretched —
     WCAG 2.5.8 exempts targets "in a sentence or block of text", and forcing a
     44px box on them distorts the line rhythm of the paragraph. */
  .btn-sm { padding: 0.7rem 1.05rem; min-height: 44px; }
  .btn { min-height: 44px; }
  .cat-opt span { min-height: 44px; }
  .theme-toggle, .hamburger { width: 44px; height: 44px; }
}
.foot-legal { border-top: 1px solid var(--line); padding: 1.3rem 0 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.82rem; color: var(--text-faint); }

/* reveal — SAFE: content is visible by default; only hidden when .js is set on <html> */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }
/* staggered variant: children animate one after another, parent doesn't move */
html.js .reveal.reveal-stagger { opacity: 1; transform: none; }
html.js .reveal-stagger > * { opacity: 0; transform: translateY(20px);
  transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > :nth-child(1) { transition-delay: .04s; }
.reveal-stagger.in > :nth-child(2) { transition-delay: .16s; }
.reveal-stagger.in > :nth-child(3) { transition-delay: .28s; }
.reveal-stagger.in > :nth-child(4) { transition-delay: .4s; }

.hairline { border: 0; border-top: 1px solid var(--line); margin: 0; }
.center { text-align: center; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }

@media (max-width: 880px) {
  .feature-grid { grid-template-columns: 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .trust-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
}


/* The [hidden] attribute must actually hide.
   Any author rule that sets `display` (our .next-step{display:flex},
   .tour-foot{display:flex}, inline style="display:flex" on a form, …) outranks
   the user-agent's [hidden]{display:none}, so elements marked hidden were
   rendering anyway — the client saw a password-change form and a tour footer
   that were supposed to be closed. One rule, stated once, at author origin. */
[hidden] { display: none !important; }

/* ===================================================================
   Onboarding — the installer widget (suma-install.js).
   Shared by the client portal and the welcome tour so the two cannot
   drift apart. Page-specific layout stays inline in each page.
   =================================================================== */

.installer { display: flex; flex-direction: column; gap: 0.85rem; align-items: stretch; }
.ins-loading { margin: 0; color: var(--text-faint); font-size: 0.9rem; }
.ins-note { margin: 0; color: var(--text-dim); font-size: 0.93rem; line-height: 1.6; }

/* the one button that matters — deliberately bigger than a normal .btn */
.ins-primary { flex-direction: column; gap: 0.15rem; padding: 0.95rem 1.4rem; text-align: center; align-items: center; }
.ins-primary .ins-sub { font-size: 0.76rem; font-weight: 450; opacity: 0.72; letter-spacing: 0.01em; }

.ins-more { font-size: 0.88rem; }
.ins-more > summary { cursor: pointer; color: var(--text-dim); padding: 0.2rem 0; list-style: none; }
.ins-more > summary::-webkit-details-marker { display: none; }
.ins-more > summary::before { content: "▸ "; color: var(--text-faint); }
.ins-more[open] > summary::before { content: "▾ "; }
.ins-more > summary:hover { color: var(--ink); }

.ins-others { display: flex; flex-direction: column; gap: 0.45rem; margin-top: 0.6rem; }
.ins-alt { display: flex; justify-content: space-between; align-items: center; gap: 1rem;
           padding: 0.65rem 0.9rem; background: var(--surface-2); border-radius: var(--r-sm);
           font-size: 0.9rem; color: var(--text-dim); text-decoration: none;
           border: 1px solid transparent; transition: border-color .15s var(--ease), color .15s var(--ease); }
a.ins-alt:hover { border-color: var(--line-strong); color: var(--ink); }
.ins-alt.is-pending { opacity: 0.72; }
.ins-alt-label { color: inherit; }
.ins-alt-meta { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.04em;
                text-transform: uppercase; color: var(--text-faint); flex: none; }
.ins-ver { margin: 0.2rem 0 0; font-family: var(--font-mono); font-size: 0.72rem;
           letter-spacing: 0.04em; color: var(--text-faint); }
.ins-pending { display: flex; flex-direction: column; gap: 0.8rem; align-items: flex-start; }
.ins-pending .ins-others { width: 100%; }
