/* Colours live here. Change --accent to make the page yours; the dark set
   below follows the visitor's system setting. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --text: #15171c;
  --muted: #555c69;
  --border: #e2e5ea;
  --accent: #3b46c4;
  --accent-text: #ffffff;
  --accent-soft: #eceefe;
  --shot-block: #eef0f4;
  --focus: #3b46c4;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-alt: #151820;
    --surface: #1a1e27;
    --text: #e9ebef;
    --muted: #a3aab7;
    --border: #2b303c;
    --accent: #9ba3ff;
    --accent-text: #0f1115;
    --accent-soft: #232845;
    --shot-block: #262b37;
    --focus: #b8beff;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.skip-link:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 16px;
}

.wrap-narrow {
  max-width: 44rem;
}

/* Buttons: every one is at least 44 px tall, so it is easy to tap. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  filter: brightness(1.08);
}

.button-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button-ghost:hover {
  filter: none;
  border-color: var(--muted);
}

.button-small {
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
}

/* Top bar */
.topbar {
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  min-height: 64px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}

.topnav {
  display: flex;
  gap: 1.25rem;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

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

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  background: radial-gradient(60rem 24rem at 50% -6rem, var(--accent-soft), transparent 70%);
}

.hero-inner {
  max-width: 48rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1.25rem;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

h1 {
  font-size: clamp(2rem, 1.2rem + 3.6vw, 3.5rem);
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}

.lede {
  color: var(--muted);
  font-size: 1.125rem;
}

.hero .lede {
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.grid h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.grid p {
  color: var(--muted);
  margin: 0;
}

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

.icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* How it works: the numbers come from the list itself. */
.steps {
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.5rem 1.5rem 1.5rem 4.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.5rem;
  top: 1.4rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
}

/* See it */
.shot {
  margin: 0 auto;
  max-width: 56rem;
}

.shot-art {
  display: block;
  width: 100%;
  height: auto;
}

.f-surface { fill: var(--surface); }
.f-bar { fill: var(--bg-alt); }
.f-dot { fill: var(--border); }
.f-field { fill: var(--surface); stroke: var(--border); }
.f-block { fill: var(--shot-block); }
.f-line { fill: var(--shot-block); }
.f-accent { fill: var(--accent-soft); }
.f-frame { fill: none; stroke: var(--border); stroke-width: 2; }

.shot figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

/* FAQ: plain <details>, so it opens and closes with no script. */
.faq {
  border-top: 1px solid var(--border);
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 1rem 0;
  font-weight: 600;
  font-size: 1.0625rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  color: var(--muted);
  padding-bottom: 0.5rem;
}

/* Sign-up */
.signup {
  text-align: center;
}

.signup h2 {
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}

.signup .lede {
  margin-bottom: 1.75rem;
}

.signup-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 30rem;
  margin: 0 auto;
}

.signup-form input[type="email"] {
  flex: 1 1 16rem;
  min-width: 0;
  min-height: 44px;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.signup-form input[type="email"]::placeholder {
  color: var(--muted);
}

.signup-form .button {
  flex: 0 1 auto;
}

.signup-alt {
  margin: 1rem 0 0;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
}

/* Narrow screens: the top bar links move to a second row. */
@media (max-width: 559px) {
  .topnav {
    order: 3;
    width: 100%;
  }

  .hero {
    padding-top: 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .signup-form .button {
    flex: 1 1 100%;
  }
}

/* Wider screens: three columns for benefits and steps. */
@media (min-width: 720px) {
  .wrap {
    padding: 0 24px;
  }

  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }

  .steps li {
    padding: 4.5rem 1.5rem 1.5rem;
  }

  .steps li::before {
    top: 1.5rem;
  }
}
