/**
 * The marketing site, in one stylesheet and no build step.
 *
 * The palette, the type pairing and the two-kinds-of-colour rule are lifted
 * from packages/design-blue rather than reinvented — brand and accent are
 * constants written as literal hex in both themes, and only the nine semantic
 * neutrals swap. A brand that shifts when someone flips the theme is not a
 * brand.
 *
 * No Tailwind here on purpose. This is four screens of static content; a build
 * pipeline to produce it would be more moving parts than the thing itself, and
 * a marketing page that cannot be edited without a toolchain is one that stops
 * being edited.
 */

/* Self-hosted, not fetched from a font CDN: a round trip on first paint means a
   visitor on a metered handset connection reads the fallback face and then
   watches the page reflow, and it hands every visitor's IP to a third party to
   render a heading. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/Fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("/fonts/Fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/PlusJakartaSans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/PlusJakartaSans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Constants. Identical in both themes, never re-tinted. */
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;
  --brand-950: #172554;
  --accent-400: #fbbf24;
  --accent-500: #f59e0b;
  --accent-700: #b45309;

  /* The nine semantic neutrals — the only things that swap. */
  --canvas: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --border: #e2e8f0;
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #64748b;
  --brand-subtle: #eff5ff;
  --brand-on-subtle: #1d4ed8;

  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --shadow-card: 0 1px 2px rgb(15 23 42 / 0.06), 0 1px 3px rgb(15 23 42 / 0.1);
  --shadow-card-hover: 0 4px 12px rgb(15 23 42 / 0.1);

  color-scheme: light dark;
}

/* Only the neutrals are redefined. Guarded so an explicit light choice still
   wins over the OS preference. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0b1120;
    --surface: #141e33;
    --surface-muted: #1b2740;
    --border: #273350;
    --ink: #e8eef7;
    --ink-soft: #bac6d9;
    --ink-muted: #8896ad;
    --brand-subtle: #18253f;
    --brand-on-subtle: #93bbfd;
    --shadow-card: 0 1px 2px rgb(0 0 0 / 0.4), 0 1px 3px rgb(0 0 0 / 0.5);
    --shadow-card-hover: 0 4px 14px rgb(0 0 0 / 0.55);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  /* An explicit background. A transparent body borrows whatever the host paints
     behind it, which is how a dark page ends up with light text on white. */
  background: var(--canvas);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: Fraunces, Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: -0.5px;
  text-wrap: balance;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  line-height: 1.08;
}
h2 {
  font-size: clamp(1.65rem, 3.5vw, 2.4rem);
  line-height: 1.15;
}
h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand-on-subtle);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

/* Visible the moment it is focused, and not before. A skip link that is only
   `display:none` is not a skip link. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-700);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus {
  left: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(to bottom right, var(--brand-600), var(--brand-800));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.15);
  flex: none;
}

.brand-name {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.15rem;
  letter-spacing: -0.3px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-header nav a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-header nav a:hover {
  color: var(--ink);
  background: var(--surface-muted);
}

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

/* 52px, not 44. The floor for a tap target is 44px and these are the two things
   a visitor on a phone is here to press. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-card);
}
.btn-primary:hover {
  background: var(--brand-700);
}
.btn-primary:active {
  background: var(--brand-800);
}

/* Gold on the deep blue band only, where it clears 4.5:1 against #1e3a8a.
   Against the page canvas it would not, which is why it is not a general
   button style. */
.btn-accent {
  background: var(--accent-400);
  color: #24170a;
  box-shadow: var(--shadow-card);
}
.btn-accent:hover {
  background: var(--accent-500);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border);
}
.btn-ghost:hover {
  background: var(--surface-muted);
}

.site-header .btn-ghost {
  min-height: 42px;
  padding: 0 18px;
}

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

.hero {
  padding: clamp(56px, 9vw, 104px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(ellipse 90% 70% at 50% -10%, var(--brand-subtle), transparent 70%);
}

.hero-inner {
  max-width: 780px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-on-subtle);
  margin-bottom: 14px;
}

.lede {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 60ch;
  margin-inline: auto;
}

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

/* ---- bands ------------------------------------------------------------- */

.band {
  padding: clamp(48px, 7vw, 84px) 0;
}

.band-alt {
  background: var(--surface-muted);
  border-block: 1px solid var(--border);
}

.band h2 {
  text-align: center;
}

.section-lede {
  text-align: center;
  color: var(--ink-soft);
  max-width: 62ch;
  margin: 0 auto 36px;
}

.band h2 + .grid,
.band h2 + .steps {
  margin-top: 36px;
}

.grid {
  display: grid;
  gap: 20px;
}

/* auto-fit rather than fixed columns: the cards reflow on their own content
   instead of at breakpoints somebody guessed. */
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Flat with a hairline at rest; depth arrives on hover. A resting drop shadow
   on every card makes a grid look like it is hovering. */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-card-hover);
}

.card p:last-child {
  margin-bottom: 0;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* ---- steps ------------------------------------------------------------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  counter-reset: step;
}

.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.step-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-subtle);
  color: var(--brand-on-subtle);
  font-weight: 700;
  margin-bottom: 12px;
}

.steps p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  margin-bottom: 0;
}

/* ---- markets ----------------------------------------------------------- */

.market dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.market dl > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.market dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.market dt {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  font-weight: 700;
}

.market dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.97rem;
}

.footnote {
  margin: 28px auto 0;
  max-width: 68ch;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

/* ---- pricing ----------------------------------------------------------- */

.plan {
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 1px var(--brand-600), var(--shadow-card);
}

.chip {
  display: inline-block;
  align-self: flex-start;
  background: var(--brand-subtle);
  color: var(--brand-on-subtle);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 12px;
}

.price {
  font-family: Fraunces, Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  margin: 4px 0 2px;
  letter-spacing: -1px;
}

.price .per {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0;
}

.price-alt {
  font-size: 0.87rem;
  color: var(--ink-muted);
  margin-bottom: 18px;
}

.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.plan li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.55em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--brand-600);
  border-bottom: 2px solid var(--brand-600);
  transform: rotate(-45deg);
}

/* ---- cta band ---------------------------------------------------------- */

.cta {
  background: linear-gradient(to bottom right, var(--brand-800), var(--brand-950));
  color: #fff;
  padding: clamp(48px, 7vw, 80px) 0;
}

.cta-inner {
  text-align: center;
  max-width: 640px;
}

.cta h2 {
  color: #fff;
}

.cta p {
  color: #c7d7f7;
  margin-bottom: 26px;
}

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

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.site-footer nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.93rem;
}

.site-footer nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.muted {
  color: var(--ink-muted);
  margin: 10px 0 0;
  font-size: 0.92rem;
}

.small {
  font-size: 0.83rem;
  margin: 0;
}

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