@font-face {
  font-family: "Nebula Sans";
  src: url("/fonts/NebulaSans-Semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Nebula Sans";
  src: url("/fonts/NebulaSans-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f4f0e8;
  --fg: #12262e;
  --accent: #0c6b66;
  --accent-hover: #0a5a56;
  --muted: #5e6b71;
  --surface: #ffffff;
  --border: #ddd5c8;
  --track: #ece6db;
  --warn: #d9822b;
  --danger: #8f2d1f;
  --success: #256742;
  --font-display: "Nebula Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", sans-serif;
  --shadow: 0 1px 2px rgba(18, 38, 46, 0.06);
  --header-offset: 5.5rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
}

h1,
h2,
h3,
.wordmark,
.button,
.preview-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.25rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
}

p + p {
  margin-top: 0.85rem;
}

::selection {
  background: #d5ebe9;
  color: var(--fg);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 20;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.inner {
  width: min(68rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.narrow {
  width: min(42rem, calc(100% - 2.5rem));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 240, 232, 0.94);
  border-top: 4px solid var(--accent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  min-height: 4.25rem;
  padding: 0.4rem 0;
  flex-wrap: wrap;
}

.wordmark {
  color: var(--fg);
  text-decoration: none;
  font-size: 1.2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.1rem;
  flex-wrap: wrap;
}

.nav a:not(.button) {
  color: var(--fg);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:not(.button):hover {
  color: var(--accent);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}

.button-secondary {
  background: transparent;
  color: var(--accent);
}

.button-secondary:hover {
  background: #e7f3f2;
  color: var(--accent-hover);
}

.button-small {
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  font-size: 0.95rem;
}

button.button:disabled {
  opacity: 0.65;
  cursor: wait;
}

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

.hero {
  padding: 1.75rem 0 2.75rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.subhead {
  margin-top: 0.45rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lede {
  margin-top: 1rem;
  max-width: 38rem;
  font-size: 1.125rem;
}

.signup {
  margin-top: 1.35rem;
}

.signup label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.signup-row {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
}

input[type="email"]::placeholder {
  color: var(--muted);
}

.signup .button,
.cta .button {
  width: 100%;
}

.cta {
  margin-top: 0.85rem;
}

.fine {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.4em;
  margin-top: 0.55rem;
  font-size: 0.95rem;
}

.form-status[data-state="error"] {
  color: var(--danger);
}

.form-status[data-state="success"] {
  color: var(--success);
}

.preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1rem;
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.preview-title {
  font-size: 1.15rem;
}

.preview-due,
.preview-note,
.meter-row {
  color: var(--muted);
  font-size: 0.92rem;
}

.meter + .meter {
  margin-top: 0.9rem;
}

.meter-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.meter-row span:first-child {
  color: var(--fg);
  font-weight: 600;
}

.meter-track {
  height: 0.55rem;
  background: var(--track);
  border-radius: 999px;
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
}

.meter-mid {
  background: #3d8f86;
}

.meter-warn {
  background: var(--warn);
}

.preview-note {
  margin-top: 1rem;
}

.section {
  padding: 3.25rem 0;
}

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

.pillars,
.steps {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.pillar,
.steps li,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.2rem 1.35rem;
}

.band .pillar,
.band .steps li,
.band .panel {
  background: var(--bg);
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
}

.panel .cta {
  margin-top: 1.15rem;
}

.panel-form {
  max-width: 40rem;
}

.site-footer {
  padding: 2.25rem 0 2.75rem;
}

.disclaimer {
  max-width: 46rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--accent);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.copyright {
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 640px) {
  .signup-row {
    flex-direction: row;
    align-items: center;
  }

  .signup-row input {
    flex: 1;
  }

  .signup .button,
  .cta .button {
    width: auto;
  }

  .hero {
    padding: 2.5rem 0 3.5rem;
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    align-items: center;
    gap: 3rem;
  }

  .section {
    padding: 4.75rem 0;
  }

  .pillars,
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }

  .header-bar {
    flex-wrap: nowrap;
  }
}
