/* ============================================================
   Five Elements Test — prototype styles
   Palette: five-element colors + warm paper base (see 05 plan §7)
   ============================================================ */

:root {
  --paper: #FAF6EF;
  --ink: #2B2B2B;
  --muted: #6F6A60;
  --line: #E6DCC9;
  --brand: #3F4A3C;
  --ring: #A89B82;

  /* element themes (overridden by .theme-* on body) */
  --e: #2E7D4F;
  --e-deep: #1E5A37;
  --e-soft: #E9F2EC;
  --e-tint: rgba(46, 125, 79, 0.12);
  --e-glow: rgba(46, 125, 79, 0.35);
}

.theme-wood   { --e: #2E7D4F; --e-deep: #1E5A37; --e-soft: #E9F2EC; --e-tint: rgba(46,125,79,.12);  --e-glow: rgba(46,125,79,.32); }
.theme-fire   { --e: #C73E2E; --e-deep: #8F2B1F; --e-soft: #FBE9E5; --e-tint: rgba(199,62,46,.12);  --e-glow: rgba(199,62,46,.32); }
.theme-earth  { --e: #B57F26; --e-deep: #7D5A14; --e-soft: #F7EFDD; --e-tint: rgba(181,127,38,.13); --e-glow: rgba(181,127,38,.32); }
.theme-metal  { --e: #66788C; --e-deep: #42515F; --e-soft: #EDF1F5; --e-tint: rgba(102,120,140,.12); --e-glow: rgba(102,120,140,.30); }
.theme-water  { --e: #1F4E79; --e-deep: #12304D; --e-soft: #E3EDF7; --e-tint: rgba(31,78,121,.12);  --e-glow: rgba(31,78,121,.32); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  line-height: 1.2;
  margin: 0 0 .5em;
}
a { color: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.view[hidden] { display: none; }
img, svg { max-width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 239, .88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: Georgia, serif; font-size: 1.05rem; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #2E7D4F, #C73E2E 40%, #B57F26 65%, #66788C 85%, #1F4E79);
  color: #fff; font-size: .82rem; letter-spacing: .05em;
}
.brand em { font-style: normal; color: var(--muted); }
.nav { margin-left: auto; display: flex; gap: 18px; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.nav a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 10px 20px; font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--e, var(--brand)); color: #fff; box-shadow: 0 6px 18px var(--e-tint, rgba(0,0,0,.15)); }
.btn-primary:hover { box-shadow: 0 8px 22px var(--e-glow, rgba(0,0,0,.22)); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--e, var(--brand)); color: var(--e, var(--brand)); }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 48px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  font-size: .8rem; letter-spacing: .02em; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); margin-bottom: 16px; }
.hero h1 .accent { color: var(--e, #C73E2E); }
.lead { font-size: 1.08rem; color: #4B473F; max-width: 34em; margin: 0 0 24px; }
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-note { font-size: .82rem; color: var(--muted); max-width: 20em; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; cursor: default; font-size: .88rem; transition: border-color .12s ease, transform .12s ease;
}
.chip:hover { border-color: var(--chip-c, #C73E2E); transform: translateY(-2px); }
.chip::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  width: max-content; max-width: 220px; padding: 8px 12px; border-radius: 8px;
  background: #2B2B2B; color: #fff; font-size: .76rem; line-height: 1.45;
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 20;
}
.chip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 12px; }
#cycleSvg { width: min(320px, 78vw); height: auto; }
#cycleSvg .node { transition: r .15s ease; }
.visual-caption { font-size: .8rem; color: var(--muted); text-align: center; max-width: 30em; }

/* ---------- how it works ---------- */
.how { padding: 24px 0 56px; }
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); text-align: center; margin-bottom: 30px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 22px;
  box-shadow: 0 4px 14px rgba(43, 43, 43, .04);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--e-soft, #E9F2EC); color: var(--e-deep, #1E5A37);
  font-weight: 700; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- test form ---------- */
.test-section { padding: 24px 0 64px; }
.test-card {
  max-width: 620px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; padding: 36px 34px;
  box-shadow: 0 10px 34px rgba(43, 43, 43, .06);
}
.test-card h2 { font-size: 1.7rem; margin-bottom: 6px; }
.test-card .sub { color: var(--muted); margin: 0 0 24px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input[type="date"], .field input[type="email"], .field select, #gateEmail {
  width: 100%; padding: 12px 14px; border: 1px solid #D8CCB4; border-radius: 12px;
  font-size: 1rem; background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, #gateEmail:focus {
  outline: 2px solid var(--e, var(--brand)); outline-offset: 1px; border-color: transparent;
}
.field .hint { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.error { color: #B3261E; font-size: .82rem; margin: 6px 0 0; }
.error[hidden] { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; color: var(--muted); margin: 4px 0 18px; }
.check input { margin-top: 3px; accent-color: var(--e, var(--brand)); }
.fineprint { font-size: .78rem; color: var(--muted); text-align: center; margin: 14px 0 0; }

/* ---------- trust strip ---------- */
.trust { background: #EFE7D6; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; }
.trust-inner { display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: center; }
.trust-item { margin: 0; font-size: .88rem; color: #5C564A; }

/* ---------- learn section ---------- */
.learn { padding: 64px 0 20px; }
.lead-copy { max-width: 46em; margin: 0 auto 28px; text-align: center; color: #4B473F; }
.element-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; }
.el-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px 18px;
  text-align: center; transition: transform .15s ease, box-shadow .15s ease;
}
.el-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(43,43,43,.08); }
.el-card .el-icon { font-size: 2rem; }
.el-card h3 { font-size: 1.05rem; margin: 8px 0 4px; color: var(--ec, #2B2B2B); }
.el-card p { font-size: .82rem; color: var(--muted); margin: 0 0 10px; }
.el-card a { font-size: .82rem; color: var(--ec, #2B2B2B); font-weight: 600; text-decoration: none; }
.el-card a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq { padding: 56px 0 72px; }
.faq-wrap { max-width: 720px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  margin-bottom: 10px; padding: 0 18px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 15px 0; font-weight: 600; font-size: .96rem;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.2rem; color: var(--muted); transition: transform .15s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }

/* ---------- footer ---------- */
.site-footer { background: #2E2B26; color: #CFC7B8; padding: 40px 0 48px; }
.site-footer .container { display: flex; flex-direction: column; gap: 16px; }
.disclaimer { font-size: .8rem; line-height: 1.6; color: #B5AD9C; max-width: 60em; margin: 0; }
.disclaimer-sm { font-size: .76rem; color: var(--muted); margin: 0; line-height: 1.5; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: #CFC7B8; font-size: .85rem; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { margin: 0; font-size: .82rem; color: #9C9484; }

/* ============================================================
   RESULT VIEW
   ============================================================ */
.result-main { padding: 36px 0 64px; }
.result-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.result-col { display: flex; flex-direction: column; gap: 22px; }

/* reveal card */
.reveal-card {
  border-radius: 24px; padding: 40px 34px; text-align: center;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--e-tint), transparent 60%),
    linear-gradient(160deg, #fff, var(--e-soft));
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(43, 43, 43, .08);
  animation: revealIn .7s cubic-bezier(.2, .8, .25, 1) both;
}
@keyframes revealIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.reveal-kicker { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.reveal-icon { font-size: 4.2rem; line-height: 1; animation: glowPulse 2.4s ease-in-out infinite; }
@keyframes glowPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 0 var(--e-glow)); }
  50% { transform: scale(1.08); filter: drop-shadow(0 0 18px var(--e-glow)); }
}
.reveal-card h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); color: var(--e-deep); margin: 10px 0 2px; }
.reveal-tagline { font-size: 1.1rem; color: var(--e); font-weight: 600; margin: 0 0 6px; }
.reveal-ganzi { font-size: .86rem; color: var(--muted); margin: 0 0 16px; }
.reveal-card blockquote {
  margin: 0 auto 18px; max-width: 26em; font-family: Georgia, serif; font-style: italic;
  font-size: 1.12rem; color: #3E3A32; border-left: 3px solid var(--e); padding-left: 14px; text-align: left;
}
.traits { list-style: none; padding: 0; margin: 0 auto 18px; max-width: 28em; display: flex; flex-direction: column; gap: 8px; }
.traits li {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: .92rem;
}
.reveal-note { font-size: .76rem; color: var(--muted); margin: 0; }

/* year chip */
.year-chip {
  background: #fff; border: 1px dashed var(--line); border-radius: 14px;
  padding: 14px 18px; font-size: .88rem; color: #4B473F;
}

/* gate card */
.gate-card {
  border: 2px solid var(--e); border-radius: 20px; padding: 26px 26px 22px;
  background: #fff; box-shadow: 0 8px 26px rgba(43, 43, 43, .06);
}
.gate-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.gate-sub { color: var(--muted); font-size: .9rem; margin: 0 0 14px; }
.gate-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.gate-list li { font-size: .92rem; }
.gate-list li::first-letter { }
#gateForm { display: flex; gap: 10px; }
#gateForm input { flex: 1; }
#gateForm .btn { white-space: nowrap; }

/* profile */
.profile-card {
  border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 26px;
  animation: revealIn .5s ease both;
}
.profile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.profile-head h3 { font-size: 1.25rem; margin: 0; }
.p-chip {
  font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
  color: var(--e-deep); background: var(--e-soft); padding: 4px 12px; border-radius: 999px;
}
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.p-block { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.p-block.p-wide { grid-column: 1 / -1; }
.p-block h4 { font-size: .86rem; margin: 0 0 8px; color: var(--e-deep); }
.p-block ul { margin: 0; padding-left: 18px; font-size: .88rem; color: #4B473F; }
.p-block p { margin: 0; font-size: .88rem; color: #4B473F; }
.p-block li + li { margin-top: 4px; }

/* share */
.share-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.share-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.share-preview {
  border-radius: 14px; overflow: hidden; margin-bottom: 14px;
  border: 1px solid var(--line); aspect-ratio: 16 / 9;
}
.share-visual {
  height: 100%; padding: 18px 22px; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(140deg, var(--e-deep), var(--e) 70%);
  color: #fff; font-family: Georgia, serif;
}
.share-visual .sv-top { font-size: 2rem; line-height: 1; }
.share-visual .sv-msg { font-size: clamp(1rem, 2.4vw, 1.35rem); line-height: 1.3; margin: 4px 0; }
.share-visual .sv-quote { font-size: .78rem; font-style: italic; opacity: .9; }
.share-visual .sv-brand { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.share-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* aside */
.aside-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 20px;
}
.aside-card h3 { font-size: 1.02rem; margin-bottom: 12px; }
.aside-link {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px dashed var(--line);
  text-decoration: none; font-size: .9rem; color: #3E3A32;
}
.aside-link:last-child { border-bottom: 0; }
.aside-link span { color: var(--e); font-weight: 700; }
.aside-link:hover { color: var(--e); }
.product-card { border: 2px solid var(--e); text-align: center; }
.product-emoji { font-size: 2.6rem; margin-bottom: 4px; }
.product-card h3 { color: var(--e-deep); }
.product-card p { font-size: .88rem; color: #4B473F; margin: 0 0 14px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: #2B2B2B; color: #fff; padding: 12px 20px; border-radius: 999px;
  font-size: .88rem; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  z-index: 100; max-width: 88vw; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 32px; }
  .test-card { padding: 26px 20px; }
  #gateForm { flex-direction: column; }
  .reveal-card { padding: 30px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   V2 — QUIZ (T3), DEEP DIVE, REPORT UPSELL, LANG TOGGLE
   ============================================================ */

/* language toggle */
.lang-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn {
  border: 0; background: #fff; color: var(--muted); font-size: .78rem; font-weight: 700;
  padding: 6px 12px; cursor: pointer; letter-spacing: .03em;
}
.lang-btn.is-active { background: var(--e, var(--brand)); color: #fff; }

/* quiz entry link (hero) */
.quiz-entry {
  display: inline-block; margin: 0 0 18px; padding: 0; border: 0; background: none;
  color: var(--e, #C73E2E); font-size: .95rem; font-weight: 600; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.quiz-entry:hover { color: var(--e-deep, #8F2B1F); }

/* quiz view */
.quiz-section { padding: 48px 0 72px; }
.quiz-wrap { max-width: 640px; }
.quiz-head { text-align: center; margin-bottom: 26px; }
.quiz-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
.quiz-head .sub { color: var(--muted); margin: 0; }
.quiz-box {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 30px 28px 24px; box-shadow: 0 10px 34px rgba(43, 43, 43, .06);
  animation: revealIn .45s ease both;
}
.quiz-progress { height: 8px; background: var(--paper); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.quiz-progress-bar { height: 100%; width: 0; background: var(--e, var(--brand)); border-radius: 999px; transition: width .3s ease; }
.quiz-count { font-size: .78rem; color: var(--muted); margin: 0 0 14px; text-align: right; }
.quiz-q { font-size: 1.22rem; margin: 0 0 18px; font-family: Georgia, serif; }
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  text-align: left; padding: 14px 18px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); font-size: .95rem; color: var(--ink);
  transition: transform .1s ease, border-color .12s ease, background .12s ease;
}
.quiz-option:hover { transform: translateX(4px); border-color: var(--e, var(--brand)); background: #fff; }
.quiz-option:focus-visible { outline: 2px solid var(--e, var(--brand)); outline-offset: 1px; }
.quiz-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; min-height: 42px; }
.quiz-hint { font-size: .82rem; color: var(--muted); }

/* quiz nudge on result page (quiz mode) */
.quiz-nudge {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  justify-content: space-between;
}

/* report upsell card */
.report-card { text-align: center; border-color: var(--e) !important; }
.report-emoji { font-size: 2.2rem; margin-bottom: 4px; }
.report-card h3 { color: var(--e-deep); font-size: 1.05rem; }
.report-card p { font-size: .88rem; color: #4B473F; margin: 0 0 14px; }

/* deep dive */
.dd-main { padding: 34px 0 72px; }
.dd-wrap { max-width: 860px; }
.dd-back { margin-bottom: 22px; }
.dd-head { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.dd-icon {
  font-size: 3.4rem; line-height: 1; flex-shrink: 0;
  filter: drop-shadow(0 6px 16px var(--e-glow));
}
.dd-kicker { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.dd-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); color: var(--e-deep); margin: 0 0 4px; }
.dd-cn { margin: 0; color: var(--e); font-weight: 600; }
.dd-opening {
  background: linear-gradient(160deg, #fff, var(--e-soft));
  border: 1px solid var(--line); border-radius: 18px;
  padding: 24px 26px; font-size: 1.02rem; line-height: 1.7; margin: 0 0 20px;
}
.dd-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.dd-nav-btn {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 8px 16px; font-size: .88rem; cursor: pointer; color: var(--ink);
  transition: border-color .12s ease, transform .12s ease;
}
.dd-nav-btn:hover { transform: translateY(-2px); border-color: var(--ec, var(--e, var(--brand))); }
.dd-nav-btn.is-active { border-color: var(--e, var(--brand)); background: var(--e-soft, #E9F2EC); color: var(--e-deep, #1E5A37); font-weight: 600; }
.dd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.dd-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px;
}
.dd-card h3 { font-size: 1.02rem; margin: 0 0 10px; color: var(--e-deep); }
.dd-card p { margin: 0; font-size: .95rem; color: #4B473F; line-height: 1.65; }
.dd-card ul { margin: 0; padding-left: 18px; font-size: .92rem; color: #4B473F; columns: 2; column-gap: 26px; }
.dd-card li + li { margin-top: 4px; }
.dd-card.dd-wide { grid-column: 1 / -1; }
.dd-upsell {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: #fff; border: 2px solid var(--e); border-radius: 18px; padding: 24px 26px;
  box-shadow: 0 8px 26px rgba(43, 43, 43, .06);
}
.dd-upsell-text { flex: 1; min-width: 240px; }
.dd-upsell h3 { font-size: 1.12rem; margin: 0 0 6px; color: var(--e-deep); }
.dd-upsell p { margin: 0; font-size: .9rem; color: #4B473F; }
.dd-disclaimer { text-align: center; margin-top: 26px; }

@media (max-width: 640px) {
  .dd-head { flex-direction: column; text-align: center; }
  .dd-grid { grid-template-columns: 1fr; }
  .dd-card ul { columns: 1; }
  .quiz-box { padding: 24px 18px; }
  .lang-btn { padding: 5px 9px; }
}

/* ============================================================
   V2.1 — GENERATING / OVERCOMING CYCLES CARD (result aside)
   ============================================================ */
.cycles-card { padding: 20px 20px 18px; }
.cycles-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.cycles-head h3 { font-size: 1.02rem; margin: 0 0 2px; }
.cycles-hint { font-size: .74rem; color: var(--muted); margin: 0; }
.cycles-toggle { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex-shrink: 0; }
.cycle-mode {
  border: 0; background: #fff; color: var(--muted); font-size: .74rem; font-weight: 700;
  padding: 6px 11px; cursor: pointer; letter-spacing: .01em;
}
.cycle-mode.is-active { background: var(--e, var(--brand)); color: #fff; }
.cycles-diagram { display: flex; justify-content: center; margin-bottom: 8px; }
#cyclesSvg { width: min(240px, 100%); height: auto; }
.cy-node { cursor: pointer; }
.cy-node text { pointer-events: none; user-select: none; }
.cy-pulse {
  transform-box: fill-box; transform-origin: center;
  animation: cyPulse 1.9s ease-out infinite;
}
@keyframes cyPulse {
  0%   { opacity: .9; transform: scale(.82); }
  70%  { opacity: 0;  transform: scale(1.28); }
  100% { opacity: 0;  transform: scale(1.28); }
}
.cycles-caption {
  text-align: center; font-weight: 700; font-size: .92rem;
  color: var(--e-deep, #1E5A37); margin: 0 0 8px; line-height: 1.5;
}
.cycles-line { text-align: center; font-size: .75rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* ============================================================
   V2.1 — EDGE DETAIL BOX + DEEP-DIVE RELATIONSHIP WEB
   ============================================================ */
.cy-edge { cursor: pointer; }
.cycles-detail {
  display: none;
  background: var(--e-soft); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; font-size: .84rem; line-height: 1.5; color: #4B473F;
  margin: 0 0 10px; text-align: left;
}
.cycles-detail.show { display: block; animation: revealIn .25s ease both; }
.cycles-detail strong { display: block; color: var(--e-deep); font-size: .88rem; margin-bottom: 2px; }
.cycles-detail .cy-foot { display: block; margin-top: 6px; font-weight: 700; color: var(--e-deep); }

/* deep-dive relationship web */
.dd-web { margin-bottom: 22px; }
.dd-web-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.dd-web-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.dd-web-head h3 { font-size: 1.1rem; margin: 0 0 2px; color: var(--e-deep); }
.dd-web-grid { display: grid; grid-template-columns: 250px 1fr; gap: 18px; align-items: center; }
.dd-web-list { display: flex; flex-direction: column; gap: 8px; }
.dd-web-row {
  display: flex; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 10px 14px; font-size: .9rem; color: #3E3A32; font-weight: 600;
}
.dd-web-icon { font-size: 1.15rem; line-height: 1; }
@media (max-width: 720px) {
  .dd-web-grid { grid-template-columns: 1fr; }
  .dd-web-list { order: -1; }
}

.cycles-detail .cy-balance {
  display: block; margin-top: 6px; font-size: .8rem; color: #4B473F;
  border-left: 3px solid var(--e, #C73E2E); padding-left: 8px;
}

/* ============================================================
   V2.2 — DAILY BALANCE EMAIL HOOK + SAMPLE EMAIL MODAL
   ============================================================ */
.daily-card {
  background: linear-gradient(160deg, #fff, var(--e-soft));
  border: 1px solid var(--line); border-radius: 20px; padding: 24px 26px;
  box-shadow: 0 8px 26px rgba(43, 43, 43, .06);
}
.daily-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.daily-head h3 { font-size: 1.2rem; margin: 0 0 2px; color: var(--e-deep); }
.daily-sub { margin: 0; font-size: .84rem; color: var(--muted); }
.daily-icon { font-size: 1.9rem; line-height: 1; }
.daily-tip {
  background: #fff; border: 1px dashed var(--e); border-radius: 14px;
  padding: 14px 18px; margin-bottom: 14px;
}
.daily-tip-label { margin: 0 0 4px; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.daily-tip-text { margin: 0; font-size: 1.02rem; font-family: Georgia, serif; font-style: italic; color: #3E3A32; }
.daily-form { display: flex; gap: 10px; }
.daily-form input { flex: 1; padding: 12px 14px; border: 1px solid #D8CCB4; border-radius: 12px; font-size: 1rem; background: #fff; }
.daily-form input:focus { outline: 2px solid var(--e); outline-offset: 1px; border-color: transparent; }
.daily-form .btn { white-space: nowrap; }
.daily-success { font-weight: 600; color: var(--e-deep); font-size: .92rem; margin: 4px 0 0; }
.daily-sample {
  display: inline-block; margin-top: 12px; padding: 0; border: 0; background: none;
  color: var(--e); font-size: .86rem; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.daily-sample:hover { color: var(--e-deep); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30, 26, 20, .55); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; width: min(560px, 94vw); max-height: 86vh; overflow: auto;
  background: var(--paper); border-radius: 18px; padding: 26px 28px;
  box-shadow: 0 24px 60px rgba(0,0,0,.3); animation: revealIn .3s ease both;
}
.modal-close {
  position: absolute; top: 12px; right: 14px; border: 0; background: none;
  font-size: 1.1rem; color: var(--muted); cursor: pointer; padding: 6px;
}
.modal-kicker { margin: 0 0 12px; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.mock-email { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.me-from { margin: 0 0 4px; font-size: .8rem; color: var(--muted); }
.me-subject { margin: 0 0 14px; font-size: .95rem; font-weight: 700; color: var(--ink); }
.me-body p { margin: 0 0 10px; font-size: .92rem; color: #3E3A32; }
.me-body .me-tip { font-family: Georgia, serif; font-style: italic; font-size: 1.05rem; color: var(--e-deep); border-left: 3px solid var(--e); padding-left: 12px; }
.me-body .me-foot { font-size: .76rem; color: var(--muted); margin-top: 14px; }
@media (max-width: 560px) {
  .daily-form { flex-direction: column; }
  .daily-card { padding: 20px 18px; }
}

/* ============================================================
   V2.3 — MOBILE NAV (hamburger) + small-screen polish
   ============================================================ */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 9px 6px; cursor: pointer; margin-left: auto;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .15s ease, opacity .15s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; padding: 6px 20px 14px; border-top: 1px solid var(--line); background: rgba(250,246,239,.98); }
.mobile-menu a { padding: 13px 4px; text-decoration: none; color: var(--ink); font-size: 1rem; border-bottom: 1px dashed var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .mobile-menu:not([hidden]) { display: flex; }
}
@media (max-width: 640px) {
  #headerCta { display: none; }
}
/* larger tap targets on touch */
@media (max-width: 920px) {
  .chip { padding: 10px 16px; }
  .quiz-option { padding: 15px 18px; }
  .cycle-mode { padding: 7px 12px; }
  .lang-btn { padding: 7px 11px; }
}

/* shop card: stacked real links */
.product-card .btn-block + .btn-block { margin-top: 8px; }

/* ============================================================
   COMPLETE BaZi REPORT (modal + print-to-PDF)
   ============================================================ */
.report-modal .modal-box { max-width: 720px; }
.report-box { padding: 28px 30px; }
#reportContent .rp-head { text-align: center; margin-bottom: 18px; border-bottom: 2px solid var(--e); padding-bottom: 14px; }
.rp-brand { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
#reportContent h2 { font-size: 1.5rem; color: var(--e-deep); margin: 6px 0 4px; }
.rp-meta { margin: 0; font-size: .85rem; color: var(--muted); }
.rp-note { text-align: center; padding: 26px 0; color: #4B473F; }
.rp-note p { margin: 0 0 14px; }
.rp-sec { margin: 0 0 20px; }
.rp-sec h3 { font-size: 1.05rem; color: var(--e-deep); margin: 0 0 10px; }
.rp-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rp-pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 10px; text-align: center;
}
.rp-pillar.is-day { border: 2px solid var(--e); background: var(--e-soft); }
.rp-pillar.is-missing { opacity: .55; }
.rp-p-label { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.rp-p-gan { display: block; font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: 2px 0; }
.rp-p-el { display: block; font-size: .74rem; color: var(--muted); }
.rp-p-tag { display: inline-block; margin-top: 6px; font-size: .68rem; font-weight: 700; color: var(--e-deep); background: #fff; border: 1px solid var(--e); border-radius: 999px; padding: 2px 8px; }
.rp-p-tag.rp-p-warn { color: #B57F26; border-color: #B57F26; }
.rp-dist { display: flex; flex-direction: column; gap: 8px; }
.rp-dist-row { display: flex; align-items: center; gap: 10px; }
.rp-dist-name { width: 110px; font-size: .88rem; font-weight: 600; }
.rp-dist-bar { flex: 1; height: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.rp-dist-fill { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.rp-dist-n { width: 24px; text-align: right; font-weight: 700; font-size: .85rem; }
.rp-verdict { margin: 12px 0 0; font-size: .9rem; color: #4B473F; border-left: 3px solid var(--e); padding-left: 10px; }
.rp-quote { font-family: Georgia, serif; font-style: italic; font-size: 1.02rem; color: var(--e-deep); margin: 0 0 10px; }
.rp-traits { margin: 0; padding-left: 18px; font-size: .9rem; color: #4B473F; }
.rp-traits li + li { margin-top: 4px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rp-table td { padding: 6px 8px; border-bottom: 1px dashed var(--line); color: #4B473F; }
.rp-table .rp-td-k { font-weight: 600; color: var(--e-deep); width: 40%; }
.rp-balance { background: var(--e-soft); border-radius: 10px; padding: 10px 14px; margin-top: 10px; }
.rp-balance strong { color: var(--e-deep); font-size: .9rem; }
.rp-balance p { margin: 4px 0 0; font-size: .88rem; color: #4B473F; line-height: 1.6; }
.rp-tip { font-family: Georgia, serif; font-style: italic; color: var(--e-deep); margin: 0; }
.rp-disclaimer { margin: 18px 0 0; font-size: .72rem; color: var(--muted); line-height: 1.5; }
.report-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }

/* print: only the report */
@media print {
  body.report-print * { visibility: hidden; }
  body.report-print #reportModal, body.report-print #reportModal * { visibility: visible; }
  body.report-print #reportModal {
    position: absolute; left: 0; top: 0; width: 100%; padding: 0; display: block !important;
  }
  body.report-print .report-box { max-height: none; box-shadow: none; width: 100%; }
  body.report-print .report-actions, body.report-print .modal-close, body.report-print .modal-backdrop { display: none !important; }
}
@media (max-width: 640px) {
  .rp-pillars { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   V2.4 — COMPACT ICON SHARE BUTTONS (copy + X/FB/INS/PIN)
   ============================================================ */
.share-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 2px; }
.share-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; padding: 0;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.share-btn svg { width: 20px; height: 20px; fill: currentColor; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(43,43,43,.12); }
.share-btn:active { transform: translateY(0); }
.share-x   { color: #0F1419; }
.share-fb  { color: #1877F2; }
.share-ig  { color: #E4405F; }
.share-pin { color: #E60023; }

/* ============================================================
   V2.5 — ELEMENT-THEMED SHARE + GENERATING-CYCLE SHOP SUGGESTIONS
   ============================================================ */
/* share card: element accent */
.share-card { border-top: 3px solid var(--e); }
.share-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.share-head h3 { margin: 0; }
.share-chip {
  background: var(--e-soft); color: var(--e-deep); border: 1px solid var(--e);
  border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: .8rem; white-space: nowrap;
}
#copyShare { color: var(--e); }
.share-btn:hover { border-color: var(--e); box-shadow: 0 4px 12px var(--e-glow); }
.share-card .fineprint strong { color: var(--e); }

/* shop: generating-cycle nurture suggestions */
.shop-feed-title {
  margin: 14px 0 8px; font-size: .78rem; font-weight: 700; color: var(--e-deep);
  letter-spacing: .02em;
}
.btn-feed {
  background: var(--e-soft); border: 1px dashed var(--e); color: var(--e-deep);
}
.btn-feed:hover { background: #fff; border-style: solid; }
.product-card .btn-block + .btn-block { margin-top: 8px; }
