/* Public website (first page). Uses the app's colour tokens, so it follows light / dark. */

body.at-site .topbar, body.at-site .layout, body.at-site #home, body.at-site #auth { display: none !important; }
.site { position: fixed; inset: 0; z-index: 45; overflow-y: auto; overflow-x: hidden; background: var(--bg); color: var(--ink); scroll-behavior: smooth; }
.site[hidden] { display: none; }
.site svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.site .logo svg { fill: initial; stroke: initial; }
.site .logo path { stroke: rgba(255, 255, 255, .6); stroke-width: 1.8; fill: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.site h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.03em; line-height: 1.12; margin: 0 0 14px; }
.site p { line-height: 1.7; }
.site code { font: 12.5px var(--mono); background: var(--surface-3); padding: 1px 6px; border-radius: 5px; }
.btn.big { height: 46px; padding: 0 20px; font-size: 15px; font-weight: 600; border-radius: 12px; }
.sec-no { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.sec-no::after { content: ""; width: 42px; height: 1px; background: currentColor; opacity: .5; }
.sec-no.light { color: #5eead4; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head p { font-size: 16.5px; color: var(--ink-2); margin: 0; }
.sub-h { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin: 52px 0 16px; }
.arrow-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.arrow-link::after { content: " →"; transition: margin .15s; }
.arrow-link:hover::after { margin-left: 4px; }

/* ── nav ── */
.sn { position: sticky; top: 0; z-index: 10; height: 66px; display: flex; align-items: center; gap: 28px; padding: 0 28px;
  background: color-mix(in srgb, #0a2a2a 82%, transparent); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid rgba(255, 255, 255, .06); color: #e6f4f1; transition: background .2s; }
.sn.scrolled { background: color-mix(in srgb, #0a2329 94%, transparent); box-shadow: 0 10px 30px -20px rgba(0, 0, 0, .7); }
.sn-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.sn-brand .logo, .sf-brand .logo { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(145deg, #14b8a6, #0f766e); box-shadow: 0 6px 16px -8px rgba(20, 184, 166, .8); }
.sn-brand .logo svg, .sf-brand .logo svg { width: 26px; height: 26px; }
.sn-brand strong { display: block; font-size: 15.5px; letter-spacing: -.015em; color: #fff; }
.sn-brand em { display: block; font-style: normal; font-size: 11.5px; color: rgba(230, 244, 241, .6); }
.sn-links { display: flex; gap: 4px; margin-left: auto; }
.sn-links a { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px 12px; border-radius: 9px; color: rgba(230, 244, 241, .78); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .15s, color .15s; }
.sn-links a b { font: 600 10.5px var(--mono); color: #5eead4; opacity: .85; }
.sn-links a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sn-links a.on { background: rgba(45, 212, 191, .14); color: #fff; }
.sn-actions { display: flex; align-items: center; gap: 8px; }
.sn-actions .sn-out, .sn-actions .sn-in { display: inline-flex; gap: 8px; }
.sn-actions [hidden] { display: none !important; }
.sn-actions .btn.ghost { color: #e6f4f1; border-color: rgba(255, 255, 255, .2); }
.sn-actions .btn.ghost:hover { border-color: #5eead4; }
.sn-icon { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #e6f4f1; cursor: pointer; display: grid; place-items: center; }
.sn-icon:hover { border-color: #5eead4; color: #5eead4; }
.sn-icon svg { width: 18px; height: 18px; }
.sn-burger { display: none; }
.site [hidden] { display: none !important; }

/* ── hero ── */
.s-hero { position: relative; color: #e6f4f1; padding: 76px 0 96px; overflow: hidden; isolation: isolate; margin-top: -66px; padding-top: 142px;
  background: radial-gradient(1000px 560px at 0% 0%, #13695f 0%, transparent 62%), radial-gradient(900px 600px at 100% 100%, #0f3352 0%, transparent 60%),
              linear-gradient(160deg, #0a2f2b 0%, #0a222b 55%, #0b1d29 100%); }
.s-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .4;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 36px 36px; mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 85%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(36px, 4.3vw, 58px); line-height: 1.04; letter-spacing: -.04em; margin: 0 0 20px; color: #fff; }
.hero-copy h1 span { background: linear-gradient(90deg, #5eead4, #a7f3d0 60%, #fde68a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: rgba(230, 244, 241, .8); margin: 0 0 30px; max-width: 560px; }
.lead b { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 38px; }
.hero-cta > span { display: inline-flex; gap: 12px; flex-wrap: wrap; }
.btn.on-dark { color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn.on-dark:hover { border-color: #5eead4; }
.hero-facts { list-style: none; margin: 0; padding: 22px 0 0; display: flex; gap: 40px; border-top: 1px solid rgba(255, 255, 255, .1); }
.hero-facts b { display: block; font: 700 28px var(--mono); color: #fff; letter-spacing: -.03em; }
.hero-facts span { font-size: 12.5px; color: rgba(230, 244, 241, .6); }
.hero-shot { position: relative; margin: 0; }
.win { border-radius: 14px; overflow: hidden; background: #0e1614; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .3); transform: perspective(1600px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; }
.win-bar { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #151f1d; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3b4744; }
.win-bar i:nth-child(1) { background: #ef6a5a; } .win-bar i:nth-child(2) { background: #f2c14e; } .win-bar i:nth-child(3) { background: #5ec26a; }
.win-bar span { margin-left: 10px; font: 500 11.5px var(--mono); color: rgba(230, 244, 241, .5); }
.win img { display: block; width: 100%; height: auto; }
.float { position: absolute; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .85); animation: floaty 7s ease-in-out infinite; }
.float.f1 { width: 42%; right: -26px; bottom: -48px; background: #121b19; }
.float.f1 img { display: block; width: 100%; }
.float.f2 { left: -28px; top: 34%; padding: 12px 14px; background: rgba(10, 34, 40, .8); backdrop-filter: blur(10px); animation-delay: -3s; min-width: 200px; }
.float.f2 .k { display: block; font: 600 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #99f6e4; }
.float.f2 b { display: block; color: #fff; font-size: 14px; margin: 3px 0; }
.float.f2 .s { font-size: 11.5px; color: rgba(230, 244, 241, .65); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ── content blocks ── */
.s-block { padding: 100px 0; }
.s-block.alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; }
.steps3 li { position: relative; display: flex; flex-direction: column; padding: 26px 24px 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.st-no { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font: 700 15px var(--mono); color: var(--on-accent);
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 75%, #fff), var(--accent)); margin-bottom: 16px; }
.steps3 h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.015em; }
.steps3 p { margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.st-art { margin-top: auto; min-height: 120px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 14px; display: flex; flex-wrap: wrap; align-content: center; gap: 6px; }
.st-art.chips span { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line-2); }
.st-art.chips span.more { color: var(--accent); border-style: dashed; }
.st-art.link { flex-direction: column; align-items: center; justify-content: center; flex-wrap: nowrap; text-align: center; }
.st-art.link .nd { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 8px; background: var(--surface); border: 1.5px solid var(--line-2); }
.st-art.link .ar { position: relative; width: 2px; height: 28px; margin: 2px 0; }
.st-art.link .ar.neg { background: var(--neg); }
.st-art.link .ar::after { content: ""; position: absolute; left: -5px; bottom: -2px; border: 6px solid transparent; border-top: 8px solid var(--neg); border-bottom: 0; }
.st-art.link .ar em { position: absolute; left: 12px; top: 5px; font: 700 11px var(--mono); font-style: normal; color: var(--neg); white-space: nowrap; }
.st-art.link q { margin-top: 10px; font-size: 12px; color: var(--ink-3); font-style: italic; quotes: none; }
.st-art.shot { padding: 6px; background: #0e1614; }
.st-art.shot img { width: 100%; border-radius: 8px; display: block; }
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 64px; align-items: center; }
.why h3 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 12px; }
.why p { color: var(--ink-2); margin: 0 0 14px; font-size: 15px; }
.why-cards { display: grid; gap: 14px; }
.why-cards div { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 14px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.why-cards svg { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.why-cards b { font-size: 15px; margin: 2px 0 2px; }
.why-cards span { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }

.timeline { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 22px; right: 22px; top: 21px; height: 2px; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent)); }
.timeline li { position: relative; display: flex; flex-direction: column; gap: 12px; }
.tl-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--mono); color: var(--accent);
  background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 0 0 6px var(--surface-2); position: relative; }
.timeline b { display: block; font-size: 16px; margin-bottom: 4px; }
.timeline span { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.formats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.fmt { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fmt-top { display: flex; gap: 5px; margin-bottom: 8px; }
.fmt b { font-size: 15px; }
.fmt span:not(.ficon) { font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.fmt .link { align-self: flex-start; margin-top: auto; padding-top: 8px; font-weight: 600; }
.features { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.ft { margin: 0; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; }
.ft.big { grid-row: span 2; }
.ft img { display: block; width: 100%; height: auto; background: #0e1614; border-bottom: 1px solid var(--line); }
.ft.big img { flex: 1; object-fit: cover; object-position: top; max-height: 520px; }
.ft figcaption { padding: 14px 18px 16px; }
.ft figcaption b { display: block; font-size: 15px; margin-bottom: 3px; }
.ft figcaption span { font-size: 13px; color: var(--ink-3); }
.feature-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feature-list li { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.feature-list b { display: block; font-size: 14px; margin-bottom: 3px; }
.feature-list b::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.feature-list span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* What is FCM */
.fcm-grid2 { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.fcm-copy p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 16px; }
.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.fcm-note { padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 12px 12px 0; font-size: 14px !important; }
.fcm-sim { position: sticky; top: 90px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sim-head b { display: block; font-size: 16px; }
.sim-head span { font-size: 13px; color: var(--ink-3); }
.sim-map { width: 100%; height: auto; margin: 10px 0 6px; overflow: visible; }
.sim-map path { stroke-width: 2.2; fill: none; }
.sim-map path.pos { stroke: var(--pos); } .sim-map path.neg { stroke: var(--neg); }
.sim-map path.hd { stroke: none; } .sim-map path.hd.pos { fill: var(--pos); } .sim-map path.hd.neg { fill: var(--neg); }
.sim-map text { stroke: none; text-anchor: middle; }
.sim-map text.w { font: 700 10.5px var(--mono); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.sim-map text.w.pos { fill: var(--pos); } .sim-map text.w.neg { fill: var(--neg); }
.sn-node circle { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 2.5; transition: fill .25s, stroke .25s; }
.sn-node.up circle { stroke: var(--pos); fill: color-mix(in srgb, var(--pos) 18%, var(--surface)); }
.sn-node.down circle { stroke: var(--neg); fill: color-mix(in srgb, var(--neg) 18%, var(--surface)); }
.sn-node.lever circle { stroke: var(--accent); fill: var(--accent-soft); stroke-width: 3; }
.sn-node text.v { font: 700 10px var(--mono); fill: var(--ink); }
.sn-node rect { fill: var(--surface); stroke: var(--line-2); stroke-width: 1; }
.sn-node text.lb { font: 600 11px var(--sans); fill: var(--ink); }
.sim-lever { display: block; margin: 6px 0 14px; }
.sim-lever span { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.sim-lever em { font: 700 13px var(--mono); font-style: normal; color: var(--accent); }
.sim-lever input { width: 100%; accent-color: var(--accent); }
.sim-bars { display: grid; gap: 6px; }
.sb { display: grid; grid-template-columns: 110px minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 13px; }
.sb .tr { position: relative; height: 10px; }
.sb .tr::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--ink-3); }
.sb .tr i { position: absolute; top: 0; bottom: 0; transition: width .25s; }
.sb .tr i.pos { left: 50%; background: var(--pos); border-radius: 0 4px 4px 0; }
.sb .tr i.neg { right: 50%; background: var(--neg); border-radius: 4px 0 0 4px; }
.sb b { font: 600 12px var(--mono); text-align: right; color: var(--ink-3); }
.sb b.pos { color: var(--pos); } .sb b.neg { color: var(--neg); }
.sim-foot { margin-top: 12px; font-size: 11.5px; color: var(--ink-3); }

/* Resources */
.res-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; }
.res-grid .sub-h:first-child { margin-top: 0; }
.refs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: r; }
.refs li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; line-height: 1.55; }
.refs .tag { font: 600 10px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--accent); background: var(--accent-soft); padding: 3px 7px; border-radius: 6px; text-align: center; }
.refs .ref { color: var(--ink-2); }
.refs .ref i { color: var(--ink); }
.refs a { font-size: 12px; color: var(--accent); text-decoration: none; white-space: nowrap; font-weight: 600; }
.tpl-list { display: grid; gap: 8px; }
.tpl-list button { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.tpl-list button:hover { border-color: var(--accent); }
.tpl-list b { display: block; font-size: 14px; }
.tpl-list em { font-style: normal; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.acc details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; }
.acc summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.acc summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.acc details[open] summary::after { content: "−"; }
.acc p { margin: 0; padding: 0 14px 14px; font-size: 13.5px; color: var(--ink-2); }
.gloss { margin: 0; display: grid; gap: 8px; }
.gloss div { padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.gloss dt { font-weight: 700; font-size: 13.5px; }
.gloss dd { margin: 2px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.apps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.apps div { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.apps svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); margin-bottom: 6px; }
.apps b { font-size: 14px; }
.apps span { font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; }
.about-grid p { color: var(--ink-2); font-size: 15.5px; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.principles div { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.principles b { display: block; font-size: 15px; margin-bottom: 3px; }
.principles span { font-size: 13px; color: var(--ink-3); }
.about-side .sub-h:first-child { margin-top: 0; }
.stack { display: flex; flex-wrap: wrap; gap: 8px; }
.stack span { font: 600 12.5px var(--mono); padding: 7px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.contact { padding: 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); display: flex; flex-direction: column; gap: 4px; }
.contact a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* final CTA + footer */
.s-final { padding: 0 0 100px; }
.final { text-align: center; padding: 56px 28px; border-radius: 26px; color: #e6f4f1;
  background: radial-gradient(700px 300px at 50% 0%, #13695f, transparent 70%), linear-gradient(160deg, #0a2f2b, #0b1d29); }
.final h2 { color: #fff; }
.final p { color: rgba(230, 244, 241, .75); margin: 0 0 24px; font-size: 16px; }
.sf { background: #0b1d29; color: rgba(230, 244, 241, .7); padding: 44px 0 26px; font-size: 13.5px; }
.sf-grid { display: grid; grid-template-columns: 1.2fr 2fr auto; gap: 28px; align-items: center; }
.sf-brand { display: flex; align-items: center; gap: 12px; }
.sf-brand strong { display: block; color: #fff; }
.sf-brand span { font-size: 12.5px; }
.sf nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.sf nav a { color: rgba(230, 244, 241, .75); text-decoration: none; }
.sf nav a:hover { color: #5eead4; }
.sf .link { color: #5eead4; }
.sf-auth [hidden] { display: none; }
.sf-copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 12px; color: rgba(230, 244, 241, .45); }

/* responsive */
@media (max-width: 1100px) {
  .sn-links { position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; padding: 10px; background: #0a2329; display: none; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .sn-links.open { display: flex; }
  .sn-burger { display: grid; }
  .sn-actions { margin-left: auto; }
  .hero-grid, .fcm-grid2, .res-grid, .about-grid, .why { grid-template-columns: 1fr; }
  .fcm-sim { position: static; }
  .formats, .feature-list { grid-template-columns: 1fr 1fr; }
  .apps { grid-template-columns: 1fr 1fr; }
  .float { display: none; }
  .win { transform: none; }
}
@media (max-width: 700px) {
  .steps3, .timeline, .formats, .feature-list, .apps, .features, .principles { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .sn-actions .sn-out .btn.ghost { display: none; }
  .sn-brand em { display: none; }
  .hero-facts { gap: 22px; }
  .refs li { grid-template-columns: 1fr; }
  .sf-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .site { scroll-behavior: auto; } .float { animation: none; } }
.timeline span b { display: inline; font-size: inherit; margin: 0; }

/* glossary: full-width grid under references + guides (no uneven columns) */
.gloss { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.gloss div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; height: 100%; }
.gloss dt { display: flex; align-items: center; gap: 8px; }
.gloss dt::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.gloss dd { margin: 0; }
.res-grid { align-items: start; }
.res-grid > .res-col:last-child { position: sticky; top: 90px; }
@media (min-width: 1200px) { .gloss { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .res-grid > .res-col:last-child { position: static; } }

/* account chip inside the website nav */
.sn-actions .menu.account { margin-left: 2px; }
.sn-actions .acct-chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.sn-actions .acct-chip:hover { border-color: #5eead4; }
.sn-actions .acct-caret { color: rgba(230, 244, 241, .6); }
.sn-actions .acct-dot { box-shadow: 0 0 0 2px #0a2a2a; }
.sn-actions .account-menu { color: var(--ink); }

/* ═════════ methods (website section 04 + in-app dialog) ═════════ */
.methods { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; align-items: start; }
.md-nav { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 86px; }
.md-nav button { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 11px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; transition: border-color .15s, background .15s; }
.md-nav button:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.md-nav button.on { border-color: var(--accent); background: var(--accent-soft); }
.md-nav svg, .md-title svg { width: 34px; height: 34px; padding: 7px; border-radius: 10px; color: var(--accent); background: var(--accent-soft);
  fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.md-nav button.on svg { background: var(--surface); }
.md-nav b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-nav em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); line-height: 1.4; margin-top: 1px; }
.md-body { padding: 24px 26px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.md-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.md-title svg { width: 42px; height: 42px; padding: 9px; }
.md-title h4 { margin: 0; font-size: 21px; letter-spacing: -.02em; }
.md-what { font-size: 15px; color: var(--ink-2); line-height: 1.65; margin: 0 0 6px; }
.md-body h5 { margin: 20px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.md-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: st; display: grid; gap: 8px; }
.md-steps li { counter-increment: st; position: relative; padding-left: 34px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.md-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font: 700 11.5px var(--mono); color: var(--accent); background: var(--accent-soft); }
.md-measures { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.md-measures div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.md-measures dt { font-weight: 700; font-size: 13px; }
.md-measures dd { margin: 3px 0 0; font: 12.5px/1.5 var(--mono); color: var(--ink-2); }
.md-read { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.md-read li::marker { color: var(--accent); }
.md-refs { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
.methods-btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
dialog.methods-dialog { width: min(1180px, calc(100vw - 32px)); padding: 0; overflow: hidden; }
.methods.in-dialog { padding: 16px 22px 22px; max-height: min(74vh, 760px); overflow: auto; grid-template-columns: 300px minmax(0, 1fr); }
.methods.in-dialog .md-nav { top: 0; }
@media (max-width: 900px) { .methods, .methods.in-dialog { grid-template-columns: 1fr; } .md-nav { position: static; } }
