/* Hatch Solutions — one stylesheet for the three pages. Light by default, dark when the
   visitor's system asks for it. Tokens first; everything below uses them. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f3f1ea;
  --ink: #16161a;
  --ink-2: #4a4a55;
  --ink-3: #74747f;
  --line: #e6e3da;
  --accent: #1f6f5c;        /* roots: a deep, growing green */
  --accent-ink: #ffffff;
  --accent-soft: #e4f1ec;
  --product: #2f5bea;       /* NeXT Billing blue */
  --product-soft: #e8eefe;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(22, 22, 26, 0.04), 0 8px 28px rgba(22, 22, 26, 0.06);
  --max: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1011;
    --surface: #17181a;
    --surface-2: #1d1f21;
    --ink: #f2f1ed;
    --ink-2: #c3c2bd;
    --ink-3: #8f8e89;
    --line: #2a2c2f;
    --accent: #4cc3a1;
    --accent-ink: #08130f;
    --accent-soft: #14271f;
    --product: #7c9bff;
    --product-soft: #182036;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

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

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap {
    padding: 0 32px;
  }
}

.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 10;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.nav .nav-cta {
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 600;
}
.nav .nav-cta:hover {
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 88%, black);
}
@media (max-width: 640px) {
  .nav .hide-sm {
    display: none;
  }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--ink) 85%, var(--bg));
}
.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink-3);
}
.btn-product {
  background: var(--product);
  color: #fff;
}
.btn-product:hover {
  background: color-mix(in srgb, var(--product) 88%, black);
}
.arrow {
  transition: transform 0.15s ease;
}
.btn:hover .arrow,
.link:hover .arrow {
  transform: translateX(3px);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}
.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding: 72px 0 56px;
}
@media (min-width: 900px) {
  .hero {
    padding: 112px 0 88px;
  }
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-optical-sizing: auto;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  max-width: 15ch;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.lede {
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
  color: var(--ink-2);
  max-width: 58ch;
  margin: 24px 0 32px;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------------------------------------- sections */

section {
  scroll-margin-top: 72px;
}
.section {
  padding: 64px 0;
}
@media (min-width: 900px) {
  .section {
    padding: 96px 0;
  }
}
.section-head {
  max-width: 680px;
  margin-bottom: 40px;
}
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}
.section-head p {
  color: var(--ink-2);
  font-size: 1.08rem;
  margin: 16px 0 0;
}

/* ---------------------------------------------------------------- product card */

.product {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 900px) {
  .product {
    grid-template-columns: 1.05fr 1fr;
  }
}
.product-copy {
  padding: 28px;
}
@media (min-width: 720px) {
  .product-copy {
    padding: 44px;
  }
}
.product-name {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.product-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--product);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.03em;
}
.product-name strong {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.product-name span {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
}
.product h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.1rem);
  margin-bottom: 14px;
}
.product-copy > p {
  color: var(--ink-2);
  margin: 0 0 24px;
}
.features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}
@media (min-width: 560px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}
.features li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.features li strong {
  color: var(--ink);
  font-weight: 600;
}
.tick {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--product-soft);
  color: var(--product);
  display: grid;
  place-items: center;
}
.tick svg {
  width: 12px;
  height: 12px;
}

/* the illustrative counter on the right */
.product-visual {
  background:
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--product) 22%, transparent), transparent 60%),
    var(--product-soft);
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (min-width: 720px) {
  .product-visual {
    padding: 44px;
  }
}
.mock {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px;
  font-size: 14px;
}
.mock-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-2);
}
.mock-row:last-of-type {
  border-bottom: 0;
}
.mock-row b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mock-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 6px;
}
.chip {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}
.mock-ai {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink-2);
  font-size: 13.5px;
}
.mock-ai .spark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--product);
  color: #fff;
  display: grid;
  place-items: center;
}
.mock-ai .spark svg {
  width: 14px;
  height: 14px;
}
.mock-total {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.mock-pay {
  margin-top: 12px;
  height: 42px;
  border-radius: 10px;
  background: var(--product);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}

/* ---------------------------------------------------------------- roots */

.roots {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.roots-grid {
  display: grid;
  gap: 40px;
}
@media (min-width: 900px) {
  .roots-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: start;
  }
}
.roots blockquote {
  margin: 28px 0 0;
  padding: 0 0 0 18px;
  border-left: 3px solid var(--accent);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink);
}
.cards {
  display: grid;
  gap: 14px;
}
@media (min-width: 600px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.card .icon svg {
  width: 20px;
  height: 20px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 48px 0 0;
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}
.steps li {
  counter-increment: step;
  border-top: 2px solid var(--line);
  padding-top: 16px;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.steps strong {
  display: block;
  margin-bottom: 4px;
}
.steps span {
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------------------------------------------------------------- contact */

.contact {
  display: grid;
  gap: 14px;
}
@media (min-width: 720px) {
  .contact {
    grid-template-columns: 1fr 1fr;
  }
}
.contact a.card {
  display: block;
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.contact a.card:hover {
  border-color: var(--ink-3);
  transform: translateY(-2px);
}
.contact .mail {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  font-weight: 650;
  letter-spacing: -0.01em;
  margin: 10px 0 4px;
  word-break: break-word;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 40px;
  color: var(--ink-3);
  font-size: 14px;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------------- legal pages */

.legal {
  padding: 56px 0 80px;
}
.legal article {
  max-width: 720px;
}
.legal h1 {
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  margin-bottom: 8px;
}
.legal .updated {
  color: var(--ink-3);
  margin: 0 0 36px;
}
.legal h2 {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 36px 0 8px;
}
.legal p,
.legal li {
  color: var(--ink-2);
}
.legal ul {
  padding-left: 20px;
}
.legal a {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
