:root {
  --deep-sea: #0B3D5C;
  --deep-sea-dark: #072A40;
  --storm-gray: #3A4750;
  --cone-orange: #F2894E;
  --cone-orange-dark: #DC7038;
  --sand-light: #FAF6EF;
  --sand-mid: #EFE7D8;
  --alert-red: #C1443A;
  --white: #FFFFFF;
  --text-primary: #1B2733;
  --text-muted: #5F6B76;
  --border: #DDD5C4;

  --font-display: 'Archivo Expanded', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--sand-light);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.hidden { display: none !important; }

a { color: inherit; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 61, 92, 0.94);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.spiral-mini { width: 26px; height: 26px; color: var(--sand-light); }
.site-nav { display: flex; gap: 28px; }
.site-nav a {
  color: var(--sand-mid);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--deep-sea) 0%, var(--deep-sea-dark) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 96px 0 120px;
}
.spiral-bg {
  position: absolute;
  top: -120px;
  right: -160px;
  width: 640px;
  height: 640px;
  color: rgba(250, 246, 239, 0.08);
  animation: spin 90s linear infinite;
}
.spiral-bg svg { width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) {
  .spiral-bg { animation: none; }
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-inner { position: relative; max-width: 640px; }
.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cone-orange);
  margin: 0 0 18px;
}
.eyebrow-dark { color: var(--cone-orange-dark); }

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 58px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--sand-mid);
  margin: 0 0 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cone-orange); color: var(--white); }
.btn-primary:hover { background: var(--cone-orange-dark); }
.btn-ghost { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--white); }
.btn-ghost-dark { background: transparent; color: var(--deep-sea); border: 1px solid var(--border); padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; margin-top: 8px; }

/* ---------- How it works ---------- */
.how { padding: 90px 0; }
.how h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--deep-sea);
  margin: 0 0 44px;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}
.how-mark {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cone-orange-dark);
  background: #FDECE0;
  padding: 5px 10px;
  border-radius: 6px;
  margin-bottom: 16px;
}
.how-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.how-card p { margin: 0; color: var(--text-muted); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 800px) {
  .how-grid { grid-template-columns: 1fr; }
}

/* ---------- Tool section ---------- */
.tool-section {
  background: var(--sand-mid);
  padding: 90px 0 110px;
}
.tool-card {
  background: var(--white);
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 40px;
  max-width: 640px;
  margin: 0 auto;
}
.tool-card h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0 0 8px;
  color: var(--text-primary);
}
.tool-sub { color: var(--text-muted); font-size: 14.5px; margin: 0 0 28px; line-height: 1.5; }

.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.field input[type="text"],
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--font-body);
  background: var(--sand-light);
  color: var(--text-primary);
}
.field textarea { resize: vertical; }

.counters { display: flex; gap: 20px; margin-bottom: 8px; flex-wrap: wrap; }
.counter-field { flex: 1; min-width: 140px; }
.counter-field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.stepper { display: flex; align-items: center; gap: 12px; }
.step-btn {
  width: 34px; height: 34px;
  border-radius: 8px;
  border: none;
  background: var(--sand-mid);
  color: var(--deep-sea);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.step-btn:hover { background: var(--border); }
.step-value { min-width: 24px; text-align: center; font-weight: 700; font-size: 16px; }

.pill-group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--border);
  background: var(--sand-light);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 13.5px;
  cursor: pointer;
  color: var(--text-primary);
}
.pill.selected { background: var(--deep-sea); border-color: var(--deep-sea); color: var(--white); font-weight: 600; }

.divider { height: 1px; background: var(--border); margin: 28px 0 20px; }
.section-title { font-family: var(--font-display); font-size: 17px; margin: 0 0 4px; }

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  cursor: pointer;
  font-size: 14.5px;
}
.checkbox-row input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--deep-sea);
  cursor: pointer;
}

.notice-box {
  background: #FFF3E8;
  border: 1px solid var(--cone-orange);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--storm-gray);
  margin: 18px 0;
  line-height: 1.5;
}
.error-box {
  background: #FBEAE8;
  border: 1px solid var(--alert-red);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--alert-red);
  margin: 18px 0;
}

/* ---------- Calculator screen ---------- */
.calc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.calc-header h2 { margin-bottom: 2px; }

.option-card {
  background: var(--sand-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 18px;
}
.option-row-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.option-label { font-weight: 700; font-size: 14px; }
.option-value { font-weight: 700; color: var(--cone-orange-dark); font-size: 14px; }
.range-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); margin-top: -4px; }

input[type="range"] {
  width: 100%;
  accent-color: var(--cone-orange);
}

.checklist-section {
  background: var(--sand-light);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}
.checklist-section h3 {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--deep-sea);
  margin: 0 0 12px;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
}
.checklist-item:first-of-type { border-top: none; }
.item-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cone-orange);
  margin-top: 7px;
  flex-shrink: 0;
}
.item-text { flex: 1; }
.item-label { font-weight: 600; font-size: 14px; }
.item-note { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.shop-btn {
  background: var(--sand-mid);
  color: var(--deep-sea);
  border: none;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.shop-btn:hover { background: var(--border); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-sea-dark);
  color: var(--sand-mid);
  padding: 28px 0;
  font-size: 13px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy { opacity: 0.7; }

@media (max-width: 600px) {
  .tool-card { padding: 26px 20px; }
  .calc-header { flex-direction: column; }
}
