/* ============================================================
   pactflow Policy-Compiled Agent OS + AI Change-Control System
   Visual direction: W&B dark/serif/yellow, grounded in Refero
   (wandb.ai/site). Depth via surface steps, no drop shadows.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* surfaces depth by tonal step, never shadow */
  --bg:          #121212;
  --surface-1:   #181818;
  --surface-2:   #1f1f1f;
  --surface-3:   #272727;
  --surface-hover:#2e2e2e;
  --border:      #2c2c2c;
  --border-soft: #232323;

  /* text */
  --text:        #ffffff;
  --text-muted:  #aaaaaa;
  --text-dim:    #6f6f6f;

  /* accent yellow is CTA + highlight ONLY */
  --accent:      #ffc94d;
  --accent-hover:#ffd778;
  --accent-ink:  #1a1a1a;   /* text on yellow */

  /* code */
  --code-bg:     #161616;
  --code-key:    #ffc94d;
  --code-str:    #9ecbff;
  --code-com:    #6f6f6f;
  --code-fn:     #d2a8ff;

  /* type */
  --serif: "Source Serif Pro", "Source Serif 4", Georgia, serif;
  --sans:  "Source Sans Pro", "Source Sans 3", system-ui, -apple-system, sans-serif;
  --mono:  "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* metrics */
  --maxw: 1180px;
  --radius: 8px;
  --radius-lg: 14px;
  --section-gap: 116px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: var(--section-gap) 0; }
.section--tight { padding: 72px 0; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.lede { color: var(--text-muted); font-size: 19px; max-width: 620px; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 5.4vw, 4.05rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.45rem; line-height: 1.2; }
h4 { font-size: 1.12rem; line-height: 1.25; }
.hl { color: var(--accent); }            /* highlighted heading words */
em.hl { font-style: italic; }
p { margin: 0 0 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 16px;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: #3a3a3a; }
.btn--ghost:hover { border-color: var(--text); }
.btn--sm { padding: 9px 16px; font-size: 14.5px; }
.btn--block { display: flex; width: 100%; justify-content: center; }

.textlink {
  font-family: var(--mono); font-size: 13px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
}
.textlink::after { content: "→"; transition: transform .18s ease; }
.textlink:hover::after { transform: translateX(4px); }

/* ============================================================
   Navbar
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(18,18,18,.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 66px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.brand__mark { width: 26px; height: 26px; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav__links a, .nav__item > button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 12px; border-radius: 7px;
  color: var(--text-muted); font-size: 15.5px; background: none; border: none;
  transition: color .15s ease, background .15s ease;
}
.nav__links a:hover, .nav__item > button:hover { color: var(--text); background: var(--surface-2); }
.nav__item { position: relative; }
.nav__item > button::after { content: "▾"; font-size: 10px; opacity: .6; }
.nav__menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 232px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav__item:hover .nav__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__menu a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--text); }
.nav__menu a span { display: block; font-size: 13px; color: var(--text-dim); }
.nav__menu a:hover { background: var(--surface-hover); }
.nav__spacer { flex: 1; }
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__right a.plain { color: var(--text-muted); font-size: 15.5px; padding: 8px 6px; }
.nav__right a.plain:hover { color: var(--text); }
.nav__burger { display: none; background: none; border: none; color: var(--text); padding: 8px; }
.nav__burger svg { width: 24px; height: 24px; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 92px 0 64px; text-align: center; }
.hero h1 { max-width: 880px; margin: 0 auto 22px; }
.hero .lede { font-size: 20px; margin: 0 auto 34px; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: 18px; font-size: 13.5px; color: var(--text-dim); font-family: var(--mono); }

/* ---------- Product frame (code-native dashboard) ---------- */
.frame {
  margin: 56px auto 0; max-width: 980px;
  background: var(--surface-1); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.frame__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.frame__dot { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3a; }
.frame__title { margin-left: 10px; font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); }
.frame__body { padding: 20px; display: grid; grid-template-columns: 200px 1fr; gap: 18px; min-height: 360px; }
.frame__side { display: flex; flex-direction: column; gap: 7px; }
.frame__navitem { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 7px; font-size: 13.5px; color: var(--text-muted); }
.frame__navitem.is-active { background: var(--surface-3); color: var(--text); }
.frame__navitem i { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); opacity: .9; }
.frame__main { display: flex; flex-direction: column; gap: 16px; }
.frame__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 14px; }
.stat b { font-family: var(--serif); font-size: 26px; font-weight: 600; display: block; }
.stat span { font-size: 12.5px; color: var(--text-dim); }
.stat b .hl { color: var(--accent); }

/* code-native bar chart */
.chart { background: var(--surface-2); border: 1px solid var(--border); border-radius: 9px; padding: 18px; flex: 1; display: flex; flex-direction: column; }
.chart__hd { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-dim); font-family: var(--mono); margin-bottom: 14px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; }
.bars span { flex: 1; background: linear-gradient(180deg, var(--accent), #8a6a1f); border-radius: 4px 4px 0 0; opacity: .92; }

/* policy/diff pipeline used in frames */
.pipe { display: flex; flex-direction: column; gap: 8px; }
.pipe__row { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; }
.pipe__row .tag { margin-left: auto; font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 20px; border: 1px solid var(--border); color: var(--text-muted); }
.tag--pass { color: #7ee0a3; border-color: #2c4636; }
.tag--hold { color: var(--accent); border-color: #4a3d18; }
.tag--block { color: #ff9a8f; border-color: #4a2b28; }
.dotmark { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ============================================================
   Hexagon feature row
   ============================================================ */
.hexrow { display: flex; flex-wrap: wrap; justify-content: center; gap: 38px; }
.hexrow__intro { text-align: center; margin-bottom: 46px; }
.hex { width: 168px; text-align: center; }
.hex__ico {
  width: 70px; height: 78px; margin: 0 auto 16px; position: relative;
  display: grid; place-items: center;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--surface-2); border: 0;
}
.hex__ico::before {
  content: ""; position: absolute; inset: 1.5px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--bg);
}
.hex__ico svg { position: relative; width: 30px; height: 30px; stroke: var(--accent); fill: none; }
.hex h4 { margin-bottom: 5px; }
.hex p { font-size: 14px; color: var(--text-muted); margin: 0; }

/* ============================================================
   Logo wall
   ============================================================ */
.logos { text-align: center; }
.logos__label { font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 30px; }
.logos__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 52px; }
.logos__row span {
  font-family: var(--serif); font-size: 22px; font-weight: 600;
  color: #5c5c5c; letter-spacing: -.01em; filter: grayscale(1);
}

/* ============================================================
   Banner line (cloud / private)
   ============================================================ */
.banner { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.banner .wrap { text-align: center; padding-top: 70px; padding-bottom: 70px; }
.banner h2 { max-width: 760px; margin: 0 auto 18px; }

/* ============================================================
   Three-step (integrate / visualize / collaborate)
   ============================================================ */
.steps { display: flex; flex-direction: column; gap: 96px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.step:nth-child(even) .step__media { order: -1; }
.step__num { font-family: var(--mono); font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.step h3 { font-size: 2rem; margin-bottom: 14px; }
.step p { color: var(--text-muted); margin-bottom: 22px; max-width: 440px; }

/* code block */
.code {
  background: var(--code-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  font-family: var(--mono); font-size: 13.5px; line-height: 1.85; overflow: hidden;
}
.code__bar { display: flex; gap: 7px; padding: 12px 15px; border-bottom: 1px solid var(--border); background: var(--surface-1); }
.code__bar .frame__dot { width: 10px; height: 10px; }
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; color: #d4d4d4; }
.code .k { color: var(--code-key); }
.code .s { color: var(--code-str); }
.code .c { color: var(--code-com); }
.code .f { color: var(--code-fn); }

/* ============================================================
   Use-case tabs
   ============================================================ */
.tabs__head { display: flex; justify-content: center; gap: 8px; margin: 40px 0 36px; flex-wrap: wrap; }
.tab {
  padding: 10px 20px; border-radius: 30px; background: transparent;
  border: 1px solid var(--border); color: var(--text-muted); font-size: 15px; font-weight: 600;
  transition: all .15s ease;
}
.tab.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tab:hover:not(.is-active) { color: var(--text); border-color: #444; }
.tabpane { display: none; }
.tabpane.is-active { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.tabpane h3 { margin-bottom: 14px; }
.tabpane p { color: var(--text-muted); margin-bottom: 18px; }
.tabpane ul { list-style: none; padding: 0; margin: 0 0 22px; }
.tabpane li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--text-muted); }
.tabpane li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ============================================================
   Testimonials
   ============================================================ */
.tgrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; }
.tcard { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.tcard.feature { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }
.tcard p { font-family: var(--serif); font-size: 18px; line-height: 1.5; color: var(--text); }
.tcard.feature p { font-size: 22px; }
.tcard__by { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.tcard__av { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; color: var(--accent); font-size: 15px; }
.tcard__by b { font-size: 14.5px; display: block; }
.tcard__by span { font-size: 13px; color: var(--text-dim); }

/* ============================================================
   About + video
   ============================================================ */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.video {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10;
  background: radial-gradient(120% 120% at 30% 20%, #2a2a2a, #141414);
  border: 1px solid var(--border); display: grid; place-items: center;
}
.video__play { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.video__play svg { width: 22px; height: 22px; fill: var(--accent-ink); margin-left: 3px; }

/* ============================================================
   Featured carousel
   ============================================================ */
.carhead { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; gap: 20px; flex-wrap: wrap; }
.carnav { display: flex; gap: 10px; }
.carnav button { width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 18px; }
.carnav button:hover { background: var(--surface-hover); }
.cartrack { display: grid; grid-auto-flow: column; grid-auto-columns: 290px; gap: 20px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cartrack::-webkit-scrollbar { display: none; }
.pcard { scroll-snap-align: start; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.pcard__img { height: 150px; background: linear-gradient(135deg, #242424, #161616); position: relative; }
.pcard__img::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, transparent 0 18px, rgba(255,201,77,.08) 18px 19px); }
.pcard__b { padding: 18px; }
.pcard__b h4 { margin-bottom: 7px; }
.pcard__b p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.pcard__tag { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; }

/* ============================================================
   Whitepaper form
   ============================================================ */
.paper { display: grid; grid-template-columns: 1fr 1.25fr; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.paper__art { background: linear-gradient(150deg, #4a3d18, #1c1c1c); padding: 44px; display: flex; flex-direction: column; justify-content: flex-end; }
.paper__art .blueprint { flex: 1; border: 1px dashed rgba(255,201,77,.4); border-radius: 8px; margin-bottom: 22px; background-image: linear-gradient(rgba(255,201,77,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,201,77,.06) 1px, transparent 1px); background-size: 22px 22px; }
.paper__art b { font-family: var(--serif); font-size: 20px; }
.paper__form { background: var(--surface-1); padding: 44px; }
.paper__form h3 { margin-bottom: 8px; }
.paper__form p { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; color: var(--text); font-family: inherit; font-size: 15px;
}
.field input:focus { outline: none; border-color: var(--accent); }
.fieldrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   Community cards
   ============================================================ */
.comm { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: center; }
.commgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ccard { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: border-color .15s ease, background .15s ease; }
.ccard:hover { border-color: #3a3a3a; background: var(--surface-2); }
.ccard__ico { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.ccard__ico svg { width: 22px; height: 22px; stroke: var(--accent-ink); fill: none; }
.ccard h4 { margin-bottom: 6px; }
.ccard p { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; }

/* ============================================================
   Closing CTA
   ============================================================ */
.endcta { text-align: center; border-top: 1px solid var(--border-soft); }
.endcta .wrap { padding-top: 96px; padding-bottom: 96px; }
.endcta h2 { max-width: 720px; margin: 0 auto 28px; }
.endcta__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
.foot { background: var(--surface-1); border-top: 1px solid var(--border); padding: 64px 0 40px; }
.foot__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px; }
.foot__brand .brand { margin-bottom: 14px; }
.foot__brand p { color: var(--text-dim); font-size: 14px; max-width: 260px; }
.foot col, .footcol h5 { all: unset; }
.footcol h5 { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 16px; }
.footcol a { display: block; color: var(--text-muted); font-size: 14.5px; padding: 6px 0; }
.footcol a:hover { color: var(--text); }
.foot__base { display: flex; justify-content: space-between; align-items: center; margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 13.5px; flex-wrap: wrap; gap: 12px; }
.foot__base a { color: var(--text-dim); margin-left: 20px; }
.foot__base a:hover { color: var(--text); }

/* ============================================================
   Subpage primitives (product / docs / about / etc.)
   ============================================================ */
.subhero { padding: 76px 0 52px; }
.subhero .wrap { max-width: 900px; }
.subhero h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); margin-bottom: 20px; }
.subhero.center { text-align: center; }

.feat3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fcard { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.fcard__ico { width: 40px; height: 40px; border-radius: 9px; background: var(--surface-3); display: grid; place-items: center; margin-bottom: 18px; }
.fcard__ico svg { width: 21px; height: 21px; stroke: var(--accent); fill: none; }
.fcard h4 { margin-bottom: 9px; }
.fcard p { font-size: 14.5px; color: var(--text-muted); margin: 0; }

/* split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--rev .split__media { order: -1; }
.split h3 { font-size: 1.9rem; margin-bottom: 14px; }
.split p { color: var(--text-muted); margin-bottom: 18px; }

/* docs layout */
.docs { display: grid; grid-template-columns: 232px 1fr; gap: 48px; align-items: start; }
.docnav { position: sticky; top: 90px; }
.docnav h5 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin: 22px 0 10px; }
.docnav a { display: block; padding: 6px 0; color: var(--text-muted); font-size: 14.5px; }
.docnav a:hover, .docnav a.is-active { color: var(--accent); }
.prose { max-width: 720px; }
.prose h2 { font-size: 1.7rem; margin: 44px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 12px; }
.prose p { color: var(--text-muted); }
.prose ul { color: var(--text-muted); padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 5px; padding: 2px 6px; color: var(--accent); }
.callout { background: var(--surface-1); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; padding: 16px 20px; margin: 24px 0; color: var(--text-muted); font-size: 15px; }

/* examples gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gcard { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .15s ease; }
.gcard:hover { border-color: #3a3a3a; }
.gcard__top { height: 132px; background: linear-gradient(135deg, #262626, #161616); position: relative; display: grid; place-items: center; }
.gcard__top .dotmark { width: 14px; height: 14px; }
.gcard__b { padding: 20px; }
.gcard__b .pcard__tag { margin-bottom: 8px; display: block; }
.gcard__b h4 { margin-bottom: 8px; }
.gcard__b p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* forum / list rows */
.list { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.lrow { display: flex; align-items: center; gap: 18px; padding: 20px 24px; border-bottom: 1px solid var(--border-soft); background: var(--surface-1); }
.lrow:last-child { border-bottom: 0; }
.lrow:hover { background: var(--surface-2); }
.lrow__av { width: 42px; height: 42px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.lrow__main { flex: 1; min-width: 0; }
.lrow__main h4 { margin-bottom: 4px; }
.lrow__main p { font-size: 13.5px; color: var(--text-dim); margin: 0; }
.lrow__meta { text-align: right; font-size: 13px; color: var(--text-dim); flex-shrink: 0; }
.lrow__meta b { color: var(--accent); font-family: var(--mono); display: block; font-size: 16px; }

/* podcast episode */
.ep { display: flex; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--border-soft); }
.ep__art { width: 88px; height: 88px; border-radius: 12px; background: linear-gradient(135deg, #4a3d18, #1c1c1c); display: grid; place-items: center; flex-shrink: 0; }
.ep__art svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; }
.ep__b { flex: 1; }
.ep__b .pcard__tag { display: block; margin-bottom: 5px; }
.ep__b h4 { margin-bottom: 6px; }
.ep__b p { font-size: 14px; color: var(--text-muted); margin: 0; }
.ep__play { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; }
.ep__play svg { width: 18px; height: 18px; fill: var(--accent); margin-left: 2px; }

/* stat band */
.statband { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.statband .s b { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--accent); display: block; }
.statband .s span { color: var(--text-muted); font-size: 14.5px; }

/* partner wall */
.pwall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ptile { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius); height: 96px; display: grid; place-items: center; font-family: var(--serif); font-size: 19px; font-weight: 600; color: #6a6a6a; transition: color .15s, border-color .15s; }
.ptile:hover { color: var(--text); border-color: #3a3a3a; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.plan { background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.plan.is-pop { border-color: var(--accent); position: relative; }
.plan__badge { position: absolute; top: -12px; left: 32px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; font-family: var(--mono); letter-spacing: .04em; }
.plan h3 { font-size: 1.3rem; margin-bottom: 6px; }
.plan__desc { font-size: 14px; color: var(--text-dim); min-height: 40px; }
.plan__price { font-family: var(--serif); font-size: 2.8rem; font-weight: 600; margin: 14px 0 4px; }
.plan__price small { font-size: 1rem; color: var(--text-dim); font-family: var(--sans); }
.plan ul { list-style: none; padding: 0; margin: 24px 0; }
.plan li { padding: 9px 0 9px 26px; position: relative; font-size: 14.5px; color: var(--text-muted); border-top: 1px solid var(--border-soft); }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); }

/* auth */
.auth { min-height: calc(100vh - 66px); display: grid; place-items: center; padding: 60px 24px; }
.authcard { width: 100%; max-width: 410px; background: var(--surface-1); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; }
.authcard h1 { font-size: 1.9rem; margin-bottom: 8px; text-align: center; }
.authcard .sub { text-align: center; color: var(--text-muted); font-size: 15px; margin-bottom: 28px; }
.authcard .alt { text-align: center; margin-top: 22px; font-size: 14.5px; color: var(--text-dim); }
.authcard .alt a { color: var(--accent); }
.divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--text-dim); font-size: 12.5px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 940px) {
  :root { --section-gap: 80px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__right .btn--sm.btn--ghost { display: none; }
  .step, .tabpane.is-active, .about, .comm, .paper, .split, .docs { grid-template-columns: 1fr; gap: 36px; }
  .step:nth-child(even) .step__media, .split--rev .split__media { order: 0; }
  .frame__body { grid-template-columns: 1fr; }
  .frame__side { flex-direction: row; flex-wrap: wrap; }
  .tgrid { grid-template-columns: 1fr 1fr; }
  .tcard.feature { grid-row: auto; grid-column: 1 / -1; }
  .feat3, .gallery, .plans, .statband, .pwall { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot__brand { grid-column: 1 / -1; }
  .docnav { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 40px; }
  .tgrid, .feat3, .gallery, .plans, .statband, .pwall, .commgrid, .fieldrow { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
  .frame__row { grid-template-columns: 1fr; }
}
