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

:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-2: #F5F5F4;
  --surface-3: #EDEDED;
  --ink: #1A1A18;
  --ink-2: #4A4A46;
  --ink-3: #6B6B66;
  --ink-4: #BBBBB5;
  --accent: #2D6A4F;
  --accent-bg: #EEF5F1;
  --accent-border: #C3DDD0;
  --border: #E8E8E5;
  --border-strong: #D4D4CF;
  --red: #C0392B;
  --red-bg: #FDF2F1;
  --radius: 6px;
  --radius-lg: 10px;
}

html { font-size: 15px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADER ── */
header {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
}

.wordmark-icon {
  width: 28px;
  height: 28px;
  background: var(--ink);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wordmark-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: white;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.wordmark-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 14px;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--ink-2);
  font-weight: 400;
  line-height: 1.7;
  max-width: 480px;
}

/* ── HOW IT WORKS ── */
.how-it-works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
}

.how-step {
  background: var(--surface);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.how-icon {
  width: 36px;
  height: 36px;
  background: var(--surface-2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.how-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--ink-2);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-step-num {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.how-step-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.how-step-desc {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.55;
}

/* ── SECTION LABEL ── */
.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

/* ── TEXTAREA ── */
textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  resize: vertical;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea:focus {
  border-color: var(--ink-3);
  box-shadow: 0 0 0 3px rgba(26,26,24,0.06);
}

textarea::placeholder { color: var(--ink-4); }

/* ── PRIVACY NOTE ── */
.privacy-note {
  font-size: 0.78rem;
  color: var(--ink-3);
  margin-top: 10px;
  line-height: 1.55;
}

.privacy-note strong { color: var(--ink-2); font-weight: 500; }

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: white;
  background: var(--ink);
  border: 1px solid var(--ink);
  padding: 9px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary:hover { background: #2e2e2b; }
.btn-primary:active { opacity: 0.85; }
.btn-primary:disabled {
  background: var(--ink-4);
  border-color: var(--ink-4);
  cursor: not-allowed;
}

.price-hint {
  font-size: 0.82rem;
  color: var(--ink-3);
}

.price-hint strong {
  color: var(--ink-2);
  font-weight: 500;
}

/* ── ERROR ── */
.error-box {
  display: none;
  background: var(--red-bg);
  border: 1px solid #F5C6C2;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--red);
  margin-top: 12px;
  line-height: 1.5;
}

.error-box.active { display: block; }

/* ── LOADING ── */
.loading {
  display: none;
  padding: 40px 0;
  text-align: center;
}

.loading.active { display: block; }

.loading-dots {
  display: inline-flex;
  gap: 5px;
  margin-bottom: 12px;
}

.loading-dots span {
  width: 6px; height: 6px;
  background: var(--ink-3);
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

.loading-text {
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* ── DIVIDER ── */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* ── PREVIEW ── */
.preview-section { display: none; }
.preview-section.active { display: block; }

.preview-heading {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 4px;
}

.preview-sub {
  font-size: 0.82rem;
  color: var(--ink-3);
  margin-bottom: 24px;
}

/* ── STATS ROW ── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 28px;
}

.stat-card {
  background: var(--surface);
  padding: 16px 12px;
  text-align: center;
}

.stat-num {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── TASKS ── */
.tasks-group { margin-bottom: 28px; }

.tasks-group-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.tasks-group-icon {
  width: 22px;
  height: 22px;
  background: var(--surface-2);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tasks-group-icon svg {
  width: 12px;
  height: 12px;
  stroke: var(--ink-3);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tasks-group-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.task-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.task-item:last-child { border-bottom: none; }

.task-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.task-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.task-notes {
  font-size: 0.8rem;
  color: var(--ink-2);
  line-height: 1.55;
  margin-bottom: 10px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
  padding-left: 2px;
}

.checklist-item {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--border);
  align-items: flex-start;
}

.checklist-bullet {
  width: 5px;
  height: 5px;
  background: var(--ink-3);
  border-radius: 50%;
  margin-top: 7px;
  flex-shrink: 0;
}

.checklist-content { flex: 1; }

.checklist-task {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 2px;
  line-height: 1.4;
}

.task-tip {
  font-size: 0.78rem;
  color: var(--accent);
  line-height: 1.5;
}

.task-safety {
  font-size: 0.73rem;
  color: var(--ink-3);
  line-height: 1.5;
  margin-top: 3px;
  padding-top: 3px;
  border-top: 1px dashed var(--border);
}

.task-month {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 2px;
  align-self: start;
}

/* ── DISCLAIMER ── */
.disclaimer-box {
  margin: 4px 0 28px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: 0.76rem;
  color: var(--ink-3);
  line-height: 1.6;
  border: 1px solid var(--border);
}

/* ── PURCHASE ── */
.purchase-section {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 48px;
}

.purchase-top {
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--border);
}

.purchase-headline {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 6px;
}

.purchase-sub {
  font-size: 0.83rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ── COMPATIBLE CALENDARS ROW ── */
.calendar-compat {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.compat-label {
  font-size: 0.72rem;
  color: var(--ink-3);
  font-weight: 500;
}

.compat-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  color: var(--ink-2);
  font-weight: 500;
}

.compat-badge svg {
  width: 12px;
  height: 12px;
  stroke: var(--ink-3);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.savings-banner {
  padding: 14px 24px;
  background: var(--accent-bg);
  border-bottom: 1px solid var(--accent-border);
  font-size: 0.83rem;
  color: var(--accent);
  line-height: 1.55;
}

.savings-banner strong {
  font-weight: 600;
  color: var(--accent);
}

.savings-basis {
  display: block;
  font-size: 0.72rem;
  color: #5A9E80;
  margin-top: 3px;
  line-height: 1.5;
}

.purchase-bottom {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.price-tag {
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
}

.price-tag sup {
  font-size: 0.9rem;
  font-weight: 500;
  vertical-align: super;
  margin-right: 1px;
  letter-spacing: 0;
}

.price-once {
  font-size: 0.72rem;
  color: var(--ink-3);
  margin-top: 3px;
  letter-spacing: 0.01em;
}

.btn-purchase {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: white;
  background: var(--accent);
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s, opacity 0.15s;
  white-space: nowrap;
}

.btn-purchase:hover { background: #235c42; }
.btn-purchase:active { opacity: 0.85; }

.purchase-footnote {
  text-align: center;
  font-size: 0.73rem;
  color: var(--ink-4);
  padding: 0 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.purchase-footnote svg {
  width: 12px;
  height: 12px;
  stroke: var(--ink-4);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

footer p {
  font-size: 0.75rem;
  color: var(--ink-3);
}

footer a {
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer a:hover { color: var(--ink-2); }

.agb-check { margin-top: 16px; margin-bottom: 4px; }
