:root {
  --bg: #f7f8f6;
  --paper: #ffffff;
  --ink: #15191d;
  --muted: #5a626a;
  --line: #dfe2dd;
  --accent: #1c5a44;
  --accent-hover: #164a38;
  --on-accent: #ffffff;
  --tint: #ebf2ee;
  --wide: 62rem;
  --read: 38rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111416;
    --paper: #181c1f;
    --ink: #e8eae7;
    --muted: #9ba3a9;
    --line: #2b3034;
    --accent: #74c4a0;
    --accent-hover: #8fd3b3;
    --on-accent: #0d1512;
    --tint: #17231e;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #111416;
  --paper: #181c1f;
  --ink: #e8eae7;
  --muted: #9ba3a9;
  --line: #2b3034;
  --accent: #74c4a0;
  --accent-hover: #8fd3b3;
  --on-accent: #0d1512;
  --tint: #17231e;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.015em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand svg { width: 22px; height: 16px; color: var(--accent); flex: none; }

.top nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 1.2rem;
}
.top nav a:hover { color: var(--ink); }

/* Type */
h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.05rem, 5.4vw, 3.3rem);
  margin: 0 0 1.3rem;
  max-width: 17ch;
}

h2 { font-size: clamp(1.45rem, 3vw, 1.85rem); margin: 0 0 1rem; }
h3 { font-size: 1.08rem; margin: 0 0 0.35rem; letter-spacing: -0.01em; }

p { margin: 0 0 1rem; }

a { color: var(--accent); text-underline-offset: 0.16em; }
a:hover { color: var(--accent-hover); }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

ul { padding-left: 1.15rem; margin: 0 0 1rem; }
li { margin-bottom: 0.55rem; }

/* Hero */
.hero { padding: clamp(2.8rem, 8vw, 5.5rem) 0 clamp(2.4rem, 6vw, 4rem); }
.hero .lede { font-size: clamp(1.08rem, 2.2vw, 1.22rem); max-width: 36rem; }

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.9rem;
  margin: 1.8rem 0 1.4rem;
}
.price strong { font-size: 2rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price span { color: var(--muted); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 650;
  font-size: 1.02rem;
  padding: 0.85rem 1.35rem;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.under { margin-top: 0.9rem; color: var(--muted); font-size: 0.93rem; max-width: 30rem; }

/* Sections: label on the left, content on the right at desktop */
.sec {
  border-top: 1px solid var(--line);
  padding: clamp(2.4rem, 6vw, 3.8rem) 0;
  display: grid;
  gap: 0.5rem 3rem;
}
@media (min-width: 820px) {
  .sec { grid-template-columns: 15rem 1fr; }
  .sec > h2 { position: sticky; top: 1.5rem; align-self: start; }
}
.sec > div { max-width: var(--read); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0 0.6rem;
  margin: 0 0 1.7rem;
}
.steps li::before {
  content: counter(s);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  font-variant-numeric: tabular-nums;
}
.steps p { margin: 0; }

/* Stats line */
.figures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 1.2rem 1.5rem;
  margin: 1.4rem 0 1.2rem;
}
.figures div { border-left: 2px solid var(--line); padding-left: 0.85rem; }
.figures b { display: block; font-size: 1.7rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.figures span { color: var(--muted); font-size: 0.92rem; line-height: 1.4; display: block; }

/* The guarantee box, the one boxed thing on the page */
.box {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.3rem 0.6rem;
}
.box h3 { margin-top: 0.2rem; }

.fit { display: grid; gap: 0 2.5rem; }
@media (min-width: 640px) { .fit { grid-template-columns: 1fr 1fr; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 0.95rem 0; }
details:first-of-type { border-top: 1px solid var(--line); }
summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.2rem; line-height: 1.3; }
details[open] summary::after { content: "\2212"; }
details > div { padding-top: 0.6rem; }
details p:last-child { margin-bottom: 0.2rem; }

/* Founder note */
.note p { font-size: 1.05rem; }
.note .sig { color: var(--muted); font-size: 0.95rem; }

/* Closing call */
.close { border-top: 1px solid var(--line); padding: clamp(2.6rem, 7vw, 4.2rem) 0; }
.close h2 { max-width: 22ch; }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding-block: 1.6rem 2.6rem;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
}
footer a { color: var(--muted); }
footer .copy { margin-right: auto; }

/* Plain document pages (terms, privacy) */
.doc { max-width: var(--read); padding: clamp(2.4rem, 6vw, 4rem) 0 3rem; }
.doc h1 { font-size: clamp(1.9rem, 4.5vw, 2.5rem); max-width: none; }
.doc h2 { font-size: 1.25rem; margin: 2.2rem 0 0.6rem; }
.flag {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  font-size: 0.93rem;
  margin: 0 0 2rem;
}

/* Intake form */
form { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 2.2rem; }
legend { font-weight: 700; font-size: 1.15rem; margin-bottom: 0.9rem; padding: 0; letter-spacing: -0.01em; }
.field { margin: 0 0 1.15rem; }
label, .label { display: block; font-weight: 600; margin-bottom: 0.3rem; font-size: 0.97rem; }
.hint { display: block; color: var(--muted); font-size: 0.88rem; font-weight: 400; margin: -0.15rem 0 0.4rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="number"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0.62rem 0.75rem;
}
textarea { min-height: 5.5rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input[type="file"] { font: inherit; font-size: 0.95rem; max-width: 100%; }
.row { display: grid; gap: 0 1rem; }
@media (min-width: 600px) { .row { grid-template-columns: 1fr 1fr; } }
.or { color: var(--muted); font-size: 0.9rem; margin: 0.5rem 0; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 0.35rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin-top: 1rem; }
.status[data-kind="error"] { color: #b3261e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .status[data-kind="error"] { color: #f2a59c; } }
:root[data-theme="dark"] .status[data-kind="error"] { color: #f2a59c; }

@media (max-width: 480px) {
  .top nav a { margin-left: 0.9rem; font-size: 0.9rem; }
  .top nav .hide-sm { display: none; }
}
