:root {
  --ink: #15302B;
  --ink-soft: #4A645E;
  --paper: #FAF7F1;
  --paper-2: #F1ECE2;
  --card: #FFFFFF;
  --line: #E2DBCD;
  --accent: #F2B544;
  --accent-deep: #B9791A;
  --accent-ink: #2A1E05;
  --live: #2E9E6A;
  --radius: 14px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }
.muted { color: var(--ink-soft); }
.accent { color: var(--accent-deep); }
.kicker { color: var(--ink-soft); margin-bottom: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(250, 247, 241, 0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-size: 1.35rem; font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* Buttons */
.btn { display: inline-block; padding: 14px 22px; border-radius: 999px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; border: 2px solid var(--ink); transition: transform 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-small { padding: 8px 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-light { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-ghost-light { background: transparent; color: var(--paper); border-color: rgba(250, 247, 241, 0.5); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 12px; }

/* Hero */
.hero { padding: 80px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }
.lead { font-size: 1.1rem; max-width: 580px; color: var(--ink-soft); }
.stats { display: flex; flex-wrap: wrap; gap: 32px; margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.stats dd { margin: 2px 0 0; font-family: var(--font-head); font-size: 1.2rem; }

/* Shift panel */
.shift { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px -24px rgba(21, 48, 43, 0.35); overflow: hidden; }
.shift-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--paper-2); border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.tag { color: var(--live); }
.shift-list { list-style: none; margin: 0; padding: 6px 18px; }
.shift-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.shift-list li:last-child { border-bottom: 0; }
.shift-list p { margin: 2px 0 0; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.45; }
.shift-foot { margin: 0; padding: 14px 18px; border-top: 1px solid var(--line); font-family: var(--font-head); font-size: 1.05rem; }
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-right: 6px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; } }

.badge { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--accent); font-family: var(--font-head); font-size: 1rem; }
.badge.big { width: 48px; height: 48px; font-size: 1.3rem; margin-bottom: 14px; }

/* Sections */
section { padding: 88px 0; }
.section-sub { color: var(--ink-soft); max-width: 600px; }
.team, .calc, .faq { border-top: 1px solid var(--line); }
.leaks, .local { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }

/* Workers */
.worker { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; padding: 48px 0; border-bottom: 1px solid var(--line); }
.worker:last-child { border-bottom: 0; padding-bottom: 0; }
.role { color: var(--ink-soft); font-weight: 600; }
.convo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.convo-title { color: var(--ink-soft); margin: 0 0 14px; }
.line { display: grid; grid-template-columns: 64px 1fr; gap: 10px; margin: 0 0 10px; font-size: 0.95rem; }
.who { color: var(--ink-soft); padding-top: 3px; }
.line.us .who { color: var(--accent-deep); }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; margin: 0 0 10px; font-size: 0.95rem; line-height: 1.45; }
.bubble .time { display: block; margin-bottom: 4px; font-size: 0.65rem; opacity: 0.7; }
.bubble.us { background: var(--paper-2); border-bottom-left-radius: 4px; }
.bubble.them { background: var(--ink); color: var(--paper); margin-left: auto; border-bottom-right-radius: 4px; }
.result { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 0.85rem; font-weight: 600; color: var(--live); }

/* Leaks */
.leak-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.leak-list li { display: flex; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.leak-list h3 { font-size: 1.15rem; margin-bottom: 6px; }
.leak-list p { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 12px; }
.num { color: var(--accent-deep); padding-top: 4px; }
.who-tag { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink); }

/* Morning brief */
.brief-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.phone { background: var(--ink); color: var(--paper); border-radius: 28px; padding: 24px; max-width: 400px; justify-self: center; width: 100%; }
.phone .convo-title { color: rgba(250, 247, 241, 0.6); }
.brief-msg { background: rgba(250, 247, 241, 0.08); border-radius: 16px; padding: 16px; }
.brief-msg .muted { color: rgba(250, 247, 241, 0.6); margin-bottom: 8px; }
.brief-stats { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brief-stats strong { font-family: var(--font-head); font-size: 1.5rem; color: var(--accent); display: block; }
.brief-msg p:last-child { margin: 0; font-size: 0.95rem; }

/* Calculator */
.calc-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; margin-top: 32px; }
.calc-inputs { display: grid; gap: 16px; align-content: start; }
.calc-inputs label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
.calc-inputs input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); }
.calc-inputs input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.calc-out { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.calc-out .mono { margin: 0; }
.calc-big { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 3.2rem); margin: 4px 0; color: var(--accent-deep); }
.per { font-size: 1.2rem; color: var(--ink-soft); }
.calc-math { margin: 20px 0 0; display: grid; gap: 10px; }
.calc-math div { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 0.9rem; }
.calc-math dt { font-weight: 600; }
.calc-math dd { margin: 0; color: var(--ink-soft); text-align: right; }
.calc-math span { color: var(--ink); font-weight: 600; }
.fine { font-size: 0.8rem; color: var(--ink-soft); margin: 16px 0 0; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 36px 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: "0" counter(step); font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); display: block; margin-bottom: 8px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; max-width: 760px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* CTA */
.cta { background: var(--ink); color: var(--paper); text-align: center; }
.cta p { color: rgba(250, 247, 241, 0.8); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta .hero-ctas { justify-content: center; }

/* Footer */
.footer { padding: 28px 0; font-size: 0.9rem; color: var(--ink-soft); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer p { margin: 0; }

@media (max-width: 900px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding: 56px 0; }
  section { padding: 60px 0; }
  .hero-grid, .two-col, .worker, .brief-grid, .calc-grid, .steps { grid-template-columns: 1fr; gap: 28px; }
  .leak-list { grid-template-columns: 1fr; }
  .worker { padding: 36px 0; }
}

@media (min-width: 901px) and (max-width: 1060px) {
  .leak-list { grid-template-columns: repeat(2, 1fr); }
}

/* Pricing */
.pricing { border-top: 1px solid var(--line); }
.price-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 32px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; }
.price h3 { margin-bottom: 2px; }
.price .role { font-size: 0.9rem; min-height: 2.9em; }
.amount { font-family: var(--font-head); font-size: 2.2rem; margin: 8px 0 4px; }
.amount span { font-size: 1rem; color: var(--ink-soft); }
.price .fine { margin-top: auto; }
.price.featured { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.price.featured .role, .price.featured .fine, .price.featured .amount span { color: rgba(250, 247, 241, 0.75); }
.price.featured .amount { color: var(--accent); }
.tag-light { color: var(--accent); margin: 0 0 6px; }
.founding { margin-top: 24px; padding: 16px 20px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); }

@media (max-width: 1060px) { .price-grid { grid-template-columns: repeat(2, 1fr); } .price.featured { grid-column: 1 / -1; } }
@media (max-width: 560px) { .price-grid { grid-template-columns: 1fr; } .price .role { min-height: 0; } }
