@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Satisfy';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/satisfy-400.woff2') format('woff2');
}

/* Tokens. Every text/background pair used below is checked for WCAG AA contrast. */
:root {
  color-scheme: light dark;
  --bg: #f4f7fb;
  --bg-tint: #eaf1fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #4a5568;
  --border: rgba(15, 23, 42, 0.1);
  --action: #2c6bc4;
  --on-action: #ffffff;
  --brand-soft: rgba(100, 150, 220, 0.16);
  --header-bg: rgba(244, 247, 251, 0.86);
  --control-bg: #ffffff;
  --control-border: #7c8698;
  --success-bg: #e8f5ec;
  --success-text: #166534;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 22px 44px -22px rgba(15, 23, 42, 0.3);
  --shadow-shot: 0 36px 70px -30px rgba(15, 23, 42, 0.45);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --max-width: 1120px;
  --header-height: 4.25rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-space: clamp(4rem, 9vw, 7rem);
  --page-top: clamp(3rem, 7vw, 5rem);
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-brand: 'Satisfy', 'Inter', cursive;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --bg-tint: #0e1829;
    --surface: #111c2f;
    --text: #e2e8f0;
    --muted: #94a3b8;
    --border: rgba(148, 163, 184, 0.2);
    --action: #7aa5e1;
    --on-action: #0b1220;
    --brand-soft: rgba(122, 165, 225, 0.14);
    --header-bg: rgba(11, 18, 32, 0.86);
    --control-bg: #0b1220;
    --control-border: #64748b;
    --success-bg: rgba(74, 222, 128, 0.12);
    --success-text: #bbf7d0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 22px 44px -22px rgba(0, 0, 0, 0.7);
    --shadow-shot: 0 36px 70px -30px rgba(0, 0, 0, 0.8);
  }
}

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

/* Excludes the header's 1px border so a section tucks under it and subpixel rounding shows no sliver */
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* Absorbs spare height so the footer stays at the bottom of short pages */
main {
  flex: 1 0 auto;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--action);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

[id] {
  scroll-margin-top: 1.25rem;
}

/* Flush, so no strip of the section above shows; the section's own padding is the room */
main > section[id] {
  scroll-margin-top: 0;
}

.container {
  width: min(var(--max-width), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
}

/* The script wordmark's letters sit high in their line box, so lift the paw to line up with them */
.brand-icon {
  width: 2.25rem;
  height: auto;
  transform: translateY(-0.23rem);
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--action);
}

.brand-tagline {
  margin-left: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--brand-soft);
}

.site-nav a[aria-current='page'] {
  color: var(--text);
  background: var(--brand-soft);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 1.4rem;
  height: 1.4rem;
}

.nav-toggle-line {
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Each line turns about its own midpoint and then slides to the centre, so the X lands centred */
.nav-toggle-line--top {
  transform-origin: 12px 7px;
}

.nav-toggle-line--middle {
  transform-origin: 12px 12px;
}

.nav-toggle-line--bottom {
  transform-origin: 12px 17px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-line--top {
  transform: translateY(5px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-line--middle {
  opacity: 0;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-line--bottom {
  transform: translateY(-5px) rotate(-45deg);
}

/* Buttons and links */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button-primary {
  background: var(--action);
  color: var(--on-action);
}

.button-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.text-link {
  font-weight: 600;
}

.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* Official App Store badge: unmodified artwork, at least 40px tall, clear space of a quarter of its height */
.badge-link {
  display: inline-block;
  margin: 0.8rem 0;
  border-radius: 10px;
  line-height: 0;
}

.badge-link img {
  width: auto;
  height: 3.125rem;
}

/* Hero */
.hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3.5rem, 7vw, 6rem);
  background:
    radial-gradient(60rem 28rem at 90% 0%, var(--brand-soft), transparent 70%),
    radial-gradient(36rem 22rem at 0% 25%, var(--brand-soft), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.5rem, 4.8vw, 3.6rem);
  font-weight: 700;
}

.h1-accent {
  display: block;
  color: var(--action);
}

.lede {
  margin-top: 1.25rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin-top: 1.5rem;
}

.cta-note {
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-media {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.hero-media img {
  width: 100%;
}

/* Sections */
.section {
  padding: var(--section-space) 0;
}

/* The section's padding sets the space above its first block */
.section > .container > :first-child {
  margin-top: 0;
}

/* A page that opens with a plain section starts where a title band would */
main > .section:first-child {
  padding-top: var(--page-top);
}

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

.section-head {
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
  text-align: center;
}

.section-head h2 {
  margin-top: 1rem;
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

.section-head h2:first-child {
  margin-top: 0;
}

.section-head p:not(.eyebrow) {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

/* Feature rows: copy beside an app screenshot */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.feature--reverse {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.feature--reverse .feature-media {
  order: -1;
}

.feature + .card-grid,
.card-grid + .feature {
  margin-top: clamp(4rem, 8vw, 6rem);
}

.feature h3 {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
}

.feature-copy > p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.feature-media {
  display: flex;
  justify-content: center;
}

.shot {
  width: min(310px, 72vw);
  border: 1px solid var(--border);
  border-radius: 38px;
  box-shadow: var(--shadow-shot);
}

.checklist {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 2rem;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--brand-soft);
}

.checklist li::after {
  content: '';
  position: absolute;
  left: 0.42rem;
  top: 0.52em;
  width: 0.48rem;
  height: 0.26rem;
  border-left: 2px solid var(--action);
  border-bottom: 2px solid var(--action);
  transform: rotate(-45deg);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 1.6rem;
}

.card > p {
  margin-top: 0.85rem;
  color: var(--muted);
}

.tally {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.tally li {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Numbered steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  counter-increment: step;
}

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

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

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

/* FAQ */
.faq {
  max-width: 48rem;
  margin: 0 auto;
  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;
  padding: 1.25rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  color: var(--action);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 42rem;
  padding-bottom: 1.35rem;
  color: var(--muted);
}

/* Mission band */
.mission {
  text-align: center;
}

.mission-quote {
  max-width: 46rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.mission .text-link {
  display: inline-block;
  margin-top: 1.75rem;
}

/* Inner pages: title band and long-form text */
.page-hero {
  padding: var(--page-top) 0 clamp(2rem, 4vw, 3rem);
  background: radial-gradient(50rem 24rem at 85% 0%, var(--brand-soft), transparent 70%);
}

.page-hero h1 {
  max-width: 40rem;
  margin-top: 1rem;
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
}

.page-hero .lede {
  max-width: 40rem;
}

.prose {
  max-width: 44rem;
}

.prose h2 {
  margin-top: 2.75rem;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
}

.prose h3 {
  margin-top: 1.75rem;
  font-size: 1.2rem;
}

.prose p,
.prose ul,
.prose ol,
.prose address {
  margin-top: 1rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose a {
  text-decoration: underline;
}

/* A hero or title band already ends in its own padding, so the section after it starts closer */
.hero + .section,
.page-hero + .section {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
}

/* Privacy policy */
.policy h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
}

.policy .policy-toc {
  padding: 1.25rem 1.5rem 1.25rem 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

/* Contact page and forms */
.card-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card .text-link {
  display: inline-block;
  margin-top: 1rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-layout h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
}

.contact-intro > p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.contact-form-card {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.form-field {
  display: grid;
  gap: 0.45rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.field-required {
  color: var(--action);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--control-border);
  border-radius: var(--radius-sm);
  background-color: var(--control-bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

/* The chevron is drawn in currentColor so it stays visible in both schemes */
.form-field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 1.35rem) 55%, calc(100% - 1rem) 55%;
  background-size: 0.35rem 0.35rem, 0.35rem 0.35rem;
  background-repeat: no-repeat;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--action);
  outline-offset: 1px;
}

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

.contact-form-card .button {
  justify-self: start;
  min-width: 10rem;
}

.button:disabled {
  opacity: 0.8;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

/* script.js swaps the submit label for this spinner while the form posts */
.button-spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-rotate 0.8s linear infinite;
}

@keyframes spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

.form-success {
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--success-bg);
  color: var(--success-text);
}

/* The live region ships empty so its later fill is announced; collapse it until then */
.form-success:empty {
  padding: 0;
}

.form-success:not(:empty) {
  margin-bottom: 1.25rem;
}

.form-success h3 {
  font-size: 1.15rem;
}

.form-success p {
  margin-top: 0.35rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.footer-brand p {
  max-width: 26rem;
  margin-top: 0.75rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 960px) {
  /* Below this the tagline crowds the nav (and wraps at 761px) */
  .brand-tagline {
    display: none;
  }

  .hero-grid,
  .feature,
  .feature--reverse {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature-media {
    order: 0;
  }

  .steps,
  .card-grid--3,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Matches script.js, which closes the menu after a tap at widths of 760px or less */
@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav ul {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: var(--gutter);
    left: var(--gutter);
    flex-direction: column;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .site-nav ul.show {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
  }

  .card-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

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

  /* A still ring still reads as "working" without spinning */
  .button-spinner {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
