/* Design tokens */
/* Brand color comes from the background of Stefan's photo (#7ab3a5). */
:root {
  --bg: #f4f8f6;
  --surface: #ffffff;
  --alt: #e8f1ee;
  --ink: #0f1f1b;
  --muted: #5d6b67;
  --line: #d5e3de;
  --accent: #2a6f60;
  --accent-ink: #ffffff;
  --accent-soft: #dcefe9;
  --photo: #7fb7aa;
  --photo-ink: #0f1f1b;
  --photo-em: #133a31;
  --dark: #0e1a17;
  --dark-ink: #eef5f2;
  --dark-muted: #9fb0ab;
  --dark-line: #24342f;
  --radius: 14px;
  --wrap: 1320px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1715;
    --surface: #15211e;
    --alt: #121c1a;
    --ink: #eef5f2;
    --muted: #9fb0ab;
    --line: #24342f;
    --accent: #7cc4b2;
    --accent-ink: #0e1715;
    --accent-soft: #1f3530;
    --dark: #0a1311;
  }
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
h1 { font: 400 clamp(44px, 7vw, 84px)/1.02 var(--serif); letter-spacing: -0.025em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font: 400 clamp(34px, 4.6vw, 54px)/1.06 var(--serif); }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; margin-top: 24px; }
.section { padding: 112px 0; }
.section-lead { color: var(--muted); max-width: 640px; margin-top: 16px; font-size: 18px; }
.section-alt { background: var(--alt); }
.note { margin-top: 32px; color: var(--muted); font-size: 16px; max-width: 720px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 16px; text-decoration: none;
  border: 1px solid var(--accent);
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-small { padding: 9px 16px; font-size: 14px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 120px 0 104px; }
.hero h1 { max-width: 980px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.proof {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px 32px;
  color: var(--muted); font-size: 15px;
}
.proof strong { color: var(--ink); font-weight: 600; }

/* Calculator */
.calc {
  margin-top: 48px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.calc-tabs { display: flex; align-items: center; gap: 8px; padding: 16px; border-bottom: 1px solid var(--line); }
.calc-tab, .cur {
  font: 500 15px var(--sans); color: var(--muted);
  background: transparent; border: 1px solid transparent;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.calc-tab.is-active { background: var(--ink); color: var(--bg); }
.currency { margin-left: auto; display: flex; gap: 2px; background: var(--alt); border-radius: 999px; padding: 3px; }
.cur { padding: 5px 12px; }
.cur.is-active { background: var(--surface); color: var(--ink); }
.calc-panel, .calc-body { display: grid; grid-template-columns: 1.1fr 1fr; }
.calc-panel[hidden], .calc-pane[hidden] { display: none; }
.calc-pane { display: grid; gap: 30px; align-content: start; }
.calc-results .calc-pane { gap: 28px; }
.calc-inputs { padding: 36px; display: grid; gap: 30px; align-content: start; }
.field { display: grid; gap: 12px; }
.field-top { display: flex; justify-content: space-between; gap: 16px; font-weight: 500; }
.field-top small { color: var(--muted); font-weight: 400; }
.field output { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hint { color: var(--muted); font-size: 14px; }

input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  border-radius: 999px; outline-offset: 6px;
  background: linear-gradient(var(--accent), var(--accent)) 0/var(--fill, 50%) 100% no-repeat, var(--line);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--accent); cursor: pointer;
}

.calc-results { background: var(--alt); padding: 36px; display: grid; gap: 28px; align-content: start; border-left: 1px solid var(--line); }
.result { display: grid; gap: 4px; }
.result + .result { border-top: 1px solid var(--line); padding-top: 24px; }
.result-label { font-size: 14px; color: var(--muted); font-weight: 500; }
.result-value { font: 400 64px/1 var(--serif); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--accent); }
.result-value.small { font-size: 40px; color: var(--ink); }
.result-sub { font-size: 14px; color: var(--muted); }
.result-days {
  margin-top: 10px; justify-self: start; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600;
}

/* Task list in the calculator */
.tasks { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 4px; }
.tasks-head {
  display: flex; justify-content: space-between; gap: 16px; width: 100%;
  font-weight: 500; padding: 0 0 10px;
}
.tasks-head span:last-child { color: var(--muted); font-size: 13px; font-weight: 400; align-self: end; }
.task {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-top: 1px solid var(--line);
}
.task-check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; line-height: 1.35; }
.task-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.task-check small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.stepper {
  display: flex; align-items: center; flex: none;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg); overflow: hidden;
}
.step-btn {
  width: 32px; height: 34px; border: 0; background: transparent; color: var(--accent);
  font: 600 18px/1 var(--sans); cursor: pointer;
}
.step-btn:hover:not(:disabled) { background: var(--accent-soft); }
.task-hours {
  width: 44px; height: 34px; padding: 0; border: 0; background: transparent; color: var(--ink);
  font: 600 15px var(--sans); text-align: center; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield; appearance: textfield;
}
.task-hours::-webkit-inner-spin-button, .task-hours::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.task-hours:focus { outline: none; }
.stepper:focus-within { border-color: var(--accent); }
.stepper:has(:disabled) { opacity: .4; }
.step-btn:disabled { cursor: default; }
.tasks-total { padding: 12px 0 8px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.tasks-total strong { color: var(--ink); }

.calc-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px 36px; border-top: 1px solid var(--line); font-weight: 500;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.step-num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 14px; margin-bottom: 6px;
}
.step p { color: var(--muted); font-size: 16px; flex: 1; }
.price { font-size: 14px; font-weight: 600; padding-top: 14px; border-top: 1px solid var(--line); }

/* Guarantee */
.guarantee { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.g-list { margin: 0; padding: 0; list-style: none; counter-reset: g; display: grid; gap: 20px; }
.g-list li { counter-increment: g; position: relative; padding-left: 48px; font-size: 18px; }
.g-list li::before {
  content: counter(g); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--accent);
}

/* Dark case study */
.section-dark { background: var(--dark); color: var(--dark-ink); }
.section-dark .section-lead, .note-dark { color: var(--dark-muted); }
.table-wrap { margin-top: 48px; overflow-x: auto; border: 1px solid var(--dark-line); border-radius: var(--radius); }
.compare { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 600px; }
.compare th, .compare td { text-align: left; padding: 18px 22px; border-bottom: 1px solid var(--dark-line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--dark-muted); font-weight: 600; }
.compare td:first-child { color: var(--dark-muted); width: 22%; }
.compare td:last-child { color: #fff; font-weight: 500; }
.runs-alone { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.runs-alone li { border: 1px solid var(--dark-line); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--dark-ink); }

/* About */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.about-text { display: grid; gap: 18px; color: var(--muted); font-size: 18px; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin-top: 12px; max-width: 700px; }

/* Final CTA and footer */
.cta-final { text-align: center; }
.cta-final .section-lead { margin-left: auto; margin-right: auto; }
.cta-final .hero-cta { justify-content: center; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .calc-panel, .calc-body { grid-template-columns: 1fr; }
  .calc-results { border-left: 0; border-top: 1px solid var(--line); }
  .guarantee, .about { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section { padding: 80px 0; }
  .hero { padding: 72px 0 64px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .cards, .steps { grid-template-columns: 1fr; }
  .calc-inputs, .calc-results { padding: 24px 20px; }
  .calc-foot { padding: 20px; }
  .calc-tabs { flex-wrap: wrap; }
  .result-value { font-size: 52px; }
  .btn { width: 100%; }
  .btn-small { width: auto; }

  /* Comparison table becomes stacked cards on phones */
  .table-wrap { overflow: visible; border: 0; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare tr { display: block; border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 12px; }
  .compare td { display: block; padding: 4px 0; border: 0; width: auto; }
  .compare td:first-child { width: auto; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; margin-bottom: 6px; }
  .compare td[data-label]::before { content: attr(data-label) ": "; color: var(--dark-muted); font-weight: 400; }
}

/* Hero on the photo's own background color, so the portrait blends in */
.hero-photo { background: var(--photo); color: var(--photo-ink); padding-bottom: 0; }
.hero-photo .eyebrow { color: var(--photo-ink); opacity: .75; }
.hero-photo h1 em { color: var(--photo-em); }
.hero-photo .lead { color: var(--photo-ink); opacity: .82; }
.hero-photo .btn { background: var(--photo-ink); border-color: var(--photo-ink); color: #fff; }
.hero-photo .btn-ghost { background: transparent; color: var(--photo-ink); border-color: rgba(15, 31, 27, .35); }
.hero-photo .proof { color: rgba(15, 31, 27, .78); padding-bottom: 72px; }
.hero-photo .proof strong { color: var(--photo-ink); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.hero-grid > div:first-child { align-self: center; padding-bottom: 8px; }
.hero-photo { padding-top: 88px; overflow: hidden; }
/* Cut-out portrait standing on the bottom edge of the hero, with a soft disc behind it */
.portrait { position: relative; display: flex; justify-content: center; align-self: end; }
.portrait::before {
  content: ""; position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%);
  width: 92%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #a6d3c8 0%, #6fa99b 70%);
}
.portrait img { position: relative; display: block; width: 100%; max-width: 560px; height: auto; }
.portrait-small { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .portrait img { max-width: 360px; }
  .hero-photo .proof { padding-bottom: 32px; }
}

/* Sample projects with mock outputs */
.demos { display: grid; gap: 24px; margin-top: 48px; }
.demo {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 40px;
}
.demo-tag { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.demo h3 { font: 400 32px/1.1 var(--serif); letter-spacing: -0.01em; }
.demo-steps { margin: 20px 0 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); font-size: 16px; }
.demo-steps li::marker { color: var(--accent); font-weight: 600; }
.demo-result { margin-top: 20px; font: italic 400 22px/1.3 var(--serif); color: var(--accent); }
.demo-shot { background: var(--alt); border-radius: 16px; padding: 24px; }

.mock-report, .mock-slack {
  background: #fff; color: #151517; border-radius: 12px; padding: 22px;
  box-shadow: 0 12px 32px rgba(15, 31, 27, .12); font-size: 14px; line-height: 1.5;
}
.mock-top { display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6a6971; }
.mock-title { font: 400 26px/1.1 var(--serif); margin: 10px 0 12px; }
.mock-summary { background: #eef6f3; border-left: 3px solid #2a6f60; padding: 10px 12px; border-radius: 6px; margin-bottom: 14px; }
.mock-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mock-table th, .mock-table td { padding: 7px 4px; border-bottom: 1px solid #ece9e2; text-align: right; }
.mock-table th:first-child, .mock-table td:first-child { text-align: left; }
.mock-table th { font-size: 11px; color: #6a6971; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.mock-table .up { color: #2b8a3e; font-weight: 600; }
.mock-table .down { color: #c92a2a; font-weight: 600; }
.mock-foot { margin-top: 12px; font-size: 11px; color: #8a8991; }
.mock-channel { font-weight: 700; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid #ece9e2; }
.mock-msg { display: flex; gap: 12px; }
.mock-msg p + p { margin-top: 6px; }
.mock-avatar { width: 36px; height: 36px; flex: none; border-radius: 8px; background: #dcefe9; display: grid; place-items: center; font-size: 18px; }
.mock-from { font-weight: 700; }
.mock-from span { font-weight: 400; color: #8a8991; font-size: 12px; margin-left: 6px; }
.mock-meta { color: #6a6971; font-size: 13px; }
.mock-draft { margin-top: 10px; padding: 10px 12px; border: 1px solid #ece9e2; border-radius: 8px; background: #fafaf8; }
.mock-actions { display: flex; gap: 8px; margin-top: 10px; }
.mock-actions span { padding: 5px 12px; border-radius: 6px; border: 1px solid #d5e3de; font-size: 12px; font-weight: 600; }
.mock-actions span:first-child { background: #2a6f60; border-color: #2a6f60; color: #fff; }

@media (max-width: 960px) {
  .demo { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
}
@media (max-width: 640px) {
  .demo { padding: 20px; }
  .demo-shot { padding: 12px; }
  .mock-report, .mock-slack { padding: 16px; }
}

.mock-list { list-style: none; margin: 0 0 14px; padding: 0; }
.mock-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid #ece9e2; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-ok { background: #e6f4ea; color: #2b8a3e; }
.pill-wait { background: #fff4e0; color: #9a5b00; }
.pill-late { background: #fde8e8; color: #c92a2a; }
.mock-table td .pill { font-size: 11px; }
@media (max-width: 640px) {
  .mock-table .pill { white-space: normal; text-align: right; }
}
