:root {
  --ink: #1a1814;
  --surface: #23201b;
  --surface-elevated: #2c2822;
  --green: #2c4a3c;
  --green-bright: #406b57;
  --green-accent: #7ec8a3;
  --cream: #f5f0e6;
  --cream-muted: #d5ccb8;
  --border: #423c33;
  --warn-bg: #3b2d18;
  --warn-border: #c9973e;
  --warn-text: #f9dfa8;
  --error-bg: #3d1d1d;
  --error-border: #d96b6b;
  --error-text: #ffd4d4;
  --focus-ring: #9be3bf;
  --radius: 12px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  background-color: var(--ink);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--ink);
  color: var(--cream);
}

a {
  color: var(--green-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--cream);
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--green);
  color: var(--cream);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 12px 16px;
}

.header-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  min-height: 44px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex-shrink: 0;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--cream-muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  background: var(--surface-elevated);
  color: var(--cream);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--ink);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.lang-btn {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--cream-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 44px;
  min-width: 48px;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
}

.lang-btn:hover {
  color: var(--cream);
}

.lang-btn[aria-pressed="true"] {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green-accent);
}

main {
  flex: 1;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin: 0 0 6px;
}

h1 {
  font-size: 1.65rem;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--cream);
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--cream);
}

h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--cream);
}

.lede {
  color: var(--cream-muted);
  font-size: 1.02rem;
  margin: 0 0 20px;
}

.hero-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}

.app-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--green);
  color: var(--cream);
  border: 1px solid var(--green-accent);
}

.badge-muted {
  background: var(--surface-elevated);
  color: var(--cream-muted);
  border-color: var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green-accent);
}

.btn-primary:hover {
  background: var(--green-bright);
  color: var(--cream);
}

.btn-secondary {
  background: var(--surface-elevated);
  color: var(--cream);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--cream-muted);
}

.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Progress Bar Section */
.progress-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.progress-count {
  font-weight: 700;
  color: var(--green-accent);
  font-size: 1.05rem;
}

.progress-track {
  width: 100%;
  height: 14px;
  background: var(--ink);
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-accent));
  border-radius: 999px;
  transition: width 0.25s ease;
}

.progress-fill[data-progress="1"] { width: 8%; }
.progress-fill[data-progress="2"] { width: 17%; }
.progress-fill[data-progress="3"] { width: 25%; }
.progress-fill[data-progress="4"] { width: 33%; }
.progress-fill[data-progress="5"] { width: 42%; }
.progress-fill[data-progress="6"] { width: 50%; }
.progress-fill[data-progress="7"] { width: 58%; }
.progress-fill[data-progress="8"] { width: 67%; }
.progress-fill[data-progress="9"] { width: 75%; }
.progress-fill[data-progress="10"] { width: 83%; }
.progress-fill[data-progress="11"] { width: 92%; }
.progress-fill[data-progress="12"] { width: 100%; }

.progress-meta {
  font-size: 0.88rem;
  color: var(--cream-muted);
  margin: 0;
}

/* Stepper */
.stepper {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.step-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 5px solid var(--green-accent);
  border-radius: var(--radius);
  padding: 18px;
}

.step-num {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--green-accent);
  margin-bottom: 4px;
}

.alert-warn {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn-text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.93rem;
  margin: 12px 0;
}

.alert-error {
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  color: var(--error-text);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.93rem;
  margin: 12px 0;
}

.thanks-box {
  background: #1d3328;
  border: 2px solid var(--green-accent);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
}

.form-field {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--cream);
}

.form-input,
.form-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--ink);
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 14px 0;
  cursor: pointer;
  min-height: 44px;
}

.checkbox-input {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--green-accent);
}

/* Honeypot hidden field */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* 14-day Checklist */
.checklist-box {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin: 14px 0;
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.days-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.day-dot {
  appearance: none;
  min-height: 44px;
  min-width: 44px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--cream);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.day-dot[aria-pressed="true"] {
  background: var(--green);
  border-color: var(--green-accent);
  color: var(--cream);
}

/* FAQ */
.faq-section {
  margin-top: 28px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.faq-item p {
  margin: 8px 0 4px;
  color: var(--cream-muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 16px;
  margin-top: auto;
}

.footer-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--cream-muted);
}

.footer-links {
  display: flex;
  gap: 14px;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 400px) {
  .days-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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