:root {
  --ink: #1a1a1a;
  --paper: #ffffff;
  --muted: #5a5a5a;
  --bg-soft: #f7f7f5;
  --border: #e6e6e3;
  --accent: #19486A;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
p { margin: 0 0 1em; color: var(--muted); }

a { color: inherit; }

.btn {
  display: inline-block;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.9; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
}
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink); }

/* Hero */
.hero {
  padding: 110px 20px 90px;
  background: linear-gradient(135deg, #fafaf8 0%, #f1f3ee 100%);
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-accent {
  background: linear-gradient(90deg, #E5243B, #FCC30B, #4C9F38, #26BDE2, #19486A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 1.1rem; max-width: 620px; margin: 20px auto 32px; }

/* Split (mission/vision) */
.split {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.split-col h2 { font-size: 1.6rem; }

/* Goals */
.goals { padding: 80px 20px; background: var(--bg-soft); }
.goals h2, .how h2, .join h2 { text-align: center; font-size: 2rem; }
.section-sub { text-align: center; max-width: 560px; margin: 0 auto 40px; }

.goal-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.goal-card {
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 6px solid var(--goal-color);
  padding: 20px;
}
.goal-num {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--paper);
  background: var(--goal-color);
  width: 28px;
  height: 28px;
  line-height: 28px;
  text-align: center;
  border-radius: 50%;
  margin-bottom: 10px;
}
.goal-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.goal-card p { font-size: 0.9rem; margin: 0; }

/* How it works */
.how { padding: 80px 20px; }
.how-steps {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  position: relative;
  text-align: center;
  padding: 24px 20px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}
.step:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  top: 32px;
  right: -28px;
  font-size: 1.3rem;
  color: #c9cbc5;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  margin-bottom: 14px;
  transition: transform 0.25s ease;
}
.step:hover .step-num { transform: scale(1.1); }
.step-num.sm { width: 32px; height: 32px; font-size: 0.85rem; margin-bottom: 0; flex-shrink: 0; }
.step h3 { font-size: 1.05rem; }
.step p { font-size: 0.92rem; }

.step-details {
  text-align: left;
  list-style: none;
  margin: 14px 0 0;
  padding: 14px 0 0;
  border-top: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.step-details li {
  position: relative;
  padding-left: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}
.step-details li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Sample scenario */
.scenario {
  max-width: 1100px;
  margin: 56px auto 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 5px solid var(--goal-color, var(--accent));
  border-radius: var(--radius);
  padding: 32px;
}
.scenario-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.scenario-head h3 { margin-bottom: 2px; font-size: 1.2rem; }
.scenario-sub { font-size: 0.88rem; margin: 0; }
.scenario-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--goal-color);
  color: var(--paper);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.scenario-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.scenario-step {
  display: flex;
  gap: 12px;
}
.scenario-step h4 { font-size: 0.95rem; margin: 0 0 4px; }
.scenario-step p { font-size: 0.85rem; margin: 0; }

/* Scroll-in animation */
.anim-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.anim-up.in-view { opacity: 1; transform: translateY(0); }
.how-steps .step:nth-child(1) { transition-delay: 0s; }
.how-steps .step:nth-child(2) { transition-delay: 0.1s; }
.how-steps .step:nth-child(3) { transition-delay: 0.2s; }
.how-steps .step:nth-child(4) { transition-delay: 0.3s; }
.scenario-steps .scenario-step:nth-child(1) { transition-delay: 0s; }
.scenario-steps .scenario-step:nth-child(2) { transition-delay: 0.1s; }
.scenario-steps .scenario-step:nth-child(3) { transition-delay: 0.2s; }
.scenario-steps .scenario-step:nth-child(4) { transition-delay: 0.3s; }

/* Join form */
.join { padding: 80px 20px; background: var(--bg-soft); }
.join-form {
  max-width: 640px;
  margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.join-form label { font-weight: 600; font-size: 0.9rem; margin-top: 14px; }
.join-form input[type="text"],
.join-form input[type="email"],
.join-form input[type="tel"] {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
}

.goal-select { border: none; padding: 0; margin: 20px 0 0; }
.goal-select legend { font-weight: 600; font-size: 0.9rem; padding: 0; }
.goal-select legend span { font-weight: 400; color: var(--muted); font-size: 0.85rem; }

.goal-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.goal-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  font-size: 0.88rem;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--goal-color);
  border-radius: 8px;
  cursor: pointer;
}
.goal-check input { accent-color: var(--goal-color); }
.goal-check.disabled { opacity: 0.4; cursor: not-allowed; }

.goal-limit-msg {
  font-size: 0.82rem;
  color: #a21942;
  min-height: 1.2em;
  margin: 8px 0 0;
}

.join-form .btn { margin-top: 24px; align-self: center; }

/* Footer */
.footer {
  text-align: center;
  padding: 28px 20px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .step:not(:last-child)::after { display: none; }
  .scenario-steps { grid-template-columns: 1fr 1fr; }
  .scenario-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .how-steps { grid-template-columns: 1fr; }
  .scenario-steps { grid-template-columns: 1fr; }
  .scenario { padding: 24px 20px; }
}
