/* ==========================================================================
   WuWay — Elemental Vibe design system
   --------------------------------------------------------------------------
   Ink-wash backdrop · glassmorphism · Cormorant Garamond display + Jost body.
   Warm parchment palette derived from the Elemental Vibe concept art.
   ========================================================================== */

:root {
  /* ---- canvas ---- */
  --paper: #F3EDE1;
  --paper-2: #EFE7D9;
  --surface: #FDFBF6;
  --surface-2: #FAF6EE;

  /* ---- ink ---- */
  --ink: #3E4433;
  --ink-2: #4A4A38;
  --body-c: #6B6650;
  --muted: #8A846B;
  --hair: rgba(138, 132, 107, .22);
  --hair-soft: rgba(138, 132, 107, .14);

  /* ---- accents ---- */
  --forest: #5A6B4F;
  --forest-2: #4C5C43;
  --accent: #C1704E;
  --accent-h: #B5654A;
  --accent-soft: rgba(193, 112, 78, .14);
  --gold: #C19A6B;

  /* ---- elements ---- */
  --wood: #7C8A63;
  --wood-soft: rgba(124, 138, 99, .16);
  --fire: #C1704E;
  --fire-soft: rgba(193, 112, 78, .16);
  --earth: #C19A6B;
  --earth-soft: rgba(193, 154, 107, .18);
  --metal: #9AA0A0;
  --metal-soft: rgba(154, 160, 160, .2);
  --water: #7C97A5;
  --water-soft: rgba(124, 151, 165, .18);

  /* ---- radii ---- */
  --r-card: 26px;
  --r-btn: 999px;
  --r-input: 14px;
  --r-sm: 12px;

  /* ---- shadows ---- */
  --sh-card: 0 24px 60px rgba(90, 80, 50, .10), inset 0 1px 0 rgba(255, 255, 255, .8);
  --sh-soft: 0 10px 30px rgba(90, 80, 50, .08);
  --sh-accent: 0 10px 30px rgba(193, 112, 78, .32);
  --sh-forest: 0 8px 24px rgba(90, 107, 79, .32);

  /* ---- type ---- */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, -apple-system, BlinkMacSystemFont, sans-serif;

  --wrap: 1152px;      /* max-w-6xl */
  --wrap-narrow: 760px;
}

/* ============================== reset ============================== */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ink-wash backdrop, fixed behind everything */
.ink-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #F3EDE1;
  background-image:
    linear-gradient(180deg,
      rgba(243, 237, 225, .84) 0%,
      rgba(243, 237, 225, .68) 45%,
      rgba(239, 231, 217, .92) 100%),
    url("../assets/ink-landscape.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

@media (max-width: 720px) {
  .ink-layer { background-position: center top; background-size: auto 100%; }
}

img, svg { max-width: 100%; display: block; }

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

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: rgba(193, 112, 78, .18); }

/* ============================== type ============================== */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.35rem, 7.2vw, 4.6rem); line-height: 1.04; }
h2 { font-size: clamp(1.7rem, 4.6vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.2; }

p { margin: 0 0 1.1em; }

hr { border: 0; border-top: 1px solid var(--hair); margin: 2.4rem 0; }

.lede { font-size: clamp(1.02rem, 1.55vw, 1.07rem); color: var(--body-c); max-width: 60ch; line-height: 1.72; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.tiny { font-size: .79rem; line-height: 1.6; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .82em; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

.accent-text { color: var(--accent-h); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================== layout ============================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding: 72px 0; position: relative; z-index: 1; }
.section-tight { padding: 44px 0; }

/* offset in-page anchors for the fixed header */
section[id] { scroll-margin-top: 96px; }

.page-top { padding-top: 132px; }

@media (max-width: 720px) {
  .section { padding: 52px 0; }
  .page-top { padding-top: 108px; }
}

/* ============================== eyebrow ============================== */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .69rem;
  font-weight: 600;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.1rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--accent);
  flex: none;
}

.eyebrow.is-plain::before { display: none; }
.eyebrow.is-accent { color: var(--accent); }
.eyebrow.is-accent::before { background: var(--accent); }
.eyebrow.is-center { justify-content: center; }

/* ============================== header ============================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .5s ease, box-shadow .5s ease, backdrop-filter .5s ease;
}

.site-header.is-stuck {
  background: linear-gradient(180deg, rgba(246, 241, 231, .88), rgba(246, 241, 231, .68));
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: 0 4px 30px rgba(90, 80, 50, .08);
}

.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

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

.brand-mark { width: 30px; height: 30px; flex: none; color: var(--forest); }

.brand-meta { display: flex; flex-direction: column; gap: 0; min-width: 0; }

.brand-name {
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: .015em;
  line-height: 1.05;
  color: var(--ink);
}

.brand-name em { font-style: normal; color: var(--accent-h); }

.brand-pron {
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

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

.nav a {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: #5C5741;
  transition: color .2s ease;
}

.nav a:hover { color: var(--accent-h); }

.nav .nav-cta {
  padding: 10px 24px;
  border-radius: var(--r-btn);
  background: var(--accent);
  color: #FBF7EF;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(193, 112, 78, .35);
  transition: transform .2s ease, background .2s ease;
}

.nav .nav-cta:hover { background: var(--accent-h); transform: scale(1.03); }

.nav-toggle { display: none; }

@media (max-width: 980px) {
  .nav a:not(.nav-cta) { display: none; }
  .nav { gap: 12px; }
}

/* ============================== buttons ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--accent);
  color: #FBF7EF;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .015em;
  cursor: pointer;
  box-shadow: var(--sh-accent);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), background .22s ease, opacity .2s ease;
  text-align: center;
}

.btn:hover { transform: scale(1.025); background: var(--accent-h); }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-lg { padding: 18px 40px; font-size: 1rem; }
.btn-sm { padding: 11px 22px; font-size: .84rem; }
.btn-block { width: 100%; }

.btn-forest { background: var(--forest); box-shadow: var(--sh-forest); }
.btn-forest:hover { background: var(--forest-2); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1px solid var(--hair);
}

.btn-ghost:hover { background: rgba(255, 255, 255, .55); border-color: var(--accent); color: var(--accent-h); transform: none; }

.btn-gold { background: linear-gradient(135deg, #CBA871, #B98F55); color: #FFFDFA; }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 600;
  color: #5C5741;
  transition: color .2s ease;
}

.link-arrow:hover { color: var(--accent-h); }

.link-arrow .la-ring {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(138, 132, 107, .25);
  transition: border-color .2s ease, color .2s ease;
}

.link-arrow:hover .la-ring { border-color: var(--accent); color: var(--accent); }

/* ============================== glass card ============================== */
.glass {
  background: linear-gradient(135deg, rgba(255, 253, 248, .74), rgba(250, 246, 238, .54));
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, .65);
  box-shadow: var(--sh-card);
  border-radius: var(--r-card);
  padding: 34px;
  position: relative;
  overflow: hidden;
}

.glass-flat { border-radius: var(--r-card); }

@media (max-width: 640px) {
  .glass { padding: 24px; border-radius: 22px; }
}

.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 30px; }
.card-quiet { background: rgba(253, 251, 246, .7); }
.card-pad-lg { padding: 38px; }

@media (max-width: 600px) {
  .card { padding: 22px; border-radius: 20px; }
  .card-pad-lg { padding: 26px; }
}

/* soft aura blobs used inside glass cards */
.aura { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.aura-wood { background: rgba(124, 138, 99, .16); }
.aura-fire { background: rgba(193, 112, 78, .16); }
.aura-earth { background: rgba(193, 154, 107, .18); }
.aura-metal { background: rgba(154, 160, 160, .18); }
.aura-water { background: rgba(124, 151, 165, .16); }

/* ============================== hero ============================== */
.hero {
  position: relative;
  z-index: 1;
  padding: 152px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero { padding: 118px 0 24px; }
}

.hero h1 { margin-bottom: 22px; }
.hero h1 .accent { color: var(--accent-h); display: block; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 36px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .01em;
}

.trust-item svg { width: 15px; height: 15px; flex: none; color: var(--wood); }

/* ============================== wheel ============================== */
.wheel-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 380px;
}

.wheel {
  position: relative;
  user-select: none;
  max-width: 100%;
  /* column layout so the caption is laid out BELOW the svg, never on top of it.
     The node labels live inside the svg box (down to ~viewport y 196 of 230),
     so anything positioned over the wheel's lower half will collide with them. */
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.wheel svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* The rotor spins via SMIL inside js/wheel.js — not CSS.
   `transform-box: view-box` plus an absolute transform-origin reads as correct
   but Chrome resolves it against the element box, so the rotor orbited the
   SVG's TOP-LEFT corner instead of the wheel center: the lotus drifted onto the
   Fire node and collided with it on hover. Do NOT re-add a CSS animation here;
   the SMIL `animateTransform` owns the rotor's transform and the two would
   fight. Reduced motion is handled in JS (prefersReducedMotion). */

.wheel-node { cursor: pointer; }

.wheel-node circle,
.wheel-node text { transition: all .35s cubic-bezier(.22, 1, .36, 1); }

/* ---------------------------------------------------------------- caption
   In-flow, not absolutely positioned.

   It used to be `position:absolute; bottom:4%` inside the wheel, which put it
   at y 979-1058 while the Earth and Metal node labels sat at y 1024-1049 — so
   the element name, its trait and its description landed straight on top of
   two other labels at 375px.

   Now it is its own block under the svg, with a reserved min-height so the
   layout does not jump as the text changes length, and an overflow guard so a
   long description can never spill out of the card. */
.wheel-caption {
  width: 100%;
  max-width: 340px;
  margin-top: 18px;
  padding: 14px 16px;
  text-align: center;
  box-sizing: border-box;
  border-radius: var(--r-sm);
  background: rgba(253, 251, 246, .72);
  border: 1px solid var(--hair-soft);
  /* reserved room for 2 title lines + 4 description lines: the tallest real
     combination, so the block never grows mid-interaction */
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* overflow guard */
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  transition: opacity .35s ease;
}

.wheel-caption .wc-name {
  font-family: var(--display);
  font-size: 1.22rem;
  line-height: 1.25;
  color: var(--ink-2);
  /* the trait sits inline after the name; let it wrap rather than push out */
  overflow-wrap: anywhere;
}

.wheel-caption .wc-name .wc-trait {
  font-family: var(--sans);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: normal;
}

.wheel-caption .wc-text {
  font-size: .82rem;
  line-height: 1.55;
  color: var(--body-c);
  margin-top: 6px;
  overflow-wrap: anywhere;
}

.wheel-caption .wc-hint {
  font-size: .78rem;
  line-height: 1.5;
  color: var(--muted);
}

/* ============================== segmented harmony bar ============================== */
.seg-bar {
  display: flex;
  height: 14px;
  width: 100%;
  border-radius: var(--r-btn);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(90, 80, 50, .08);
}

.seg-bar span {
  height: 100%;
  transition: width 1.1s cubic-bezier(.22, 1, .36, 1);
}

/* ============================== element bars ============================== */
.bars { display: flex; flex-direction: column; gap: 18px; }

.bar-row {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) 56px;
  gap: 16px;
  align-items: center;
}

@media (max-width: 620px) {
  .bar-row {
    grid-template-columns: minmax(0, 1fr) 52px;
    grid-template-areas: "label pct" "track track";
    gap: 6px 10px;
  }
  .bar-row .bar-label { grid-area: label; }
  .bar-row .bar-pct { grid-area: pct; }
  .bar-row .bar-track { grid-area: track; margin-top: 4px; }
}

.bar-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-2);
}

.bar-label .el-icon { width: 18px; height: 18px; flex: none; }
.bar-label .el-cn { font-size: .7rem; color: var(--muted); font-weight: 400; }

.bar-track {
  position: relative;
  height: 13px;
  border-radius: var(--r-btn);
  background: rgba(138, 132, 107, .14);
  overflow: hidden;
}

.bar-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: var(--r-btn); }

.bar-fill.f-wood { background: var(--wood); }
.bar-fill.f-fire { background: var(--fire); }
.bar-fill.f-earth { background: var(--earth); }
.bar-fill.f-metal { background: var(--metal); }
.bar-fill.f-water { background: var(--water); }

.bar-pct {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* ============================== element dots / chips ============================== */
.el-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

.el-wood { background: var(--wood); }
.el-fire { background: var(--fire); }
.el-earth { background: var(--earth); }
.el-metal { background: var(--metal); }
.el-water { background: var(--water); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 11px;
  border-radius: var(--r-btn);
  border: 1px solid var(--hair);
  background: rgba(253, 251, 246, .8);
  font-size: .78rem;
  font-weight: 500;
  color: #5C5741;
}

.chip-solid { border-color: transparent; color: #FBF7EF; }
.chip-wood.chip-solid { background: var(--wood); }
.chip-fire.chip-solid { background: var(--fire); }
.chip-earth.chip-solid { background: var(--earth); }
.chip-metal.chip-solid { background: #8F9696; }
.chip-water.chip-solid { background: var(--water); }

/* ============================== stat / pillar / dim ============================== */
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

@media (max-width: 700px) { .stat-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; } }

.stat {
  background: linear-gradient(135deg, rgba(255, 253, 248, .8), rgba(250, 246, 238, .6));
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; }
.stat.s-wood::before { background: var(--wood); }
.stat.s-fire::before { background: var(--fire); }
.stat.s-earth::before { background: var(--earth); }
.stat.s-metal::before { background: var(--metal); }
.stat.s-water::before { background: var(--water); }

.stat .k {
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}

.stat .v { font-family: var(--display); font-size: 1.62rem; font-weight: 600; line-height: 1.12; margin-bottom: 8px; color: var(--ink); }
.stat .d { font-size: .86rem; color: var(--body-c); line-height: 1.6; }

.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }

@media (max-width: 640px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.pillar {
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 20px 14px;
  text-align: center;
  background: rgba(253, 251, 246, .72);
  min-width: 0;
}

.pillar .p-head {
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.pillar .p-chars { font-family: var(--display); font-size: 1.8rem; line-height: 1.2; margin-bottom: 10px; letter-spacing: .04em; }

.pillar .p-el { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 8px; font-size: .72rem; color: var(--body-c); }

@media (max-width: 430px) {
  .pillar { padding: 14px 9px; }
  .pillar .p-chars { font-size: 1.5rem; }
  .pillar .p-el .chip { padding: 3px 9px 3px 7px; font-size: .67rem; gap: 5px; }
  .pillar .p-el .el-dot { width: 8px; height: 8px; }
}

.dim-list { display: grid; gap: 16px; }

.dim {
  background: linear-gradient(135deg, rgba(255, 253, 248, .78), rgba(250, 246, 238, .56));
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 24px;
}

.dim-top { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.dim-name { font-family: var(--display); font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.dim-cn { font-size: .74rem; color: var(--muted); margin-left: 9px; font-family: var(--sans); }
.dim p { font-size: .9rem; color: var(--body-c); margin: 0 0 .6em; line-height: 1.72; }
.dim p:last-child { margin-bottom: 0; }

.dim-level {
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: var(--r-btn);
}

.lv-high { background: var(--fire-soft); color: #9A5334; }
.lv-mid { background: var(--earth-soft); color: #8A6A3C; }
.lv-low { background: var(--water-soft); color: #4F6B7A; }

/* ============================== notices / callout ============================== */
.notice {
  display: flex;
  gap: 13px;
  padding: 16px 19px;
  border-radius: 16px;
  font-size: .87rem;
  line-height: 1.65;
  border: 1px solid;
  backdrop-filter: blur(8px);
}

.notice svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }
.notice-info { background: var(--water-soft); border-color: rgba(124, 151, 165, .32); color: #47616E; }
.notice-warn { background: var(--earth-soft); border-color: rgba(193, 154, 107, .38); color: #7D6034; }
.notice-good { background: var(--wood-soft); border-color: rgba(124, 138, 99, .34); color: #4E5C3D; }

.callout {
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(193, 112, 78, .09), rgba(193, 112, 78, 0));
  padding: 20px 24px;
  border-radius: 0 16px 16px 0;
  margin: 26px 0;
  font-size: .95rem;
  color: var(--body-c);
  line-height: 1.72;
}

.callout strong { color: var(--ink); }

/* ============================== how-it-works steps ============================== */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }

@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }

.step {
  background: linear-gradient(135deg, rgba(255, 253, 248, .78), rgba(250, 246, 238, .56));
  border: 1px solid var(--hair);
  border-radius: 22px;
  padding: 28px;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.step:hover { transform: translateY(-6px); }

.step .s-num { font-family: var(--display); font-style: italic; font-size: .98rem; color: var(--accent); display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.28rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--body-c); margin: 0; line-height: 1.7; }

/* ============================== element cards ============================== */
.el-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }

@media (max-width: 900px) { .el-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .el-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.el-card {
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 253, 248, .78), rgba(250, 246, 238, .56));
  padding: 24px 18px;
  text-align: center;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
}

.el-card:hover { transform: translateY(-6px); }

.el-card .ec-icon { width: 30px; height: 30px; margin: 0 auto 14px; }
.el-card .ec-name { font-family: var(--display); font-size: 1.24rem; font-weight: 600; }
.el-card .ec-cn { font-family: var(--display); font-size: .84rem; color: var(--muted); margin-bottom: 3px; }
.el-card .ec-trait { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.el-card .ec-desc { font-size: .82rem; color: var(--body-c); line-height: 1.65; }

.el-card.k-wood .ec-icon { color: var(--wood); }
.el-card.k-fire .ec-icon { color: var(--fire); }
.el-card.k-earth .ec-icon { color: var(--earth); }
.el-card.k-metal .ec-icon { color: var(--metal); }
.el-card.k-water .ec-icon { color: var(--water); }

/* ============================== forms ============================== */
.field { margin-bottom: 24px; }

.field label, .field .f-label {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}

.field .hint { font-size: .79rem; color: var(--muted); margin: 9px 0 0; line-height: 1.6; }

.input, .select {
  width: 100%;
  padding: 14px 17px;
  border: 1px solid rgba(138, 132, 107, .22);
  border-radius: var(--r-input);
  background: rgba(253, 251, 246, .85);
  font-size: .96rem;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  appearance: none;
}

.input::placeholder { color: rgba(138, 132, 107, .6); }

.input:focus, .select:focus {
  outline: 0;
  border-color: var(--wood);
  background: rgba(253, 251, 246, .98);
  box-shadow: 0 0 0 4px rgba(124, 138, 99, .12);
}

.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }

@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); gap: 0; } }

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .9rem;
  color: var(--body-c);
  cursor: pointer;
  line-height: 1.55;
}

.check-line input { margin-top: 4px; width: 16px; height: 16px; accent-color: var(--forest); flex: none; }

/* ============================== city combobox ============================== */
.combo { position: relative; }

.combo-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: rgba(253, 251, 246, .97);
  backdrop-filter: blur(18px);
  border: 1px solid var(--hair);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(90, 80, 50, .16);
  padding: 7px;
  z-index: 60;
  display: none;
  -webkit-overflow-scrolling: touch;
}

.combo-list.is-open { display: block; }

.combo-item {
  padding: 11px 14px;
  border-radius: var(--r-sm);
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  transition: background .14s ease;
}

.combo-item:hover, .combo-item.is-active { background: rgba(124, 138, 99, .12); }

.combo-item .ci-main { font-size: .95rem; font-weight: 500; color: var(--ink); }
.combo-item .ci-sub { font-size: .77rem; color: var(--muted); margin-top: 1px; }
.combo-item .ci-tz { font-size: .7rem; color: var(--muted); white-space: nowrap; flex: none; }

.combo-empty { padding: 15px; font-size: .86rem; color: var(--muted); text-align: center; }

.city-picked {
  display: none;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 14px 17px;
  background: var(--wood-soft);
  border: 1px solid rgba(124, 138, 99, .3);
  border-radius: var(--r-input);
  font-size: .87rem;
  color: #4E5C3D;
}

.city-picked.is-on { display: flex; }
.city-picked svg { width: 17px; height: 17px; color: var(--forest); flex: none; }

.city-picked .cp-x {
  margin-left: auto;
  font-size: .78rem;
  color: var(--muted);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

/* ============================== report ============================== */
.report-shell { padding: 128px 0 80px; position: relative; z-index: 1; }

.report-hero {
  border-radius: var(--r-card);
  border: 1px solid rgba(255, 255, 255, .65);
  background: linear-gradient(135deg, rgba(255, 253, 248, .78), rgba(250, 246, 238, .56));
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  padding: 46px;
  box-shadow: var(--sh-card);
  margin-bottom: 26px;
}

@media (max-width: 640px) { .report-hero { padding: 26px; } }

.report-section {
  border-radius: var(--r-card);
  border: 1px solid rgba(255, 255, 255, .6);
  background: linear-gradient(150deg, rgba(255, 253, 248, .76), rgba(250, 246, 238, .54));
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: var(--sh-card);
  padding: 42px;
  margin-bottom: 24px;
  scroll-margin-top: 96px;
}

@media (max-width: 640px) { .report-section { padding: 24px; border-radius: 22px; } }

.report-section > h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); margin-bottom: 8px; }

.report-section .rs-num {
  font-family: var(--display);
  font-style: italic;
  font-size: .95rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.report-section .rs-sub { color: var(--body-c); font-size: .95rem; margin-bottom: 28px; max-width: 64ch; line-height: 1.72; }

.prose p { color: var(--body-c); line-height: 1.78; }
.prose p:last-child { margin-bottom: 0; }

.ritual-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.ritual-list li {
  display: flex;
  gap: 18px;
  padding: 20px 22px;
  border: 1px solid var(--hair);
  border-radius: 20px;
  background: rgba(253, 251, 246, .72);
}

.ritual-list .r-n { font-family: var(--display); font-style: italic; font-size: 1.05rem; color: var(--accent); flex: none; width: 24px; }
.ritual-list .r-t { font-weight: 600; font-size: .95rem; margin-bottom: 4px; color: var(--ink); display: block; }
.ritual-list .r-d { font-size: .88rem; color: var(--body-c); line-height: 1.68; display: block; }

/* ============================== paywall ============================== */
.paywall { position: relative; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--hair); background: rgba(255, 253, 248, .6); }

.paywall-fade {
  height: 200px;
  background: linear-gradient(180deg, rgba(243, 237, 225, 0), rgba(243, 237, 225, .95) 84%);
  margin-top: -200px;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.paywall-locked { padding: 42px; text-align: center; position: relative; z-index: 3; }

@media (max-width: 640px) { .paywall-locked { padding: 26px; } }

.blurred { filter: blur(7px); opacity: .45; user-select: none; pointer-events: none; }

/* ============================== tests page ============================== */
.test-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.test-pill {
  padding: 10px 20px;
  border-radius: var(--r-btn);
  font-size: .84rem;
  font-weight: 600;
  border: 1px solid var(--hair);
  background: rgba(253, 251, 246, .8);
  color: #5C5741;
}

.test-pill.ok { background: var(--wood-soft); border-color: rgba(124, 138, 99, .34); color: #4E5C3D; }
.test-pill.bad { background: var(--fire-soft); border-color: rgba(193, 112, 78, .34); color: #9A5334; }

.test-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hair);
  border-radius: 22px;
  background: rgba(253, 251, 246, .8);
  -webkit-overflow-scrolling: touch;
}

table.test-table { width: 100%; border-collapse: collapse; font-size: .82rem; min-width: 900px; }

table.test-table th, table.test-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--hair-soft);
  white-space: nowrap;
}

table.test-table th {
  background: rgba(138, 132, 107, .09);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
}

table.test-table tr:last-child td { border-bottom: 0; }
table.test-table td.num { font-variant-numeric: tabular-nums; }

.row-ok td:first-child { border-left: 3px solid var(--wood); }
.row-bad td:first-child { border-left: 3px solid var(--fire); }
.row-bad { background: rgba(193, 112, 78, .06); }

/* ============================== footer ============================== */
.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  border-top: 1px solid var(--hair);
  padding: 56px 0 42px;
}

.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }

@media (max-width: 780px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

.footer-brand .brand-name { font-size: 1.3rem; }
.footer-brand .brand-pron { display: block; margin-top: 2px; }
.footer-brand p { font-size: .88rem; color: var(--body-c); max-width: 36ch; margin-top: 16px; line-height: 1.72; }

.dot-row { display: flex; gap: 10px; margin-top: 20px; }
.dot-row span { width: 12px; height: 12px; border-radius: 50%; }

.footer-col h4 {
  font-family: var(--sans);
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col a { display: block; font-size: .89rem; color: #5C5741; margin-bottom: 10px; transition: color .2s ease; }
.footer-col a:hover { color: var(--accent-h); }

.disclaimer {
  border-top: 1px solid var(--hair);
  padding-top: 26px;
  font-size: .79rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 90ch;
}

.disclaimer strong { color: var(--body-c); font-weight: 600; }

.copyright { margin-top: 18px; font-size: .76rem; color: rgba(138, 132, 107, .8); }

/* ============================== result hero ============================== */
.result-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

@media (max-width: 900px) {
  .result-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .result-hero-wheel { order: -1; }
  .result-hero-wheel .wheel { width: 300px !important; margin: 0 auto; }
}

.result-hero-wheel { display: flex; justify-content: center; }
.result-hero-wheel .wheel { width: 340px; }

/* ============================== element line list ============================== */
.el-line { display: flex; align-items: center; gap: 12px; font-size: .93rem; color: var(--body-c); }
.el-line strong { color: var(--ink-2); font-weight: 600; min-width: 58px; }

/* ============================== phase 3: daily ============================== */
.daily-el {
  display: flex; align-items: baseline; justify-content: center; gap: 16px;
  color: var(--el);
}
.daily-el .de-hanzi {
  font-family: var(--display); font-size: clamp(3.4rem, 11vw, 5rem); line-height: 1;
}
.daily-el .de-name {
  font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 6vw, 3rem); line-height: 1;
}
.daily-line { max-width: 46ch; font-size: clamp(1rem, 2vw, 1.12rem); line-height: 1.7; color: var(--body-c); }

.swatch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.swatch {
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start; text-align: left;
  padding: 12px; border: 1px solid var(--hair); border-radius: 16px;
  background: rgba(253, 251, 246, .7); cursor: pointer; min-width: 0; width: 100%;
  font: inherit; color: inherit;
  transition: transform .35s cubic-bezier(.22,1,.36,1), border-color .35s ease;
}
.swatch:hover { transform: translateY(-3px); border-color: var(--hair-strong); }
.swatch .sw-chip {
  display: block; width: 100%; height: 46px; border-radius: 10px;
  background: var(--sw); box-shadow: inset 0 0 0 1px rgba(62, 68, 51, .10);
}
.swatch .sw-name { font-weight: 600; font-size: .86rem; color: var(--ink-2); margin-top: 6px; }
.swatch .sw-hex { font-size: .74rem; color: var(--muted); }
.swatch .sw-el { font-size: .68rem; color: var(--muted); letter-spacing: .04em; }

/* ============================== phase 3: match ============================== */
.match-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 800px) { .match-grid { grid-template-columns: minmax(0, 1fr); } }

.seg-choice { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.seg-opt {
  padding: 10px 20px; border-radius: var(--r-btn); border: 1px solid var(--hair);
  background: rgba(253, 251, 246, .7); font: inherit; font-size: .84rem; color: var(--body-c);
  cursor: pointer; transition: all .3s ease;
}
.seg-opt.is-on { background: var(--forest-soft); border-color: rgba(90, 107, 79, .38); color: var(--ink-2); font-weight: 600; }

.el-pair { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.el-pair .ep-side {
  flex: 1 1 150px; min-width: 0; padding: 16px 18px; border-radius: 18px;
  border: 1px solid var(--hair); background: rgba(253, 251, 246, .7);
}
.el-pair .ep-who { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.el-pair .ep-el { font-family: var(--display); font-size: 1.32rem; font-weight: 600; color: var(--ink); }
.el-pair .ep-trait { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.el-pair .ep-mid { font-family: var(--display); font-size: 1.4rem; color: var(--accent); flex: none; }
@media (max-width: 560px) { .el-pair .ep-mid { display: none; } }

/* ============================== home: daily entry ============================== */
.daily-entry {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px;
  padding: 28px 30px; border-radius: var(--r-card);
  border: 1px solid var(--hair);
  background: linear-gradient(135deg, rgba(255,253,248,.86), rgba(243,237,225,.72));
}
.daily-entry .de-copy { max-width: 56ch; min-width: 0; }
.daily-entry .de-title { font-family: var(--display); font-size: 1.42rem; font-weight: 600; margin-bottom: 6px; }
.daily-entry .de-text { font-size: .9rem; line-height: 1.65; color: var(--body-c); margin: 0 0 12px; }
.daily-entry .de-badge {
  display: inline-block; padding: 4px 12px; border-radius: var(--r-btn);
  background: var(--wood-soft); color: #4E5C3D; font-size: .68rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px;
}

/* ============================== newsletter ============================== */
.newsletter { max-width: 560px; width: 100%; }

.nl-title {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}

.nl-copy { font-size: .87rem; color: var(--body-c); margin: 0 0 14px; line-height: 1.6; }

.nl-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.nl-form .input { flex: 1 1 200px; min-width: 0; width: auto; }
.nl-form .btn { flex: none; }
.nl-form-inline .input { padding: 12px 15px; font-size: .92rem; }
.nl-form-inline .btn { padding: 12px 24px; font-size: .86rem; }

.nl-msg { margin: 10px 0 0; color: var(--forest); min-height: 1.2em; font-size: .79rem; }

.footer-newsletter {
  border-top: 1px solid var(--hair);
  padding: 30px 0 8px;
  margin-bottom: 10px;
}

@media (max-width: 560px) {
  .nl-form .btn { width: 100%; }
}

/* ============================== share card ============================== */
.share-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
  justify-content: space-between;
}

.share-panel .sp-copy { max-width: 48ch; }
.share-panel .sp-title { font-family: var(--display); font-size: 1.3rem; font-weight: 600; margin-bottom: 4px; }
.share-panel .sp-text { font-size: .87rem; color: var(--body-c); margin: 0; line-height: 1.6; }
.share-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

#shareNote { flex-basis: 100%; margin: 0; color: var(--forest); min-height: 1.2em; font-size: .82rem; }

.card-preview {
  margin-top: 20px;
  max-width: 250px;
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sh-soft);
  background: var(--paper);
}

.card-preview img { display: block; width: 100%; height: auto; }

/* ============================== badges ============================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: var(--r-btn);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.badge-approx { background: var(--earth-soft); color: #7D6034; border: 1px solid rgba(193, 154, 107, .42); }
.badge-exact { background: var(--wood-soft); color: #4E5C3D; border: 1px solid rgba(124, 138, 99, .36); }
.badge svg { width: 13px; height: 13px; flex: none; }

/* ============================== paywall TOC ============================== */
.toc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; text-align: left; }

.toc-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--hair);
  border-radius: 16px;
  background: rgba(253, 251, 246, .72);
  font-size: .92rem;
}

.toc-list .toc-n {
  font-family: var(--display);
  font-style: italic;
  font-size: .9rem;
  color: var(--accent);
  flex: none;
  width: 26px;
}

.toc-list .toc-t { font-weight: 600; color: var(--ink); }
.toc-list .toc-d { color: var(--muted); font-size: .84rem; }

.price-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 18px;
}

.price-line .p-amt { font-family: var(--display); font-size: 2.7rem; font-weight: 600; color: var(--ink); }
.price-line .p-unit { font-size: .82rem; color: var(--muted); }

/* ============================== motion ============================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1); }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

.spinner {
  width: 17px; height: 17px;
  border: 2px solid rgba(251, 247, 239, .4);
  border-top-color: #FBF7EF;
  border-radius: 50%;
  animation: spin-fast .7s linear infinite;
}

@keyframes spin-fast { to { transform: rotate(360deg); } }
