:root {
  --bg: #f4f6f8;
  --band: #edf0f5;
  --card: #ffffff;
  --chip: #f2f4f8;
  --text: #2d3436;
  --muted: #636e72;
  --brand: #63629c;
  --brand-soft: rgba(99, 98, 156, 0.1);
  --create: #e0c252;
  --refine: #8fbdd9;
  --recharge: #ebbc94;
  --tidy: #8fa3b0;
  --sand: #d4c5a8;
  --line: rgba(45, 52, 54, 0.08);
  --shadow: 0 10px 28px rgba(45, 52, 54, 0.05);
  --shadow-lg: 0 18px 42px rgba(45, 52, 54, 0.07);
  --header: rgba(244, 246, 248, 0.86);
  --width: 980px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151719;
    --band: #1b1e23;
    --card: #212429;
    --chip: #2a2e35;
    --text: #e3e5e7;
    --muted: #9fa6ad;
    --brand: #9393b8;
    --brand-soft: rgba(147, 147, 184, 0.14);
    --create: #c9ab45;
    --refine: #7aa8c4;
    --recharge: #dfa477;
    --tidy: #6e8290;
    --sand: #e4e2de;
    --line: rgba(227, 229, 231, 0.09);
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    --shadow-lg: 0 20px 44px rgba(0, 0, 0, 0.36);
    --header: rgba(21, 23, 25, 0.86);
  }
}

* { box-sizing: border-box; }

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-rounded, "SF Pro Rounded", "PingFang SC", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--card);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--width), calc(100% - 40px));
  margin: 0 auto;
}

.narrow { width: min(720px, calc(100% - 40px)); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 20px;
  min-height: 62px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-right: auto;
}
.mark img { width: 26px; height: 26px; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  transition: color 0.18s ease;
}
.nav-links a:hover { color: var(--text); }

.bar-end {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  margin-left: auto;
}

.lang {
  display: inline-flex;
  flex: 0 0 auto;
  width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--card);
}
.lang button {
  margin: 0;
  border: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.lang button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 15px;
  border: 0;
  transition: transform 0.18s ease, filter 0.18s ease;
}
.btn-store {
  background: var(--brand);
  color: #fff;
}
.btn-store:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.btn-small { min-height: 34px; padding: 5px 14px; font-size: 13px; }

/* Hero */
.hero { padding: 48px 0 40px; }
.hero .wrap {
  display: grid;
  gap: 36px;
  align-items: center;
}
@media (min-width: 860px) {
  .hero { padding: 72px 0 56px; }
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-copy .eyebrow {
  margin: 0 0 18px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 60px);
  font-weight: 760;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.hero-copy .actions {
  margin-top: 28px;
}
.hero-copy .btn-store {
  min-height: 48px;
  padding: 11px 24px;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(99, 98, 156, 0.22);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
}

h1 {
  margin: 0;
  font-size: clamp(36px, 4.8vw, 52px);
  font-weight: 750;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lede {
  margin: 14px 0 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 24px;
}

/* Hero Visual Card */
.hero-visual {
  background:
    radial-gradient(120% 90% at 50% 0%, var(--brand-soft), transparent 65%),
    var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 20px 18px 16px;
  box-shadow: var(--shadow-lg);
}

.stage-card { width: min(100%, 360px); margin: 0 auto; }

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.stage-pips { display: flex; gap: 5px; }
.stage-pips i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.25;
}
.stage-pips i:first-child { opacity: 0.9; }

.helix {
  height: 162px;
  margin: 4px 0 8px;
  position: relative;
}
.dna-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.dna-stage {
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px;
}

.preview {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.preview-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  animation: spotlight 9.6s ease-in-out infinite;
}
.preview-row:nth-child(2) { animation-delay: 2.4s; }
.preview-row:nth-child(3) { animation-delay: 4.8s; }
.preview-row:nth-child(4) { animation-delay: 7.2s; }
@keyframes spotlight {
  0%, 14% { background: var(--chip); }
  24%, 100% { background: transparent; }
}
.preview-row em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-create { background: var(--create); }
.dot-refine { background: var(--refine); }
.dot-recharge { background: var(--recharge); }
.dot-tidy { background: var(--tidy); }

/* Sections */
.band { padding: 56px 0; }
.band-soft {
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin: 0 0 28px;
  text-align: left;
}
.section-head h2,
.page h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 740;
  letter-spacing: -0.01em;
  line-height: 1.28;
}
.section-head p:not(.eyebrow) {
  margin: 10px 0 0;
  max-width: 36em;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

/* Three Views Cards & Data Facts */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.facts li {
  padding: 22px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.facts h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.time-when {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.times h3 {
  font-size: 22px;
  letter-spacing: -0.01em;
}
.time-card-link {
  display: block;
  color: inherit;
}
.times li {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.times li:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand) 36%, var(--line));
  box-shadow: var(--shadow-lg);
}
.facts p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Four Energy Grid */
.energy-grid {
  display: grid;
  gap: 14px;
}
@media (min-width: 880px) {
  .energy-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 560px) and (max-width: 879px) {
  .energy-grid { grid-template-columns: 1fr 1fr; }
}

.energy-card,
.pair-card,
.mock-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.energy-card {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
}
.energy-card .label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.energy-card .label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex: 0 0 auto;
}
.tone-create .label::before { background: var(--create); }
.tone-refine .label::before { background: var(--refine); }
.tone-recharge .label::before { background: var(--recharge); }
.tone-tidy .label::before { background: var(--tidy); }

.energy-card h3 {
  margin: 10px 0 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.4;
}
.energy-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

/* Stories (Feature Cards) */
.story {
  display: grid;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.story-top-gap {
  margin-top: 16px;
}
@media (min-width: 820px) {
  .story {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 40px;
    padding: 32px 34px;
  }
  .story-flip > :first-child { order: 2; }
}

.step {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand);
}
.story h3 {
  margin: 8px 0 0;
  font-size: clamp(20px, 2.3vw, 24px);
  font-weight: 720;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.story p:not(.step):not(.label):not(.mock-kicker):not(.mock-title):not(.mock-note) {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

/* Mock Cards inside Story */
.story .mock-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: none;
}
.story .preview-row {
  background: var(--card);
  animation: none;
}
.story .preview {
  gap: 6px;
  margin-top: 10px;
}

.pair {
  display: grid;
  gap: 12px;
}
.pair-compact {
  grid-template-columns: 1fr;
}
.pair-card {
  padding: 14px 16px;
  background: var(--bg);
  box-shadow: none;
  border-radius: 16px;
}
.pair-card .label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.pair-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.pair-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
}

.mock-kicker, .mock-note {
  margin: 0;
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}
.mock-title {
  margin: 10px 0 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mock-card .mock-note { margin-top: 8px; font-weight: 500; line-height: 1.5; }

.vision-swatch {
  height: 116px;
  border-radius: 12px;
  background:
    radial-gradient(80% 80% at 72% 22%, color-mix(in srgb, var(--create) 65%, white), transparent 60%),
    linear-gradient(155deg, var(--brand), #8b8ac2 58%, #cbcAE8);
}

.flow-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.flow-pick {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 650;
}
.flow-pick.on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Closing CTA */
.close {
  text-align: center;
  padding: 36px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.close h2 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 740;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.close .actions {
  justify-content: center;
  margin-top: 20px;
}

/* Support Page */
.faq-list {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-item + .faq-item {
  border-top: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 680;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:hover {
  background: var(--chip);
}
.faq-item summary::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease, border-color 0.2s ease;
  flex: 0 0 auto;
  margin-right: 4px;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
  border-color: var(--brand);
}
.faq-body {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.faq-body p {
  margin: 0;
}
.faq-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}
.faq-links a {
  font-size: 14px;
  font-weight: 650;
  color: var(--brand);
}
.faq-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.support-contact {
  display: grid;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 24px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
@media (min-width: 640px) {
  .support-contact {
    grid-template-columns: 1fr auto;
    gap: 24px;
  }
}
.support-contact h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.support-contact p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.support-contact-action .btn {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 14px;
  white-space: nowrap;
}
.support-feedback { margin-top: 36px; }
.support-feedback .section-head { margin-bottom: 16px; }
.support-feedback .section-head h2 { font-size: 22px; }

/* Legal Pages (Privacy / Terms) */
.page { padding: 44px 0 80px; }
.meta { margin: 8px 0 24px; color: var(--muted); font-size: 14px; }

.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px 34px 34px;
  box-shadow: var(--shadow);
}
.prose h2 {
  margin: 32px 0 10px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.prose p, .prose li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.72;
}
.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose ul { padding-left: 1.25em; }
.prose li + li { margin-top: 6px; }
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--chip);
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.foot {
  display: grid;
  gap: 28px;
  padding: 44px 0 28px;
}
@media (min-width: 720px) {
  .foot { grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
}
.foot h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}
.foot a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  transition: color 0.15s ease;
}
.foot a:hover { color: var(--text); }
.brand-name {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.brand-name img { width: 22px; height: 22px; display: block; }
.brand-line { margin: 8px 0 0; max-width: 24em; }

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 16px 0 24px;
  font-size: 13px;
}
.legal nav { display: flex; gap: 18px; }
.legal a { color: var(--muted); }
.legal a:hover { color: var(--text); }
.legal p { margin: 0; }

[hidden] { display: none !important; }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .sheet { padding: 8px 20px 24px; }
  .story { padding: 22px 18px; }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.energy-grid .reveal:nth-child(2),
.facts .reveal:nth-child(2) { transition-delay: 0.06s; }

.energy-grid .reveal:nth-child(3),
.facts .reveal:nth-child(3) { transition-delay: 0.12s; }

.energy-grid .reveal:nth-child(4) { transition-delay: 0.18s; }

.feedback-form {
  display: grid;
  gap: 16px;
  margin-top: 0;
  padding: 24px 26px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.feedback-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
}
.feedback-form input,
.feedback-form textarea {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-weight: 450;
}
.feedback-form textarea { min-height: 140px; resize: vertical; }
.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.feedback-note {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}
.feedback-status { min-height: 1.5em; margin: 0; font-size: 14.5px; }
.feedback-status[data-state="error"] { color: #b42318; }
.feedback-form button:disabled { opacity: 0.55; transform: none; }
.feedback-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .helix svg,
  .rungs path,
  .preview-row { animation: none; }
  .rungs path { opacity: 0.7; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
