/* ==========================================================================
   RelayPony — style.css
   Family DNA shared with AgePony / PGPony: dark near-black canvas, the same
   three-font system, eyebrow/card/section language. RelayPony owns azure.
   ========================================================================== */

/* ----------------------------- Fonts (self-hosted) ---------------------- */
@font-face { font-family:'Geist'; font-style:normal; font-weight:300; font-display:swap;
  src:url('/assets/fonts/Geist-Light.woff2') format('woff2'); }
@font-face { font-family:'Geist'; font-style:normal; font-weight:400; font-display:swap;
  src:url('/assets/fonts/Geist-Regular.woff2') format('woff2'); }
@font-face { font-family:'Geist'; font-style:normal; font-weight:500; font-display:swap;
  src:url('/assets/fonts/Geist-Medium.woff2') format('woff2'); }
@font-face { font-family:'Geist'; font-style:normal; font-weight:600; font-display:swap;
  src:url('/assets/fonts/Geist-SemiBold.woff2') format('woff2'); }
@font-face { font-family:'Instrument Serif'; font-style:normal; font-weight:400; font-display:swap;
  src:url('/assets/fonts/InstrumentSerif-Regular.woff2') format('woff2'); }
@font-face { font-family:'Instrument Serif'; font-style:italic; font-weight:400; font-display:swap;
  src:url('/assets/fonts/InstrumentSerif-Italic.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:400; font-display:swap;
  src:url('/assets/fonts/JetBrainsMono-Regular.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:500; font-display:swap;
  src:url('/assets/fonts/JetBrainsMono-Medium.woff2') format('woff2'); }

/* ----------------------------- Tokens ----------------------------------- */
:root {
  /* Surfaces — slate vault base */
  --bg:           #11151b;
  --bg-alt:       #161a20;
  --bg-card:      #1e232b;
  --bg-card-2:    #232a34;
  --bg-card-hov:  rgba(200, 151, 58, 0.06);

  /* Borders */
  --line:         #28303b;
  --line-strong:  #343c48;
  --line-accent:  rgba(200, 151, 58, 0.35);

  /* Text */
  --fg:           #ece6d8;
  --text:         #ece6d8;
  --fg-muted:     #99a1ad;
  --text-dim:     #99a1ad;
  --fg-dim:       #5f6b7a;
  --text-faint:   #4a5563;

  /* Accent — brass, with a parchment + verdigris support set */
  --accent:        #c8973a;
  --accent-bright: #e3b75a;
  --accent-deep:   #a87a28;
  --accent-glow:   rgba(200, 151, 58, 0.18);
  --gold:          #e3b75a;
  --gold-bright:   #efe6d3;
  --parchment:     #efe6d3;
  --verdigris:     #5aa888;

  /* Semantic */
  --ok:     #5aa888;
  --warn:   #e3b75a;
  --danger: #d98a6a;

  /* Type */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --maxw: 1140px;
  --maxw-narrow: 780px;
  --gutter: 28px;
  --radius: 12px;
  --radius-sm: 7px;
}

/* ----------------------------- Reset / base ----------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.1; margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
code, kbd {
  font-family: var(--mono); font-size: 0.9em;
  background: var(--bg-card-2); border: 1px solid var(--line);
  padding: 0.12em 0.4em; border-radius: 5px; color: var(--accent-bright);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #1b1407; padding: 10px 16px; border-radius: 0 0 8px 0;
  font-family: var(--mono); font-size: 13px;
}
.skip:focus { left: 0; }

/* Shared bits */
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin: 0 0 18px;
}
.ital-accent { font-family: var(--serif); font-style: italic; color: var(--accent-bright); font-weight: 400; }
.ital-gold { font-family: var(--serif); font-style: italic; color: var(--gold-bright); font-weight: 400; }
.dim { color: var(--accent); }

/* ----------------------------- Header ----------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 21, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--text); }
.wordmark:hover { color: var(--text); }
.brand-icon { border-radius: 7px; }
.wm-text { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.wm-ital { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--accent-bright); }

.site-nav { display: flex; gap: 22px; margin-left: 12px; }
.site-nav a {
  font-family: var(--mono); font-size: 13.5px; color: var(--fg-muted);
  letter-spacing: 0.01em; padding: 4px 0; border-bottom: 1px solid transparent;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent-bright); border-bottom-color: var(--line-accent); }

/* Family dropdown */
.nav-family { position: relative; margin-left: auto; }
.nav-family-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px; color: var(--fg-muted);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 13px; cursor: pointer; transition: border-color .15s, color .15s;
}
.nav-family-btn:hover, .nav-family[data-open] .nav-family-btn { color: var(--text); border-color: var(--line-accent); }
.nav-family-dots { display: inline-flex; gap: 3px; }
.nav-family-dots span { width: 7px; height: 7px; border-radius: 50%; display: block; }
.nav-family-caret { font-size: 10px; transition: transform .18s; }
.nav-family[data-open] .nav-family-caret { transform: rotate(180deg); }
.nav-family-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 320px;
  background: var(--bg-card); border: 1px solid var(--line-strong);
  border-radius: var(--radius); padding: 8px; z-index: 60;
  box-shadow: 0 18px 50px rgba(0,0,0,0.5);
}
.nav-family-menu a {
  display: flex; gap: 11px; align-items: flex-start; padding: 10px 11px;
  border-radius: var(--radius-sm); color: var(--text);
}
.nav-family-menu a:hover { background: var(--bg-card-hov); }
.fam-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; }
.fam-meta { display: flex; flex-direction: column; gap: 2px; }
.fam-name { font-size: 14px; font-weight: 600; }
.fam-arrow { color: var(--fg-dim); font-size: 11px; }
.fam-tag { font-size: 12.5px; color: var(--fg-muted); line-height: 1.4; }
.fam-all {
  justify-content: center; font-family: var(--mono); font-size: 12.5px;
  color: var(--accent-bright) !important; margin-top: 4px; border-top: 1px solid var(--line);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.nav-cta {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: #1b1407; background: var(--accent); border-radius: 999px;
  padding: 8px 16px; white-space: nowrap; transition: background .15s, transform .1s;
}
.nav-cta:hover { background: var(--accent-bright); color: #1b1407; }
.nav-cta:active { transform: translateY(1px); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ----------------------------- Buttons ---------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; justify-content: center;
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s, color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #1b1407; }
.btn-primary:hover { background: var(--accent-bright); color: #1b1407; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-accent); color: var(--text); background: var(--bg-card-hov); }

/* ----------------------------- Sections --------------------------------- */
.section { padding: 92px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: var(--maxw-narrow); margin: 0 0 48px; }
.section-head h2 {
  font-family: var(--serif); font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.01em;
  margin: 0 0 16px;
}
.section-head p { font-size: 18px; color: var(--fg-muted); max-width: 60ch; }

/* ----------------------------- Hero ------------------------------------- */
.hero { position: relative; padding: 78px 0 64px; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(820px 420px at 78% -8%, rgba(200,151,58,0.16), transparent 62%),
    radial-gradient(600px 360px at 10% 8%, rgba(227,183,90,0.08), transparent 60%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }

.status-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--accent-bright); background: rgba(200,151,58,0.08);
  border: 1px solid var(--line-accent); border-radius: 999px; padding: 6px 14px; margin: 0 0 26px;
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200,151,58,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(200,151,58,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,151,58,0); }
}

.hero h1 {
  font-family: var(--serif); font-size: clamp(46px, 7.2vw, 78px); line-height: 1.0;
  letter-spacing: -0.015em; margin: 0 0 22px;
}
.hero h1 .accent { color: var(--accent-bright); font-style: italic; }
.hero-lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--fg-muted); max-width: 46ch; margin: 0 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 22px; }
.hero-meta { font-family: var(--mono); font-size: 12.5px; color: var(--fg-dim); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-meta b { color: var(--fg-muted); font-weight: 500; }

/* Relay visual */
.relay-visual { position: relative; }
.relay-card {
  background: linear-gradient(160deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 30px 26px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.relay-svg { width: 100%; height: auto; }
.relay-node { fill: var(--bg-card); stroke: var(--line-strong); stroke-width: 1.5; }
.relay-node-glow { fill: none; stroke: var(--accent-deep); stroke-width: 1.5; opacity: .45; }
.relay-wire { stroke: var(--line-strong); stroke-width: 2; fill: none; stroke-dasharray: 5 7; }
.relay-lbl { font-family: var(--mono); font-size: 10px; fill: var(--fg-muted); letter-spacing: .08em; }
.relay-packet { fill: var(--accent); }
@keyframes relayhop {
  0% { transform: translateX(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateX(var(--hop, 150px)); opacity: 0; }
}
.relay-packet-anim { animation: relayhop 2.8s cubic-bezier(.45,.05,.55,.95) infinite; }
.relay-caption { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); text-align: center; margin: 18px 0 0; }
.relay-caption b { color: var(--accent-bright); font-weight: 500; }

/* ----------------------------- Notify / waitlist ------------------------ */
.notify-card {
  background: linear-gradient(165deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--line-strong); border-radius: 16px; padding: 34px 32px;
  max-width: 680px;
}
.notify-intents { display: flex; gap: 8px; margin: 0 0 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 11px; padding: 5px; }
.notify-intent {
  flex: 1; font-family: var(--mono); font-size: 13px; color: var(--fg-muted);
  background: transparent; border: 0; border-radius: 8px; padding: 11px 10px; cursor: pointer; text-align: center;
  transition: background .15s, color .15s;
}
.notify-intent[aria-selected="true"] { background: var(--accent); color: #1b1407; font-weight: 500; }
.notify-intent-desc { font-size: 14px; color: var(--fg-muted); margin: 0 0 18px; min-height: 1.6em; }
.notify-platform { display: flex; gap: 10px; margin: 0 0 14px; }
.notify-plat-opt {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 12.5px;
  color: var(--fg-muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; cursor: pointer;
}
.notify-plat-opt input { accent-color: var(--accent); margin: 0; }
.notify-plat-opt.is-on { color: var(--text); border-color: var(--line-accent); }
.notify-form { display: flex; gap: 10px; flex-wrap: wrap; }
.notify-input {
  flex: 1; min-width: 220px; font-family: var(--sans); font-size: 15px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 13px 15px;
}
.notify-input::placeholder { color: var(--fg-dim); }
.notify-input:focus { outline: none; border-color: var(--accent); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notify-msg { font-family: var(--mono); font-size: 13px; margin: 14px 0 0; min-height: 1.4em; }
.notify-msg.ok { color: var(--ok); }
.notify-msg.err { color: var(--danger); }
.notify-fine { font-size: 12.5px; color: var(--fg-dim); margin: 16px 0 0; }

/* ----------------------------- Platform status cards -------------------- */
.platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.platform-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; position: relative;
}
.platform-card.is-primary { border-color: var(--line-accent); }
.platform-os { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; margin: 0 0 6px; }
.platform-chip {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-accent); color: var(--accent-bright);
}
.platform-chip.soon { color: var(--fg-muted); border-color: var(--line-strong); }
.platform-card p { color: var(--fg-muted); font-size: 14.5px; margin: 10px 0 18px; }

/* ----------------------------- Card grids ------------------------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: border-color .15s, background .15s, transform .15s;
}
.card:hover { border-color: var(--line-accent); background: var(--bg-card-hov); }
.card-icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(200,151,58,0.1); border: 1px solid var(--line-accent); margin: 0 0 16px;
}
.card-icon svg { width: 20px; height: 20px; stroke: var(--accent-bright); }
.card h3 { font-size: 17px; font-weight: 600; margin: 0 0 9px; }
.card p { color: var(--fg-muted); font-size: 14.5px; margin: 0; }

/* ----------------------------- How it works (steps) --------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.step-num {
  font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.1em;
  margin: 0 0 14px;
}
.step h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.step p { color: var(--fg-muted); font-size: 14px; margin: 0; }

/* ----------------------------- Feature list (security) ------------------ */
.points { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 36px; margin: 0; padding: 0; list-style: none; }
.point { display: flex; gap: 13px; align-items: flex-start; }
.point-mark { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 6px; background: rgba(200,151,58,0.1); border: 1px solid var(--line-accent); display: grid; place-items: center; }
.point-mark svg { width: 12px; height: 12px; stroke: var(--accent-bright); }
.point b { font-weight: 600; }
.point span { color: var(--fg-muted); font-size: 14.5px; }

/* ----------------------------- FAQ -------------------------------------- */
.faq { max-width: var(--maxw-narrow); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 0; font-size: 17px; font-weight: 500;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 20px; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { color: var(--fg-muted); font-size: 15px; padding: 0 0 22px; max-width: 70ch; }
.faq-item .faq-body a { color: var(--accent-bright); }

/* ----------------------------- Final CTA -------------------------------- */
.final-cta { padding: 96px 0; text-align: center; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.final-cta::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 300px at 50% 0, rgba(200,151,58,0.12), transparent 65%); pointer-events:none; }
.final-cta .wrap { position: relative; }
.final-cta h2 { font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); margin: 0 0 16px; }
.final-cta p { color: var(--fg-muted); font-size: 18px; max-width: 52ch; margin: 0 auto 28px; }

/* ----------------------------- Family band ------------------------------ */
.family-band { padding: 80px 0; border-top: 1px solid var(--line); background: var(--bg-alt); }
.family-band-head { max-width: var(--maxw-narrow); margin: 0 0 36px; }
.family-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px; }
.family-h { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; }
.family-sub { color: var(--fg-muted); font-size: 16.5px; max-width: 62ch; }
.family-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.family-card {
  display: flex; flex-direction: column; gap: 7px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px; color: var(--text);
  transition: border-color .15s, transform .15s, background .15s;
}
.family-card:hover { border-color: var(--line-accent); transform: translateY(-2px); color: var(--text); background: var(--bg-card-2); }
.family-card-dot { width: 11px; height: 11px; border-radius: 50%; }
.family-card-name { font-size: 17px; font-weight: 600; }
.family-card-plat { font-family: var(--mono); font-size: 11.5px; color: var(--fg-dim); letter-spacing: 0.03em; }
.family-card-tag { color: var(--fg-muted); font-size: 14px; line-height: 1.45; }
.family-all-link { display: inline-block; font-family: var(--mono); font-size: 13px; color: var(--accent-bright); margin: 26px 0 0; }

/* ----------------------------- Footer ----------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: var(--bg); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; padding: 0 0 40px; border-bottom: 1px solid var(--line); }
.foot-logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; margin: 0 0 12px; }
.foot-logo img { border-radius: 6px; }
.foot-tag { color: var(--fg-muted); font-size: 14px; line-height: 1.5; }
.foot-h { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-dim); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--fg-muted); font-size: 14px; padding: 5px 0; }
.foot-col a:hover { color: var(--accent-bright); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 24px 0 0; }
.foot-meta { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
.foot-copy { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }

/* ----------------------------- Breadcrumbs ------------------------------ */
.breadcrumbs { font-family: var(--mono); font-size: 13px; color: var(--fg-dim); margin: 22px 0 0; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; }
.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs a { color: var(--fg-dim); }
.breadcrumbs a:hover { color: var(--accent-bright); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--fg-muted); }
.breadcrumbs .bc-sep { color: var(--line-strong); padding: 0 8px; }

/* ----------------------------- Prose (inner pages) ---------------------- */
.prose { max-width: var(--maxw-narrow); }
.prose h1 { font-family: var(--serif); font-size: clamp(36px, 6vw, 56px); margin: 0 0 18px; letter-spacing: -0.01em; }
.prose h2 { font-family: var(--serif); font-size: clamp(26px, 4vw, 34px); margin: 48px 0 16px; }
.prose h3 { font-size: 19px; font-weight: 600; margin: 32px 0 10px; }
.prose p, .prose li { color: var(--fg-muted); font-size: 16.5px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 0 0 8px; }
.prose .lede { font-size: 20px; color: var(--text); margin: 0 0 28px; }
.page-head { padding: 64px 0 8px; }

/* ----------------------------- Responsive ------------------------------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .family-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr 1fr; }
  .foot-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .site-nav, .nav-family { display: none; }
  .nav-family { margin-left: auto; }
  .nav-toggle { display: block; }
  .header-inner { gap: 12px; }
  .site-header.is-open .site-nav {
    display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--line); padding: 8px var(--gutter);
  }
  .site-header.is-open .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .section { padding: 64px 0; }
  .platforms, .cards, .cards.cols-2, .family-grid { grid-template-columns: 1fr; }
  .steps, .points { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .notify-card { padding: 26px 20px; }
  .notify-intents { flex-direction: column; }
}

/* ----------------------------- Reduced motion --------------------------- */
@media (prefers-reduced-motion: reduce) {
  .relay-packet-anim { animation: none; opacity: 1; }
  .status-dot { animation: none; }
  * { scroll-behavior: auto !important; }
}

/* ----------------------------- Inner-page helpers ----------------------- */
.lede { font-size: 20px; color: var(--text); margin: 0 0 8px; line-height: 1.5; }
.ital { font-family: var(--serif); font-style: italic; color: var(--accent-bright); font-weight: 400; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-bright); }
.prose a:hover { color: var(--accent); }
.codeblock {
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7; color: var(--text);
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 18px 20px; margin: 0 0 24px; white-space: pre-wrap; word-break: break-word;
}
.codeblock .c { color: var(--fg-dim); }
.codeblock .k { color: var(--accent-bright); }

/* ----------------------------- Apps / family page ----------------------- */
.apps-list { display: grid; gap: 18px; margin: 8px 0 0; }
.app-card {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 22px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 16px;
  padding: 24px 26px; position: relative; overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.app-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--app-accent, var(--accent)); }
.app-card:hover { border-color: var(--line-accent); transform: translateY(-2px); }
.app-card.is-self { background: linear-gradient(160deg, var(--bg-card-2), var(--bg-card)); }
.app-card-icon { width: 72px; height: 72px; border-radius: 16px; }
.app-card-body h3 { font-size: 21px; font-weight: 600; margin: 0 0 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.app-card-plat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--app-accent, var(--accent)); border: 1px solid currentColor; border-radius: 999px; padding: 2px 9px; }
.app-card-here { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); border: 1px solid var(--line-strong); border-radius: 999px; padding: 2px 9px; text-transform: uppercase; letter-spacing: 0.04em; }
.app-card-body p { color: var(--fg-muted); font-size: 15px; margin: 0; max-width: 60ch; }
.app-card-cta { font-family: var(--mono); font-size: 13px; white-space: nowrap; color: var(--accent-bright); border: 1px solid var(--line-strong); border-radius: 999px; padding: 9px 16px; }
.app-card-cta:hover { border-color: var(--line-accent); }
.apps-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 8px 0 0; }
.apps-principle { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.apps-principle h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.apps-principle p { color: var(--fg-muted); font-size: 14px; margin: 0; }

@media (max-width: 720px) {
  .app-card { grid-template-columns: 56px 1fr; gap: 16px; padding: 20px; }
  .app-card-icon { width: 56px; height: 56px; border-radius: 13px; }
  .app-card-cta { grid-column: 1 / -1; text-align: center; }
  .apps-principles { grid-template-columns: 1fr; }
}

/* ----------------------------- Callout (support/docs) ------------------- */
.callout {
  border-left: 3px solid var(--accent); background: var(--accent-glow);
  padding: 18px 22px; margin: 28px 0 0; border-radius: 0 10px 10px 0;
}
.callout .label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent-bright); margin: 0 0 8px;
}
.callout p { margin: 0; color: var(--fg-muted); font-size: 15px; }
.callout p a { color: var(--accent-bright); }

/* ----------------------------- App Store badge -------------------------- */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--accent); color: #1b1407; border-radius: 12px;
  padding: 11px 20px 11px 18px; transition: background .15s, transform .1s;
}
.appstore-badge:hover { background: var(--accent-bright); color: #1b1407; }
.appstore-badge:active { transform: translateY(1px); }
.appstore-badge svg { width: 26px; height: 26px; fill: #1b1407; }
.appstore-badge .as-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore-badge .as-small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; opacity: .8; }
.appstore-badge .as-big { font-size: 17px; font-weight: 600; }

/* ----------------------------- Hero share visual ------------------------ */
.shares-card {
  background: linear-gradient(160deg, var(--bg-card-2), var(--bg-card));
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.shares-svg { width: 100%; height: auto; }
.share-cardface { fill: var(--bg-card); stroke: var(--line-strong); stroke-width: 1.5; }
.share-cardface.active { stroke: var(--accent); }
.share-cardface.lost { opacity: .35; stroke-dasharray: 4 4; }
.share-pip { fill: var(--accent); }
.share-pip.dim { fill: var(--fg-dim); }
.shares-caption { font-family: var(--mono); font-size: 12px; color: var(--fg-muted); text-align: center; margin: 18px 0 0; }
.shares-caption b { color: var(--accent-bright); font-weight: 500; }

/* ----------------------------- What it protects ------------------------- */
.protect-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.protect-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px; transition: border-color .15s, transform .15s;
}
.protect-card:hover { border-color: var(--line-accent); transform: translateY(-2px); }
.protect-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px;
}
.protect-card p { color: var(--fg-muted); font-size: 14.5px; margin: 0; }

/* ----------------------------- Still-safe callout ----------------------- */
.safe-card {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: linear-gradient(160deg, rgba(90,168,136,0.06), var(--bg-card));
  border: 1px solid rgba(90,168,136,0.3); border-radius: 16px; padding: 28px 30px;
}
.safe-cards { display: flex; gap: 8px; }
.safe-mini { width: 34px; height: 46px; border-radius: 6px; border: 1.5px solid var(--line-strong); background: var(--bg); display: grid; place-items: center; }
.safe-mini.have { border-color: var(--verdigris); }
.safe-mini.have::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--verdigris); }
.safe-mini.gone { opacity: .4; border-style: dashed; }
.safe-body h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.safe-body h3 .v { color: var(--verdigris); font-family: var(--serif); font-style: italic; }
.safe-body p { color: var(--fg-muted); font-size: 14.5px; margin: 0; }

@media (max-width: 920px) { .protect-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .protect-grid { grid-template-columns: 1fr; }
  .safe-card { grid-template-columns: 1fr; gap: 18px; }
}
