
:root {
  --bg: #fbf8f1;
  --surface: #fffaf0;
  --surface-2: #ffffff;
  --ink: #221b15;
  --muted: #6c5e50;
  --soft: #e8dccb;
  --line: #ded1bd;
  --brand: #7a4d2b;
  --brand-dark: #4b2e1c;
  --brand-soft: #efe3d4;
  --accent: #9c6b38;
  --green: #4d6a4d;
  --warning: #9a3412;
  --danger: #a62525;
  --shadow: 0 24px 70px rgba(52, 33, 18, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(156,107,56,0.16), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(77,106,77,0.11), transparent 32%),
    linear-gradient(180deg, #fbf8f1 0%, #fffaf3 46%, #fbf8f1 100%);
  line-height: 1.6;
}

body.nav-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brand-dark);
  color: white;
  padding: 10px 14px;
  z-index: 999;
}

.skip-link:focus { left: 10px; top: 10px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(222, 209, 189, 0.82);
  backdrop-filter: blur(20px);
  background: rgba(251, 248, 241, 0.84);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 55% 46%, rgba(255,255,255,0.95) 0 9%, transparent 10%),
    conic-gradient(from 215deg, #4d6a4d, #9c6b38, #7a4d2b, #4d6a4d);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.42), 0 8px 24px rgba(75,46,28,0.16);
}

.brand span {
  font-size: 1.15rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.nav a:hover,
.nav a.active {
  color: var(--brand-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.75);
  border-radius: 12px;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 820;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: center;
  font-size: 0.96rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  box-shadow: 0 14px 34px rgba(75, 46, 28, 0.24);
}

.btn-secondary {
  color: var(--brand-dark);
  background: rgba(255,255,255,0.78);
  border-color: var(--line);
}

.btn-ghost {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: rgba(122,77,43,0.18);
}

.btn-block { width: 100%; }

.hero {
  padding: 84px 0 58px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 56px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(122,77,43,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.66);
  color: var(--brand-dark);
  font-size: 0.85rem;
  font-weight: 820;
}

h1, h2, h3, h4 {
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin: 0;
}

h1 {
  font-size: clamp(2.65rem, 6vw, 5.4rem);
  max-width: 860px;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.6rem);
}

h3 {
  font-size: clamp(1.35rem, 2vw, 1.95rem);
}

.lede {
  font-size: clamp(1.1rem, 1.45vw, 1.34rem);
  color: var(--muted);
  max-width: 760px;
  margin: 24px 0 0;
}

.hero-actions,
.section-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.trust-line {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.94rem;
}

.visual-card {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(222,209,189,0.9);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.72), rgba(239,227,212,0.78)),
    radial-gradient(circle at 35% 25%, rgba(156,107,56,0.22), transparent 35%);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 34px;
  border: 1px solid rgba(122,77,43,0.14);
}

.rhythm-orb {
  position: absolute;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  top: 78px;
  left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.95) 0 16%, transparent 17%),
    repeating-radial-gradient(circle, rgba(122,77,43,0.16) 0 10px, rgba(77,106,77,0.12) 11px 20px),
    linear-gradient(135deg, rgba(156,107,56,0.2), rgba(77,106,77,0.14));
  box-shadow: inset 0 0 45px rgba(75,46,28,0.12);
}

.wave {
  position: absolute;
  left: 50%;
  top: 258px;
  width: 78%;
  height: 130px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse at 20% 50%, transparent 0 35%, rgba(122,77,43,0.46) 36% 38%, transparent 39%),
    radial-gradient(ellipse at 50% 50%, transparent 0 35%, rgba(77,106,77,0.45) 36% 38%, transparent 39%),
    radial-gradient(ellipse at 80% 50%, transparent 0 35%, rgba(122,77,43,0.46) 36% 38%, transparent 39%);
  opacity: 0.85;
}

.stat-stack {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 12px;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(222,209,189,0.9);
}

.stat b { letter-spacing: -0.02em; }
.stat span { color: var(--muted); font-weight: 700; font-size: 0.92rem; }

.section {
  padding: 74px 0;
}

.section-tight {
  padding: 44px 0;
}

.section-header {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-header.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header p {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 18px 0 0;
}

.symptom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pill-card {
  padding: 18px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.67);
  font-weight: 780;
  box-shadow: 0 8px 28px rgba(52, 33, 18, 0.06);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.72);
  box-shadow: 0 14px 44px rgba(52, 33, 18, 0.07);
  padding: 30px;
}

.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); }

.soft-panel {
  border: 1px solid rgba(122,77,43,0.18);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(239,227,212,0.92), rgba(255,250,240,0.82));
  padding: clamp(26px, 4vw, 48px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature {
  padding: 22px;
  border: 1px solid rgba(222,209,189,0.9);
  border-radius: 20px;
  background: rgba(255,255,255,0.7);
}

.feature .num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 900;
  margin-bottom: 12px;
}

.feature h3 {
  font-size: 1.15rem;
  letter-spacing: -0.035em;
}

.feature p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 0.96rem;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.article-card {
  padding: 24px;
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255,255,255,0.76);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.article-card p { color: var(--muted); }

.footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 30px;
}

.footer a { color: var(--brand-dark); font-weight: 750; }
.footer small { display: block; margin-top: 24px; }

.page-hero {
  padding: 70px 0 40px;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.content {
  max-width: 860px;
}

.content p, .content li {
  color: var(--muted);
  font-size: 1.05rem;
}

.content h2 {
  margin-top: 42px;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}

.content h3 {
  margin-top: 28px;
}

.content ul {
  padding-left: 1.2rem;
}

.notice {
  border-left: 4px solid var(--brand);
  background: rgba(239,227,212,0.72);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 24px 0;
}

.notice.warning { border-left-color: var(--warning); }
.notice.danger { border-left-color: var(--danger); }

.form-shell {
  display: grid;
  grid-template-columns: 0.84fr 1.16fr;
  gap: 28px;
  align-items: start;
}

.form-sidebar {
  position: sticky;
  top: 98px;
}

.form-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.8);
  box-shadow: var(--shadow);
}

.progress-wrap {
  margin: 16px 0 24px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-weight: 760;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  overflow: hidden;
}

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

.field {
  margin-bottom: 18px;
}

.field label,
.question-title {
  display: block;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
}

.field small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.94);
  color: var(--ink);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

textarea { min-height: 120px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: rgba(122,77,43,0.55);
  box-shadow: 0 0 0 4px rgba(122,77,43,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.assessment-step {
  display: none;
}

.assessment-step.active {
  display: block;
  animation: rise 0.28s ease;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.question-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,0.62);
  margin-bottom: 16px;
}

.option-list {
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.76);
  cursor: pointer;
}

.option:hover { border-color: rgba(122,77,43,0.38); }

.option input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--brand);
}

.step-actions {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 20px;
}

.result-box {
  display: none;
  margin-top: 26px;
}

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

.result-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(239,227,212,0.66));
  padding: clamp(24px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.result-card h2 {
  margin-bottom: 14px;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0;
}

.score {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  padding: 14px;
}

.score b {
  display: block;
  font-size: 1.6rem;
  line-height: 1;
}

.score span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.badge {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 850;
  font-size: 0.86rem;
  margin-bottom: 14px;
}

.success-message {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(77,106,77,0.25);
  color: #2d4d2d;
  background: rgba(77,106,77,0.09);
  border-radius: 14px;
  font-weight: 760;
}

.success-message.active { display: block; }

.error-message {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(166,37,37,0.25);
  color: var(--danger);
  background: rgba(166,37,37,0.08);
  border-radius: 14px;
  font-weight: 760;
}

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

.faq {
  display: grid;
  gap: 14px;
}

details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,0.68);
  padding: 18px 20px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

details p {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .form-sidebar {
    position: static;
  }

  .symptom-grid,
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .visual-card {
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    left: 18px;
    right: 18px;
    top: 82px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,250,240,0.98);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  body.nav-open .nav {
    display: flex;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-actions .btn {
    display: none;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-actions,
  .section-actions,
  .step-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .symptom-grid,
  .feature-grid,
  .score-grid,
  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .form-card {
    padding: 20px;
  }

  .section {
    padding: 54px 0;
  }
}
