/* Post Bridge — marketing design system
   Direction: warm-paper editorial-tech, vivid coral-orange "speed" signature.
   Display: Bricolage Grotesque · Body: Hanken Grotesk · Mono: JetBrains Mono */

:root {
  --paper: #f7f5f0;
  --paper-2: #efece3;
  --surface: #ffffff;
  --ink: #17150f;
  --ink-2: #2c2921;
  --muted: #6e6a60;
  --muted-2: #8c887c;
  --line: #e7e3d9;
  --line-2: #d8d3c6;
  --accent: #ff5a2c;
  --accent-ink: #e2410f;
  --accent-soft: #ffe9e0;
  --gold: #f4a300;
  --ok: #1f9d55;
  --ok-soft: #e4f5ea;
  --dark: #17150f;
  --dark-2: #211e17;

  --shadow-sm: 0 1px 2px rgba(23,21,15,.06), 0 1px 1px rgba(23,21,15,.04);
  --shadow: 0 6px 22px -8px rgba(23,21,15,.16), 0 2px 6px -2px rgba(23,21,15,.08);
  --shadow-lg: 0 26px 60px -22px rgba(23,21,15,.34), 0 8px 22px -12px rgba(23,21,15,.16);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 40px);

  --f-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + .5vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 3rem);
  --step-4: clamp(2.6rem, 1.9rem + 3.4vw, 4.4rem);
  --step-5: clamp(3.2rem, 2rem + 5.4vw, 6rem);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .4em; }
h1 { font-size: var(--step-5); font-weight: 800; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.01em; }
p { margin: 0 0 1em; max-width: 66ch; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 2*var(--pad), var(--maxw)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2*var(--pad), 760px); margin-inline: auto; }
section { padding-block: clamp(64px, 9vw, 132px); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: var(--step--1);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: .55em;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); display: inline-block; }
.eyebrow.no-rule::before { display: none; }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 52ch; }
.muted { color: var(--muted); }
.tabnum { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--f-body); font-weight: 600; font-size: var(--step-0);
  padding: .82em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s, background .18s, color .18s, border-color .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn-accent { --bg: var(--accent); --fg: #fff; box-shadow: 0 8px 24px -8px rgba(255,90,44,.5); }
.btn-accent:hover { --bg: var(--accent-ink); }
.btn-ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(23,21,15,.03); }
.btn-light { --bg: var(--paper); --fg: var(--ink); }
.btn-lg { padding: 1em 1.9em; font-size: var(--step-1); }
.btn-sm { padding: .55em 1.05em; font-size: var(--step--1); }
.btn-block { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }
.link-arrow svg { width: 15px; height: 15px; flex: 0 0 auto; }

.link-arrow { color: var(--accent-ink); font-weight: 600; display: inline-flex; align-items: center; gap: .3em; }
.link-arrow .a { transition: transform .18s; }
.link-arrow:hover .a { transform: translateX(4px); }

.chip {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--f-mono); font-size: .72rem; letter-spacing: .04em;
  padding: .38em .7em; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--muted);
}
.chip svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,245,240,.82); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(247,245,240,.94); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .55em; font-family: var(--f-display); font-weight: 800; font-size: 1.24rem; letter-spacing: -.03em; }
.brand .mark { width: 30px; height: 30px; flex: 0 0 auto; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { padding: .5em .8em; border-radius: 8px; font-size: .96rem; color: var(--ink-2); font-weight: 500; transition: background .15s, color .15s; }
.nav-links a:hover { background: rgba(23,21,15,.05); color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-2); border-radius: 8px; width: 42px; height: 42px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
}
.mobile-menu {
  position: fixed; inset: 66px 0 auto 0; z-index: 49;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 18px var(--pad) 28px; transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .24s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { display: block; padding: .8em .2em; font-size: 1.15rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(52px, 8vw, 104px) clamp(40px, 6vw, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1 { margin-bottom: .28em; }
.hero .accent-word { color: var(--accent); position: relative; white-space: nowrap; }
.hero-sub { font-size: var(--step-1); color: var(--ink-2); max-width: 34ch; margin-bottom: 1.6em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 1.4em; display: flex; gap: 1.4em; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.hero-note span { display: inline-flex; align-items: center; gap: .45em; }
.tick { color: var(--ok); font-weight: 800; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
}

/* speed counter */
.speed-line { display: inline-flex; align-items: baseline; gap: .5ch; font-family: var(--f-mono); }
.strike { color: var(--muted-2); text-decoration: line-through; text-decoration-thickness: 2px; }

/* ---------- generic section bits ---------- */
.section-head { max-width: 46ch; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-top: .3em; }
.band-dark { background: var(--dark); color: var(--paper); }
.band-dark h1, .band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .muted { color: #b7b1a4; }
.band-dark .eyebrow { color: #ffb59e; }
.band-dark .eyebrow::before { background: var(--accent); }
.band-tint { background: var(--paper-2); }

/* feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 5vw, 56px); }
.feature-row.flip .feature-text { order: 2; }
.feature-text h3 { font-size: var(--step-2); }
.feature-text ul { list-style: none; padding: 0; margin: 1.2em 0 0; display: grid; gap: .7em; }
.feature-text li { display: flex; gap: .7em; align-items: flex-start; color: var(--ink-2); }
.feature-text li::before { content: "→"; color: var(--accent); font-weight: 700; }
@media (max-width: 820px) { .feature-row, .feature-row.flip { grid-template-columns: 1fr; } .feature-row.flip .feature-text { order: 0; } }

/* card grid */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 16px; }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--muted); font-size: .96rem; margin-bottom: 0; }

/* stats */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap: 8px; }
.stat { padding: 22px 4px; }
.stat .n { font-family: var(--f-display); font-weight: 800; font-size: var(--step-3); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat .l { color: var(--muted); font-size: .9rem; }

/* logo wall */
.logo-wall { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: center; }
.logo-wall .plat { display: inline-flex; align-items: center; gap: .5em; color: var(--muted); font-weight: 600; opacity: .82; }
.logo-wall .plat svg { width: 22px; height: 22px; }

/* testimonials */
.quote-grid { columns: 3 300px; column-gap: 18px; }
.quote-card { break-inside: avoid; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.quote-card p { font-size: 1.02rem; color: var(--ink-2); margin-bottom: 18px; }
.quote-who { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-family: var(--f-display); flex: 0 0 auto; }
.quote-who .nm { font-weight: 700; font-size: .92rem; }
.quote-who .hd { color: var(--muted); font-size: .82rem; }

/* pricing */
.price-toggle { display: inline-flex; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 40px; }
.price-toggle button { border: none; background: none; font: inherit; font-weight: 600; padding: .55em 1.1em; border-radius: 999px; cursor: pointer; color: var(--muted); transition: background .2s, color .2s; }
.price-toggle button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.price-toggle .save { color: var(--accent-ink); font-size: .78rem; margin-left: .3em; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 30px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { border: 2px solid var(--ink); box-shadow: var(--shadow-lg); }
.price-card .tag { position: absolute; top: -12px; left: 30px; background: var(--accent); color: #fff; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .32em .7em; border-radius: 999px; }
.price-card .pname { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; }
.price-card .pfor { color: var(--muted); font-size: .9rem; min-height: 2.6em; }
.price-card .amt { font-family: var(--f-display); font-weight: 800; font-size: 3rem; letter-spacing: -.03em; margin: 10px 0 2px; }
.price-card .amt small { font-size: 1rem; font-weight: 500; color: var(--muted); font-family: var(--f-body); }
.price-card ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: .6em; }
.price-card li { display: flex; gap: .6em; align-items: flex-start; font-size: .94rem; color: var(--ink-2); }
.price-card li svg { width: 18px; height: 18px; color: var(--ok); flex: 0 0 auto; margin-top: 3px; }
.price-card .btn { margin-top: auto; }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 4px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--f-display); font-weight: 600; font-size: var(--step-1); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 26px; height: 26px; flex: 0 0 auto; border: 1.5px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; transition: transform .25s, background .2s, color .2s; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq .ans { padding: 0 4px 24px; color: var(--muted); max-width: 68ch; }

/* CTA band */
.cta-band { background: var(--dark); color: var(--paper); border-radius: var(--r-xl); padding: clamp(40px, 6vw, 76px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: var(--step-4); max-width: 16ch; margin-inline: auto; }
.cta-band .glow { position: absolute; inset: auto -10% -60% -10%; height: 60%; background: radial-gradient(ellipse at center, rgba(255,90,44,.5), transparent 70%); filter: blur(30px); pointer-events: none; }

/* footer */
.footer { background: var(--dark); color: #b7b1a4; padding-block: clamp(56px, 7vw, 88px) 40px; }
.footer a { color: #cfc9bc; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 40px 28px; }
.footer .brand { color: #fff; }
.footer h4 { color: #fff; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .92rem; }
.footer-bar { margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; }
.footer-blurb { font-size: .92rem; max-width: 32ch; margin: 16px 0 20px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } }

/* forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
.input, textarea.input, select.input {
  width: 100%; font: inherit; padding: .78em .9em; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,90,44,.14); }
textarea.input { resize: vertical; min-height: 120px; }

/* prose (blog/legal/docs) */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.4em; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.72; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .5em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose blockquote { border-left: 3px solid var(--accent); padding-left: 1.1em; margin: 1.4em 0; font-style: italic; color: var(--ink-2); }
.prose code { font-family: var(--f-mono); font-size: .88em; background: var(--paper-2); padding: .15em .4em; border-radius: 5px; }
.prose pre { background: var(--dark); color: #ece7db; padding: 20px; border-radius: var(--r); overflow-x: auto; margin: 1.4em 0; }
.prose pre code { background: none; color: inherit; padding: 0; font-size: .85rem; line-height: 1.65; }
.prose img { border-radius: var(--r); border: 1px solid var(--line); margin: 1.6em 0; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.4em 0; }

/* blog cards */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 24px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card .thumb { aspect-ratio: 16/9; position: relative; overflow: hidden; }
.post-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.24rem; margin-bottom: .4em; }
.post-card .meta { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; margin-bottom: 12px; }
.post-card p { color: var(--muted); font-size: .94rem; flex: 1; }

/* misc utility */
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.grad-text { background: linear-gradient(100deg, var(--accent), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hr { border: none; border-top: 1px solid var(--line); margin: 0; }
.center { text-align: center; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 44px; }
.hide { display: none !important; }

/* toast */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.toast { background: var(--dark); color: var(--paper); padding: .8em 1.2em; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: .9rem; display: flex; align-items: center; gap: .6em; animation: toastin .3s cubic-bezier(.2,.8,.2,1); }
.toast .tick { color: #7fe3a4; }
@keyframes toastin { from { transform: translateY(14px); opacity: 0; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.8,.2,1), transform .6s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
