:root {
  --bg: #fbfaf7;
  --bg-tint: #f2efe7;
  --surface: #ffffff;
  --text: #1a1d1c;
  --muted: #5d625f;
  --line: #e2ddd1;
  --accent: #1f7a5c;          /* deep green */
  --accent-strong: #165c45;
  --accent-soft: #dcefe6;
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgb(20 30 25 / 0.06), 0 12px 32px rgb(20 30 25 / 0.10);
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121514;
    --bg-tint: #181c1a;
    --surface: #1e2321;
    --text: #ecefed;
    --muted: #a3aba7;
    --line: #2c3330;
    --accent: #5cc99e;
    --accent-strong: #7ad8b2;
    --accent-soft: #1b3a2e;
    --on-accent: #0d1f17;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }

.wrap {
  max-width: 70rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 3.75rem;
}

.brand {
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand span { color: var(--accent); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 1.5rem; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 550;
}

.site-nav a:hover { color: var(--text); }

.site-nav .nav-cta {
  color: var(--on-accent);
  background: var(--accent);
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
}

.site-nav .nav-cta:hover { color: var(--on-accent); background: var(--accent-strong); }

@media (max-width: 680px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Shared type ---------- */

.eyebrow {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }

h2 { font-size: clamp(1.9rem, 4.5vw, 2.75rem); font-weight: 800; }

h3 { font-size: 1.2rem; font-weight: 700; }

.section { padding: clamp(4rem, 9vw, 6.5rem) 0; }

.section.tinted { background: var(--bg-tint); }

.section-lede {
  color: var(--muted);
  max-width: 38rem;
  margin-top: 0.9rem;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-block;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.button:hover { transform: translateY(-1px); }

.button.primary { background: var(--accent); color: var(--on-accent); }
.button.primary:hover { background: var(--accent-strong); border-color: var(--accent-strong); }

.button.ghost { color: var(--accent); }
.button.ghost:hover { background: var(--accent-soft); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(4.5rem, 12vw, 8.5rem) 0 clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(60rem 30rem at 85% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  font-weight: 850;
  max-width: 16em;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 40rem;
  margin-top: 1.5rem;
}

/* ---------- Case studies ---------- */

.case {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: clamp(3rem, 7vw, 5rem);
}

.case.flip .case-shots { order: 2; }

.case-shots {
  position: relative;
  padding-bottom: 2.5rem;   /* room for the phone hanging below */
}

.browser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-tint);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.browser-bar i {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.phone {
  position: absolute;
  right: -0.75rem;
  bottom: 0;
  width: 26%;
  border: 6px solid #111;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #111;
}

.phone img { aspect-ratio: 390 / 700; object-fit: cover; object-position: top; }

.case-kind {
  color: var(--accent);
  font-weight: 650;
  font-size: 0.95rem;
  margin: 0.3rem 0 0.9rem;
}

.case-text h3 { font-size: clamp(1.5rem, 3vw, 1.9rem); }

.case-text > p:not(.case-kind) { color: var(--muted); }

.features {
  list-style: none;
  margin: 1.25rem 0 1.5rem;
  display: grid;
  gap: 0.45rem;
}

.features li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.98rem;
}

.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 4px var(--accent-soft), inset 0 0 0 10px var(--accent);
}

.text-link { font-weight: 650; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; }
  .case.flip .case-shots { order: 0; }
  .phone { right: 0.5rem; width: 28%; }
}

/* ---------- Services ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.card p { color: var(--muted); margin: 0.6rem 0 1rem; }

.card ul { padding-left: 1.1rem; display: grid; gap: 0.3rem; font-size: 0.98rem; }

.card li::marker { color: var(--accent); }

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}

/* ---------- Why ---------- */

.reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 3rem;
  margin-top: 2.5rem;
}

.reasons > div {
  border-top: 3px solid var(--accent);
  padding-top: 1rem;
}

.reasons p { color: var(--muted); margin-top: 0.5rem; }

@media (max-width: 680px) {
  .reasons { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.steps li {
  counter-increment: step;
  position: relative;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.steps h3 { font-size: 1.05rem; }

.steps p { color: var(--muted); font-size: 0.96rem; margin-top: 0.4rem; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .steps li { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 1rem; }
  .steps li::before { grid-row: span 2; margin: 0; }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
}

.contact-inner { max-width: 44rem; }

.contact p { opacity: 0.9; margin-top: 1rem; font-size: 1.15rem; }

.contact .hero-actions { justify-content: center; }

.contact .button.primary { background: var(--on-accent); color: var(--accent-strong); border-color: var(--on-accent); }
.contact .button.primary:hover { opacity: 0.9; }

.contact .button.ghost { color: var(--on-accent); border-color: var(--on-accent); }
.contact .button.ghost:hover { background: rgb(255 255 255 / 0.12); }

/* ---------- Footer ---------- */

.site-footer {
  padding: 2rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
