/* Relay 2.0 — public website (home, guides, privacy). Same family as the dashboard: deep jade, Instrument Sans. */
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans.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: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }

:root {
  --bg: #06130f; --bg2: #0a1c17; --bg3: #0e241d;
  --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --ink: #ecf3ef; --ink2: #aec2b9; --mute: #74897f;
  --jade: #17b98a; --jade2: #43d6a6; --jade-deep: #0e9f73; --jade-tint: rgba(23,185,138,.12);
  --amber: #e8a33d; --rose: #ef7b72;
  --paper: #f2f4f1; --paper-ink: #11201b; --paper-ink2: #4b5c55; --paper-line: #e1e6e1;
  --r-lg: 22px; --r-md: 14px; --r-sm: 10px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --font: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--jade2); color: #04140e; }
:focus-visible { outline: 2px solid var(--jade2); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 820px; }
.muted { color: var(--mute); }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(6,19,15,.78); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); border-bottom: 1px solid var(--line); }
.site-head nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--jade2); box-shadow: 0 0 0 5px rgba(67,214,166,.16); }
.nav-links { display: flex; gap: 30px; font-size: 14.5px; font-weight: 500; color: var(--ink2); }
.nav-links a:hover, .nav-links a[aria-current] { color: #fff; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: transparent; color: var(--ink); font-size: 18px; cursor: pointer; }
.login-menu { position: relative; }
.lm-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; background: #0d211b; border: 1px solid var(--line2); border-radius: 14px; padding: 6px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.7); display: none; }
.login-menu.open .lm-pop { display: block; animation: pop .15s var(--ease); }
.lm-pop a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14px; }
.lm-pop a small { display: block; font-weight: 400; color: var(--mute); font-size: 12.5px; margin-top: 2px; }
.lm-pop a:hover { background: rgba(255,255,255,.06); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.mobile-nav { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 12px; font: inherit; font-size: 14.5px; font-weight: 600; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--jade); color: #03170f; box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { background: var(--jade2); }
.btn-ghost { color: var(--ink); border-color: var(--line2); background: transparent; }
.btn-ghost:hover { border-color: rgba(255,255,255,.32); }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 14px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 700px; background: radial-gradient(closest-side, rgba(23,185,138,.22), transparent); pointer-events: none; }
.hero-copy { max-width: 900px; position: relative; }
.hero .tagline { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink2); padding: 7px 14px 7px 10px; border: 1px solid var(--line2); border-radius: 999px; }
.hero .tagline b { font-weight: 600; color: #03170f; background: var(--jade2); padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.hero h1 { margin-top: 24px; font-size: clamp(40px, 5.6vw, 70px); line-height: 1.0; font-weight: 650; letter-spacing: -.045em; }
.hero .lead { margin-top: 22px; font-size: 19px; color: var(--ink2); max-width: 600px; line-height: 1.6; }
.cta-row { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; font-size: 13.5px; color: var(--mute); }
.trust li::before { content: "✓"; color: var(--jade2); margin-right: 7px; font-weight: 700; }

/* the product window: the one bold thing on the page */
.app-window { margin-top: 56px; border-radius: 18px; border: 1px solid var(--line2); background: #0b1a16; box-shadow: 0 60px 120px -50px rgba(0,0,0,.85), 0 0 0 1px rgba(0,0,0,.4); overflow: hidden; position: relative; }
.aw-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #0d1f1a; }
.aw-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.14); }
.aw-bar span { margin-left: 12px; font-size: 12.5px; color: var(--mute); }
.aw-body { display: grid; grid-template-columns: 210px 300px 1fr; min-height: 430px; }
.aw-side { background: #0a1d17; border-right: 1px solid var(--line); padding: 14px 10px; font-size: 13px; color: var(--ink2); }
.aw-side .g { font-size: 11.5px; color: var(--mute); padding: 12px 10px 5px; }
.aw-side .it { display: flex; justify-content: space-between; padding: 7px 10px; border-radius: 8px; }
.aw-side .it.on { background: rgba(23,185,138,.14); color: #fff; font-weight: 600; }
.aw-side .it em { font-style: normal; background: var(--jade); color: #03170f; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 0 7px; }
.aw-list { border-right: 1px solid var(--line); background: #0c1b17; }
.aw-chat { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.aw-chat.on { background: rgba(23,185,138,.09); box-shadow: inset 3px 0 0 var(--jade); }
.aw-av { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: #fff; }
.aw-chat b { display: block; font-weight: 600; color: #fff; }
.aw-chat small { color: var(--mute); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.chip { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; margin-top: 5px; }
.c-wa { background: rgba(37,211,102,.14); color: #6ee59a; } .c-ig { background: rgba(225,48,108,.16); color: #ff9ccc; }
.c-web { background: rgba(90,150,240,.16); color: #9cc0f7; } .c-lead { background: rgba(232,163,61,.16); color: #f2c27a; }
.aw-thread { display: flex; flex-direction: column; background: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0/18px 18px, #091612; }
.aw-th-head { padding: 12px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 13.5px; background: #0c1b17; }
.aw-th-head .stage { margin-left: auto; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: rgba(232,163,61,.16); color: #f2c27a; }
.aw-msgs { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 9px; justify-content: flex-end; }
.bub { max-width: 74%; padding: 9px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.bub.in { background: #13241f; border: 1px solid #1c312a; align-self: flex-start; border-bottom-left-radius: 4px; }
.bub.out { background: var(--jade-deep); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bub.bot::before { content: "AI bot"; display: block; font-size: 10.5px; font-weight: 700; opacity: .75; margin-bottom: 2px; }
.bub.note { align-self: center; background: rgba(232,163,61,.12); border: 1px dashed rgba(232,163,61,.4); color: #f2d29a; font-size: 12px; max-width: 90%; }
.bub small { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; }
.aw-compose { margin: 0 14px 14px; padding: 11px 14px; border-radius: 99px; border: 1px solid var(--line2); color: var(--mute); font-size: 13px; display: flex; justify-content: space-between; }
.aw-compose kbd { font-family: inherit; font-size: 11px; border: 1px solid var(--line2); border-radius: 5px; padding: 0 5px; }
.js .aw-msgs .bub { opacity: 0; transform: translateY(8px); }
.js .aw-msgs.play .bub { animation: bubIn .45s var(--ease) forwards; }
@keyframes bubIn { to { opacity: 1; transform: none; } }

/* ---------- strip of channels ---------- */
.channels { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 40px; }
.channels .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; font-size: 14.5px; color: var(--ink2); }
.channels b { color: #fff; font-weight: 600; }

/* ---------- sections ---------- */
section.s { padding: 110px 0; position: relative; }
.s-head { max-width: 720px; }
.s-head h2 { font-size: clamp(32px, 4.3vw, 54px); line-height: 1.05; font-weight: 650; letter-spacing: -.035em; }
.s-head p { margin-top: 16px; font-size: 17.5px; color: var(--ink2); line-height: 1.65; }
.s-head p a, .inl { color: var(--jade2); font-weight: 600; border-bottom: 1px solid rgba(67,214,166,.35); }

/* feature map: same four groups as the dashboard */
.fm-tabs { margin-top: 44px; display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.fm-tab { font: inherit; font-size: 15px; font-weight: 600; color: var(--mute); background: none; border: 0; padding: 12px 16px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.fm-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--jade2); }
.fm-panel { display: none; padding-top: 34px; }
.fm-panel.on { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feat { padding: 24px 22px; border-radius: var(--r-md); border: 1px solid var(--line); background: rgba(255,255,255,.025); }
.feat h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.feat p { margin-top: 8px; font-size: 14.5px; color: var(--ink2); line-height: 1.6; }
.feat .new { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: #03170f; background: var(--jade2); padding: 1px 7px; border-radius: 99px; vertical-align: 2px; }

/* deep-dives: alternating copy + small UI sketch */
.dive { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.s-head + .dive { border-top: 0; }
.badge-new { display: inline-block; font-size: 12px; font-weight: 700; color: #03170f; background: var(--jade2); padding: 2px 9px; border-radius: 99px; vertical-align: 6px; letter-spacing: 0; }
.dive.flip .dive-copy { order: 2; }
.dive-copy h3 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; font-weight: 650; letter-spacing: -.03em; }
.dive-copy p { margin-top: 14px; font-size: 16.5px; color: var(--ink2); line-height: 1.7; }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 9px; }
.ticks li { padding-left: 26px; position: relative; color: var(--ink2); font-size: 15px; line-height: 1.5; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--jade2); font-weight: 700; }
.sketch { border-radius: 16px; border: 1px solid var(--line2); background: #0b1a16; padding: 18px; box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); font-size: 13px; }
.sk-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); margin-bottom: 8px; color: var(--ink2); }
.sk-row b { color: #fff; font-weight: 600; }
.sk-row .pill { font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--jade-tint); color: var(--jade2); white-space: nowrap; }
.sk-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sk-col { border-radius: 10px; background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 8px; min-height: 150px; }
.sk-col h5 { font-size: 11.5px; color: var(--mute); font-weight: 600; margin-bottom: 8px; }
.sk-card { background: #13241f; border-radius: 8px; padding: 7px 8px; margin-bottom: 6px; font-size: 11.5px; color: var(--ink2); border-left: 3px solid var(--jade); }
.sk-card b { display: block; color: #fff; font-weight: 600; }
.sk-blocks { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.sk-pal { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
.sk-pal span { border: 1px dashed var(--line2); border-radius: 8px; padding: 8px 4px; text-align: center; font-size: 11.5px; color: var(--ink2); }
.sk-page { border-radius: 10px; overflow: hidden; background: #fff; color: #11201b; }
.sk-page .h { background: #0c2620; color: #fff; padding: 22px 14px; text-align: center; font-weight: 650; font-size: 15px; letter-spacing: -.02em; }
.sk-page .h small { display: block; font-weight: 400; opacity: .75; font-size: 11px; margin-top: 4px; }
.sk-page .f { padding: 12px; display: grid; gap: 6px; }
.sk-page .f i { display: block; height: 26px; border-radius: 7px; border: 1px solid #d5ddd8; }
.sk-page .f u { display: block; height: 28px; border-radius: 7px; background: var(--jade); text-decoration: none; }

/* wallet statement sketch */
.stmt-h { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 4px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; color: var(--mute); }
.stmt-h b { font-size: 24px; color: #fff; letter-spacing: -.02em; font-weight: 650; }
.stmt-r { display: flex; justify-content: space-between; padding: 8px 4px; color: var(--ink2); }
.stmt-r i { font-style: normal; font-weight: 600; color: #fff; } .stmt-r i.pos { color: var(--jade2); } .stmt-r i.free { color: var(--amber); }

/* industries */
.ind-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ind { padding: 22px 20px; border-radius: var(--r-md); border: 1px solid var(--line); }
.ind h3 { font-size: 16px; font-weight: 600; }
.ind p { margin-top: 6px; font-size: 14px; color: var(--mute); line-height: 1.55; }

/* setup steps (a real sequence) */
.steps { list-style: none; margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: st; }
.steps li { counter-increment: st; padding: 26px 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.steps li::before { content: counter(st); display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--jade-tint); color: var(--jade2); font-weight: 700; font-size: 14px; }
.steps h3 { margin-top: 16px; font-size: 18px; font-weight: 600; }
.steps p { margin-top: 6px; font-size: 15px; color: var(--ink2); line-height: 1.6; }

/* videos */
.vrail { margin-top: 34px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.vcard { scroll-snap-align: start; position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #0b1a16; cursor: pointer; text-align: left; color: inherit; font: inherit; padding: 0; aspect-ratio: 4/3; }
.vcard img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s; }
.vcard:hover img { opacity: 1; }
.vcard .vt { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(4,12,9,.92)); font-weight: 600; font-size: 14px; line-height: 1.35; }
.vcard .vp { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(6,19,15,.75); display: flex; align-items: center; justify-content: center; }
.vcard .vp::after { content: ""; border-left: 11px solid #fff; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }
.vcard iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* pricing (paper band — the one light section) */
.paper { background: var(--paper); color: var(--paper-ink); }
.paper .s-head p { color: var(--paper-ink2); }
.paper .inl, .paper .s-head p a { color: var(--jade-deep); border-bottom-color: rgba(14,159,115,.35); }
.plans-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan { position: relative; border-radius: var(--r-lg); padding: 28px 24px; border: 1px solid var(--paper-line); background: #fff; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--jade); box-shadow: 0 30px 60px -36px rgba(14,159,115,.55); }
.plan .badge { position: absolute; top: -11px; left: 22px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--jade); color: #03170f; }
.pname { font-weight: 600; font-size: 16px; }
.pprice { margin-top: 12px; font-size: 38px; font-weight: 650; letter-spacing: -.035em; }
.plimit { margin-top: 2px; font-size: 13.5px; color: var(--paper-ink2); }
.plan ul { list-style: none; margin: 18px 0 24px; display: grid; gap: 8px; flex: 1; }
.plan li { font-size: 14.5px; color: var(--paper-ink2); padding-left: 22px; position: relative; line-height: 1.5; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--jade-deep); font-weight: 700; }
.plan .btn { width: 100%; }
.paper .btn-ghost { color: var(--paper-ink); border-color: #c9d2cc; }
.paper .btn-ghost:hover { border-color: #93a29c; }
.demo-note { margin-top: 22px; font-size: 14.5px; color: var(--paper-ink2); }

/* faq */
.faq-list { margin-top: 36px; display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 22px; transition: border-color .2s, background .2s; }
.faq-list details[open] { border-color: rgba(67,214,166,.35); background: rgba(23,185,138,.05); }
.faq-list summary { list-style: none; cursor: pointer; padding: 19px 0; font-weight: 600; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--jade2); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { padding: 0 0 20px; color: var(--ink2); font-size: 15.5px; line-height: 1.7; }

/* closing band */
.close-band { text-align: center; padding: 120px 0; border-top: 1px solid var(--line); background: radial-gradient(700px 300px at 50% 100%, rgba(23,185,138,.2), transparent 70%); }
.close-band h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; max-width: 800px; margin: 0 auto; }
.close-band p { margin: 18px auto 0; color: var(--ink2); font-size: 17.5px; max-width: 560px; }
.close-band .cta-row { justify-content: center; }

/* guide pages */
.phero { padding: 80px 0 40px; }
.crumb { font-size: 13.5px; color: var(--mute); margin-bottom: 18px; }
.crumb a { color: var(--jade2); }
.phero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 650; line-height: 1.05; letter-spacing: -.04em; max-width: 880px; }
.phero .lead { margin-top: 18px; font-size: 18.5px; color: var(--ink2); max-width: 700px; line-height: 1.65; }
article.doc { padding: 20px 0 50px; }
article.doc .wrap { max-width: 780px; }
article.doc h2 { font-size: 28px; font-weight: 650; letter-spacing: -.025em; margin: 52px 0 14px; line-height: 1.15; }
article.doc h3 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
article.doc p { font-size: 17px; color: var(--ink2); line-height: 1.8; margin-bottom: 16px; }
article.doc strong { color: #fff; font-weight: 600; }
article.doc ul, article.doc ol { margin: 6px 0 18px 22px; color: var(--ink2); line-height: 1.8; font-size: 17px; }
article.doc li { margin-bottom: 6px; }
article.doc code { font-family: ui-monospace, Menlo, monospace; font-size: 14px; background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 6px; color: #9fe9cf; }
.callout { border: 1px solid rgba(67,214,166,.3); background: rgba(23,185,138,.07); border-radius: var(--r-md); padding: 18px 20px; margin: 24px 0; font-size: 16px; color: var(--ink2); line-height: 1.7; }
.tblwrap { overflow-x: auto; margin: 20px 0 26px; border: 1px solid var(--line); border-radius: var(--r-md); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tbl th, .tbl td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
.tbl th { background: rgba(255,255,255,.04); font-weight: 600; color: #fff; font-size: 14px; }
.tbl td { color: var(--ink2); }
.tbl tr:last-child td { border-bottom: none; }
.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.related a { border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; font-weight: 600; font-size: 16px; line-height: 1.4; transition: border-color .2s; }
.related a span { display: block; font-weight: 400; color: var(--mute); font-size: 14px; margin-top: 4px; }
.related a:hover { border-color: rgba(67,214,166,.4); }

/* legal */
.legal { padding: 70px 0 90px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: 44px; font-weight: 650; letter-spacing: -.035em; }
.legal .updated { color: var(--mute); margin-top: 8px; }
.legal h2 { font-size: 21px; font-weight: 600; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink2); font-size: 16px; line-height: 1.75; }
.legal ul { margin: 6px 0 14px 22px; }
.legal a { color: var(--jade2); }

/* whatsapp float */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,.55); transition: transform .2s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 29px; height: 29px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 56px 0 28px; background: #04100c; }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.fgrid p { margin-top: 12px; font-size: 14.5px; max-width: 300px; line-height: 1.6; }
.fcol { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; color: var(--ink2); }
.fcol h4 { font-size: 13px; color: var(--mute); font-weight: 600; margin-bottom: 4px; }
.fcol a:hover { color: #fff; }
.fbottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--mute); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .aw-body { grid-template-columns: 260px 1fr; } .aw-side { display: none; }
  .fm-panel.on { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .wrap { padding: 0 18px; }
  .nav-links, .nav-cta .login-menu { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .mobile-nav.open { display: grid; gap: 4px; padding: 10px 18px 18px; border-top: 1px solid var(--line); }
  .mobile-nav a { padding: 11px 4px; font-weight: 500; color: var(--ink2); border-bottom: 1px solid var(--line); }
  .hero { padding-top: 54px; }
  .hero .lead { font-size: 17px; }
  .app-window { margin-top: 40px; }
  .aw-body { grid-template-columns: 1fr; min-height: 0; } .aw-list { display: none; }
  section.s { padding: 80px 0; }
  .dive { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .dive.flip .dive-copy { order: 0; }
  .fm-panel.on, .steps, .ind-grid, .related { grid-template-columns: 1fr; }
  .sk-cols { grid-template-columns: repeat(2, 1fr); }
  .btn-lg { width: 100%; }
  .fgrid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .aw-msgs .bub { opacity: 1; transform: none; }
}
article.doc .wrap { max-width: 1180px; }
article.doc .wrap > * { max-width: 780px; }
.hero .tagline b { white-space: nowrap; }
@media (max-width: 820px) {
  .channels .wrap { justify-content: flex-start; gap: 10px 18px; }
  .channels .wrap > span { flex-basis: 100%; }
  .hero .tagline { font-size: 12.5px; }
}

/* ===== 3D home (relay3d.js draws the phone on #stage and follows the anchors) ===== */
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .8s ease; }
.webgl-ready #stage { opacity: 1; }
.webgl-ready #stage.off { opacity: 0; }
.no-webgl #stage { display: none; }
.bg-grid { position: absolute; inset: 0 0 auto 0; height: 1500px; pointer-events: none; z-index: 0; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 70% 55% at 50% 20%, #000 30%, transparent 75%); }
main, .site-foot { position: relative; z-index: 1; }
.hero3d { min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: flex; align-items: center; padding: 40px 0 50px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 24px; align-items: center; width: 100%; }
.hero3d .hero-copy { max-width: 640px; }
.hero3d h1 { font-size: clamp(40px, 5vw, 66px); }
.anchor { position: relative; height: 76vh; max-height: 740px; min-height: 420px; }
.fallback-phone { position: absolute; left: 50%; top: 50%; width: min(290px, 62%); aspect-ratio: 9/18.6; transform: translate(-50%, -50%) rotate(-5deg); border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg, #18493b, #07160f); box-shadow: 0 40px 80px -30px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.08), 0 0 120px rgba(23,185,138,.28); }
.webgl-ready .fallback-phone { display: none; }
.fp-screen { height: 100%; border-radius: 32px; background: #0a1814; padding: 60px 14px 14px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; }
.fp-bubble { max-width: 84%; padding: 10px 13px; border-radius: 16px; font-size: 13px; font-weight: 500; line-height: 1.4; }
.fp-bubble.in { background: #18302a; align-self: flex-start; }
.fp-bubble.out { background: var(--jade); color: #03170f; align-self: flex-end; }
.marquee { position: relative; z-index: 4; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(6,19,15,.86); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marq 50s linear infinite; }
.marquee span { padding: 18px 24px; font-size: 14.5px; font-weight: 500; color: var(--ink2); white-space: nowrap; display: flex; align-items: center; gap: 24px; }
.marquee span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--jade2); opacity: .7; }
@keyframes marq { to { transform: translateX(-50%); } }
.story { padding-bottom: 30px; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 10px; }
.feat-steps { display: flex; flex-direction: column; }
.fstep { min-height: 86vh; display: flex; flex-direction: column; justify-content: center; max-width: 480px; opacity: .28; transition: opacity .5s ease; }
.fstep.on { opacity: 1; }
.snum { font-size: 14px; font-weight: 600; color: var(--jade2); }
.fstep h3 { margin-top: 12px; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; font-weight: 650; letter-spacing: -.03em; }
.fstep p { margin-top: 14px; font-size: 17px; color: var(--ink2); line-height: 1.7; }
.chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li { font-size: 13.5px; font-weight: 500; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line2); }
.feat-sticky { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; align-items: center; }
.feat-sticky .anchor { width: 100%; height: 74vh; }
.no-webgl .feat-sticky { display: none; }
.no-webgl .feat-grid { grid-template-columns: 1fr; }
.no-webgl .fstep { min-height: auto; padding: 28px 0; opacity: 1; }
.laptop .app-window { margin-top: 36px; }
@media (max-width: 860px) {
  .bg-grid { display: none; }
  .hero3d { min-height: 0; padding: 40px 0 30px; align-items: flex-start; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .anchor { height: 52vh; min-height: 340px; }
  .feat-grid { grid-template-columns: 1fr; gap: 0; }
  .feat-sticky { order: -1; top: 68px; height: 46vh; z-index: 2; background: linear-gradient(180deg, var(--bg) 92%, rgba(6,19,15,0)); margin: 0 -18px; padding: 0 18px; }
  .feat-sticky .anchor { height: 42vh; min-height: 0; }
  .fstep { min-height: 64vh; padding: 20px 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@media (max-width: 860px) { #hero-anchor { margin-top: 28px; } }
/* 3D anchors further down the page */
.dive-art { position: relative; min-height: 460px; display: flex; align-items: center; }
.dive-art .sketch { width: 100%; }
.dive-art .a3d { position: absolute; inset: -40px 0; }
.webgl-ready .dive-art .sketch { visibility: hidden; }
.close-anchor { height: 380px; max-width: 420px; margin: -40px auto 10px; }
.no-webgl .close-anchor { display: none; }
.laptop { position: relative; }
.laptop-anchor { position: absolute; right: 2%; top: -10px; width: 300px; height: 420px; }
.laptop .s-head { max-width: 640px; }
.no-webgl .laptop-anchor { display: none; }
@media (max-width: 1060px) { .laptop-anchor { display: none; } }
@media (max-width: 860px) { .dive-art { min-height: 420px; } .close-anchor { height: 300px; } }

/* ---------- 3D for the whole page (site2.js writes the transforms) ---------- */
.fx3d .fx3 { transform-origin: 50% 100%; transform: perspective(1100px) translate3d(0, 60px, -140px) rotateX(30deg); opacity: .12;
  transition: transform 1s cubic-bezier(.2,.75,.2,1), opacity .8s ease; }
.fx3d .fx3.in { transform: none; opacity: 1; }
.fx3d .fm-panel.fx3:not(.on) { transition: none; }
.fx3d .tilt { transition: transform .2s ease-out, box-shadow .3s, border-color .3s; }
.fx3d .tilt.hov::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(140, 255, 210, .14), transparent 45%); }
.fx3d .tilt.hov { box-shadow: 0 30px 60px -28px rgba(0,0,0,.65), 0 0 0 1px rgba(67,214,166,.28); }
.fx3d .paper .tilt.hov { box-shadow: 0 30px 60px -30px rgba(10,40,30,.35), 0 0 0 1px rgba(14,159,115,.3); }
.fx3d .paper .tilt.hov::after { background: radial-gradient(380px circle at var(--gx, 50%) var(--gy, 50%), rgba(14,159,115,.10), transparent 45%); }
.feat, .ind, .steps li, .vcard, .plan, .sketch, .faq-list details, .related a { position: relative; }
/* headings get real depth: a stacked jade edge under the letters */
.s-head h2, .close-band h2, .hero h1 { text-shadow: 0 1px 0 #0c3b2d, 0 2px 0 #0a3428, 0 3px 0 #092d22, 0 4px 0 #07261d, 0 12px 26px rgba(0,0,0,.45); }
.paper .s-head h2 { text-shadow: 0 1px 0 #d5ddd8, 0 2px 0 #cbd5cf, 0 3px 0 #c1ccc6, 0 10px 22px rgba(10,40,30,.16); }
@media (prefers-reduced-motion: reduce) { .fx3d .fx3, .fx3d .tilt { transform: none !important; opacity: 1 !important; } }
