:root {
  --bg: #f6f8f5; --surface: #ffffff; --text: #15201b; --muted: #5a665f;
  --line: #dde3dc; --accent: #0b6e4f; --accent-text: #ffffff; --code: #ecf0eb;
  --check: #0b6e4f;
  /* The hero keeps the icon's colours in both themes. */
  --hero-bg: #0c1411; --hero-text: #eef5f1; --hero-muted: #9fb4aa; --hero-line: #22352d;
  --mint: #4fc49a; --mint-text: #06130d;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b100e; --surface: #121916; --text: #eef3ef; --muted: #9aa89f;
    --line: #1f2a25; --accent: #4fc49a; --accent-text: #06130d; --code: #18211d;
    --check: #4fc49a; --hero-bg: #0a120f;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
header.site { border-bottom: 1px solid var(--line); background: var(--bg); }
header.site .wrap { display: flex; align-items: center; gap: 0 20px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { padding: 10px 0; font-weight: 700; font-size: 1.12rem; letter-spacing: -0.01em; color: var(--text); text-decoration: none; margin-right: auto; }
.brand::before { content: ">"; font-family: var(--mono); color: var(--accent); margin-right: 8px; font-weight: 700; }
.brand span { color: var(--accent); }
/* Vertical padding gives links a touch target of about 44 px without changing the look. */
nav a { display: inline-block; padding: 12px 0; margin-left: 18px; color: var(--muted); text-decoration: none; font-size: 0.95rem; }
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current] { color: var(--text); }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--hero-text);
  background:
    radial-gradient(55% 70% at 18% 0%, rgba(79, 196, 154, 0.24), transparent 70%),
    radial-gradient(40% 60% at 95% 100%, rgba(79, 196, 154, 0.10), transparent 70%),
    linear-gradient(180deg, #13211b, var(--hero-bg));
  border-bottom: 1px solid var(--hero-line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(238, 245, 241, 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
          mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 80px; }
.hero.has-shot .wrap { padding-bottom: 200px; }
.hero h1 { max-width: 15em; }
.hero .lead { color: var(--hero-muted); }
.hero a:not(.button) { color: var(--mint); }
.app-icon { display: block; width: 112px; height: 112px; margin: 0 0 22px -8px; filter: drop-shadow(0 12px 36px rgba(79, 196, 154, 0.30)); }
.eyebrow { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.02em; color: var(--mint); margin: 0 0 14px; }
.eyebrow span { color: var(--hero-muted); }
.prompt-line { font-family: var(--mono); font-size: 0.92rem; color: var(--hero-muted); margin: 26px 0 0; }
.prompt-line::before { content: "$ "; color: var(--mint); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* Type */
main { padding: 0 0 80px; }
main.page { padding-top: 56px; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 18px; text-wrap: balance; }
h2 { font-size: 1.5rem; letter-spacing: -0.015em; margin: 48px 0 14px; text-wrap: balance; }
h3 { font-size: 1.05rem; margin: 0 0 6px; letter-spacing: -0.005em; }
p { margin: 0 0 16px; }
.lead { font-size: 1.22rem; line-height: 1.5; color: var(--muted); max-width: 34em; }
.small { font-size: 0.9rem; color: var(--muted); }
code { background: var(--code); padding: 2px 6px; border-radius: 5px; font: 0.88em var(--mono); }
ul { padding-left: 1.2em; margin: 0 0 16px; }
li { margin-bottom: 6px; }

/* Sections */
.section { padding-top: 72px; }
.kicker { display: block; font-family: var(--mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em; color: var(--accent); margin-bottom: 8px; }
.section h2 { margin-top: 0; }
.section > .wrap > .lead { margin-bottom: 28px; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin: 16px 0; }
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.grid .card { margin: 0; }
.feature .num { display: block; font-family: var(--mono); font-size: 0.78rem; color: var(--accent); margin-bottom: 14px; }
.feature p { color: var(--muted); font-size: 0.97rem; }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.02em; color: var(--accent); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }

/* App card on the home page */
.app-card { display: flex; gap: 22px; align-items: center; }
.app-card img { width: 88px; height: 88px; flex: none; margin: -6px; }
.app-card h3 { font-size: 1.25rem; }
.app-card h3 a { color: var(--text); text-decoration: none; }
.app-card h3 a:hover { color: var(--accent); }
@media (max-width: 520px) { .app-card { flex-direction: column; align-items: flex-start; } }

/* Checklist */
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 28px; }
.checks li { position: relative; padding-left: 30px; margin: 0; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--check) 18%, transparent);
  box-shadow: inset 0 0 0 1.5px var(--check);
}
.checks li::after {
  content: ""; position: absolute; left: 7.5px; top: calc(0.42em + 4px); width: 4px; height: 7px;
  border: solid var(--check); border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.plan { margin: 0; display: flex; flex-direction: column; }
.plan .price { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0 2px; }
.plan .price small { font-size: 0.95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan.pro { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent), 0 18px 50px -24px color-mix(in srgb, var(--accent) 45%, transparent); }
.plan ul { margin-top: 12px; margin-bottom: 0; }

/* Buttons */
.button { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 11px 20px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 1px solid transparent; }
.button.quiet { background: transparent; color: var(--text); border-color: var(--line); }
.hero .button { background: var(--mint); color: var(--mint-text); }
.hero .button.ghost { background: rgba(238, 245, 241, 0.06); color: var(--hero-text); border-color: var(--hero-line); }
.hero .button.soon { cursor: default; background: rgba(79, 196, 154, 0.12); color: var(--mint); border-color: rgba(79, 196, 154, 0.35); }

/* Screenshots: the PNGs already hold the Mac window and its shadow, on a transparent margin. */
.shot { margin: 0; }
.shot picture, .showcase picture { display: block; }
.shot img, .showcase img { display: block; width: 100%; height: auto; }
.hero-shot { position: relative; margin: -170px -3.5% 0; }
.showcase { display: grid; gap: 56px; margin-top: 8px; }
.showcase figure { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); gap: 8px 36px; align-items: center; }
.showcase figure:nth-child(even) { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); }
.showcase figure:nth-child(even) figcaption { order: 2; }
.showcase picture { margin: 0 -4%; }
.showcase figcaption p { color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .showcase figure, .showcase figure:nth-child(even) { grid-template-columns: 1fr; }
  .showcase figure:nth-child(even) figcaption { order: 0; }
  .hero-shot { margin-top: -120px; }
}

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 0.9rem; color: var(--muted); }
footer.site a { display: inline-block; padding: 8px 0; color: var(--muted); margin-right: 16px; white-space: nowrap; }
footer.site p:first-child { margin-bottom: 8px; }
