/* Next Slope — shared persona-page styles */
:root {
  --ink: #141414;
  --ink-soft: #36363a;
  --ink-muted: #6a6a70;
  --rule: #e5e1d8;
  --rule-strong: #cdc7ba;
  --bg: #ffffff;
  --bg-warm: #f4efe7;
  --bg-cream: #fbf8f2;
  --accent: #1b3a5c;
  --accent-deep: #0a1c32;
  --accent-hover: #112a45;
  --accent-soft: #e8eef5;
  --accent-tint: #c4d2e0;
  --accent-mid: #5b7a99;
  --green: #2e5a3e;
  --red-muted: #8a4b4b;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(64px, 9vw, 116px);
  --radius: 4px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.012em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.018em; }
h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.35rem);
  line-height: 1.3;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  letter-spacing: -0.005em;
}
h4 {
  font-size: 0.78rem;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  font-family: "Inter", sans-serif;
  margin-bottom: 1rem;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
em { color: var(--accent); font-style: italic; font-weight: 300; font-family: "Fraunces", Georgia, serif; }
.lede { font-size: clamp(1.05rem, 1.45vw, 1.25rem); line-height: 1.5; color: var(--ink-soft); }
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
section { padding: var(--section-y) 0; position: relative; }
section.alt { background: var(--bg-warm); }
section.cream { background: var(--bg-cream); }
section.dark { background: var(--accent-deep); color: #e6ecf3; }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: #c0cad6; }
section.dark em { color: var(--accent-tint); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 1.4rem;
  font-family: "Inter", sans-serif;
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--accent); }
section.dark .eyebrow { color: var(--accent-tint); }
section.dark .eyebrow::before { background: var(--accent-tint); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; transform: translateY(-1px); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }
section.dark .btn-outline { color: #fff; border-color: var(--accent-tint); }
section.dark .btn-outline:hover { background: #fff; color: var(--accent-deep); }
.text-link { color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; }
.text-link:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }
section.dark .text-link { color: #fff; border-bottom-color: var(--accent-mid); }
section.dark .text-link:hover { color: var(--accent-tint); border-color: var(--accent-tint); }

/* nav */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.site-nav.scrolled { border-bottom-color: var(--rule); background: rgba(255,255,255,0.96); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.018em;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.wordmark:hover { text-decoration: none; }
.wordmark-mark { width: 14px; height: 14px; flex-shrink: 0; transform: translateY(2px); }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); font-size: 0.93rem; font-weight: 500; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a.active { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 22px; height: 1.5px; background: var(--ink);
  margin: 5px 0; transition: transform 180ms ease, opacity 180ms ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* persona hero */
.p-hero { padding-top: clamp(72px, 10vw, 116px); padding-bottom: clamp(56px, 8vw, 96px); }
.p-hero .container { max-width: 980px; }
.p-hero h1 { max-width: 18ch; margin-bottom: 24px; }
.p-hero .lede { max-width: 56ch; margin-bottom: 36px; }
.p-hero-ctas { display: flex; gap: 20px; flex-wrap: wrap; }
.crumb {
  font-size: 0.85rem;
  color: var(--ink-muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}
.crumb a { color: var(--ink-muted); }
.crumb a:hover { color: var(--accent); text-decoration: none; }

/* leak grid */
.leak-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 40px;
}
.leak-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--red-muted);
  border-radius: 4px;
  padding: 24px 22px;
}
.leak-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--ink);
}
.leak-card p { font-size: 0.93rem; margin: 0; }
.leak-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-muted);
  margin-bottom: 10px;
}
.leak-disclaimer {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-muted);
  margin-top: 16px;
  max-width: 60ch;
}

/* install grid */
.install-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.install-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 32px 28px;
}
.install-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 12px;
}
.install-card .install-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.install-card ul { list-style: none; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--rule); }
.install-card li {
  font-size: 0.93rem;
  color: var(--ink-soft);
  padding: 5px 0;
  display: flex;
  gap: 10px;
}
.install-card li::before { content: "→"; color: var(--accent); flex-shrink: 0; }

/* mini case */
.case {
  background: var(--accent-deep);
  color: #e6ecf3;
  border-radius: 12px;
  padding: clamp(36px, 5vw, 56px);
  margin-top: 48px;
}
.case .case-eyebrow {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-tint);
  margin-bottom: 16px;
}
.case h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.25;
  max-width: 32ch;
}
.case p { color: #c0cad6; max-width: 60ch; }
.case-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 32px 0 24px;
  padding: 28px 0 0;
  border-top: 1px solid #20354f;
}
.case-stat .num {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
  display: block;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin-bottom: 6px;
}
.case-stat .lbl {
  font-size: 0.84rem;
  color: #a8b4c2;
  letter-spacing: 0.04em;
}
.case-disclaimer {
  font-size: 0.82rem;
  color: #8b96a3;
  font-style: italic;
  margin-top: 20px;
}

/* small pricing */
.p-pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.pp-card {
  background: var(--bg-cream);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.pp-card .pp-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.pp-card h3 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  margin-bottom: 4px;
}
.pp-card .pp-price {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.pp-card .pp-meta { font-size: 0.82rem; color: var(--ink-muted); margin-bottom: 14px; }
.pp-card p { font-size: 0.92rem; margin: 0 0 16px; flex-grow: 1; }
.pp-card a { font-weight: 600; color: var(--accent); font-size: 0.92rem; }

/* close */
.close { text-align: center; }
.close h2 { max-width: 22ch; margin: 0 auto 24px; }
.close .lede { max-width: 52ch; margin: 0 auto 32px; }

/* footer */
footer { background: var(--accent-deep); color: #c0cad6; padding: 56px 0 40px; font-size: 0.9rem; }
footer .container {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
footer h5 {
  font-family: "Inter", sans-serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-tint);
  margin: 0 0 14px;
  font-weight: 600;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { padding: 4px 0; }
footer a { color: #c0cad6; }
footer a:hover { color: #fff; text-decoration: none; }
.foot-mark { font-family: "Fraunces", Georgia, serif; color: #fff; font-size: 1.3rem; margin-bottom: 12px; display: block; }
.foot-tag { color: #8b96a3; max-width: 36ch; line-height: 1.5; }
.foot-bottom {
  max-width: var(--max);
  margin: 48px auto 0;
  padding: 24px var(--gutter) 0;
  border-top: 1px solid #20354f;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #8b96a3;
  font-size: 0.82rem;
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 24px var(--gutter);
    border-bottom: 1px solid var(--rule);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; }
  .leak-grid, .install-grid, .p-pricing, .case-stats { grid-template-columns: 1fr; }
  footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { footer .container { grid-template-columns: 1fr; } }
