:root {
  --purple-dark:   #3a3558;
  --purple-mid:    #7a78a8;
  --purple-light:  #c8cadb;
  --text-muted:    #5a5790;
  --lavender:      #f4e2e7;
  --lavender-soft: #fdf5f7;
  --mint:          #b9dcd2;
  --teal:          #ddf0eb;
  --teal-mid:      #6aada0;
  --white:         #ffffff;
  --gray-text:     #4a4a5e;
  --gray-light:    #f2f3f6;
  --gray-mid:      #e0e2ea;
  --radius:        14px;
  --radius-sm:     10px;
  --shadow:        0 4px 20px rgba(58,53,88,0.09);
  --shadow-lg:     0 8px 40px rgba(58,53,88,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--purple-light);
  min-height: 100vh;
  color: var(--gray-text);
  padding: 0 0 80px;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }

.app-header {
  text-align: center; padding: 28px 20px 16px;
  background: var(--purple-light);
}
.brand-title {
  font-family: 'Fredoka', sans-serif; font-size: 2.2rem; font-weight: 700;
  letter-spacing: 0.3px; line-height: 1;
}
.brand-title .migra { color: var(--purple-mid); }
.brand-title .motion { color: var(--teal-mid); }
.brand-sub {
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2.5px; color: var(--purple-dark); margin-top: 4px;
}

.nav {
  display: flex; justify-content: center; gap: 6px;
  padding: 12px 16px 4px; flex-wrap: wrap;
}
.nav-btn {
  padding: 8px 16px; border: none; border-radius: 50px; font-size: 0.83rem;
  font-weight: 600; cursor: pointer; transition: all 0.2s;
  background: var(--white); color: var(--purple-mid);
  box-shadow: 0 2px 8px rgba(74,45,107,0.08);
  text-decoration: none; display: inline-block;
}
.nav-btn:hover { background: var(--white); box-shadow: 0 2px 12px rgba(74,45,107,0.15); }

.view { padding: 12px 14px 0; max-width: 680px; margin: 0 auto; }

.intro-card {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px;
}
.intro-card p { font-size: 0.88rem; line-height: 1.6; color: var(--gray-text); }
.intro-card p + p { margin-top: 8px; }

.help-section {
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden;
}
.help-section > summary {
  padding: 16px 18px; cursor: pointer; list-style: none;
  font-size: 0.95rem; font-weight: 700; color: var(--purple-dark);
  display: flex; align-items: center; gap: 10px;
  -webkit-tap-highlight-color: transparent;
}
.help-section > summary::-webkit-details-marker { display: none; }
.help-section > summary::after {
  content: '＋'; margin-left: auto; font-size: 1.1rem; color: var(--purple-mid);
  font-weight: 400; flex-shrink: 0;
}
.help-section[open] > summary::after { content: '－'; }
.help-section > summary:focus-visible {
  outline: 3px solid var(--purple-mid); outline-offset: -3px;
}
.help-body { padding: 0 18px 18px; }

.help-sub { margin-top: 14px; }
.help-sub:first-child { margin-top: 0; }
.help-sub h4 {
  font-size: 0.82rem; font-weight: 700; color: var(--purple-mid);
  text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px;
}
.help-sub p { font-size: 0.86rem; line-height: 1.6; color: var(--gray-text); }
.help-sub p + p { margin-top: 6px; }
.help-sub ul { margin: 6px 0 0 18px; font-size: 0.86rem; line-height: 1.7; color: var(--gray-text); }

.help-note {
  font-size: 0.82rem; line-height: 1.55; margin-top: 10px; padding: 10px 12px;
  background: var(--lavender-soft); border-radius: 8px; color: var(--purple-dark);
}
.help-note.warn { background: #fff3dc; color: #7a5300; }

.faq-item { border-top: 1px solid var(--gray-mid); }
.faq-item:first-child { border-top: none; }
.faq-item > summary {
  padding: 12px 0; cursor: pointer; list-style: none;
  font-size: 0.87rem; font-weight: 600; color: var(--gray-text);
  display: flex; align-items: center; gap: 8px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::before { content: '？'; color: var(--purple-mid); flex-shrink: 0; font-size: 0.8rem; }
.faq-item > summary:focus-visible { outline: 3px solid var(--purple-mid); outline-offset: 2px; }
.faq-item .faq-answer { font-size: 0.85rem; line-height: 1.6; color: var(--gray-text); padding: 0 0 12px 20px; }

@media (max-width: 420px) {
  .view { padding: 10px 10px 0; }
  .brand-title { font-size: 1.9rem; }
}
