/* mits· coming soon
   Brand: locked MITS dark mode (#0D1F16, gold #C4975A, Cormorant Garamond + DM Sans).
   Numbers: Tiwana Build Baseline, Editorial profile (kept restrained for a tech-averse buyer). */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("https://cdn.jsdelivr.net/npm/@fontsource/cormorant-garamond@5.3.0/files/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("https://cdn.jsdelivr.net/npm/@fontsource-variable/dm-sans@5.3.0/files/dm-sans-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 1000; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;

  /* Brand */
  --forest: #0D1F16;
  --forest-deep: #0A1910;
  --forest-raised: #11281C;
  --gold: #C4975A;
  --gold-soft: rgba(196, 151, 90, 0.35);
  --ink: rgba(255, 255, 255, 0.88);
  --ink-muted: rgba(255, 255, 255, 0.66);   /* 4.5:1+ on forest; .40 fails at small sizes */
  --rule: rgba(255, 255, 255, 0.10);
  --danger: #E8A598;

  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Type — Editorial: ratio 1.2 mobile → 1.333 desktop */
  --text-display: clamp(4.5rem, 2.5rem + 7vw, 7rem);   /* the $49 — one use on the page */
  --text-h1: clamp(2.125rem, 1.35rem + 3.1vw, 4.125rem);
  --text-h2: clamp(1.75rem, 1.4rem + 1.4vw, 2.625rem);
  --text-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-base: 1.0625rem;
  --text-small: 0.9375rem;
  --leading-display: 1.02;
  --leading-body: 1.55;
  --tracking-display: -0.02em;

  /* Spacing — 4px base, 8px rhythm */
  --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --spacing-section: clamp(3rem, 1.143rem + 7.619vw, 8rem);
  --gutter: clamp(20px, 4vw, 64px);
  --container: 1100px;
  --pad-card: clamp(1.5rem, 1rem + 1.6vw, 2.5rem);
  --gap-grid: clamp(2rem, 1rem + 4vw, 4.5rem);

  /* Motion — feedback only, under 300ms */
  --duration-micro: 120ms;
  --duration-ui: 180ms;

  /* Radii — never one radius on everything */
  --radius-btn: 2px;
  --radius-input: 2px;
  --radius-card: 14px;

  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
*, *::before, *::after { box-sizing: inherit; }

html { scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 24px); -webkit-text-size-adjust: 100%; }
html, body { background: var(--forest); }
body {
  margin: 0;
  font-synthesis: none;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.page {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Masthead */
.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6) 0 var(--space-5);
  border-bottom: 1px solid var(--rule);
}
.logo {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}
.logo:hover { color: var(--ink); }
.logo-dot { color: var(--gold); }
.opening {
  margin: 0;
  font-size: var(--text-small);
  color: var(--ink-muted);
}

/* Hero — what it is, what it costs, how to get in, all on the first screen */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-7);
  padding: calc(var(--spacing-section) * 0.75) 0 var(--spacing-section);
}
h1 {
  margin: 0;
  max-width: 19ch;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-h1);
  line-height: 1.06;
  letter-spacing: var(--tracking-display);
  color: #fff;
  text-wrap: balance;
}
.lede {
  margin: var(--space-5) 0 0;
  max-width: 58ch;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  color: var(--ink-muted);
  text-wrap: pretty;
}

/* Waitlist form */
.join { margin-top: var(--space-7); max-width: 560px; }
.join-label {
  display: block;
  margin-bottom: var(--space-3);
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--ink);
}
.join-row { display: flex; gap: var(--space-2); }
.join input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 52px;
  padding: 0 var(--space-4);
  font: inherit;
  font-size: 1rem;              /* 16px+ stops iOS zoom on focus */
  color: #fff;
  background: var(--forest-deep);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-input);
  transition: border-color var(--duration-micro) ease;
}
.join input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.42); }
.join input[type="email"]:hover { border-color: rgba(255, 255, 255, 0.36); }
.join input[type="email"]:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.join input[aria-invalid="true"] { border-color: var(--danger); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 var(--space-5);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--forest);
  background: var(--gold);
  border: 0;
  border-radius: var(--radius-btn);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--duration-micro) ease, transform var(--duration-micro) ease;
}
.btn:hover { background: #D2A86C; color: var(--forest); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-block { width: 100%; margin-top: var(--space-6); }

.join-status {
  min-height: 1.55em;
  margin: var(--space-3) 0 0;
  font-size: var(--text-small);
  color: var(--ink);
}
.join-status[data-tone="ok"] { color: var(--gold); }
.join-status[data-tone="error"] { color: var(--danger); }
.join-consent {
  margin: var(--space-2) 0 0;
  max-width: 60ch;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ink-muted);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Plan */
.plan {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  padding: var(--spacing-section) 0;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-h2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}
.plan-intro { margin: var(--space-3) 0 0; max-width: 46ch; color: var(--ink-muted); }

.included { margin: 0; }
.included > div {
  padding: var(--space-5) 0;
  border-top: 1px solid var(--rule);
}
.included > div:last-child { border-bottom: 1px solid var(--rule); }
.included dt {
  font-weight: 500;
  color: var(--ink);
}
.included dd {
  margin: var(--space-2) 0 0;
  max-width: 56ch;
  font-size: var(--text-small);
  color: var(--ink-muted);
}

/* Price card — the one place the page spends its boldness */
.price-card {
  align-self: start;
  padding: var(--pad-card);
  background: var(--forest-raised);
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-card);
}
.price-name {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--gold);
}
.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-3) 0 0;
}
.price-amount {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--text-display);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-display);
  font-variant-numeric: tabular-nums lining-nums;
  color: #fff;
}
.price-unit { font-size: var(--text-small); color: var(--ink-muted); }
.price-terms { margin: var(--space-4) 0 0; color: var(--ink); }
.price-annual { margin: var(--space-2) 0 0; font-size: var(--text-small); color: var(--ink-muted); }
.price-rule { height: 1px; margin: var(--space-6) 0; background: var(--rule); }
.price-later, .price-free {
  margin: 0;
  font-size: var(--text-small);
  color: var(--ink-muted);
}
.price-free { margin-top: var(--space-4); }
.price-later span, .price-free span {
  display: block;
  margin-bottom: 2px;
  font-weight: 500;
  color: var(--ink);
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3) var(--space-6);
  padding: var(--space-6) 0 var(--space-7);
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--ink-muted);
}
.foot p { margin: 0; }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-5); }

/* Desktop */
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 380px);
    column-gap: var(--gap-grid);
    align-items: center;
  }
  .plan {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    column-gap: var(--gap-grid);
    align-items: start;
  }
  .included { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-6); }
  .included > div:nth-last-child(2) { border-bottom: 1px solid var(--rule); }
}

/* Small phones: stack the form */
@media (max-width: 479px) {
  .join-row { flex-direction: column; }
  .join .btn { width: 100%; }
  .opening { font-size: 0.8125rem; }
}

/* Privacy page */
.prose { padding: var(--spacing-section) 0; max-width: 65ch; }
.prose h1 { max-width: none; font-size: var(--text-h2); }
.prose h2 { margin-top: var(--space-7); font-size: var(--text-h3); }
.prose p, .prose li { color: var(--ink-muted); }
.prose strong { color: var(--ink); font-weight: 500; }
.prose .updated { font-size: var(--text-small); }

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