/* ===== Is Your Box Square? — Balanced-Life Assessment =====
   Design language modeled on the leading life-balance / wellness assessment
   sites (Calm-style gradient washes, Headspace-style friendly cards,
   16personalities-style assessment UX) on the shared family palette:
   royal blue #1f50d0 · dark blue #1a3fa0 · gold #c08a2d · violet #7a5cc0
*/
:root {
  --blue: #1f50d0;
  --blue-dark: #1a3fa0;
  --gold: #c08a2d;
  --violet: #7a5cc0;
  --ink: #16213e;
  --slate: #5b6b8c;
  --line: #e4e9f6;
  --bg: #fbfaf7;            /* warm paper, not clinical white */
  --bg-card: #ffffff;
  --bg-soft: #f4f7ff;
  --bg-tint: #eef2fd;
  --wash-blue: #eaf0ff;
  --wash-gold: #fdf6ea;
  --wash-violet: #f3effb;
  --good: #1a7f4b;
  --good-bg: #e7f6ee;
  --warn: #b4531a;
  --warn-bg: #fdf0e6;
  --shadow-sm: 0 1px 2px rgba(22, 33, 62, .06), 0 4px 12px rgba(26, 63, 160, .07);
  --shadow: 0 2px 4px rgba(22, 33, 62, .05), 0 16px 44px rgba(26, 63, 160, .12);
  --radius: 20px;
  --radius-lg: 28px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; line-height: 1.12; margin: 0 0 .4em; letter-spacing: -.01em; }
a { color: var(--blue); text-decoration: none; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .65rem clamp(1rem, 4vw, 3rem);
  background: rgba(251, 250, 247, .88); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(228, 233, 246, .8);
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.brand-name em { color: var(--blue); font-style: normal; }

/* ===== Buttons — pill-shaped, wellness-app style ===== */
.btn {
  display: inline-block; font: inherit; font-weight: 700; font-size: 1rem;
  padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .08s ease, box-shadow .25s ease, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 1rem 2.1rem; font-size: 1.08rem; }
.btn-sm { padding: .5rem 1.1rem; font-size: .9rem; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; box-shadow: 0 6px 18px rgba(31, 80, 208, .35); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(31, 80, 208, .45); transform: translateY(-1px); }
.btn-primary:disabled { background: #b9c6ea; cursor: not-allowed; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-gold { background: linear-gradient(135deg, #d09b3b, var(--gold)); color: #fff; box-shadow: 0 6px 18px rgba(192, 138, 45, .4); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(192, 138, 45, .5); }

/* ===== Views ===== */
.view { display: none; }
.view.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== Hero — layered gradient wash + floating box motif ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(60rem 32rem at 82% -10%, rgba(122, 92, 192, .14), transparent 60%),
    radial-gradient(52rem 30rem at -12% 8%, rgba(31, 80, 208, .13), transparent 55%),
    radial-gradient(40rem 26rem at 55% 118%, rgba(192, 138, 45, .12), transparent 60%),
    linear-gradient(180deg, #f6f4ee, var(--bg));
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
  max-width: 1100px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.fsq { position: absolute; border-radius: 22%; border: 3px solid; opacity: .35; animation: drift 9s ease-in-out infinite; }
.fsq-1 { width: 54px; height: 54px; border-color: var(--blue);   top: 12%; left: 4%;  transform: rotate(12deg); }
.fsq-2 { width: 34px; height: 34px; border-color: var(--gold);   top: 68%; left: 9%;  transform: rotate(-14deg); animation-delay: -3s; }
.fsq-3 { width: 44px; height: 44px; border-color: var(--violet); top: 10%; right: 6%; transform: rotate(20deg);  animation-delay: -5s; }
.fsq-4 { width: 26px; height: 26px; border-color: var(--blue);   top: 80%; right: 12%; transform: rotate(-8deg); animation-delay: -7s; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }

/* Four side-theme images washed into the hero background, one per corner */
.fimg {
  position: absolute; width: clamp(180px, 24vw, 320px); aspect-ratio: 1;
  background-size: cover; background-position: center; opacity: .16;
  -webkit-mask-image: radial-gradient(closest-side, #000 40%, transparent 98%);
  mask-image: radial-gradient(closest-side, #000 40%, transparent 98%);
}
.fimg-body   { top: -6%;  left: -4%; }
.fimg-mind   { top: -8%;  right: -4%; }
.fimg-soul   { bottom: -10%; left: 6%; }
.fimg-social { bottom: -12%; right: 6%; }

.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--gold); margin: 0 0 .8rem; }
.hero h1 { font-size: clamp(2.7rem, 6.5vw, 4.4rem); }
.hero h1 .hl { color: var(--blue); position: relative; }
.lede { font-size: clamp(1.05rem, 2vw, 1.22rem); color: var(--slate); max-width: 34em; }
.hero-actions { margin: 1.6rem 0 1rem; }
.trust-badges { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; padding: 0; margin: 0; font-size: .92rem; font-weight: 600; color: var(--slate); }
.trust-badges li { white-space: nowrap; }

.hero-art {
  background: rgba(255, 255, 255, .75); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow); text-align: center;
}
#heroBox svg { width: 100%; height: auto; }
.hero-art-cap { font-size: .88rem; color: var(--slate); margin: .8rem 0 0; }

/* ===== Resume banner ===== */
.resume-banner {
  max-width: 1100px; margin: 1.2rem auto 0; padding: 1rem 1.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  background: var(--wash-gold); border: 1px solid #eeddbb; border-radius: var(--radius);
  font-weight: 600; color: var(--ink);
}

/* ===== Side chips ===== */
.sides-strip {
  max-width: 1100px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1rem, 4vw, 3rem) 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
}
.side-chip {
  display: flex; flex-direction: column; gap: .15rem; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .25s ease;
}
.side-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.chip-img {
  width: calc(100% + 2.4rem); margin: -1.1rem -1.2rem .7rem; height: 150px;
  background-size: cover; background-position: center 22%;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  border-bottom: 3px solid var(--c);
}
.side-chip b { font-family: 'Fraunces', serif; font-size: 1.18rem; color: var(--c); }
.side-chip i { color: var(--slate); font-style: normal; font-size: .86rem; }

/* ===== How it works ===== */
.how-works { max-width: 1100px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem) 0; text-align: center; }
.how-works h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 1.4rem; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; text-align: left; }
.step-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.3rem; box-shadow: var(--shadow-sm); position: relative;
}
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.25rem; color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet)); margin-bottom: .8rem;
}
.step-card:nth-child(2) .step-num { background: linear-gradient(135deg, var(--violet), var(--gold)); }
.step-card:nth-child(3) .step-num { background: linear-gradient(135deg, var(--gold), var(--blue)); }
.step-card h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.step-card p { color: var(--slate); font-size: .95rem; margin: 0; }

/* ===== Report preview band ===== */
.preview-band {
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  background:
    radial-gradient(46rem 26rem at 110% 0%, rgba(192, 138, 45, .10), transparent 55%),
    linear-gradient(135deg, #182a5e, #1a3fa0);
  color: #fff;
}
.preview-inner {
  max-width: 1100px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
  display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center;
}
.preview-art { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-lg); padding: 1.4rem; }
#previewBox svg { width: 100%; height: auto; }
.preview-copy .eyebrow { color: #e9c789; }
.preview-copy h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.5rem); }
.preview-copy p { color: #ccd8f6; }
.preview-copy strong { color: #fff; }
.preview-copy em { color: #e9c789; font-style: italic; }
.preview-stats { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.pstat {
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px; padding: .7rem 1.2rem; text-align: center; min-width: 92px;
}
.pstat b { display: block; font-family: 'Fraunces', serif; font-size: 1.7rem; line-height: 1.1; color: #fff; }
.pstat span { font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #b9c9f2; }

/* ===== Depth chooser ===== */
.depth-chooser { max-width: 1100px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem) 1rem; text-align: center; scroll-margin-top: 80px; }
.depth-chooser h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.depth-sub { color: var(--slate); max-width: 640px; margin: 0 auto 1.8rem; }
.depth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.1rem; align-items: stretch; }
.depth-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  font: inherit; color: inherit; background: var(--bg-card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.3rem; cursor: pointer; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .12s ease, box-shadow .25s ease;
}
.depth-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow); }
.depth-card.is-featured { border-color: var(--blue); box-shadow: var(--shadow); background: linear-gradient(180deg, var(--wash-blue), #fff 45%); }
.depth-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #d09b3b, var(--gold)); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .25rem .8rem; border-radius: 999px; white-space: nowrap; box-shadow: 0 4px 10px rgba(192, 138, 45, .35);
}
.depth-name { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.35rem; }
.depth-count { color: var(--blue); font-weight: 700; margin-top: .25rem; }
.depth-time { color: var(--slate); font-size: .86rem; }
.depth-card ul { margin: .9rem 0 0; padding-left: 1.1rem; color: var(--slate); font-size: .92rem; flex: 1; }
.depth-card li { margin: .3rem 0; }
.depth-go { margin-top: 1.1rem; font-weight: 700; color: var(--blue); }
.depth-card * { pointer-events: none; } /* clicks always hit the button's data-depth */

/* ===== Book strip (landing) ===== */
.book-strip {
  max-width: 860px; margin: clamp(2rem, 5vw, 3rem) auto clamp(2.5rem, 6vw, 4rem);
  display: flex; gap: 1.1rem; align-items: center;
  background: var(--wash-gold); border: 1px solid #eeddbb; border-radius: var(--radius);
  padding: 1.2rem 1.5rem; margin-left: auto; margin-right: auto;
}
.book-strip p { margin: 0; color: var(--ink); font-size: .96rem; }
.book-strip svg { flex-shrink: 0; }

/* ===== Progress ===== */
.progress-wrap { position: sticky; top: 57px; z-index: 10; background: var(--bg); padding: 1rem clamp(1rem, 4vw, 3rem) .6rem; max-width: 860px; margin: 0 auto; }
.progress-bar { height: 10px; background: var(--bg-tint); border-radius: 999px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(22,33,62,.06); }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--violet), var(--gold)); border-radius: 999px; transition: width .3s ease; }
.progress-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--slate); font-weight: 600; margin-top: .45rem; }

/* ===== Quiz ===== */
.quiz-section { max-width: 860px; margin: 0 auto; padding: .5rem clamp(1rem, 4vw, 3rem); }
/* current side's theme image as a fixed, whisper-faint watermark behind the questions */
.quiz-watermark {
  position: fixed; z-index: -1; right: max(-120px, calc(50vw - 640px)); top: 16vh;
  width: min(44vw, 460px); aspect-ratio: 1; pointer-events: none;
  background-size: contain; background-repeat: no-repeat; background-position: center;
  opacity: .07;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.section-head { margin: 1rem 0 1.6rem; }
.section-head .kicker { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 700; color: var(--accent, var(--blue)); }
.section-head h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); }
.section-head p { color: var(--slate); margin: 0; }

.facet-group {
  margin-bottom: 1.4rem; background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.3rem .4rem; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent, var(--blue));
}
.facet-label { font-weight: 700; color: var(--accent, var(--blue)); font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .4rem; }

.q { padding: .95rem 0; border-bottom: 1px solid var(--line); }
.q:last-child { border-bottom: none; }
.q-text { font-weight: 500; margin-bottom: .65rem; }
.q-text .num { color: var(--slate); font-weight: 700; margin-right: .45rem; font-size: .85rem; }
.likert { display: flex; gap: .45rem; flex-wrap: wrap; }
.likert label {
  flex: 1 1 0; min-width: 62px; text-align: center; cursor: pointer;
  border: 2px solid var(--line); border-radius: 14px; padding: .55rem .3rem;
  font-size: .78rem; font-weight: 600; color: var(--slate); transition: all .12s ease; user-select: none;
  background: #fff;
}
.likert input { position: absolute; opacity: 0; pointer-events: none; }
.likert label:hover { border-color: var(--accent, var(--blue)); color: var(--accent, var(--blue)); transform: translateY(-1px); }
.likert .dot { display: block; font-size: 1rem; font-weight: 800; color: var(--ink); margin-bottom: .1rem; }
.likert label.on { background: var(--accent, var(--blue)); border-color: var(--accent, var(--blue)); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent, var(--blue)) 35%, transparent); }
.likert label.on .dot { color: #fff; }

.quiz-nav { max-width: 860px; margin: 1.2rem auto 0; padding: 0 clamp(1rem, 4vw, 3rem) 2rem; display: flex; justify-content: space-between; gap: 1rem; }
.quiz-warn { max-width: 860px; margin: -1rem auto 3rem; padding: 0 clamp(1rem, 4vw, 3rem); color: var(--warn); font-weight: 600; }

/* ===== Lead gate ===== */
.gate {
  min-height: 70vh; display: grid; place-items: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(40rem 24rem at 90% 0%, rgba(122, 92, 192, .10), transparent 60%),
    radial-gradient(36rem 22rem at 5% 100%, rgba(31, 80, 208, .08), transparent 55%);
}
.gate-card {
  max-width: 520px; width: 100%; text-align: center;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 5vw, 2.8rem); box-shadow: var(--shadow);
}
.gate-mark { margin-bottom: .8rem; }
.gate h2 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.gate-sub { color: var(--slate); margin: 0 0 1.6rem; }
.gate form { display: flex; flex-direction: column; gap: .95rem; text-align: left; }
.gate-field { font-weight: 700; font-size: .9rem; color: var(--ink); display: flex; flex-direction: column; gap: .35rem; }
.gate-field input {
  font: inherit; font-weight: 500; padding: .85rem 1.1rem; border: 2px solid var(--line); border-radius: 14px;
  transition: border-color .15s ease, box-shadow .15s ease; background: #fff; color: var(--ink);
}
.gate-field input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31, 80, 208, .12); }
.gate-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: var(--slate); font-weight: 500; }
.gate-consent input { margin-top: .25rem; accent-color: var(--blue); }
.gate form .btn-primary { margin-top: .4rem; }
.gate-warn { color: var(--warn); font-weight: 600; margin: 0; }
.gate-privacy { font-size: .8rem; color: var(--slate); text-align: center; margin: .2rem 0 0; }

/* ===== Results ===== */
#results { max-width: 920px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem) 1rem; }
.result-hero { text-align: center; margin-bottom: 2rem; }
.result-hero .verdict-tag {
  display: inline-block; font-weight: 700; padding: .4rem 1.2rem; border-radius: 999px; font-size: .95rem; margin-bottom: 1rem;
}
.result-hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.result-box {
  display: flex; justify-content: center; margin: 1rem auto 1.5rem; max-width: 520px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.2rem; box-shadow: var(--shadow-sm);
}
.result-box svg { width: min(420px, 100%); height: auto; }
.scorecards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 560px; margin: 0 auto; }
.scorecard { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; text-align: center; box-shadow: var(--shadow-sm); }
.scorecard .big { font-family: 'Fraunces', serif; font-size: 2.8rem; font-weight: 700; color: var(--blue); line-height: 1; }
.scorecard .lab { font-weight: 700; margin-top: .35rem; }
.scorecard .sub { font-size: .85rem; color: var(--slate); }

.result-section-title { font-size: 1.55rem; margin: 2.6rem 0 1rem; }
.side-result {
  background: var(--bg-card); border: 1px solid var(--line); border-left: 6px solid var(--accent);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.side-result-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.side-result-head h3 { font-size: 1.35rem; margin: 0; }
.side-result-head .band { font-weight: 700; font-size: .9rem; color: var(--accent); }
.side-result-head .score { font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.7rem; color: var(--ink); }
.facet-bars { margin-top: .9rem; display: flex; flex-direction: column; gap: .55rem; }
.facet-bar { display: grid; grid-template-columns: 160px 1fr 42px; align-items: center; gap: .7rem; font-size: .9rem; }
.facet-bar .track { height: 10px; background: var(--bg-tint); border-radius: 999px; overflow: hidden; }
.facet-bar .fill { height: 100%; background: var(--accent); border-radius: 999px; }
.facet-bar .val { text-align: right; font-weight: 700; color: var(--slate); }

.priority {
  background:
    radial-gradient(30rem 18rem at 100% 0%, rgba(192, 138, 45, .18), transparent 55%),
    linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.2rem); margin: 1.6rem 0; box-shadow: var(--shadow);
}
.priority h3 { color: #fff; font-size: 1.45rem; }
.priority p { color: #dbe4ff; margin: .3rem 0 1rem; }
.priority ol { margin: 0; padding-left: 1.2rem; }
.priority li { margin: .45rem 0; }
.priority .tailor { margin-top: 1.1rem; font-size: .93rem; color: #cdd9ff; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 1.1rem; }

/* ===== Square-up plan ===== */
.plan-note { color: var(--slate); margin: -0.4rem 0 1rem; }
.plan-side {
  background: var(--bg-card); border: 1px solid var(--line); border-left: 6px solid var(--accent);
  border-radius: var(--radius); padding: 1.1rem 1.4rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm);
}
.plan-side-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.plan-side-head h3 { font-size: 1.25rem; margin: 0; }
.plan-count { font-weight: 700; font-size: .88rem; color: var(--accent); }
.plan-side ol { margin: .7rem 0 .2rem; padding-left: 1.4rem; }
.plan-side li { margin: .45rem 0; }
.plan-side li::marker { font-weight: 700; color: var(--accent); }

.overlay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.overlay-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow-sm); }
.overlay-card h4 { margin: 0 0 .5rem; font-family: 'Fraunces', serif; font-size: 1.18rem; }
.overlay-card .pill { display: inline-block; background: var(--wash-blue); color: var(--blue-dark); font-weight: 700; padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; margin: .2rem .3rem .2rem 0; }
.overlay-card p { color: var(--slate); font-size: .9rem; margin: .6rem 0 0; }
.overlay-card.overlay-locked { border-style: dashed; box-shadow: none; background: var(--bg-soft); }
.overlay-card.overlay-locked p { margin-top: 0; }

.result-share { text-align: center; margin: 2rem 0 .5rem; }

/* ===== Book CTA (results) ===== */
.book-cta {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.2rem, 3vw, 2.2rem); align-items: center;
  background:
    radial-gradient(36rem 20rem at 100% 0%, rgba(192, 138, 45, .16), transparent 55%),
    linear-gradient(135deg, #16213e, #1a3fa0);
  color: #fff; border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.4rem); margin: 1.6rem 0 0; box-shadow: var(--shadow);
}
.book-cover { position: relative; width: 130px; height: 180px; transform: rotate(-3deg); filter: drop-shadow(6px 8px 14px rgba(0, 0, 0, .35)); }
.book-spine { position: absolute; left: -8px; top: 4px; width: 10px; height: 172px; background: var(--blue-dark); border-radius: 3px 0 0 3px; }
.book-face {
  position: absolute; inset: 0; background: linear-gradient(160deg, var(--blue), var(--blue-dark));
  border-radius: 4px 8px 8px 4px; padding: .8rem .7rem; display: flex; flex-direction: column; gap: .4rem;
  border: 1px solid rgba(255, 255, 255, .25);
}
.book-face b { font-family: 'Fraunces', serif; font-size: 1.02rem; line-height: 1.2; }
.book-face i { font-style: normal; font-size: .6rem; letter-spacing: .04em; color: #cdd9ff; margin-top: auto; }
.book-copy .eyebrow { color: #e9c789; margin-bottom: .3rem; }
.book-copy h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.book-copy p { color: #dbe4ff; margin: .3rem 0 1rem; }
.book-copy em { color: #fff; font-style: italic; }
.book-soon { display: inline-block; font-weight: 600; color: #ffe9c4; }

.results-actions { text-align: center; padding: 1rem 1rem 3rem; }
.report-note { text-align: center; color: var(--slate); font-size: .85rem; max-width: 640px; margin: 1.6rem auto 0; }

/* ===== Static pages (privacy, FAQ) ===== */
.page { max-width: 760px; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 4vw, 3rem) 2rem; }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.page h2 { font-size: 1.3rem; margin-top: 1.8em; }
.page p, .page li { color: var(--slate); }
.page strong, .page h2, .page h1 { color: var(--ink); }
.page ul { padding-left: 1.2rem; }
.page li { margin: .4rem 0; }
.page-updated { font-size: .85rem; font-weight: 600; color: var(--gold) !important; text-transform: uppercase; letter-spacing: .06em; }
.page-back { margin-top: 2.5rem; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.5rem .6rem; margin: 1rem 0; box-shadow: var(--shadow-sm);
}
.faq-item h2 { margin-top: 0; font-size: 1.22rem; }

/* ===== Footer ===== */
.site-footer { background: #131c36; color: #b9c9f2; margin-top: clamp(2rem, 6vw, 4rem); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 2.6rem clamp(1rem, 4vw, 3rem); text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; font-family: 'Fraunces', serif; font-weight: 700; color: #fff; font-size: 1.15rem; }
.footer-note { margin: .6rem 0 0; font-size: .92rem; }
.footer-links { margin: .6rem 0 0; font-size: .92rem; }
.footer-links a { color: #b9c9f2; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.footer-fine { margin: .8rem auto 0; font-size: .8rem; color: #7e90c4; max-width: 480px; }
.footer-fine em { color: #b9c9f2; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 400px; margin: 0 auto; }
  .header-cta { display: none; }
  .preview-inner { grid-template-columns: 1fr; }
  .preview-art { max-width: 380px; margin: 0 auto; }
  .scorecards { grid-template-columns: 1fr; }
  .overlay-grid { grid-template-columns: 1fr; }
  .facet-bar { grid-template-columns: 110px 1fr 38px; font-size: .82rem; }
  .progress-wrap { top: 53px; }
  .book-cta { grid-template-columns: 1fr; text-align: center; }
  .book-cover { margin: 0 auto; }
  .resume-banner { margin-left: 1rem; margin-right: 1rem; }
  .book-strip { flex-direction: column; text-align: center; margin-left: 1rem; margin-right: 1rem; }
}
