@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/Nunito-latin-variable.woff2") format("woff2");
}

/* Tokens: same values as the app (app/NotMonday/docs/design/DESIGN_SPEC_V2.md §2–4), light mode. */
:root {
  --bg: #F6EFE1;
  --surface: #FFFFFF;
  --surface-2: #FBF7EE;
  --text: #2B2420;
  --muted: #6B5E52;
  --primary: #435A4B;
  --primary-pressed: #364A3D;
  --primary-soft: #E4E8DE;
  --on-primary: #FFFFFF;
  --accent: #FFC93C;
  --accent-soft: #FFE9A8;
  --on-accent: #2B2420;
  --border: #E2D6C0;
  --link: #435A4B;
  --danger: #B4442E;
  --success: #2F6B3F;
  --success-soft: #DDEBDC;

  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-full: 999px;
  --shadow-card: 0 4px 16px rgba(43, 36, 32, 0.08);

  --container: 1120px;
  --measure: 640px;
  --gutter: 20px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

h1, h2, h3 { margin: 0 0 16px; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: 30px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 6px; }

@media (min-width: 768px) {
  h1 { font-size: 56px; line-height: 1.1; }
}

a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--primary-pressed); }

a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.small { font-size: 15px; color: var(--muted); }
.small a { color: var(--muted); }
.muted { color: var(--muted); }
.lead { font-size: 21px; line-height: 1.5; }
.measure { max-width: var(--measure); }

.mark {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 6px;
  text-decoration-skip-ink: none;
  text-underline-offset: 4px;
}

.overline {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

/* Layout */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--gutter);
  max-width: var(--container);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 20px; font-size: 15px; }
.nav-links a { color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--text); text-decoration: underline; }

section { padding: 56px 0; }
@media (min-width: 960px) { section { padding: 80px 0; } }

/* Hero */
.hero { padding-top: 24px; }
.hero-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
}
.hero-copy .lead { margin-bottom: 12px; }
.hero-copy .line { color: var(--muted); margin-bottom: 0; }
.hero-art { order: 1; }
@media (min-width: 960px) { .hero-art { order: 0; } }
.hero-img {
  display: block;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

/* Signup form */
.signup {
  margin-top: 28px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
@media (min-width: 600px) { .signup { padding: 28px; } }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }

input[type="email"] {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
input[type="email"]:focus { border-color: var(--primary); border-width: 2px; outline: none; }
input[type="email"]::placeholder { color: var(--muted); opacity: 0.8; }
input[type="email"][aria-invalid="true"] { border-color: var(--danger); border-width: 2px; }

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.45;
}
.consent input {
  flex: none;
  width: 24px;
  height: 24px;
  margin: 1px 0 0;
  accent-color: var(--primary);
}

.cf-turnstile { margin-bottom: 16px; }
.cf-turnstile:empty { margin: 0; }

.error {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: #FBE9E5;
  color: var(--danger);
  font-weight: 700;
  font-size: 16px;
}
.error[hidden] { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--on-primary);
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease;
}
.btn:hover { background: var(--primary-pressed); color: var(--on-primary); }
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.6; cursor: default; transform: none; }
.btn-block { display: flex; width: 100%; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--surface-2); color: var(--text); }

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--on-primary);
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
.btn.is-busy .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.microcopy { margin: 12px 0 0; }

/* Content blocks */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.blockers { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.blockers li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.blockers .dot {
  flex: none;
  width: 10px; height: 10px; margin-top: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.days { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; counter-reset: day; }
@media (min-width: 768px) { .days { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .days { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.day {
  position: relative;
  margin: 0;
  padding: 20px 20px 20px 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 96px;
}
.day::before {
  counter-increment: day;
  content: counter(day);
  position: absolute;
  left: 20px; top: 20px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--on-accent);
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.day strong { display: block; font-weight: 700; margin-bottom: 2px; }
.day span { color: var(--muted); font-size: 16px; }
.day.day-final { grid-column: 1 / -1; background: var(--primary-soft); }

.otto-row { display: flex; gap: 20px; align-items: flex-start; }
.otto-row img { flex: none; width: 96px; height: 96px; }
.bubble {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.35;
  max-width: 420px;
}
.bubble::before {
  content: "";
  position: absolute;
  left: -10px; top: 32px;
  width: 16px; height: 16px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transform: rotate(45deg);
}

.band { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.faq { display: grid; gap: 12px; margin-top: 8px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-weight: 800; }
.faq details[open] summary::after { content: "–"; }
.faq details p, .faq details ul { margin-bottom: 16px; }

/* Status pages (thanks, already, done, app, error) */
.status {
  text-align: center;
  padding-top: 32px;
}
.status img.otto { width: 160px; height: 160px; margin: 0 auto 16px; display: block; }
.status .card { text-align: left; margin: 24px auto 0; max-width: 560px; }
.steps { margin: 0; padding-left: 22px; }
.callout {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--on-accent);
  border-left: 4px solid var(--accent);
}
.callout-success { background: var(--success-soft); border-left-color: var(--success); }

/* Prose pages (privacy, terms, support) */
.prose { max-width: 720px; }
.prose h1 { margin-bottom: 8px; }
.prose h2 { font-size: 24px; margin-top: 40px; }
.prose h3 { font-size: 19px; margin-top: 28px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 0 0 16px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface-2); }
.draft {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--on-accent);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
}

.footer {
  margin-top: 32px;
  padding: 32px 0 56px;
  border-top: 1px solid var(--border);
}
.footer p { margin: 0 0 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a { color: var(--muted); }

.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;
}
