/* perpd.com: the marketing site. Standalone from the trading app; light paper theme. */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo.woff2') format('woff2-variations'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  --bg: #f5f3ee;
  --panel: #ece9e2;
  --panel-2: #e2ded5;
  --line: #dcd7cc;
  --line-2: #c8c1b3;
  --text: #17202b;
  --muted: #5d6874;
  --faint: #6f7682;
  --brass: #c4861a;
  --brass-ink: #1b1406;
  --brass-hover: #d29424;
  --up: #12825b;
  --down: #cc3d2c;
  --up-bg: rgba(18, 130, 91, 0.11);
  --warn: #8a5a0b;
  --shadow: rgba(40, 32, 18, 0.18);
  --radius: 4px;
  --font: 'Archivo', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
[hidden] { display: none !important; }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 16px; border-radius: var(--radius); font-weight: 600; font-size: 14px; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--brass); color: var(--brass-ink); }
.btn-primary:hover { background: var(--brass-hover); }
.btn-ghost { color: var(--muted); background: none; }
.btn-ghost:hover { color: var(--text); }
.btn-block { width: 100%; height: 44px; }

.h-top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; }
.h-top-row { display: flex; align-items: center; gap: 32px; height: 64px; }
.h-brand img { height: 28px; width: auto; display: block; }
.h-nav { display: flex; gap: 22px; }
.h-nav a { color: var(--muted); font-weight: 500; }
.h-nav a:hover { color: var(--text); }
.h-actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
@media (max-width: 820px) { .h-nav { display: none; } }
@media (max-width: 420px) { .h-actions .btn-ghost { display: none; } }

/*
  Home page. Uses the app's theme tokens (styles.css) so it follows light and dark, with the
  brand display face for headlines and a mono face for every figure.
  Layout: one 1240px column; bands alternate page ground and panel tone; one dark vault band.
*/
@font-face { font-family: 'Funnel Display'; src: url('/fonts/funnel-display-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }
@font-face { font-family: 'Funnel Display'; src: url('/fonts/funnel-display-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/geist-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

.home {
  --display: 'Funnel Display', 'Archivo', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --vault: #17202b;
  --vault-ink: #f5f3ee;
  --vault-muted: #b9bfc8;
  --vault-line: #34404f;
  background: var(--bg);
  color: var(--text);
}

.h-wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
.display { font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 0.95; margin: 0; text-wrap: balance; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.amber { color: var(--brass); }
.amber-ink { color: var(--warn); }
.up { color: var(--up); }
.down { color: var(--down); }
.lbl { font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sub { margin: 0; font-size: 17px; line-height: 26px; color: var(--muted); max-width: 48ch; }
.link { color: var(--text); text-underline-offset: 3px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--panel-2); color: var(--muted); }
.pill-live { background: var(--up-bg); color: var(--up); }
.pill-live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: clamp(48px, 7vw, 104px) 64px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.hero-title { font-size: clamp(48px, 7vw, 92px); }
.lead { margin: 0; font-size: 19px; line-height: 29px; color: var(--muted); max-width: 50ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin: 6px 0 0; padding-top: 24px; border-top: 1px solid var(--line); align-self: stretch; }
.hero-stats div { display: grid; gap: 4px; }
.hero-stats dt { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero-stats dd { margin: 0; font-size: 24px; line-height: 28px; font-weight: 500; }

.desk { flex: 1 1 440px; min-width: 0; position: relative; padding-bottom: 56px; }
.desk-card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.desk-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; }
.mkt { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; background: var(--panel-2); border-radius: 4px; }
.mkt div { display: grid; }
.mkt b { font-size: 15px; }
.mkt span:not(.coin) { font-size: 12px; color: var(--muted); }
.coin { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: var(--bg); color: var(--brass); }
.desk-figs { display: flex; gap: 22px; }
.desk-figs div { display: grid; gap: 2px; }
.desk-figs b { font-size: 15px; font-weight: 500; }
.desk-figs .big { font-size: 22px; }
.tape { width: 100%; height: auto; display: block; }
.tape .g { fill: var(--line); }
.tape .i { fill: var(--text); }
.tape .a { fill: var(--brass); }
.toast-card { position: absolute; right: -6px; bottom: -4px; display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px -12px var(--shadow); max-width: 100%; }
.toast-card div { display: grid; }
.toast-card div span { font-size: 12px; color: var(--muted); }
.toast-card > b { font-size: 18px; padding-left: 10px; }
.t-icon { width: 36px; height: 36px; border-radius: 4px; display: grid; place-items: center; background: var(--up-bg); color: var(--up); flex: none; }

.meter { display: grid; gap: 8px; }
.meter-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 14px; }
.track { position: relative; height: 8px; border-radius: 2px; overflow: hidden; background: repeating-linear-gradient(90deg, var(--line) 0 2px, transparent 2px 8px); }
.track i { position: absolute; inset: 0 auto 0 0; background: var(--up); border-radius: 2px; }
.meter.risk .track i { background: var(--brass); }
.meter-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--faint); }

/* Strip */
.strip { background: var(--panel); border-block: 1px solid var(--line); }
.strip-row { display: flex; gap: 36px; align-items: center; height: 60px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; font-family: var(--mono); font-size: 14px; }
.strip-row::-webkit-scrollbar { display: none; }
.strip-row a { color: var(--text); text-decoration: none; flex: none; }
.strip-row a:hover { color: var(--brass); }
.strip-row .lbl { flex: none; font-family: var(--font); }

/* Blocks */
.block { padding-block: clamp(64px, 9vw, 112px); display: flex; flex-direction: column; gap: 44px; }
.block-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.block-head > div { display: grid; gap: 14px; }
.h2 { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.03em; }
.band { background: var(--panel); border-block: 1px solid var(--line); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.steps li { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: 8px; }
.steps h3 { margin: 0; font-size: 21px; line-height: 27px; font-weight: 600; }
.steps p { margin: 0; color: var(--muted); line-height: 23px; }
.step-n { font-size: 13px; color: var(--warn); }

.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding-top: 12px; }
.tier { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 24px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; }
.tier.rec { border: 2px solid var(--text); }
.tier .flag { position: absolute; top: -11px; left: 22px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: var(--brass); color: var(--brass-ink); padding: 4px 8px; border-radius: 4px; }
.tier h3 { margin: 0; font-family: var(--display); font-size: 28px; line-height: 30px; font-weight: 700; letter-spacing: -0.02em; }
.tier .sum { margin: 6px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.tier dl { margin: 0; display: grid; gap: 9px; padding-top: 16px; border-top: 1px solid var(--line); }
.tier dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.tier dt { color: var(--muted); }
.tier dd { margin: 0; font-family: var(--mono); }
.tier .price { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; }
.tier .price b { font-family: var(--mono); font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.trial-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-radius: 8px; background: var(--bg); border: 1px dashed var(--line-2); }
.trial-band div { display: grid; gap: 4px; }
.trial-band span { color: var(--muted); font-size: 14px; }

.split { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 64px; }
.split-copy { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rule-list li { display: flex; gap: 14px; line-height: 22px; }
.rule-list b { min-width: 40px; font-weight: 500; }
.panel { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 26px; padding: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.facts { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px 28px; }
.facts li { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.facts span { color: var(--muted); font-size: 14px; line-height: 20px; }

.vault { background: var(--vault); color: var(--vault-ink); }
.vault .sub { color: var(--vault-muted); }
.vault .cert { flex: 1 1 520px; min-width: 0; width: 100%; height: auto; border-radius: 6px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }
.flow { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; counter-reset: s; }
.flow li { padding: 10px 14px; border: 1px solid var(--vault-line); border-radius: 4px; counter-increment: s; }
.flow li::before { content: counter(s) ' · '; color: var(--vault-muted); }
.flow li.on { background: #e0a23a; border-color: #e0a23a; color: #17202b; }
.flow li.on::before { color: #17202b; }

.faq { flex: 2 1 540px; min-width: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; font-size: 18px; line-height: 24px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-family: var(--mono); font-size: 22px; color: var(--warn); transition: transform 0.15s; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--muted); line-height: 24px; max-width: 64ch; }
.faq-wrap { align-items: flex-start; }

.final { padding-bottom: clamp(64px, 9vw, 112px); }
.final-card { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding: clamp(28px, 5vw, 60px); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.final-card > div:first-child { display: grid; gap: 14px; }
.final-title { font-size: clamp(42px, 6vw, 76px); }

.h-foot { border-top: 1px solid var(--line); padding-block: 44px 32px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 40px 56px; justify-content: space-between; }
.foot-brand { display: grid; gap: 12px; max-width: 300px; }
.foot-brand img { height: 28px; width: auto; display: block; }
.foot-brand p { margin: 0; color: var(--muted); font-size: 14px; line-height: 21px; }
.h-foot nav { display: flex; flex-direction: column; gap: 10px; }
.h-foot nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.h-foot nav a:hover { color: var(--text); }
.disclaimer { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; line-height: 18px; color: var(--faint); }

@media (max-width: 640px) {
  .desk { padding-bottom: 0; }
  .toast-card { position: static; margin-top: 12px; }
  .desk-figs { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .faq summary span { transition: none; } }

/* Powered by: official logos, shown at one optical size */
.built { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-bottom: 48px; margin-top: -8px; text-align: center; }
.built-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 52px; }
.built-row img { height: 28px; width: auto; display: block; }
.built-row img.tv { height: 18px; } /* wordmark-only logo: smaller box, same visual weight */

/* FAQ page */
.faq-hero { padding-block: clamp(48px, 7vw, 88px) 36px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.faq-title { font-size: clamp(44px, 6.5vw, 84px); }
.faq-search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 560px; height: 50px; padding: 0 16px; margin-top: 8px; background: #fff; border: 1px solid var(--line-2); border-radius: 6px; color: var(--muted); }
.faq-search:focus-within { border-color: var(--text); }
.faq-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 16px var(--font); color: var(--text); }
.faq-layout { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-start; padding-bottom: clamp(64px, 9vw, 112px); }
.faq-toc { flex: 0 0 200px; position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); display: flex; flex-direction: column; gap: 10px; }
.faq-toc a { color: var(--muted); font-weight: 500; }
.faq-toc a:hover { color: var(--text); }
.faq-body { flex: 1 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 52px; }
.faq-group { scroll-margin-top: 90px; }
.faq-group .faq { border-top: 1px solid var(--line); }
.faq-group details { scroll-margin-top: 90px; }
.faq-h { margin: 0 0 14px; font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }
.faq-a { display: grid; gap: 14px; margin-top: 12px; }
.faq-a p { margin: 0; }
.faq-tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.faq-tbl { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.faq-tbl th, .faq-tbl td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.faq-tbl tbody tr:last-child > * { border-bottom: 0; }
.faq-tbl thead th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.faq-tbl td { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.faq-cta { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding: clamp(28px, 4vw, 44px); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.faq-cta > div:first-child { display: grid; gap: 12px; }
@media (max-width: 860px) { .faq-toc { position: static; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; gap: 8px 18px; } .faq-toc .lbl { flex-basis: 100%; } }
