/* Marketing Plan Pros — the inner pages' stylesheet.

   The homepage is the climb (index.html carries its own styles); every other
   page — Website Grader, Client Platform, Website CMS, AI Websites, Website
   Portfolio, Success Stories, the blog — is a normal scrolling page that
   shares the climb's look: Cormorant Garamond statements, Archivo for
   everything operational, a navy night sky for the ground, gold for the one
   accent. The class names are the ones the pages already use, so the markup
   of each page stays put and only the treatment changes.

   Served immutable by netlify.toml, so bump the ?v= where it is linked when
   this file changes. */

:root {
  --space: #070C17; --navy: #0D1526; --navy-2: #111C33; --sky-5: #152D4E; --sky-4: #193D66;
  --ink: #0F172A; --ink-soft: #3E4A63;
  --gold: #E8B923; --gold-hi: #F6D25A; --gold-ink: #9E7B12;
  --star: #F3F5FA; --mist: #C9D2E6; --mist-dim: #8B96B0;
  --line: rgba(201,210,230,.16); --line-gold: rgba(232,185,35,.32);
  --card: rgba(201,210,230,.05); --card-hover: rgba(201,210,230,.08);
  --display: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --utility: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 88px);
  --max: 1500px;
  /* Pass / warn / fail for the grader's rings and chips. */
  --pass: #4ADE80; --warn: #FBBF24; --fail: #F87171;
  /* The previous pages' token names, kept so inline styles still resolve. */
  --gold-bright: var(--gold-hi); --gold-deep: var(--gold-ink); --navy-text: var(--ink);
  --navy-950: var(--space); --navy-900: var(--navy); --navy-850: var(--navy-2); --navy-800: var(--sky-5);
  --slate: var(--mist-dim); --slate-light: var(--mist); --ink-muted: var(--mist-dim); --card-border: var(--line);
}

* { margin: 0; padding: 0; box-sizing: border-box; min-width: 0; }
html { background: var(--navy); scroll-behavior: smooth; }
body {
  min-height: 100vh; background: linear-gradient(180deg, var(--space) 0%, var(--navy) 38%, var(--sky-5) 100%);
  color: var(--star); font-family: var(--utility); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 860px; }
section { padding: clamp(64px, 9vh, 112px) 0; }
.gold { color: var(--gold); }
h1 .gold, h2 .gold, h3 .gold { font-style: italic; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(13,21,38,.78); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: -.01em; font-size: 14.5px; white-space: nowrap; flex: none; }
.brand svg { width: 28px; height: 28px; flex: none; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 500; }
.main-nav > a, .nav-drop-btn { position: relative; opacity: .78; white-space: nowrap; }
.main-nav > a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--gold); transition: right .3s ease; }
.main-nav > a:hover::after, .main-nav > a.is-current::after { right: 0; }
.main-nav > a:hover, .main-nav > a.is-current, .nav-drop-btn:hover, .nav-drop.open .nav-drop-btn { opacity: 1; }
.nav-drop { position: relative; }
.nav-drop-btn { background: none; border: 0; color: inherit; font: inherit; font-weight: 500; letter-spacing: .02em; cursor: pointer; padding: 0; display: inline-flex; align-items: center; gap: 6px; }
.nav-drop-btn::after { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-drop-btn .caret { display: none; }
.nav-drop-menu { position: absolute; top: 100%; left: -14px; padding-top: 16px; display: none; z-index: 130; }
.nav-drop:hover .nav-drop-menu, .nav-drop.open .nav-drop-menu, .nav-drop:focus-within .nav-drop-menu { display: block; }
.nav-drop-panel { min-width: 220px; display: flex; flex-direction: column; padding: 8px; background: var(--navy); border: 1px solid rgba(232,185,35,.22); border-radius: 12px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); }
.nav-drop-panel a { padding: 10px 12px; border-radius: 8px; font-size: 13px; color: var(--star); opacity: .85; white-space: nowrap; }
.nav-drop-panel a:hover, .nav-drop-panel a.is-current { background: rgba(232,185,35,.1); opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-cta { padding: 10px 16px !important; font-size: 12.5px !important; }
.nav-toggle { display: none; background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; width: 40px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 18px; height: 18px; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 20px 20px; border-top: 1px solid rgba(232,185,35,.22); background: rgba(13,21,38,.96); max-height: calc(100vh - 68px); overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu button:not(.btn-gold) { text-align: left; background: none; border: 0; color: var(--star); font: 500 15px/1 var(--utility); padding: 12px 8px; border-radius: 8px; cursor: pointer; }
.mobile-menu .sub { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); padding: 14px 8px 4px; font-weight: 600; }
.mobile-menu .btn-gold { justify-content: center; margin-top: 10px; }
@media (max-width: 960px) { .main-nav { display: none; } .nav-toggle { display: inline-flex; } }
@media (min-width: 961px) { .mobile-menu { display: none !important; } }

/* ---------- buttons ---------- */
.btn-gold, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  font-family: var(--utility); font-weight: 600; font-size: 13.5px; letter-spacing: .02em; line-height: 1; cursor: pointer; white-space: nowrap;
  border: 1px solid currentColor; transition: background .25s, color .25s, transform .3s cubic-bezier(.2,.7,.2,1);
}
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-hi); transform: translateY(-3px); }
.btn-gold:disabled { opacity: .55; cursor: default; transform: none; }
.btn-gold.lg, .btn-ghost.lg { padding: 16px 26px; font-size: 14px; }
.btn-gold .arrow { transition: transform .3s; } .btn-gold:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--star); border-color: rgba(201,210,230,.5); }
.btn-ghost:hover { background: rgba(201,210,230,.1); transform: translateY(-3px); }
.btn-ghost.block, .btn-gold.block { width: 100%; }

/* ---------- page hero ---------- */
.hero { position: relative; overflow: hidden; text-align: left; padding: clamp(72px, 11vh, 140px) 0 clamp(40px, 6vh, 72px); }
.hero > .container { position: relative; }
.hero-badge, .eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
  font-family: var(--utility); font-weight: 600; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); line-height: 1.5;
  background: none; border: 0; padding: 0; border-radius: 0;
}
.hero-badge::before, .eyebrow::before { content: ""; width: 1px; height: 28px; background: currentColor; opacity: .8; flex: none; }
.hero h1 { font-family: var(--display); font-weight: 300; letter-spacing: -.015em; font-size: clamp(42px, 6.6vw, 100px); line-height: .98; text-wrap: balance; margin-bottom: 22px; }
.hero h1 br { display: none; }
.hero-sub, .hero p, .lede { font-family: var(--display); font-weight: 400; font-size: clamp(19px, 1.6vw, 26px); line-height: 1.36; color: var(--mist); max-width: none; margin: 0 0 30px; }
.hero p b, .hero-sub b { color: var(--star); font-weight: 500; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: flex-start; }

/* ---------- sections ---------- */
.section-title { font-family: var(--display); font-weight: 300; letter-spacing: -.015em; font-size: clamp(34px, 4.6vw, 68px); line-height: .98; text-align: left; margin-bottom: 18px; text-wrap: balance; }
.section-title::before { display: none; }
.section-sub { font-family: var(--display); font-size: clamp(18px, 1.5vw, 24px); line-height: 1.36; color: var(--mist); text-align: left; max-width: none; margin: 0 0 clamp(28px, 4vh, 48px); }
.light-section, .dark-section { position: relative; border-top: 1px solid var(--line); }
.dark-section { background: rgba(7,12,23,.35); }
.cta-band { text-align: left; }
.cta-band p { font-family: var(--display); font-size: clamp(18px, 1.5vw, 24px); line-height: 1.36; color: var(--mist); max-width: none; margin: 0 0 30px; }
.cta-band p a { color: var(--gold); }

/* Cards read as columns of a statement: a gold hairline, a serif heading, a
   plain paragraph. No boxes. */
.card-grid-2, .card-grid-3 { display: grid; gap: 18px 40px; max-width: none; margin: 0; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pillar-card { background: none; border: 0; border-top: 1px solid var(--line-gold); border-radius: 0; padding: 22px 0 8px; box-shadow: none; transition: none; }
.pillar-card:hover { background: none; border-color: var(--gold); transform: none; }
.icon-chip { width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-gold); background: none !important; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.icon-chip svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; }
.pillar-card h3 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2vw, 32px); line-height: 1.05; color: var(--star); margin-bottom: 12px; }
.pillar-card p { font-size: 15px; line-height: 1.55; color: var(--mist-dim); font-weight: 400; }
.pillar-card ul { margin: 12px 0 0; padding: 0; list-style: none; color: var(--mist-dim); font-size: 14.5px; line-height: 1.6; display: grid; gap: 6px; }
.pillar-card li { display: flex; gap: 12px; align-items: baseline; }
.pillar-card li::before { content: ""; width: 1px; height: 12px; background: var(--gold); flex: none; }
.statement-card { max-width: none; margin: 0; background: none; border: 0; border-left: 2px solid var(--gold); border-radius: 0; padding: 6px 0 6px clamp(20px, 3vw, 40px); font-family: var(--display); font-size: clamp(20px, 1.7vw, 27px); font-weight: 400; line-height: 1.38; color: var(--mist); }
.statement-card .lead { color: var(--star); font-family: var(--display); font-size: clamp(28px, 2.8vw, 44px); line-height: 1.05; font-weight: 400; display: block; margin-bottom: 16px; }
.statement-card .closing { display: block; margin-top: 18px; color: var(--gold); font-style: italic; font-weight: 400; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 36px; background: rgba(7,12,23,.5); color: var(--mist-dim); text-align: left; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 36px 44px; }
.footer-desc { color: var(--mist-dim); font-size: 14px; line-height: 1.6; margin-top: 16px; max-width: 46ch; font-family: var(--display); font-size: 17px; }
.footer-col h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; display: grid; gap: 9px; }
.footer-col a { color: var(--mist); font-size: 14px; }
.footer-col a:hover, .site-footer a:hover { color: var(--gold); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; }
.site-footer p { font-size: 12.5px; color: var(--mist-dim); }

/* ---------- Apply modal + site chat (injected by site.js; forms are registered by index.html) ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(5,9,18,.72); backdrop-filter: blur(8px); }
.modal-overlay.open { display: flex; }
.modal-card { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto; background: var(--navy); border: 1px solid rgba(232,185,35,.3); border-radius: 18px; padding: 32px 28px 26px; color: var(--star); box-shadow: 0 40px 90px -30px rgba(0,0,0,.8); }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line); background: none; color: var(--mist); font-size: 22px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: var(--star); border-color: var(--gold); }
.modal-card h3 { font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: -.01em; margin-bottom: 8px; }
.modal-card h3 em { font-style: italic; color: var(--gold); }
.modal-sub { color: var(--mist); font-size: 14.5px; line-height: 1.5; margin-bottom: 20px; }
.form-field { display: grid; gap: 6px; margin-bottom: 14px; }
.form-field label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mist-dim); }
.form-field input, .form-field textarea, .chat-form input, .chat-form textarea { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(201,210,230,.06); color: var(--star); font: 15px/1.4 var(--utility); outline: none; }
.form-field input:focus, .form-field textarea:focus, .chat-form input:focus, .chat-form textarea:focus { border-color: var(--gold); }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-status { min-height: 1.4em; margin-top: 12px; font-size: 14px; line-height: 1.4; }
.form-status.ok { color: var(--gold-hi); } .form-status.err { color: #F0A5A5; }
.chat-bubble { position: fixed; left: 18px; bottom: 18px; z-index: 190; width: 54px; height: 54px; border-radius: 999px; border: 1px solid rgba(232,185,35,.5); background: var(--navy); color: var(--gold); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 18px 40px -16px rgba(0,0,0,.7); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.chat-bubble:hover { transform: translateY(-3px); }
.chat-bubble svg { width: 24px; height: 24px; }
.chat-panel { position: fixed; left: 18px; bottom: 84px; z-index: 190; width: min(360px, calc(100vw - 36px)); display: none; background: var(--navy); border: 1px solid rgba(232,185,35,.3); border-radius: 16px; overflow: hidden; color: var(--star); box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.chat-panel.open { display: block; }
.chat-head { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.chat-head h4 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 22px; line-height: 1; }
.chat-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--mist-dim); }
.chat-messages { padding: 14px 18px; max-height: 220px; overflow-y: auto; display: grid; gap: 8px; }
.chat-msg { font-size: 13.5px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; background: rgba(201,210,230,.08); color: var(--mist); }
.chat-msg.mine { background: rgba(232,185,35,.16); color: var(--star); }
.chat-form { padding: 0 18px 16px; display: grid; gap: 8px; }
.chat-form textarea { min-height: 64px; resize: none; }
.chat-send { padding: 11px 14px; border-radius: 10px; border: 0; background: var(--gold); color: var(--ink); font: 600 13.5px var(--utility); cursor: pointer; }
.chat-send:hover { background: var(--gold-hi); }

/* ---------- Website Grader (scanner.html) ---------- */
.scan-form { max-width: 720px; margin: 8px 0 0; }
.scan-fields { display: flex; gap: 12px; }
.scan-fields input { flex: 1; min-width: 0; padding: 16px 18px; font: 16px var(--utility); border-radius: 12px; border: 1px solid var(--line); background: rgba(201,210,230,.06); color: var(--star); outline: none; }
.scan-fields input::placeholder { color: var(--mist-dim); }
.scan-fields input:focus { border-color: var(--gold); }
.scan-fields input.invalid { border-color: var(--fail); }
.scan-form .btn-gold { width: 100%; margin-top: 12px; padding: 16px 26px; font-size: 14px; }
.scan-note { color: var(--mist-dim); font-size: 13px; line-height: 1.55; margin: 14px 0 0; max-width: 720px; font-family: var(--utility); }
.scan-error { display: none; max-width: 720px; margin: 18px 0 0; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.4); color: var(--fail); border-radius: 10px; padding: 12px 18px; font-size: 14px; }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(232,185,35,.25); border-top-color: var(--gold); border-radius: 50%; margin: 40px 0 14px; animation: spin .8s linear infinite; display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-status { text-align: left; color: var(--mist); font-size: 14px; display: none; font-family: var(--utility); }
#results { display: none; padding: 0 0 clamp(64px, 9vh, 112px); }
.overall-card, .cat-card, .bots-card, .tech-badge, .cta-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.overall-card { padding: 28px; display: flex; gap: 32px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; border-color: var(--line-gold); }
.ring-wrap { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.ring-wrap svg { transform: rotate(-90deg); }
.ring-score { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--display); }
.ring-score .n { font-size: 44px; line-height: 1; font-weight: 400; }
.ring-score .d { font-size: 11px; color: var(--mist-dim); font-family: var(--utility); letter-spacing: .12em; text-transform: uppercase; margin-top: 4px; }
.overall-info { flex: 1; min-width: 240px; }
.overall-info h2 { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 2.4vw, 34px); line-height: 1; word-break: break-all; }
.overall-info .sub { color: var(--mist-dim); font-size: 13.5px; margin: 8px 0 16px; }
.stats-row { display: flex; gap: 22px; flex-wrap: wrap; }
.stat .v { font-family: var(--display); font-size: 24px; line-height: 1; font-weight: 500; }
.stat .l { font-size: 10.5px; color: var(--mist-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; margin-top: 4px; }
.tech-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.tech-badge { padding: 10px 16px; border-radius: 12px; }
.tech-badge .l { font-size: 10px; color: var(--mist-dim); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; }
.tech-badge .v { font-size: 14px; font-weight: 600; margin-top: 2px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.cat-card { overflow: hidden; }
.cat-head { display: flex; align-items: center; gap: 16px; padding: 16px 18px; cursor: pointer; }
.cat-head:hover { background: var(--card-hover); }
.cat-ring { position: relative; width: 58px; height: 58px; flex-shrink: 0; }
.cat-ring svg { transform: rotate(-90deg); }
.cat-ring .n { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 20px; font-weight: 500; }
.cat-title { font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1; }
.cat-sub { font-size: 12.5px; color: var(--mist-dim); margin-top: 4px; line-height: 1.45; }
.cat-counts { font-size: 12px; font-weight: 600; margin-top: 4px; color: var(--mist); }
.cat-checks { display: none; border-top: 1px solid var(--line); padding: 8px 18px 14px; }
.cat-card.open .cat-checks { display: block; }
.check { display: flex; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.check:last-child { border-bottom: none; }
.check .dot { width: 18px; height: 18px; border-radius: 99px; color: var(--ink); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.check .cl { font-size: 13.5px; font-weight: 600; color: var(--star); }
.check .cd { font-size: 12.5px; color: var(--mist-dim); line-height: 1.5; }
.bots-card { padding: 18px; margin-bottom: 18px; }
.bots-card h3 { font-family: var(--display); font-size: 22px; font-weight: 500; margin-bottom: 12px; line-height: 1; }
.bot-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bot-chip { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.bot-ok { background: rgba(74,222,128,.14); color: var(--pass); }
.bot-no { background: rgba(248,113,113,.14); color: var(--fail); }
.bots-note { color: var(--mist-dim); font-size: 12.5px; margin-top: 12px; line-height: 1.6; }
.cta-card { padding: 34px; text-align: left; border-color: var(--line-gold); }
.cta-card h3 { font-family: var(--display); font-weight: 300; font-size: clamp(28px, 3vw, 44px); line-height: 1; }
.cta-card h3 span { font-style: italic; }
.cta-card p { font-family: var(--display); color: var(--mist); font-size: 19px; margin: 12px 0 22px; line-height: 1.4; max-width: 60ch; }
@media (max-width: 760px) { .cat-grid { grid-template-columns: 1fr; } .overall-card { padding: 22px; gap: 20px; } .scan-fields { flex-direction: column; } }

/* ---------- Website Portfolio (website-portfolio.html) ---------- */
.pf-stats { display: flex; gap: 40px; justify-content: flex-start; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.pf-stat { text-align: left; }
.pf-stat b { display: block; font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 400; color: var(--star); line-height: 1; }
.pf-stat span { display: block; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mist-dim); margin-top: 6px; }
.pf-controls { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(7,12,23,.45); padding: 18px 0; scroll-margin-top: 84px; }
.pf-controls .container { display: flex; flex-direction: column; gap: 12px; }
.pf-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pf-search { flex: 1 1 260px; min-width: 0; display: flex; align-items: center; gap: 10px; background: rgba(201,210,230,.06); border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; }
.pf-search svg { width: 16px; height: 16px; stroke: var(--mist-dim); flex-shrink: 0; }
.pf-search input { flex: 1; min-width: 0; background: none; border: none; outline: none; padding: 11px 0; font: 14.5px var(--utility); color: var(--star); }
.pf-search input::placeholder { color: var(--mist-dim); }
.pf-count { font-size: 13.5px; color: var(--mist-dim); white-space: nowrap; }
.pf-count b { color: var(--star); font-weight: 600; }
.pf-switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; font-size: 13.5px; color: var(--mist); white-space: nowrap; }
.pf-switch input { position: absolute; opacity: 0; pointer-events: none; }
.pf-switch .track { width: 38px; height: 22px; border-radius: 999px; background: rgba(201,210,230,.08); border: 1px solid var(--line); position: relative; transition: background .15s, border-color .15s; }
.pf-switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--mist-dim); transition: transform .15s, background .15s; }
.pf-switch input:checked + .track { background: rgba(232,185,35,.18); border-color: var(--gold); }
.pf-switch input:checked + .track::after { transform: translateX(16px); background: var(--gold); }
.pf-switch input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 2px; }
.pf-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-chip { background: none; border: 1px solid var(--line); color: var(--mist); font: 500 13px var(--utility); padding: 8px 14px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.pf-chip:hover { border-color: var(--gold); color: var(--star); }
.pf-chip .n { font-size: 11.5px; color: var(--mist-dim); }
.pf-chip[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.pf-chip[aria-pressed="true"] .n { color: rgba(15,23,42,.6); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 22px; margin-top: 8px; }
.pf-card { display: block; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .25s cubic-bezier(.2,.7,.2,1), border-color .25s; }
a.pf-card:hover { transform: translateY(-4px); border-color: var(--line-gold); }
.pf-shot { display: block; width: 100%; height: auto; aspect-ratio: 880 / 487; object-fit: cover; background: var(--navy-2); }
.pf-meta { padding: 16px 18px 18px; }
.pf-name { font-family: var(--display); font-size: 21px; font-weight: 500; color: var(--star); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.pf-sub { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.pf-domain { font-size: 13px; color: var(--mist-dim); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.pf-card:hover .pf-domain { color: var(--gold); }
.pf-tag { flex: 0 0 auto; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line-gold); border-radius: 999px; padding: 4px 10px; }
.pf-tag.muted { color: var(--mist-dim); border-color: var(--line); }
.pf-more { margin-top: 44px; display: flex; gap: 14px; justify-content: flex-start; align-items: center; flex-wrap: wrap; }
.pf-back { background: none; border: none; padding: 14px 4px; cursor: pointer; font: 500 14px var(--utility); color: var(--mist-dim); text-decoration: underline; text-underline-offset: 4px; }
.pf-back:hover { color: var(--gold); }
.pf-empty { padding: 60px 0; color: var(--mist); font-family: var(--display); font-size: 22px; }
.pf-empty b { color: var(--star); font-weight: 500; }
@media (max-width: 960px) { .pf-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; } .pf-stats { gap: 26px; } }
@media (max-width: 860px) {
  .pf-chips { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 4px; }
  .pf-chips::-webkit-scrollbar { display: none; }
  .pf-chip { flex: 0 0 auto; }
  .pf-search { flex: 1 1 100%; }
}
@media (max-width: 560px) { .pf-grid { grid-template-columns: 1fr; } }

/* ---------- phone ---------- */
@media (max-width: 760px) {
  section { padding: 56px 0; }
  .card-grid-2, .card-grid-3 { grid-template-columns: 1fr; gap: 6px; }
  .pillar-card { padding: 18px 0 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-ctas .btn-gold, .hero-ctas .btn-ghost { flex: 1 1 auto; }
  .chat-bubble { width: 48px; height: 48px; left: 14px; bottom: 14px; }
  .chat-panel { left: 14px; bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-gold, .btn-ghost, .pf-card, .chat-bubble { transition: none; }
  .btn-gold:hover, .btn-ghost:hover, a.pf-card:hover { transform: none; }
}

/* ---------- legal pages (privacy, terms) ---------- */
.legal .hero { padding-bottom: clamp(24px, 4vh, 40px); }
.legal .hero h1 { font-size: clamp(36px, 5vw, 72px); }
.legal-toc { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--utility); font-size: 13px; }
.legal-toc a { color: var(--mist); text-decoration: none; border-bottom: 1px solid var(--line-gold); padding-bottom: 2px; }
.legal-toc a:hover { color: var(--gold); }
.legal-body h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.1; margin: clamp(36px, 5vh, 56px) 0 12px; scroll-margin-top: 90px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-family: var(--utility); font-weight: 600; font-size: 15px; letter-spacing: .02em; margin: 26px 0 8px; color: var(--star); }
.legal-body p, .legal-body li { font-size: 16px; line-height: 1.65; color: var(--mist); }
.legal-body p { margin: 0 0 14px; }
.legal-body ul { margin: 0 0 16px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body li strong, .legal-body p strong, .legal-body td strong { color: var(--star); font-weight: 600; }
.legal-body a { color: var(--gold); }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); color: var(--mist); line-height: 1.55; }
.legal-table th { font-family: var(--utility); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.legal-table td:first-child { width: 34%; color: var(--star); font-weight: 500; padding-right: 20px; }
.legal-table td small { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--mist-dim); font-weight: 400; margin-top: 3px; }
.legal-meta { margin-top: 28px; font-size: 14px; color: var(--mist-dim); }
@media (max-width: 640px) {
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table thead { display: none; }
  .legal-table td { border: 0; padding: 4px 0; }
  .legal-table td:first-child { width: 100%; padding-top: 14px; padding-right: 0; }
  .legal-table tr { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
}
