/*
 * The public page.
 *
 * One, since the owner ruled against separate terms and privacy pages -- their styles were
 * removed with them rather than left here to rot, and both are in the history at `9f3e9a5`.
 *
 * **Not the application's stylesheet, and deliberately not sharing one with it.**
 * `frontend/src/styles/base.css` is built by Vite into a content-hashed file under `/assets/`
 * and is a private, signed-in interface; this is a hand-written file served straight from nginx
 * to strangers. Sharing a stylesheet would tie a marketing edit to a frontend build and put the
 * whole application's CSS in front of every visitor.
 *
 * **No webfont, and that is a decision rather than a saving.** The design was drawn in Plus
 * Jakarta Sans, loaded from `fonts.googleapis.com`. A stylesheet on that host is a request to
 * Google carrying every visitor's IP address and user agent, which is not a thing to do to
 * somebody who has only read a price. Self-hosting the face would have kept the drawing
 * exactly; the system stack below was already the design's own
 * fallback list, it costs no request at all, and it renders the same shapes a reader sees in the
 * rest of their operating system. If the face is ever wanted back, host the `woff2` under
 * `site/fonts/` -- never from a CDN, or the privacy notice becomes false.
 *
 * The token names and values are the artifact's, unchanged, so a later redesign can be diffed
 * against it.
 */

/* ================================================================ tokens */
:root {
  color-scheme: light;

  --ground: #ffffff;
  --panel: #f4f8fa;
  --ink: #10222c;
  --ink-2: #4a5f6b;
  --ink-3: #7d8f9a;
  --line: #e3ebef;
  --line-2: #cbd8de;

  --brand: #0ea5c6;
  --brand-deep: #0a7d97;
  --brand-ink: #ffffff;
  --navy: #0e2a38;

  --mint: #ddf2ea;
  --sky: #dff0f8;
  --peach: #fdeade;
  --lilac: #eae8f9;
  --sand: #fbf2d9;

  --ok: #157a55;
  --warn-chip: #b26a00;

  --ui: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial,
    'Noto Sans', sans-serif;

  --page: 76rem;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --pill: 999px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --ground: #0d1b23;
    --panel: #12242e;
    --ink: #eaf3f7;
    --ink-2: #a3b6c0;
    --ink-3: #7a8d98;
    --line: #1e343f;
    --line-2: #2c4753;
    --brand: #37c0dd;
    --brand-deep: #6ad3ea;
    --brand-ink: #04161d;
    --navy: #081820;
    --mint: #12302a;
    --sky: #102d3a;
    --peach: #33241b;
    --lilac: #221f33;
    --sand: #2e2a17;
    --ok: #56c496;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --ground: #0d1b23;
  --panel: #12242e;
  --ink: #eaf3f7;
  --ink-2: #a3b6c0;
  --ink-3: #7a8d98;
  --line: #1e343f;
  --line-2: #2c4753;
  --brand: #37c0dd;
  --brand-deep: #6ad3ea;
  --brand-ink: #04161d;
  --navy: #081820;
  --mint: #12302a;
  --sky: #102d3a;
  --peach: #33241b;
  --lilac: #221f33;
  --sand: #2e2a17;
  --ok: #56c496;
}

/* ================================================================ base */
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
img {
  max-width: 100%;
}
svg {
  max-width: 100%;
}
a {
  color: var(--brand-deep);
  text-underline-offset: 3px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--ui);
  line-height: 1.15;
  text-wrap: balance;
  letter-spacing: -0.02em;
}
h1 {
  font-weight: 800;
  font-size: clamp(2.25rem, 5.2vw, 3.5rem);
}
h2 {
  font-weight: 800;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}
h3 {
  font-weight: 700;
  font-size: 1.25rem;
}
p {
  margin: 0;
}
.num {
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: min(100% - 2.5rem, var(--page));
  margin-inline: auto;
}
.lede {
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 46ch;
}
.eyebrow {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--brand-deep);
}

/* The one thing on these pages that only a keyboard or a screen reader ever sees. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 60;
  background: var(--ground);
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 700;
}

/* ================================================================ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ui);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--pill);
  border: 2px solid var(--brand);
  background: var(--brand);
  color: var(--brand-ink);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 140ms ease,
    border-color 140ms ease,
    transform 140ms ease;
}
.btn:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: var(--brand-ink);
}
.btn-out {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-out:hover {
  background: var(--panel);
  border-color: var(--ink-3);
  color: var(--ink);
}
.btn-white {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--navy);
}
.btn-white:hover {
  background: #eef7fa;
  border-color: #eef7fa;
  color: var(--navy);
}
.btn-sm {
  font-size: 0.9375rem;
  padding: 0.6rem 1.2rem;
  border-width: 2px;
}

/* ================================================================ header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--ground);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
  padding-block: 0.6rem;
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.mark-dot {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
  color: var(--brand-ink);
  font-weight: 800;
  font-size: 0.9375rem;
}
.mark-txt {
  font-weight: 800;
  font-size: 1.1875rem;
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover {
  color: var(--brand-deep);
}
.topbar-act {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.themebtn {
  font:
    700 0.875rem/1 var(--ui);
  color: var(--ink-2);
  background: transparent;
  border: 2px solid var(--line);
  border-radius: var(--pill);
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}
.themebtn:hover {
  color: var(--ink);
  border-color: var(--line-2);
}

/* ================================================================ hero */
.hero {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.hero-grid {
  display: grid;
  gap: clamp(2.25rem, 5vw, 3.5rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.hero-copy {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
}
.hero h1 {
  max-width: 14ch;
}
.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-sub {
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.hero-art {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: var(--r-lg);
  background: var(--sky);
}
.hero-art .blob {
  position: absolute;
  right: -1.5rem;
  top: -1.5rem;
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  background: var(--peach);
  z-index: 0;
}
.hero-art .blob-2 {
  position: absolute;
  left: -1.25rem;
  bottom: -1.25rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: var(--mint);
  z-index: 0;
}
.appcard {
  position: relative;
  z-index: 1;
  background: var(--ground);
  border-radius: var(--r-md);
  box-shadow: 0 22px 45px -25px rgba(8, 30, 45, 0.45);
  overflow: hidden;
}
.appcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line);
}
.appcard-top b {
  font-size: 0.9375rem;
  font-weight: 700;
}
.pillchip {
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--pill);
  padding: 0.25rem 0.65rem;
  background: var(--mint);
  color: var(--ok);
}
.appcard-rows {
  padding: 0.35rem 0;
}
.arow {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 1.15rem;
}
.arow + .arow {
  border-top: 1px solid var(--line);
}
.arow-n {
  font-size: 0.9375rem;
  font-weight: 600;
}
.arow-s {
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.arow-a {
  font-size: 0.9375rem;
  font-weight: 700;
  text-align: right;
}
.arow-t {
  font-size: 0.75rem;
  color: var(--ink-3);
  text-align: right;
}
.appcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.15rem;
  background: var(--panel);
  font-size: 0.9375rem;
  font-weight: 700;
}
.appcard-foot span:last-child {
  font-variant-numeric: tabular-nums;
}
.art-note {
  position: relative;
  z-index: 1;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}
.eg {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--ground);
  border-radius: var(--pill);
  padding: 0.2rem 0.55rem;
}

/* ================================================================ strips */
.strip {
  background: var(--panel);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 48rem) {
  .strip {
    grid-template-columns: repeat(4, 1fr);
  }
}
.sfact {
  display: grid;
  gap: 0.15rem;
}
.sfact b {
  font-size: 1.25rem;
  font-weight: 800;
}
.sfact span {
  font-size: 0.9375rem;
  color: var(--ink-2);
}

/* ================================================================ sections */
.band {
  padding-block: clamp(3rem, 6.5vw, 5rem);
}
.band-head {
  max-width: 40ch;
  display: grid;
  gap: 0.9rem;
  margin-bottom: 2.5rem;
}
.band-head p {
  color: var(--ink-2);
  font-size: 1.125rem;
}
.band-head.center {
  max-width: 44ch;
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}

.cards {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 50rem) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}
.card {
  border-radius: var(--r-lg);
  padding: 1.75rem 1.6rem;
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.card p {
  color: var(--ink-2);
  font-size: 1rem;
}
.card-mint {
  background: var(--mint);
}
.card-sky {
  background: var(--sky);
}
.card-peach {
  background: var(--peach);
}
.card-ico {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ground);
  display: grid;
  place-items: center;
  color: var(--brand-deep);
}

/* steps */
.steps {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 50rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.step-n {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.0625rem;
}
.step p {
  color: var(--ink-2);
  font-size: 1rem;
}

/* screenshot band */
.shot {
  background: var(--lilac);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 4vw, 3rem);
}
.shotframe {
  background: var(--ground);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 26px 50px -28px rgba(8, 30, 45, 0.5);
}
.shot-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.shot-top b {
  font-weight: 700;
  font-size: 1rem;
}
.shot-top span {
  font-size: 0.875rem;
  color: var(--ink-3);
  margin-left: auto;
}
.table {
  width: 100%;
  overflow-x: auto;
}
.trow {
  display: grid;
  grid-template-columns: minmax(9rem, 1.4fr) minmax(7rem, 1fr) 6rem 6.5rem;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  align-items: center;
  min-width: 34rem;
}
.trow + .trow {
  border-top: 1px solid var(--line);
}
.thead {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-3);
  background: var(--panel);
}
.trow span:nth-child(3),
.trow span:nth-child(4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.trow .nm {
  font-weight: 600;
  font-size: 0.9375rem;
}
.trow .sm {
  font-size: 0.875rem;
  color: var(--ink-2);
}
.late {
  color: var(--brand-deep);
  font-weight: 700;
}
.tfoot {
  display: grid;
  grid-template-columns: minmax(9rem, 1.4fr) minmax(7rem, 1fr) 6rem 6.5rem;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  min-width: 34rem;
  background: var(--panel);
  font-weight: 800;
}
.tfoot span:last-child {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.shot-note {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--ink-2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* quote */
.quote {
  background: var(--sand);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  gap: 1.25rem;
  max-width: 52rem;
  margin-inline: auto;
}
.quote p {
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.quote footer {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.quote footer b {
  color: var(--ink);
}

/* two-col points */
.points {
  display: grid;
  gap: 0 3rem;
}
@media (min-width: 46rem) {
  .points {
    grid-template-columns: 1fr 1fr;
  }
}
.point {
  display: grid;
  gap: 0.3rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.point b {
  font-weight: 700;
  font-size: 1.0625rem;
}
.point p {
  font-size: 1rem;
  color: var(--ink-2);
}

/* price */
.pricebox {
  background: var(--mint);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 54rem) {
  .pricebox {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
  }
}
.pricefig {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pricefig small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-2);
}
.pricenote {
  color: var(--ink-2);
  margin-top: 0.6rem;
}
.pricefine {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-3);
}
.plan {
  display: grid;
  gap: 0.6rem;
}
.plan div {
  display: flex;
  gap: 0.6rem;
  font-size: 1rem;
  color: var(--ink-2);
}
.plan div::before {
  content: '✓';
  color: var(--ok);
  font-weight: 800;
}

.states {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
@media (min-width: 54rem) {
  .states {
    grid-template-columns: repeat(4, 1fr);
  }
}
.state {
  background: var(--ground);
  border-radius: var(--r-md);
  padding: 1.1rem 1.2rem;
  display: grid;
  gap: 0.2rem;
  align-content: start;
}
.state b {
  font-weight: 800;
  font-size: 1.0625rem;
}
.state span {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-3);
}
.state p {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.yours {
  margin-top: 1.25rem;
  color: var(--ink-2);
  max-width: 60ch;
}

/* cta */
.ctaband {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  color: #ffffff;
  display: grid;
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
}
.ctaband h2 {
  color: #ffffff;
  max-width: 18ch;
}
.ctaband p {
  color: #b8ccd6;
  max-width: 44ch;
}

/* ================================================================ footer */
.foot {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2rem;
}
.foot-grid {
  display: grid;
  gap: 2.25rem;
}
@media (min-width: 54rem) {
  .foot-grid {
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
  }
}
.foot h2 {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
}
.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.foot li,
.foot a {
  font-size: 0.9375rem;
  color: var(--ink-2);
  text-decoration: none;
}
.foot a:hover {
  color: var(--brand-deep);
}
.foot-note {
  font-size: 0.9375rem;
  color: var(--ink-2);
  max-width: 34ch;
  margin-top: 0.85rem;
}
.foot-legal {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-3);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
