/* PowderFactor marketing site — tokens from Brand Document v1.1 §9 */
:root {
  --pf-basalt: #141110;
  --pf-ink: #0F0D0B;
  --pf-surface: #191510;
  --pf-raised: #1E1811;
  --pf-card: #14110E;
  --pf-umber: #3D342A;
  --pf-clay: #6B5D49;        /* strokes only, never text */
  --pf-stone: #8A7D6B;       /* text-subtle on basalt/ink (4.7:1) */
  --pf-subtle-raised: #968A77; /* text-subtle on raised cards (5.2:1) */
  --pf-dust: #B9AD9C;
  --pf-text: #F5F1EA;
  --pf-text-strong: #F7F3EC;
  --pf-text-muted: #A79A88;
  --pf-orange: #FF5A1F;
  --pf-orange-lifted: #E9834F;
  --pf-orange-deep: #A83405;
  --pf-go: #3E9B6C;
  --pf-go-text: #5CC48D;
  --pf-caution: #E0A32E;
  --pf-hair: rgba(255,255,255,.08);
  --pf-hair-strong: rgba(255,255,255,.12);
  --pf-line-input: rgba(255,255,255,.38);

  /* Daylight (light band + legal pages) */
  --pfd-canvas: #F1EBE0;
  --pfd-card: #FAF6EE;
  --pfd-sink: #E5DCCC;
  --pfd-text: #1B1712;
  --pfd-muted: #6B5D49;
  --pfd-accent: #A83405;
  --pfd-line: rgba(27,23,18,.18);

  --font-sans: Sora, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r-sm: 8px; --r-md: 11px; --r-lg: 14px; --r-xl: 18px; --r-2xl: 24px;
  --wrap: 1200px;
  --gutter: 28px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pf-basalt);
  color: var(--pf-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--pf-orange); color: var(--pf-basalt); }
img, svg { max-width: 100%; }
a { color: var(--pf-orange-lifted); }
a:hover { color: var(--pf-text); }
:focus-visible { outline: 2px solid var(--pf-orange); outline-offset: 2px; }
section[id], [id] { scroll-margin-top: 82px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--pf-orange);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--pf-orange); color: var(--pf-basalt); padding: 10px 14px; border-radius: var(--r-sm); z-index: 100; font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; }

h1, h2, h3 { margin: 0; color: var(--pf-text-strong); letter-spacing: -.025em; line-height: 1.08; }
h1 { font-size: clamp(36px, 5.2vw, 60px); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
h2 { font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.lead { font-size: 17.5px; color: var(--pf-dust); max-width: 560px; }
.muted { color: var(--pf-text-muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--r-md);
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: filter .15s, background .15s, transform .15s;
}
.btn-primary { background: var(--pf-orange); color: var(--pf-basalt); box-shadow: 0 12px 30px -12px rgba(255,90,31,.6); }
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); color: var(--pf-basalt); }
.btn-ghost { background: transparent; color: var(--pf-text); border-color: rgba(255,255,255,.18); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: var(--pf-text); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 14.5px; border-radius: 9px; }
.btn-light { background: var(--pfd-accent); color: var(--pfd-canvas); }
.btn-light:hover { filter: brightness(1.06); color: var(--pfd-canvas); }
.btn-dark { background: var(--pfd-text); color: var(--pf-text); }
.btn-dark:hover { background: #2b2620; color: var(--pf-text); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20,17,16,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--pf-hair);
}
.nav-inner { height: 66px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pf-text); }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--pf-ink); border: 1px solid var(--pf-hair-strong); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.nav-links a { font-size: 14.5px; color: var(--pf-dust); text-decoration: none; }
.nav-links a:hover { color: var(--pf-text); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-signin { font-size: 14.5px; color: #D8CFC0; text-decoration: none; padding: 9px 12px; }
.nav-signin:hover { color: #fff; }
.burger {
  display: none; align-items: center; justify-content: center; width: 44px; height: 44px;
  background: transparent; border: 1px solid rgba(255,255,255,.15); border-radius: 9px; color: var(--pf-text); cursor: pointer; font-size: 20px;
}
.nav-mobile { display: none; border-top: 1px solid var(--pf-hair); padding: 8px var(--gutter) 16px; flex-direction: column; background: rgba(20,17,16,.98); }
.nav-mobile a { font-size: 15px; color: #D8CFC0; text-decoration: none; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.05); }
.nav-mobile a:last-child { border-bottom: 0; }
.nav.open .nav-mobile { display: flex; }

/* Hero */
.hero { position: relative; padding: 64px var(--gutter) 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--pf-stone); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; padding: 7px 13px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pf-go); box-shadow: 0 0 0 3px rgba(62,155,108,.18); }
.hero h1 { margin-top: 22px; }
.hero .lead { margin-top: 22px; }
.hero .lead strong { color: #E8E1D5; font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip { font-family: var(--font-mono); font-size: 12px; color: var(--pf-stone); border: 1px solid rgba(255,255,255,.09); border-radius: 7px; padding: 6px 11px; }

.hero-vis { position: relative; height: 460px; }
.hero-vis .bg { position: absolute; inset: 0; border-radius: var(--r-2xl); overflow: hidden; background: radial-gradient(120% 90% at 60% 90%, #241c14, #151109); border: 1px solid var(--pf-hair); }
.hero-vis .bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
@keyframes pf-pulse { 0%, 100% { opacity: .12 } 50% { opacity: .5 } }
.pulse { animation: pf-pulse 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; opacity: .3; } }
.float {
  position: absolute; background: rgba(28,22,17,.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--pf-hair-strong); border-radius: 15px; padding: 15px 16px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.8);
}
.float-a { top: 30px; right: 26px; width: 222px; }
.float-b { bottom: 34px; left: 24px; width: 196px; }
.float-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-size: 12.5px; font-weight: 600; color: #E8E1D5; }
.sync { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 10.5px; color: var(--pf-go-text); }
.sync::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pf-go); }
.kv { display: flex; flex-direction: column; gap: 9px; font-family: var(--font-mono); font-size: 12px; }
.kv div { display: flex; justify-content: space-between; align-items: center; }
.kv span:first-child { color: var(--pf-subtle-raised); }
.kv span:last-child { color: #E8E1D5; }
.kv .tag { color: var(--pf-basalt); background: var(--pf-orange); padding: 1px 7px; border-radius: 20px; font-weight: 600; }
.stat-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pf-subtle-raised); }
.stat { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.stat b { font-family: var(--font-mono); font-size: 38px; font-weight: 600; color: var(--pf-text-strong); letter-spacing: -.02em; }
.stat span { font-family: var(--font-mono); font-size: 13px; color: var(--pf-orange); }
.stat-note { font-family: var(--font-mono); font-size: 11px; color: var(--pf-go-text); margin-top: 4px; }

.hero-band { margin-top: 52px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.hero-band .note { font-family: var(--font-mono); font-size: 12.5px; color: var(--pf-stone); }
.hero-band .note b { color: var(--pf-dust); font-weight: 600; }
.hero-band .badge { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--pf-dust); border: 1px solid rgba(255,90,31,.25); background: rgba(255,90,31,.08); border-radius: 20px; padding: 6px 12px; }

/* Sections */
.section { padding: 66px var(--gutter); }
.section-alt { background: var(--pf-surface); border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { margin-top: 12px; }
.section-head p { margin-top: 14px; font-size: 16.5px; color: var(--pf-text-muted); }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--pf-raised); border: 1px solid var(--pf-hair); border-radius: 16px; padding: 24px; }
.card h3 { margin: 16px 0 6px; }
.card p { font-size: 13.5px; line-height: 1.55; color: var(--pf-text-muted); }
.card .ico { width: 34px; height: 34px; color: var(--pf-orange); }
.card ul { margin: 12px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--pf-text-muted); }
.card li { margin: 4px 0; }

/* Product cards */
.pcard { background: var(--pf-card); border: 1px solid var(--pf-hair); border-radius: var(--r-xl); padding: 22px; display: flex; flex-direction: column; }
.pcard.live { border-color: var(--pf-orange); box-shadow: 0 0 0 1px rgba(255,90,31,.12); }
.pcard .glyph { position: relative; width: 72px; height: 72px; border-radius: var(--r-xl); background: var(--pf-basalt); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 12px 26px -14px rgba(0,0,0,.8); }
.pcard .glyph .rings { position: absolute; inset: 0; opacity: .16; }
.pcard .glyph .g { position: relative; }
.pcard .title { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.pcard .title span { font-size: 18px; font-weight: 700; color: var(--pf-text); }
.pcard p { margin: 8px 0 14px; font-size: 13.5px; line-height: 1.5; color: var(--pf-text-muted); flex: 1; }
.pcard .link { font-size: 13.5px; font-weight: 600; color: var(--pf-orange); text-decoration: none; }
.pcard .soon { font-size: 13.5px; font-weight: 600; color: var(--pf-stone); }
.status { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .06em; padding: 2px 7px; border-radius: 20px; }
.status-live { color: var(--pf-go-text); background: rgba(62,155,108,.14); }
.status-dev { color: var(--pf-caution); background: rgba(224,163,46,.14); }
.status-road { color: var(--pf-dust); background: rgba(138,125,107,.16); }

/* The loop */
.loop { position: relative; width: 440px; height: 440px; margin: 0 auto; max-width: 100%; }
.loop svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.loop-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 132px; height: 132px; border-radius: 50%; background: var(--pf-ink); border: 1px solid var(--pf-hair); display: flex; align-items: center; justify-content: center; }
.node { position: absolute; width: 150px; background: var(--pf-raised); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-lg); padding: 13px 14px; text-align: center; }
.node b { display: block; font-size: 15px; font-weight: 700; color: var(--pf-text); }
.node span { font-family: var(--font-mono); font-size: 11px; color: var(--pf-subtle-raised); }
.node.n1 { left: 50%; top: 0; transform: translateX(-50%); }
.node.n2 { right: 0; top: 50%; transform: translateY(-50%); }
.node.n3 { left: 50%; bottom: 0; transform: translateX(-50%); }
.node.n4 { left: 0; top: 50%; transform: translateY(-50%); }
.node.live { border-color: var(--pf-orange); }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.shot { border-radius: var(--r-xl); border: 1px dashed rgba(255,255,255,.18); background: var(--pf-raised); aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; color: var(--pf-subtle-raised); font-family: var(--font-mono); font-size: 12.5px; }
.shot img { border-radius: var(--r-xl); display: block; width: 100%; height: 100%; object-fit: cover; }

/* Pricing (light band) */
.pricing { background: var(--pfd-canvas); color: var(--pfd-text); }
.pricing .eyebrow { color: var(--pfd-accent); }
.pricing h2 { color: var(--pfd-text); }
.pricing .section-head p { color: var(--pfd-muted); }
.seg { display: flex; justify-content: center; margin: 26px 0 36px; }
.seg-inner { display: flex; align-items: center; gap: 4px; background: var(--pfd-sink); border: 1px solid rgba(0,0,0,.08); border-radius: var(--r-md); padding: 4px; flex-wrap: wrap; justify-content: center; }
.seg button {
  flex: 1; min-width: 118px; white-space: nowrap; text-align: center; padding: 9px 18px; border-radius: 8px;
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; border: none; background: transparent; color: var(--pfd-muted); transition: all .15s; min-height: 40px;
}
.seg button[aria-pressed="true"] { background: var(--pfd-accent); color: var(--pfd-canvas); }
.seg .sep { width: 1px; height: 24px; background: rgba(27,23,18,.15); margin: 0 6px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.tier { background: #fff; border: 1px solid rgba(0,0,0,.09); border-radius: var(--r-xl); padding: 24px; display: flex; flex-direction: column; position: relative; }
.tier.popular { border: 1.5px solid var(--pfd-accent); box-shadow: 0 24px 50px -26px rgba(168,52,5,.5); }
.tier .flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; color: var(--pfd-canvas); background: var(--pfd-accent); padding: 4px 11px; border-radius: 20px; }
.tier .name { font-size: 16px; font-weight: 700; }
.tier .limit { font-family: var(--font-mono); font-size: 12px; color: var(--pfd-muted); margin-top: 2px; }
.tier .price { display: flex; align-items: baseline; gap: 4px; margin: 16px 0 2px; font-size: 38px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tier .period { font-family: var(--font-mono); font-size: 12px; color: var(--pfd-muted); min-height: 16px; }
.tier .btn { margin: 18px 0 20px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.tier li { display: flex; gap: 8px; font-size: 13px; color: #4a4034; }
.tier li::before { content: "✓"; color: var(--pfd-accent); font-weight: 700; }
.tier.dark { background: var(--pf-card); border-color: var(--pfd-text); color: var(--pf-text); }
.tier.dark .name { color: var(--pf-text); }
.tier.dark .limit, .tier.dark .period { color: var(--pf-stone); }
.tier.dark li { color: var(--pf-dust); }
.tier.dark li::before { color: var(--pf-orange); }
.tier.dark .btn { border: 1px solid rgba(255,255,255,.22); color: var(--pf-text); background: transparent; }
.tier.dark .btn:hover { background: rgba(255,255,255,.06); }
.pricing .fine { text-align: center; margin-top: 26px; font-family: var(--font-mono); font-size: 12.5px; color: var(--pfd-muted); }
.notice { margin: 0 auto 0; max-width: 640px; background: var(--pfd-card); border: 1px solid var(--pfd-line); border-left: 4px solid var(--pfd-accent); border-radius: var(--r-md); padding: 12px 16px; font-size: 14px; color: var(--pfd-text); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { text-align: center; margin-bottom: 30px; font-size: 34px; }
.faq details { border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-lg); margin-bottom: 12px; overflow: hidden; background: #1A1610; }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; padding: 19px 22px; font-size: 16px; font-weight: 600; color: var(--pf-text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); font-size: 20px; color: var(--pf-orange); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 22px 20px; font-size: 14.5px; line-height: 1.6; color: var(--pf-text-muted); }

/* About */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.about p { color: var(--pf-text-muted); font-size: 16px; margin-top: 14px; }
.about .facts { display: grid; gap: 12px; }
.fact { background: var(--pf-raised); border: 1px solid var(--pf-hair); border-radius: var(--r-lg); padding: 16px 18px; }
.fact .k { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--pf-subtle-raised); }
.fact .v { margin-top: 4px; font-size: 15px; color: var(--pf-text); }

/* CTA */
.cta-wrap { padding: 20px var(--gutter) 76px; }
.cta { position: relative; overflow: hidden; border-radius: var(--r-2xl); border: 1px solid rgba(255,90,31,.25); background: radial-gradient(120% 140% at 80% 120%, rgba(255,90,31,.16), #1A1610 60%); padding: 56px 40px; text-align: center; }
.cta svg.deco { position: absolute; right: -30px; bottom: -60px; width: 360px; opacity: .5; }
.cta .in { position: relative; }
.cta h2 { font-size: 38px; }
.cta p { margin: 16px auto 0; max-width: 500px; color: var(--pf-dust); }
.cta .cta-row { justify-content: center; margin-top: 28px; }

/* Footer */
.footer { background: var(--pf-ink); border-top: 1px solid rgba(255,255,255,.07); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; padding: 52px 0 30px; }
.footer p { margin-top: 14px; max-width: 300px; font-size: 13.5px; line-height: 1.55; color: var(--pf-stone); }
.footer .col-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pf-stone); margin-bottom: 14px; }
.footer .col a { display: block; font-size: 14px; color: var(--pf-dust); text-decoration: none; margin-bottom: 10px; }
.footer .col a:hover { color: var(--pf-text); }
.footer-bottom { padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--pf-stone); }

/* Store buttons (text, not the trademarked badge art) */
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-height: 48px; padding: 6px 16px; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.2); text-decoration: none; color: var(--pf-text); background: var(--pf-ink); line-height: 1.15; }
.store small { font-size: 10.5px; color: var(--pf-stone); font-family: var(--font-mono); letter-spacing: .06em; text-transform: uppercase; }
.store b { font-size: 15px; font-weight: 600; }
.store.soon { opacity: .75; border-style: dashed; }

/* Legal / inner pages (Daylight) */
body.inner { background: var(--pfd-canvas); color: var(--pfd-text); }
body.inner .nav { background: rgba(241,235,224,.9); border-bottom-color: var(--pfd-line); }
body.inner .brand, body.inner .brand-name { color: var(--pfd-text); }
body.inner .brand-mark { background: var(--pfd-card); border-color: var(--pfd-line); }
body.inner .nav-links a, body.inner .nav-signin { color: var(--pfd-muted); }
body.inner .nav-links a:hover, body.inner .nav-signin:hover { color: var(--pfd-text); }
body.inner .burger { color: var(--pfd-text); border-color: var(--pfd-line); }
body.inner .nav-mobile { background: var(--pfd-canvas); border-top-color: var(--pfd-line); }
body.inner .nav-mobile a { color: var(--pfd-text); border-bottom-color: var(--pfd-line); }
body.inner .btn-primary { background: var(--pfd-accent); color: var(--pfd-canvas); box-shadow: none; }
body.inner .btn-primary:hover { color: var(--pfd-canvas); }
body.inner a { color: var(--pfd-accent); }
body.inner ::selection { background: var(--pfd-accent); color: var(--pfd-canvas); }
.doc { max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 80px; }
.doc h1 { color: var(--pfd-text); font-size: clamp(32px, 4.5vw, 44px); }
.doc h2 { color: var(--pfd-text); font-size: 24px; margin-top: 40px; }
.doc h3 { color: var(--pfd-text); font-size: 17px; margin-top: 24px; }
.doc .meta { font-family: var(--font-mono); font-size: 12.5px; color: var(--pfd-muted); margin-top: 10px; }
.doc p, .doc li { font-size: 16px; line-height: 1.65; color: #3a3128; }
.doc p { margin-top: 14px; }
.doc ul, .doc ol { margin-top: 10px; padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--pfd-line); vertical-align: top; color: #3a3128; }
.doc th { font-weight: 600; color: var(--pfd-text); }
.doc .table-wrap { overflow-x: auto; }
.doc .todo { background: #FFF3E8; border: 1px solid rgba(168,52,5,.35); border-radius: var(--r-sm); padding: 2px 6px; color: var(--pfd-accent); font-family: var(--font-mono); font-size: 13px; }
.doc .box { background: var(--pfd-card); border: 1px solid var(--pfd-line); border-radius: var(--r-lg); padding: 18px 20px; margin-top: 20px; }
.doc .box p:first-child { margin-top: 0; }

/* Forms */
.form { display: grid; gap: 16px; margin-top: 24px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--pfd-text); }
.field .hint { font-size: 12.5px; color: var(--pfd-muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--pfd-muted); background: var(--pfd-card); color: var(--pfd-text); width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--pfd-accent); outline-offset: 1px; border-color: var(--pfd-accent); }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #3a3128; }
.form .consent input { width: 20px; height: 20px; margin-top: 2px; }
.form-status { margin-top: 14px; font-size: 15px; padding: 12px 14px; border-radius: var(--r-sm); display: none; }
.form-status.ok { display: block; background: #E3F1E8; color: #1f5a3a; border: 1px solid #257247; }
.form-status.err { display: block; background: #FBE4E1; color: #7d1a13; border: 1px solid #B3261E; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Responsive */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .nav-links, .nav-signin { display: none; }
  .burger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-vis { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-band .badge { margin-left: 0; }
  .cta { padding: 44px 24px; }
  .cta h2 { font-size: 30px; }
}
@media (max-width: 560px) {
  :root { --gutter: 18px; }
  .grid-4, .grid-2, .tiers, .footer-grid { grid-template-columns: 1fr; }
  .tiers { max-width: 440px; margin: 0 auto; }
  .form .row { grid-template-columns: 1fr; }
  .loop { width: 340px; height: 340px; }
  .node { width: 118px; padding: 10px 8px; }
  .node b { font-size: 13.5px; }
  .node span { font-size: 10px; }
  .loop-center { width: 96px; height: 96px; }
  .hero { padding-top: 44px; }
}

/* Nav CTA never wraps */
.nav-right .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .nav-right .btn-sm { padding: 8px 12px; font-size: 13.5px; }
  .brand-name { font-size: 16px; }
}
