
:root {
  --bg: #f6f8ff;
  --text: #1f2550;
  --muted: #5a6285;
  --card: rgba(255, 255, 255, 0.88);
  --card-strong: #ffffff;
  --line: rgba(164, 187, 255, 0.45);
  --brand: #6a5cff;
  --brand-2: #2fc6ff;
  --brand-3: #ff6fcf;
  --brand-4: #7ae6bc;
  --brand-5: #ffd56b;
  --purple-deep: #4330a6;
  --shadow: 0 18px 46px rgba(56, 63, 136, 0.14);
  --shadow-soft: 0 12px 30px rgba(74, 92, 166, 0.10);
  --radius: 24px;
  --radius-sm: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 111, 207, 0.18), transparent 18%),
    radial-gradient(circle at 92% 12%, rgba(47, 198, 255, 0.20), transparent 20%),
    radial-gradient(circle at 78% 32%, rgba(122, 230, 188, 0.16), transparent 18%),
    linear-gradient(180deg, #fdfcff 0%, #f5f8ff 42%, #eef4ff 100%);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-shell { position: relative; overflow-x: clip; }
.site-shell::before,
.site-shell::after {
  content: '';
  position: fixed;
  z-index: -1;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.45;
}
.site-shell::before {
  top: 90px;
  left: -140px;
  background: radial-gradient(circle, rgba(255,111,207,.45), rgba(255,111,207,0));
}
.site-shell::after {
  top: 320px;
  right: -160px;
  background: radial-gradient(circle, rgba(47,198,255,.40), rgba(47,198,255,0));
}
.top-ribbon {
  background: linear-gradient(90deg, rgba(106,92,255,.9), rgba(255,111,207,.9), rgba(47,198,255,.9));
  color: #fff;
}
.top-ribbon-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 10px 0;
}
.top-ribbon-row p { margin: 0; font-weight: 700; }
.top-ribbon-row a {
  color: #fff;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.22);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(202, 217, 255, 0.9);
}
.header-row, .footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(106,92,255,.18), rgba(255,111,207,.22), rgba(47,198,255,.18));
  box-shadow: var(--shadow-soft);
  font-size: 1.45rem;
}
.brand-text {
  display: grid;
  gap: 2px;
}
.brand-text strong {
  font-size: 1.28rem;
  line-height: 1;
}
.brand-text small {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .02em;
}
/* always use the mobile-style menu */
.desktop-nav,
.header-cta {
  display: none !important;
}

.menu-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto;
}

/* drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -390px;
  width: min(390px, 88vw);
  height: 100dvh;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.98), rgba(255,243,250,.98));
  z-index: 40;
  box-shadow: -18px 0 40px rgba(23, 33, 66, 0.18);
  transition: right .25s ease;
  padding: 18px;

  /* this is the fix for scrolling */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.98), rgba(255,243,250,.98));
  padding-bottom: 12px;
  z-index: 2;
}

.drawer-nav {
  display: grid;
  gap: 10px;
  padding-bottom: 24px;
}

.drawer-nav a {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(202,217,255,.7);
  background: rgba(255,255,255,.82);
  color: var(--text);
  font-weight: 700;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 22, 40, 0.36);
  z-index: 30;
}

body.drawer-open {
  overflow: hidden;
}

/* stop desktop mode from switching back */
@media (min-width: 1025px) {
  .desktop-nav,
  .header-cta {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
  }
}

/* keep your smaller-screen behavior too */
@media (max-width: 1024px) {
  .desktop-nav,
  .header-cta {
    display: none !important;
  }

  .menu-toggle {
    display: inline-flex !important;
  }
}
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 26px;
  align-items: center;
  margin-bottom: 26px;
}

.home-hero-band {
  position: relative;
  min-height: 430px;
  margin-bottom: 34px;
  overflow: hidden;
  border-bottom: 1px solid rgba(164, 187, 255, 0.35);
}
.home-hero-media,
.home-hero-media img,
.home-hero-media .hero-fallback {
  width: 100%;
  min-height: 430px;
  height: 430px;
}
.home-hero-media {
  position: absolute;
  inset: 0;
}
.home-hero-media img,
.home-hero-media .hero-fallback {
  display: block;
  object-fit: cover;
  border-radius: 0;
}
.home-hero-overlay {
  position: relative;
  z-index: 1;
  min-height: 430px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(29, 26, 86, 0.82) 0%, rgba(44, 42, 110, 0.72) 38%, rgba(56, 47, 120, 0.32) 70%, rgba(56, 47, 120, 0.12) 100%),
    linear-gradient(180deg, rgba(12, 11, 48, 0.10), rgba(12, 11, 48, 0.18));
}
.home-hero-content {
  color: #fff;
  padding: 42px 0;
}
.home-hero-content .kicker {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.24);
  color: #fff;
}
.home-hero-content h1 {
  color: #fff;
  max-width: 760px;
  margin: 0 0 14px;
  font-size: clamp(2.25rem, 4vw, 4rem);
}
.home-hero-content .lead {
  max-width: 760px;
  color: rgba(255,255,255,0.94);
  font-size: 1.14rem;
}
.home-hero-content .button-link {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.home-hero-content .button-link.primary-link {
  background: linear-gradient(135deg, var(--brand-3), var(--brand));
  border-color: transparent;
}
.home-intro-card {
  margin-top: -86px;
  position: relative;
  z-index: 3;
}
.hero-copy {
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.hero-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(106,92,255,.06), rgba(255,111,207,.08), rgba(47,198,255,.06));
  pointer-events: none;
}
.hero-copy > * { position: relative; }
.hero-image {
  min-height: 300px;
  position: relative;
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,111,207,.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(47,198,255,.22), transparent 30%),
    linear-gradient(135deg, rgba(106,92,255,.14), rgba(47,198,255,.16), rgba(255,111,207,.16));
}
.hero-image::after {
  content: '✦ ✨ ✦';
  position: absolute;
  right: 20px;
  top: 16px;
  letter-spacing: 10px;
  color: rgba(255,255,255,.9);
  font-size: 1.15rem;
}
.hero-image .placeholder, .hero-image img, .hero-fallback {
  width: 100%;
  height: 250px;
  border-radius: 20px;
}
.hero-image img {
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-soft);
}
.hero-fallback {
  position: relative;
  border: 1px solid rgba(255,255,255,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,.70), rgba(255,255,255,.42));
  padding: 24px;
  overflow: hidden;
}
.hero-fallback strong {
  color: var(--text);
  font-size: 1.08rem;
}
.fallback-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  opacity: .9;
}
.orb-one { width: 140px; height: 140px; background: rgba(255,111,207,.35); top: 10px; left: 18px; }
.orb-two { width: 120px; height: 120px; background: rgba(47,198,255,.35); right: 18px; bottom: 24px; }
.orb-three { width: 90px; height: 90px; background: rgba(122,230,188,.4); top: 90px; right: 70px; }
.kicker, .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(106,92,255,.14), rgba(255,111,207,.16));
  color: var(--purple-deep);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.section-badge { margin-bottom: 12px; }
h1, h2, h3 { line-height: 1.12; margin-top: 0; }
h1 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 14px;
}
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-bottom: 14px; }
h3 { font-size: 1.18rem; margin-bottom: 8px; }
p, li { line-height: 1.75; }
.lead { font-size: 1.08rem; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form-card, .result-box { padding: 26px; }
.form-card-magic, .result-box-magic { position: relative; overflow: hidden; }
.form-card-magic::before, .result-box-magic::before, .article-card-fun::before, .fun-card::before, .unicorn-manifesto::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(106,92,255,.05), rgba(255,111,207,.07), rgba(47,198,255,.05));
  pointer-events: none;
}
.form-card-magic > *, .result-box-magic > *, .article-card-fun > *, .fun-card > *, .unicorn-manifesto > * { position: relative; }
label { font-weight: 700; display: block; margin-bottom: 7px; }
input, select, button, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #cad9ff;
  font: inherit;
  background: rgba(255,255,255,.96);
  color: var(--text);
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid rgba(106,92,255,.18);
  border-color: rgba(106,92,255,.55);
}
button.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2), var(--brand-3));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 16px 30px rgba(106,92,255,.24);
}
button.secondary { background: #fff; color: var(--text); font-weight: 700; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--text);
  font-weight: 700;
}
.button-link.primary-link {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border: 0;
}
.hero-actions, .button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.link-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.link-pills a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-weight: 700;
}
.shortcut-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 24px 0 30px; }
.shortcut-grid a {
  padding: 18px 14px;
  text-align: center;
  font-weight: 700;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.shortcut-grid a::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .95;
  pointer-events: none;
}
.shortcut-grid a:nth-child(5n+1)::before { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(106,92,255,.12)); }
.shortcut-grid a:nth-child(5n+2)::before { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(47,198,255,.12)); }
.shortcut-grid a:nth-child(5n+3)::before { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,111,207,.13)); }
.shortcut-grid a:nth-child(5n+4)::before { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(122,230,188,.14)); }
.shortcut-grid a:nth-child(5n+5)::before { background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,213,107,.16)); }
.shortcut-grid a > * { position: relative; }
.magic-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.magic-pill {
  padding: 14px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  text-align: center;
}
.section { margin: 34px 0; }
.article-card, .callout, .quick-answer, .toc, .mini-card, .hub-card, .faq-card, .notice-card, .checklist-card { padding: 24px; margin-bottom: 18px; position: relative; }
.quick-answer {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(241,247,255,.95));
}
.unicorn-note {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,242,250,.96));
}
.breadcrumbs { margin-bottom: 18px; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.breadcrumbs li { color: var(--muted); }
.breadcrumbs li + li::before { content: '›'; margin-right: 8px; color: #99a8cf; }
.photo-placeholder {
  position: relative;
  height: 230px;
  border-radius: 22px;
  border: 1px dashed rgba(106,92,255,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,.80), rgba(241,247,255,.85), rgba(255,242,250,.85));
  color: var(--muted);
  text-align: center;
  padding: 20px;
  margin: 16px 0 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0));
  border-radius: 50%;
}
.sparkle-a { top: 26px; left: 34px; }
.sparkle-b { bottom: 32px; right: 46px; width: 18px; height: 18px; }
.sparkle-c { top: 82px; right: 112px; width: 10px; height: 10px; }
.photo-placeholder span { position: relative; max-width: 540px; }
.content-photo { margin: 16px 0 22px; }
.content-photo img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: block;
}
.footer-row { padding: 28px 0; }
.footer-branding { max-width: 560px; }
.footer-title {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 700;
}
.footer-copy { margin: 0; color: var(--muted); }
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer {
  border-top: 1px solid rgba(202, 217, 255, 0.9);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -390px;
  width: min(390px, 88vw);
  height: 100vh;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,248,255,.98), rgba(255,243,250,.98));
  z-index: 40;
  box-shadow: -18px 0 40px rgba(23, 33, 66, 0.18);
  transition: right .25s ease;
  padding: 18px;
}
.mobile-drawer.open { right: 0; }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 12px;
}
.drawer-sub { color: var(--muted); font-size: .92rem; margin-top: 4px; }
.drawer-nav { display: grid; gap: 10px; }
.drawer-nav a {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(202,217,255,.7);
  background: rgba(255,255,255,.82);
  color: var(--text);
  font-weight: 700;
}
.drawer-overlay { position: fixed; inset: 0; background: rgba(16, 22, 40, 0.36); z-index: 30; }
body.drawer-open { overflow: hidden; }
.small-note, .form-help, .footnote { color: var(--muted); font-size: .93rem; }
.quick-list, .score-list, .clean-list, .outline-list, .question-list { padding-left: 20px; }
.quick-list li, .score-list li, .clean-list li, .outline-list li, .question-list li { margin: 10px 0; }
.stats-row, .badge-row, .score-detail-grid, .hub-grid, .faq-grid {
  display: grid;
  gap: 16px;
}
.stats-row, .badge-row { grid-template-columns: repeat(4, 1fr); margin: 18px 0 10px; }
.score-detail-grid { grid-template-columns: repeat(2, 1fr); margin-top: 16px; }
.hub-grid { grid-template-columns: repeat(3, 1fr); }
.stat-chip { padding: 18px; }
.stat-chip strong { display: block; font-size: 1.35rem; margin-bottom: 6px; }
.rainbow-chip {
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(248,244,255,.96));
}
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.sticky-col { position: sticky; top: 110px; }
.toc ul { margin: 0; padding-left: 18px; }
.toc li { margin: 8px 0; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-link {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--text);
}
.related-link span { color: var(--muted); font-size: .95rem; }
.cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(106,92,255,0.12), rgba(47,198,255,0.14), rgba(255,111,207,0.12));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-section { scroll-margin-top: 110px; }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.compare-table, .kv-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 14px;
}
.compare-table th, .compare-table td, .kv-table th, .kv-table td {
  border: 1px solid #d8e3ff;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}
.compare-table th, .kv-table th { background: #f5f8ff; }
.notice-card {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(247,251,255,.95));
}
.result-box[hidden] { display: none; }
.result-summary { display: grid; gap: 18px; }
.result-card-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.result-color-name { font-size: 1.4rem; font-weight: 700; }
.result-score-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 18px 18px 12px;
}
.result-score-stage::before {
  content: '';
  position: absolute;
  inset: 8px 14% auto;
  height: 88px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,111,207,.18), rgba(47,198,255,.12), rgba(255,255,255,0));
  filter: blur(10px);
}
.result-score-number, .result-score-caption { position: relative; }
.result-score-number {
  font-size: clamp(4.5rem, 14vw, 7.5rem);
  line-height: .88;
  font-weight: 900;
  letter-spacing: -.05em;
  color: var(--purple-deep);
  text-shadow: 0 8px 26px rgba(106,92,255,.18);
}
.result-score-caption {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--muted);
}
.magic-meter {
  position: relative;
  width: 100%;
  height: 22px;
  border-radius: 999px;
  background: rgba(235,240,255,.95);
  overflow: hidden;
  border: 1px solid rgba(202,217,255,.85);
}
.magic-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand), var(--brand-3), var(--brand-5));
}
.magic-meter-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: .86rem;
  margin-top: 8px;
  align-items: center;
}
.magic-meter-label strong {
  color: var(--purple-deep);
  font-size: 1rem;
  letter-spacing: .03em;
}

.result-pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.result-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}
.compare-links {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.compare-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.88);
}
.magic-quote {
  margin: 0;
  padding: 14px 16px;
  border-left: 4px solid rgba(255,111,207,.5);
  background: rgba(255,245,250,.8);
  border-radius: 14px;
  color: var(--text);
  font-weight: 700;
}
.callout strong { color: var(--text); }
@media (max-width: 1024px) {
  .hero, .grid-2, .shortcut-grid, .stats-row, .related-grid, .badge-row, .hub-grid, .faq-grid, .score-detail-grid, .magic-strip {
    grid-template-columns: 1fr 1fr;
  }
  .page-grid { grid-template-columns: 1fr; }
  .sticky-col { position: static; }
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-block; }
}
@media (max-width: 640px) {
  .top-ribbon-row, .hero, .grid-2, .shortcut-grid, .stats-row, .related-grid, .mini-grid, .badge-row, .hub-grid, .faq-grid, .score-detail-grid, .magic-strip {
    grid-template-columns: 1fr;
  }
  .top-ribbon-row {
    display: grid;
    text-align: center;
  }
  .header-row {
    gap: 12px;
  }
  .brand-text small { display: none; }
  .hero-copy, .form-card, .result-box, .article-card, .callout, .quick-answer, .toc, .mini-card, .hub-card, .faq-card, .notice-card, .checklist-card {
    padding: 20px;
  }
  .cta-bar, .result-card-head { flex-direction: column; align-items: flex-start; }
}

/* v8 narrator + confetti */
.confetti-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 80;
}
.confetti-piece {
  position: fixed;
  opacity: .95;
  animation: confetti-fall var(--duration, 2.4s) ease-in var(--delay, 0s) forwards;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}
.confetti-piece-ribbon { border-radius: 2px; transform-origin: center; }
.confetti-piece-star { clip-path: polygon(50% 0%, 62% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 38% 35%); }
.confetti-piece-echo { opacity: .82; filter: saturate(1.05); }
@keyframes confetti-fall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }
  8% { opacity: 1; }
  100% {
    transform: translate3d(var(--fall-x, 0), 115vh, 0) rotate(var(--fall-rotate, 240deg));
    opacity: 0;
  }
}
.una-stage-card, .una-guide-card {
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(251,246,255,.96), rgba(244,251,255,.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.una-stage-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.una-stage-card::before,
.una-guide-card::before,
.una-result-note::before,
.result-cheer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(106,92,255,.05), rgba(255,111,207,.08), rgba(47,198,255,.05));
  pointer-events: none;
}
.una-stage-card > *, .una-guide-card > *, .una-result-note > *, .result-cheer > * { position: relative; }
.una-mini-intro {
  margin: -2px 0 14px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(202,217,255,.8);
  color: var(--purple-deep);
  font-weight: 700;
}
.result-prelude,
.result-cheer,
.una-result-note {
  position: relative;
  overflow: hidden;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(202,217,255,.9);
}
.result-prelude {
  margin-bottom: 14px;
  background: rgba(255,255,255,.78);
  color: var(--purple-deep);
  font-weight: 700;
}
.result-cheer {
  background: linear-gradient(135deg, rgba(255,243,250,.95), rgba(241,249,255,.95));
  color: var(--purple-deep);
  font-weight: 700;
}
.una-result-note {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,242,255,.96));
  color: var(--text);
}
.result-box.is-live {
  box-shadow: 0 22px 56px rgba(106,92,255,.18);
}
.una-guide {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  max-width: min(360px, calc(100vw - 32px));
}
.una-guide-toggle {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 0;
  border-radius: 999px;
  font-size: 1.45rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-3), var(--brand-2));
  color: #fff;
  box-shadow: 0 18px 32px rgba(106,92,255,.28);
}
.una-guide-card {
  width: 280px;
  padding: 18px 18px 16px;
  position: relative;
}
.una-guide-head {
  font-weight: 800;
  color: var(--purple-deep);
  margin-bottom: 8px;
}
.una-guide-head::after { content: ' ✨'; }
.una-guide-card p {
  margin: 0 0 12px;
  color: var(--text);
  line-height: 1.55;
}
.una-guide-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(106,92,255,.12), rgba(255,111,207,.18));
  border: 1px solid rgba(202,217,255,.95);
  font-weight: 700;
  color: var(--purple-deep);
}
.una-guide.is-collapsed .una-guide-card {
  display: none;
}
.una-guide:not(.is-collapsed) .una-guide-toggle {
  transform: translateY(-4px);
}
.unicorn-note h2 { margin-bottom: 10px; }
@media (max-width: 640px) {
  .una-guide {
    right: 12px;
    left: 12px;
    bottom: 12px;
    max-width: none;
    justify-content: flex-end;
  }
  .una-guide-card {
    width: min(280px, calc(100vw - 92px));
    padding: 16px;
  }
  .result-prelude,
  .result-cheer,
  .una-result-note { padding: 12px 14px; }
  .result-score-number { font-size: clamp(4rem, 20vw, 6rem); }
  .result-score-caption { font-size: .82rem; letter-spacing: .1em; text-align: center; }
}


/* v12 visual polish */
.reading-progress {
  position: sticky;
  top: 81px;
  z-index: 29;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, rgba(106,92,255,.08), rgba(255,111,207,.08), rgba(47,198,255,.08));
  border-bottom: 1px solid rgba(202,217,255,.55);
  backdrop-filter: blur(8px);
}
.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-2), var(--brand), var(--brand-3), var(--brand-5));
  box-shadow: 0 0 22px rgba(106,92,255,.28);
  transition: width .18s ease-out;
}
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 65;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(106,92,255,.96), rgba(255,111,207,.96), rgba(47,198,255,.96));
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 18px 36px rgba(106,92,255,.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.92);
  transition: opacity .2s ease, transform .2s ease;
}
.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.back-to-top:hover {
  transform: translateY(-2px) scale(1.04);
}
.site-main {
  position: relative;
}
.site-main::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 320px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0));
}
.hero-copy,
.form-card,
.result-box,
.article-card,
.callout,
.quick-answer,
.toc,
.mini-card,
.hub-card,
.faq-card,
.notice-card,
.checklist-card,
.related-link,
.shortcut-grid a,
.content-photo img,
.photo-placeholder,
.cta-bar {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.article-card:hover,
.callout:hover,
.quick-answer:hover,
.toc:hover,
.mini-card:hover,
.hub-card:hover,
.notice-card:hover,
.related-link:hover,
.content-photo img:hover,
.photo-placeholder:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 58px rgba(74, 92, 166, 0.16);
  border-color: rgba(140, 167, 255, 0.72);
}
.page-grid > div > .article-card:first-child,
.page-grid > div > .article-card:first-of-type {
  padding: 30px 30px 28px;
  background:
    radial-gradient(circle at 92% 16%, rgba(255,255,255,.6), rgba(255,255,255,0) 26%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,244,255,.96), rgba(243,250,255,.96));
  border-color: rgba(144, 169, 255, 0.62);
  box-shadow: 0 26px 62px rgba(74, 92, 166, 0.17);
  overflow: hidden;
}
.page-grid > div > .article-card:first-child::before,
.page-grid > div > .article-card:first-of-type::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 18%, rgba(255,111,207,.12), rgba(255,111,207,0) 26%),
    radial-gradient(circle at 92% 20%, rgba(47,198,255,.14), rgba(47,198,255,0) 24%),
    linear-gradient(135deg, rgba(106,92,255,.04), rgba(255,111,207,.05), rgba(47,198,255,.03));
  pointer-events: none;
}
.page-grid > div > .article-card:first-child > *,
.page-grid > div > .article-card:first-of-type > * {
  position: relative;
}
.page-grid > div > .article-card:first-child h1,
.page-grid > div > .article-card:first-of-type h1 {
  letter-spacing: -.03em;
  text-wrap: balance;
  margin-bottom: 16px;
}
.page-grid > div > .article-card:first-child .lead,
.page-grid > div > .article-card:first-of-type .lead {
  font-size: 1.12rem;
  color: #4c5583;
}
.article-card,
.callout,
.quick-answer,
.toc,
.mini-card,
.hub-card,
.faq-card,
.notice-card,
.checklist-card {
  overflow: hidden;
}
.article-card::after,
.callout::after,
.quick-answer::after,
.toc::after,
.mini-card::after,
.hub-card::after,
.notice-card::after {
  content: '✦';
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(106,92,255,.18);
  font-size: .95rem;
}
.quick-answer {
  position: relative;
  border-color: rgba(133, 164, 255, .7);
  box-shadow: 0 22px 52px rgba(74, 92, 166, 0.16);
}
.quick-answer::before {
  content: 'Quick glow';
  position: absolute;
  right: 18px;
  top: 14px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(67, 48, 166, .72);
  font-weight: 800;
}
.article-card h2,
.callout h2,
.quick-answer h2,
.toc h2,
.mini-card h2,
.hub-card h2,
.notice-card h2,
.faq-card h2,
.checklist-card h2 {
  position: relative;
  padding-bottom: 12px;
}
.article-card h2::after,
.callout h2::after,
.quick-answer h2::after,
.toc h2::after,
.mini-card h2::after,
.hub-card h2::after,
.notice-card h2::after,
.faq-card h2::after,
.checklist-card h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 84px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3), var(--brand-2));
}
.content-section {
  position: relative;
  padding-top: 26px;
  padding-left: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(247,250,255,.95));
}
.content-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22px;
  bottom: 22px;
  width: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(106,92,255,.58), rgba(255,111,207,.46), rgba(47,198,255,.48));
}
.content-section::after {
  top: 18px;
  right: 18px;
}
.breadcrumbs {
  position: relative;
}
.breadcrumbs::after {
  content: '✨';
  position: absolute;
  right: 18px;
  top: 8px;
  color: rgba(106,92,255,.34);
  pointer-events: none;
}
.breadcrumbs ol {
  padding-right: 42px;
  background: linear-gradient(135deg, rgba(255,255,255,.88), rgba(248,245,255,.9));
}
.toc {
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(246,249,255,.96));
}
.toc ul {
  list-style: none;
  padding-left: 0;
}
.toc li {
  margin: 10px 0;
}
.toc a {
  display: block;
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(202,217,255,.82);
  color: var(--text);
  font-weight: 700;
}
.toc a:hover {
  text-decoration: none;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(248,244,255,.96));
}
.mini-card,
.unicorn-note {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(251,245,255,.94));
}
.quick-list li a,
.clean-list li a,
.score-list li a,
.outline-list li a,
.question-list li a {
  text-underline-offset: 3px;
}
.related-grid {
  align-items: stretch;
}
.related-link {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,255,.94));
}
.related-link::before,
.shortcut-grid a::after,
.cta-bar::before {
  content: '';
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-3), var(--brand-2));
}
.shortcut-grid a {
  padding-top: 20px;
  padding-bottom: 20px;
  border-color: rgba(136, 166, 255, .5);
}
.shortcut-grid a::after {
  opacity: .6;
}
.hub-card,
.notice-card,
.article-card-fun {
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,245,255,.94));
}
.cta-bar {
  position: relative;
  overflow: hidden;
  align-items: center;
}
.cta-bar::after {
  content: '✦ ✨ ✦';
  position: absolute;
  right: 20px;
  top: 14px;
  letter-spacing: 8px;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
}
.compare-table,
.kv-table {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}
.compare-table th,
.kv-table th {
  background: linear-gradient(135deg, rgba(245,248,255,.96), rgba(248,243,255,.98));
  color: var(--purple-deep);
}
.compare-table tr:nth-child(even) td,
.kv-table tr:nth-child(even) td {
  background: rgba(250,252,255,.92);
}
.compare-table td,
.kv-table td {
  background: rgba(255,255,255,.94);
}
.site-footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(247,243,255,.86));
}
.site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 10%, rgba(255,111,207,.09), rgba(255,111,207,0) 24%), radial-gradient(circle at 88% 18%, rgba(47,198,255,.11), rgba(47,198,255,0) 22%);
  pointer-events: none;
}
.footer-row {
  position: relative;
}
.footer-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(202,217,255,.72);
}
.footer-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(202,217,255,.7);
}
.footer-nav a:hover {
  background: rgba(255,255,255,.94);
}
.top-ribbon-row a,
.header-cta,
.una-guide-action,
.button-link.primary-link,
button.primary {
  position: relative;
  overflow: hidden;
}
.top-ribbon-row a::after,
.header-cta::after,
.una-guide-action::after,
.button-link.primary-link::after,
button.primary::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -32%;
  width: 22%;
  transform: skewX(-24deg);
  background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.42), rgba(255,255,255,0));
  animation: sheen-slide 4.8s linear infinite;
  pointer-events: none;
}
@keyframes sheen-slide {
  0% { left: -32%; }
  100% { left: 118%; }
}
.section-badge,
.kicker {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 12px 24px rgba(106,92,255,.08);
}
.una-guide-card,
.una-stage-card,
.result-box.is-live {
  box-shadow: 0 26px 58px rgba(74, 92, 166, 0.18);
}
.hero-image,
.hero-copy,
.form-card-magic,
.result-box-magic {
  border-color: rgba(144, 169, 255, 0.54);
}
@media (max-width: 1024px) {
  .reading-progress {
    top: 80px;
  }
  .home-hero-band,
  .home-hero-media,
  .home-hero-media img,
  .home-hero-media .hero-fallback,
  .home-hero-overlay {
    min-height: 380px;
    height: 380px;
  }
  .home-intro-card {
    margin-top: -56px;
  }
  .page-grid > div > .article-card:first-child,
  .page-grid > div > .article-card:first-of-type {
    padding: 28px 24px 24px;
  }
}
@media (max-width: 640px) {
  .reading-progress {
    top: 72px;
  }
  .home-hero-band,
  .home-hero-media,
  .home-hero-media img,
  .home-hero-media .hero-fallback,
  .home-hero-overlay {
    min-height: 300px;
    height: 300px;
  }
  .home-hero-content {
    padding: 28px 0;
  }
  .home-intro-card {
    margin-top: -28px;
  }
  .home-hero-content h1 {
    font-size: clamp(1.9rem, 10vw, 2.5rem);
  }
  .home-hero-content .lead {
    font-size: 1rem;
  }
  .back-to-top {
    right: 12px;
    bottom: 84px;
    width: 48px;
    height: 48px;
  }
  .breadcrumbs::after,
  .cta-bar::after {
    display: none;
  }
  .content-section {
    padding-left: 22px;
  }
  .content-section::before {
    width: 6px;
  }
}

.footer-top-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 26px;
  margin: 28px 0 24px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,255,255,.92), rgba(248,244,255,.95), rgba(243,250,255,.95));
  box-shadow: var(--shadow);
}

.footer-top-card h2 {
  margin: 6px 0 8px;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.footer-top-card p {
  margin: 0;
  color: var(--muted);
}

.footer-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(106,92,255,.14), rgba(255,111,207,.16));
  color: var(--purple-deep);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}

.footer-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 24px;
  padding: 8px 0 24px;
}

.footer-col h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  color: var(--purple-deep);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-links a {
  display: inline-block;
  color: var(--text);
  font-weight: 700;
}

.footer-links a:hover {
  text-decoration: none;
  color: var(--purple-deep);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0 30px;
  border-top: 1px solid rgba(202,217,255,.72);
}

.footer-bottom p {
  margin: 0;
  color: var(--muted);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.68);
  border: 1px solid rgba(202,217,255,.7);
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 1024px) {
  .footer-top-card,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-top-card {
    padding: 20px;
  }
}

.content-image {
  display: block;
  width: 100%;
  max-width: 1120px;
  margin: 20px auto 24px;
}

.content-image picture,
.content-image img {
  display: block;
  width: 100%;
}

.content-image img {
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.content-image figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
}

.content-image--narrow {
  max-width: 860px;
}

.content-image--full {
  max-width: 100%;
}