:root {
  --bg: #fafaf8;
  --ink: #111111;
  --mid: #555555;
  --faint: #ddddd8;
  --accent: #2a5c3f;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 19px;
  line-height: 1.8;
}

/* ── Nav ── */
nav {
  padding: 20px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--ink);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.nav-logo-link svg { height: 36px; width: auto; display: block; }

.nav-logo-link span {
  font-family: 'Source Serif 4', serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--ink); }

/* ── Layout ── */
.page { max-width: 720px; margin: 0 auto; padding: 0 32px; }

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--faint);
  scroll-margin-top: 72px;
}

section:last-of-type { border-bottom: none; }

.label {
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}

p { margin-bottom: 1.2em; }
p:last-child { margin-bottom: 0; }

/* ── Hero ── */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--faint);
}

.hero-product {
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: 28px;
  color: var(--ink);
}

.hero-sub {
  font-size: 19px;
  color: var(--mid);
  max-width: 580px;
}

/* ── Device photo ── */
.device-photo {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin-top: 48px;
  display: block;
}

/* ── Reveal list ── */
.reveal-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reveal-item {
  padding-left: 28px;
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0;
}

.reveal-item::before {
  content: '·';
  position: absolute;
  left: 10px;
  color: var(--accent);
  font-size: 22px;
  line-height: 1.4;
}

.reveal-text {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink);
}

.calc-link {
  margin-left: 20px;
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
}

.calc-link:hover { opacity: 0.6; }

/* ── Stat ── */
.stat {
  font-family: 'Source Code Pro', monospace;
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
  margin: 1.6em 0;
  letter-spacing: 0.02em;
}

/* ── Before/after ── */
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0;
}

.before-after figure { display: flex; flex-direction: column; gap: 10px; }

.before-after img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.before-after figcaption {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  color: var(--mid);
}

/* ── Platform screenshots ── */
.platform-screenshots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.platform-screenshots figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-screenshots img {
  width: 100%;
  height: auto;
  border: 1px solid var(--faint);
}

.platform-screenshots figcaption {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  color: var(--mid);
}

/* ── Case study ── */
.case-customer {
  font-weight: 600;
  margin-bottom: 1.2em;
}

/* ── Founder ── */
.founder-bio::after { content: ''; display: table; clear: both; }

.founder-photo {
  width: 180px;
  height: auto;
  float: left;
  margin: 4px 36px 16px 0;
  display: block;
}

/* ── Contact ── */
.mailto-link {
  display: inline-block;
  margin-top: 20px;
  font-family: 'Source Serif 4', serif;
  font-size: 19px;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 1px;
  transition: opacity 0.15s;
}

.mailto-link:hover { opacity: 0.6; }

/* ── Footer ── */
footer {
  padding: 32px 56px;
  border-top: 1px solid var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer span,
footer a {
  font-family: 'Source Serif 4', serif;
  font-size: 14px;
  color: var(--mid);
  text-decoration: none;
}

footer a:hover { color: var(--ink); }

/* ── Responsive ── */
@media (max-width: 600px) {
  nav { padding: 12px 20px; }
  section { scroll-margin-top: 56px; }
  .nav-links { display: none; }
  .nav-links { gap: 20px; }
  .before-after { grid-template-columns: 1fr; }
  .platform-screenshots { grid-template-columns: 1fr; }
  .founder-photo { float: none; width: 100%; margin: 0 0 24px 0; }
  footer { flex-direction: column; gap: 12px; }
}