/*
Theme Name: Celestial Wave — Name Correction
Theme URI: https://celestialwave.in/name-correction/
Author: Celestial Wave (RP Rahul Kashyap)
Author URI: https://celestialwave.in/
Description: A single-page landing theme for the Celestial Wave name-correction service. Scores the visitor's current spelling against their Chaldean compound number and life path, shows the harmony percentage free, and gates the corrected spellings behind a Rs 499 correction or a Rs 799 correction-plus-consultation, paid at razorpay.me/@celestialwave.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cw-name-correction
Tags: one-column, custom-colors, custom-logo, landing-page, translation-ready
*/

/* ==========================================================================
   1. Tokens
   Palette is taken from celestialwave.in — #10142b is the site theme colour.
   Change these six values and the whole page follows.
   ========================================================================== */

:root {
	--cw-night: #10142b;
	--cw-night-deep: #0a0d1e;
	--cw-panel: #171d3d;
	--cw-panel-soft: #1d2449;
	--cw-gold: #d9b25f;
	--cw-gold-soft: #e7cb92;
	--cw-cream: #f2ede2;
	--cw-muted: #9aa3c7;
	--cw-line: rgba(217, 178, 95, 0.22);
	--cw-line-quiet: rgba(154, 163, 199, 0.16);
	--cw-good: #7fc9a3;
	--cw-warn: #e08d6b;

	--cw-serif: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
	--cw-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

	--cw-shell: 1080px;
	--cw-gutter: clamp(1.25rem, 5vw, 3rem);
	--cw-section: clamp(3.5rem, 9vw, 6.5rem);
	--cw-radius: 14px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--cw-night);
	background-image:
		radial-gradient(900px 520px at 78% -8%, rgba(217, 178, 95, 0.10), transparent 62%),
		radial-gradient(760px 460px at 4% 12%, rgba(93, 118, 214, 0.12), transparent 58%);
	background-repeat: no-repeat;
	color: var(--cw-cream);
	font-family: var(--cw-sans);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--cw-gold-soft); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cw-gold); }

h1, h2, h3, h4 {
	font-family: var(--cw-serif);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -0.01em;
	margin: 0 0 0.5em;
	color: #fff;
}

h1 { font-size: clamp(2.6rem, 6.4vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
h4 { font-size: 1.12rem; }

h1 em, h2 em { font-style: italic; color: var(--cw-gold-soft); }

p { margin: 0 0 1.1em; max-width: 68ch; }

.cw-lede {
	font-size: clamp(1.06rem, 1.9vw, 1.22rem);
	color: rgba(242, 237, 226, 0.86);
	line-height: 1.72;
}

.cw-quiet { color: var(--cw-muted); font-size: 0.94rem; }

.cw-skip {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--cw-gold);
	color: var(--cw-night);
	padding: 0.7rem 1.1rem;
	z-index: 999;
	border-radius: 0 0 8px 0;
}
.cw-skip:focus { left: 0; }

:focus-visible {
	outline: 2px solid var(--cw-gold);
	outline-offset: 3px;
	border-radius: 4px;
}

/* ==========================================================================
   3. Shell + section rhythm
   ========================================================================== */

.cw-shell {
	width: 100%;
	max-width: var(--cw-shell);
	margin-inline: auto;
	padding-inline: var(--cw-gutter);
}

.cw-section { padding-block: var(--cw-section); }
[id] { scroll-margin-top: 88px; }
.cw-section + .cw-section { border-top: 1px solid var(--cw-line-quiet); }

.cw-section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.cw-eyebrow {
	display: block;
	font-family: var(--cw-serif);
	font-style: italic;
	font-size: 1.05rem;
	color: var(--cw-gold);
	margin-bottom: 0.55rem;
}

/* ==========================================================================
   4. Header
   ========================================================================== */

.cw-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(16, 20, 43, 0.82);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--cw-line-quiet);
}

.cw-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	min-height: 68px;
}

.cw-brand {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	font-family: var(--cw-serif);
	font-size: 1.28rem;
	color: #fff;
	text-decoration: none;
	letter-spacing: 0.01em;
}
.cw-brand img { height: 34px; width: auto; }

.cw-header__nav { display: flex; align-items: center; gap: 1.6rem; }
.cw-header__nav a {
	color: rgba(242, 237, 226, 0.78);
	text-decoration: none;
	font-size: 0.94rem;
}
.cw-header__nav a:hover { color: #fff; }

@media (max-width: 720px) {
	.cw-header__nav .cw-header__link { display: none; }
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.cw-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	font-family: var(--cw-sans);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1;
	padding: 0.95rem 1.5rem;
	border-radius: 999px;
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cw-btn--gold {
	background: var(--cw-gold);
	color: #1a1405;
	border-color: var(--cw-gold);
}
.cw-btn--gold:hover { background: var(--cw-gold-soft); color: #1a1405; }

.cw-btn--ghost {
	background: transparent;
	color: var(--cw-cream);
	border-color: rgba(242, 237, 226, 0.32);
}
.cw-btn--ghost:hover { border-color: var(--cw-gold); color: #fff; }

.cw-btn--wide { width: 100%; }

.cw-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ==========================================================================
   6. Hero + calculator
   ========================================================================== */

.cw-hero { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); }

.cw-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
	gap: clamp(2rem, 5vw, 3.5rem);
	align-items: start;
}

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

.cw-hero__copy p { max-width: 40ch; }

.cw-hero__proof {
	margin-top: 2rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--cw-line);
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
	gap: 1.5rem 1.25rem;
}
.cw-hero__proof strong {
	display: block;
	font-family: var(--cw-serif);
	font-size: 2rem;
	color: var(--cw-gold);
	line-height: 1;
}
.cw-hero__proof span { font-size: 0.86rem; color: var(--cw-muted); }

/* Calculator panel */

.cw-panel {
	background: linear-gradient(168deg, var(--cw-panel) 0%, var(--cw-night-deep) 100%);
	border: 1px solid var(--cw-line);
	border-radius: var(--cw-radius);
	padding: clamp(1.35rem, 3vw, 2rem);
	box-shadow: 0 24px 60px rgba(4, 6, 18, 0.45);
}

.cw-panel__title {
	font-family: var(--cw-serif);
	font-size: 1.35rem;
	color: #fff;
	margin: 0 0 0.35rem;
}

.cw-field { margin-bottom: 1.15rem; }

.cw-field label {
	display: block;
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--cw-cream);
	margin-bottom: 0.4rem;
}

.cw-field input {
	width: 100%;
	padding: 0.85rem 1rem;
	font-family: var(--cw-sans);
	font-size: 1rem;
	color: #fff;
	background: rgba(10, 13, 30, 0.72);
	border: 1px solid rgba(154, 163, 199, 0.28);
	border-radius: 10px;
	transition: border-color 0.16s ease;
}
.cw-field input::placeholder { color: rgba(154, 163, 199, 0.6); }
.cw-field input:focus { border-color: var(--cw-gold); outline: none; }

.cw-field .cw-help {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.83rem;
	color: var(--cw-muted);
	line-height: 1.5;
}

.cw-error {
	color: var(--cw-warn);
	font-size: 0.88rem;
	margin: 0 0 0.9rem;
	display: none;
}
.cw-error.is-on { display: block; }

/* Letter ledger — the signature element */

.cw-ledger {
	margin: 0 0 1.6rem;
	padding: 0.9rem 0.6rem 0.75rem;
	border-top: 1px solid var(--cw-line-quiet);
	border-bottom: 1px solid var(--cw-line-quiet);
	min-height: 74px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.55rem 0.3rem;
}

.cw-ledger:empty { display: none; }

.cw-ledger__gap { width: 0.9rem; }

.cw-ledger__cell {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.2rem;
	min-width: 1.35rem;
}
.cw-ledger__letter {
	font-family: var(--cw-serif);
	font-size: 1.5rem;
	color: #fff;
	line-height: 1;
}
.cw-ledger__value {
	font-size: 0.72rem;
	color: var(--cw-gold);
	font-variant-numeric: tabular-nums;
}
.cw-ledger__sum {
	margin-left: auto;
	align-self: center;
	font-size: 0.86rem;
	color: var(--cw-muted);
}
.cw-ledger__sum b { color: var(--cw-gold); font-size: 1.1rem; }

/* ==========================================================================
   7. Result
   ========================================================================== */

.cw-result { display: none; }
.cw-result.is-on { display: block; }

.cw-score {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--cw-line-quiet);
}

.cw-dial { flex: 0 0 118px; width: 118px; height: 118px; position: relative; }
.cw-dial svg { transform: rotate(-90deg); display: block; }
.cw-dial__track { fill: none; stroke: rgba(154, 163, 199, 0.2); stroke-width: 9; }
.cw-dial__bar {
	fill: none;
	stroke: var(--cw-gold);
	stroke-width: 9;
	stroke-linecap: round;
	transition: stroke-dashoffset 1s cubic-bezier(0.22, 0.75, 0.3, 1);
}
.cw-dial__num {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--cw-serif);
	font-size: 1.9rem;
	color: #fff;
	font-variant-numeric: tabular-nums;
}
.cw-dial__num .cw-dial__pct { font-size: 0.95rem; color: var(--cw-muted); margin-left: 1px; }

.cw-score__read p { margin: 0 0 0.5rem; font-size: 0.97rem; }
.cw-score__read p:last-child { margin: 0; }

.cw-facts {
	list-style: none;
	margin: 1.15rem 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 0.85rem;
}
.cw-facts li {
	background: rgba(10, 13, 30, 0.5);
	border: 1px solid var(--cw-line-quiet);
	border-radius: 10px;
	padding: 0.7rem 0.85rem;
}
.cw-facts dt { font-size: 0.8rem; color: var(--cw-muted); margin-bottom: 0.15rem; }
.cw-facts dd {
	margin: 0;
	font-family: var(--cw-serif);
	font-size: 1.45rem;
	color: var(--cw-gold-soft);
	line-height: 1.1;
}

/* Locked variants */

.cw-locked { margin-top: 1.5rem; }
.cw-locked__title { font-size: 1.15rem; margin-bottom: 0.3rem; }

.cw-variants { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0.6rem; }

.cw-variant {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.8rem 1rem;
	background: rgba(10, 13, 30, 0.55);
	border: 1px dashed rgba(217, 178, 95, 0.35);
	border-radius: 10px;
}

.cw-variant__name {
	font-family: var(--cw-serif);
	font-size: 1.3rem;
	color: #fff;
	letter-spacing: 0.06em;
	user-select: none;
}
.cw-variant__name i { font-style: normal; color: var(--cw-gold); }

.cw-variant__meta { text-align: right; flex: 0 0 auto; }
.cw-variant__score {
	display: block;
	font-family: var(--cw-serif);
	font-size: 1.35rem;
	color: var(--cw-good);
	line-height: 1;
}
.cw-variant__delta { display: block; margin-top: 0.15rem; font-size: 0.78rem; color: var(--cw-muted); }

.cw-lockline {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin-top: 1rem;
	font-size: 0.9rem;
	color: var(--cw-muted);
}
.cw-lockline svg { flex: 0 0 auto; }


/* ==========================================================================
   7b. The correction tool section
   ========================================================================== */

.cw-tool {
	background: linear-gradient(168deg, var(--cw-panel) 0%, var(--cw-night-deep) 100%);
	border: 1px solid var(--cw-line);
	border-radius: var(--cw-radius);
	padding: clamp(1.35rem, 3vw, 2.25rem);
}

.cw-result__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
	gap: clamp(1.5rem, 4vw, 2.5rem);
	align-items: start;
}

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

/* Idle state: the Chaldean key stands in until there is a name to score */

.cw-key {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
	gap: 0.7rem;
	margin-bottom: 1.1rem;
}

.cw-key__cell {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	padding: 0.7rem 0.85rem;
	background: rgba(10, 13, 30, 0.5);
	border: 1px solid var(--cw-line-quiet);
	border-radius: 10px;
}

.cw-key__num {
	font-family: var(--cw-serif);
	font-size: 1.5rem;
	color: var(--cw-gold);
	line-height: 1;
}

.cw-key__letters {
	font-size: 0.9rem;
	color: rgba(242, 237, 226, 0.82);
	letter-spacing: 0.08em;
}

.cw-key__cell--void { border-style: dashed; }
.cw-key__cell--void .cw-key__num { color: var(--cw-muted); }
.cw-key__cell--void .cw-key__letters { color: var(--cw-muted); letter-spacing: 0; font-style: italic; }

/* Thank-you pages */

.cw-thanks__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; }

.cw-thanks__frame {
	border: 1px solid var(--cw-line);
	border-radius: var(--cw-radius);
	overflow: hidden;
	background: rgba(10, 13, 30, 0.6);
}
.cw-thanks__frame object { display: block; }

.cw-thanks__foot { margin-top: 2rem; color: var(--cw-muted); font-size: 0.95rem; }

/* ==========================================================================
   8. Celebrity ledger
   ========================================================================== */

.cw-names {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
	gap: clamp(0.9rem, 2vw, 1.35rem);
}

.cw-name-card {
	margin: 0;
	padding: 1.25rem 1rem 1.35rem;
	text-align: center;
	background: rgba(23, 29, 61, 0.55);
	border: 1px solid var(--cw-line-quiet);
	border-radius: 14px;
	transition: border-color 0.18s ease, transform 0.18s ease;
}

.cw-name-card:hover {
	border-color: var(--cw-line);
	transform: translateY(-2px);
}

.cw-name-card .cw-avatar {
	width: 6.5rem;
	height: 6.5rem;
	margin: 0 auto 0.9rem;
	border: 1px solid var(--cw-line);
}

.cw-name-card figcaption {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.15rem;
}

.cw-name-card__from {
	font-family: var(--cw-serif);
	font-size: 1rem;
	color: var(--cw-muted);
	text-decoration: line-through;
	text-decoration-color: rgba(154, 163, 199, 0.55);
	line-height: 1.25;
}

.cw-name-card__arrow { color: var(--cw-gold); font-size: 0.85rem; line-height: 1; }

.cw-name-card__to {
	font-family: var(--cw-serif);
	font-size: 1.22rem;
	color: #fff;
	line-height: 1.2;
}
.cw-name-card__to mark {
	background: rgba(217, 178, 95, 0.28);
	color: var(--cw-gold-soft);
	border-radius: 3px;
	padding: 0 0.08em;
}

.cw-name-card__note {
	margin-top: 0.35rem;
	font-size: 0.76rem;
	color: var(--cw-muted);
	line-height: 1.45;
}

.cw-names__note { margin-top: 1.5rem; max-width: 62ch; }

.cw-avatar {
	width: 3rem;
	height: 3rem;
	border-radius: 50%;
	overflow: hidden;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
}

.cw-avatar--mono {
	background: radial-gradient(circle at 32% 28%, rgba(217, 178, 95, 0.34), rgba(23, 29, 61, 0.9));
	border: 1px solid var(--cw-line);
	font-family: var(--cw-serif);
	font-size: 1.12rem;
	letter-spacing: 0.04em;
	color: var(--cw-gold-soft);
}

.cw-name-card .cw-avatar--mono { font-size: 2rem; }

.cw-avatar__img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 520px) {
	.cw-names { grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); }
	.cw-name-card { padding: 1rem 0.75rem 1.1rem; }
	.cw-name-card .cw-avatar { width: 5.25rem; height: 5.25rem; }
	.cw-name-card__to { font-size: 1.08rem; }
}

/* ==========================================================================
   9. Notes grid (what a correction involves)
   ========================================================================== */

.cw-notes {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	gap: clamp(1.25rem, 3vw, 2.25rem);
}
.cw-notes article { border-top: 1px solid var(--cw-line); padding-top: 1.1rem; }
.cw-notes h3 { font-size: 1.22rem; margin-bottom: 0.45rem; }
.cw-notes p { font-size: 0.96rem; color: rgba(242, 237, 226, 0.8); margin: 0; }

/* ==========================================================================
   10. Pricing
   ========================================================================== */

.cw-plans {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
	gap: 1.25rem;
	align-items: stretch;
}

.cw-plan {
	display: flex;
	flex-direction: column;
	background: linear-gradient(168deg, var(--cw-panel) 0%, var(--cw-night-deep) 100%);
	border: 1px solid var(--cw-line-quiet);
	border-radius: var(--cw-radius);
	padding: clamp(1.4rem, 3vw, 1.9rem);
}

.cw-plan--featured { border-color: var(--cw-gold); position: relative; }
.cw-plan--featured::after {
	content: attr(data-flag);
	position: absolute;
	top: -0.75rem;
	left: clamp(1.4rem, 3vw, 1.9rem);
	background: var(--cw-gold);
	color: #1a1405;
	font-size: 0.74rem;
	font-weight: 700;
	padding: 0.25rem 0.7rem;
	border-radius: 999px;
}

.cw-plan h3 { margin-bottom: 0.35rem; }

.cw-plan__price {
	font-family: var(--cw-serif);
	font-size: 2.9rem;
	color: var(--cw-gold);
	line-height: 1;
	margin: 0.4rem 0 0.15rem;
}
.cw-plan__price sub { font-size: 0.9rem; color: var(--cw-muted); vertical-align: baseline; }

.cw-plan ul { list-style: none; margin: 1.1rem 0 1.6rem; padding: 0; display: grid; gap: 0.6rem; }
.cw-plan li {
	position: relative;
	padding-left: 1.5rem;
	font-size: 0.95rem;
	color: rgba(242, 237, 226, 0.85);
}
.cw-plan li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55em;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--cw-gold);
}
.cw-plan .cw-btn { margin-top: auto; }

.cw-plan__after { margin: 0.75rem 0 0; font-size: 0.82rem; color: var(--cw-muted); }

/* Steps — a real sequence, so numbering is warranted */

.cw-steps { counter-reset: cwstep; display: grid; gap: 1.1rem; margin-top: clamp(2rem, 4vw, 3rem); }
.cw-step {
	counter-increment: cwstep;
	position: relative;
	padding-left: 3.1rem;
	min-height: 2.1rem;
}
.cw-step::before {
	content: counter(cwstep);
	position: absolute;
	left: 0;
	top: 0;
	width: 2.1rem;
	height: 2.1rem;
	display: grid;
	place-items: center;
	border: 1px solid var(--cw-gold);
	border-radius: 50%;
	color: var(--cw-gold);
	font-family: var(--cw-serif);
	font-size: 1rem;
}
.cw-step h4 { margin: 0 0 0.2rem; }
.cw-step p { margin: 0; font-size: 0.94rem; color: rgba(242, 237, 226, 0.8); }

/* ==========================================================================
   11. FAQ
   ========================================================================== */

.cw-faq { display: grid; gap: 0; max-width: 46rem; }
.cw-faq details { border-bottom: 1px solid var(--cw-line-quiet); padding: 1.05rem 0; }
.cw-faq summary {
	cursor: pointer;
	list-style: none;
	font-family: var(--cw-serif);
	font-size: 1.2rem;
	color: #fff;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
}
.cw-faq summary::-webkit-details-marker { display: none; }
.cw-faq summary::after {
	content: "+";
	color: var(--cw-gold);
	font-size: 1.4rem;
	line-height: 1;
	flex: 0 0 auto;
}
.cw-faq details[open] summary::after { content: "\2013"; }
.cw-faq p { margin: 0.7rem 0 0; font-size: 0.96rem; color: rgba(242, 237, 226, 0.82); }

/* ==========================================================================
   12. Closing band
   ========================================================================== */

.cw-band {
	background: linear-gradient(150deg, rgba(217, 178, 95, 0.12), rgba(23, 29, 61, 0.7));
	border: 1px solid var(--cw-line);
	border-radius: var(--cw-radius);
	padding: clamp(1.75rem, 4vw, 2.75rem);
	text-align: center;
}
.cw-band h2 { margin-bottom: 0.5rem; }
.cw-band p { margin-inline: auto; }
.cw-band__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 1.4rem;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */

.cw-footer {
	border-top: 1px solid var(--cw-line-quiet);
	background: var(--cw-night-deep);
	padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
	margin-top: var(--cw-section);
}

.cw-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr repeat(3, 1fr);
	gap: clamp(1.5rem, 4vw, 2.5rem);
}
@media (max-width: 820px) {
	.cw-footer__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.cw-footer__grid { grid-template-columns: 1fr; }
}

.cw-footer h4 { font-family: var(--cw-serif); font-size: 1.1rem; margin-bottom: 0.7rem; }
.cw-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.cw-footer a { color: rgba(242, 237, 226, 0.75); text-decoration: none; font-size: 0.93rem; }
.cw-footer a:hover { color: var(--cw-gold); }
.cw-footer p { font-size: 0.92rem; color: var(--cw-muted); }

.cw-footer__legal {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--cw-line-quiet);
}
.cw-footer__legal p { font-size: 0.82rem; line-height: 1.6; max-width: 78ch; }

/* Floating WhatsApp */

.cw-float {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	z-index: 70;
	box-shadow: 0 10px 30px rgba(4, 6, 18, 0.5);
}


/* ==========================================================================
   13b. The personal report
   ========================================================================== */

.cw-report {
	background: linear-gradient(168deg, var(--cw-panel) 0%, var(--cw-night-deep) 100%);
	border: 1px solid var(--cw-line);
	border-radius: var(--cw-radius);
	padding: clamp(1.5rem, 4vw, 2.75rem);
	max-width: 52rem;
}

.cw-report__head {
	padding-bottom: 1.25rem;
	margin-bottom: 1.75rem;
	border-bottom: 1px solid var(--cw-line);
}

.cw-report__label {
	font-family: var(--cw-serif);
	font-style: italic;
	color: var(--cw-gold);
	margin: 0 0 0.3rem;
}

.cw-report__name {
	font-family: var(--cw-serif);
	font-size: clamp(2rem, 4.5vw, 2.9rem);
	color: #fff;
	margin: 0 0 0.35rem;
	line-height: 1.1;
}

.cw-report__meta { margin: 0; font-size: 0.86rem; color: var(--cw-muted); }

.cw-report__block { margin-bottom: 2.25rem; }
.cw-report__block:last-of-type { margin-bottom: 0; }
.cw-report__block h3 {
	font-size: 1.3rem;
	margin-bottom: 0.85rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px solid var(--cw-line-quiet);
}

.cw-report__score {
	font-family: var(--cw-serif);
	font-size: 3.4rem;
	color: var(--cw-gold);
	line-height: 1;
	margin: 0.75rem 0 0.5rem;
}
.cw-report__score span { font-size: 1.2rem; color: var(--cw-muted); }

.cw-report__block--key {
	background: rgba(217, 178, 95, 0.08);
	border: 1px solid var(--cw-line);
	border-radius: var(--cw-radius);
	padding: clamp(1.15rem, 3vw, 1.75rem);
}
.cw-report__block--key h3 { border-bottom-color: var(--cw-line); }

.cw-report__answer {
	font-family: var(--cw-serif);
	font-size: clamp(2.1rem, 5vw, 3.1rem);
	color: #fff;
	line-height: 1.1;
	margin: 0.4rem 0 0.35rem;
	letter-spacing: 0.01em;
}

.cw-report__gain { margin: 0 0 1.1rem; font-size: 0.92rem; color: var(--cw-gold-soft); }

.cw-report__alts { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.55rem; }
.cw-report__alts li {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	padding: 0.7rem 1rem;
	background: rgba(10, 13, 30, 0.5);
	border: 1px solid var(--cw-line-quiet);
	border-radius: 10px;
}
.cw-report__alt-name { font-family: var(--cw-serif); font-size: 1.35rem; color: #fff; }
.cw-report__alt-score { font-size: 0.88rem; color: var(--cw-muted); }

.cw-report__steps { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: 0.5rem; }
.cw-report__steps li { color: rgba(242, 237, 226, 0.86); }

.cw-report__foot {
	margin-top: 2rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--cw-line-quiet);
}
.cw-report__foot p { margin: 0; font-size: 0.84rem; color: var(--cw-muted); }

.cw-report__ask { max-width: 34rem; }
.cw-report__intro { max-width: 46rem; }

.cw-report__tools {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}


/* Band pill and report reasons */

.cw-band-pill {
	display: inline-block;
	margin: 0 0 0.5rem;
	padding: 0.25rem 0.8rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cw-gold-soft);
	background: rgba(217, 178, 95, 0.14);
	border: 1px solid var(--cw-line);
	border-radius: 999px;
}
.cw-band-pill:empty { display: none; }

.cw-report__band {
	display: inline-block;
	margin: 0 0 0.6rem;
	padding: 0.25rem 0.8rem;
	font-size: 0.74rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--cw-gold-soft);
	background: rgba(217, 178, 95, 0.14);
	border: 1px solid var(--cw-line);
	border-radius: 999px;
}

.cw-report__why {
	margin: 0.9rem 0 0;
	font-size: 0.93rem;
	color: rgba(242, 237, 226, 0.78);
}

.cw-report__alt-why {
	flex: 1 0 100%;
	margin-top: 0.3rem;
	font-size: 0.82rem;
	color: var(--cw-muted);
}

/* ==========================================================================
   14. Utilities + motion
   ========================================================================== */

.cw-hide { display: none !important; }
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

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

@media print {
	@page { margin: 16mm 14mm; }

	.cw-header,
	.cw-float,
	.cw-footer,
	.cw-band__actions,
	.cw-report__tools,
	.cw-report__ask,
	.cw-report__intro,
	.cw-thanks__foot,
	.cw-skip { display: none !important; }

	html, body {
		background: #fff !important;
		color: #14161f !important;
		font-size: 11.5pt;
	}

	.cw-section { padding-block: 0; }
	.cw-shell { max-width: none; padding-inline: 0; }

	.cw-report {
		background: #fff !important;
		border: none;
		border-radius: 0;
		padding: 0;
		max-width: none;
		box-shadow: none;
	}

	.cw-report h2,
	.cw-report h3,
	.cw-report__answer,
	.cw-report__name,
	.cw-report__alt-name { color: #14161f !important; }
	.cw-report__label, .cw-report__score, .cw-report__gain { color: #8a6a1f !important; }
	.cw-report__meta, .cw-report__foot p, .cw-report__alt-score, .cw-report__alt-why { color: #5c6070 !important; }
	.cw-report__band { color: #8a6a1f !important; background: #faf5e8 !important; border-color: #d9c79a; }
	.cw-report__why { color: #14161f !important; }
	.cw-report p, .cw-report li { color: #14161f !important; }

	.cw-report__block { break-inside: avoid; }
	.cw-report__block--key {
		background: #faf5e8 !important;
		border: 1px solid #d9c79a;
	}

	.cw-report__alts li,
	.cw-facts li {
		background: #fff !important;
		border: 1px solid #ddd;
	}
	.cw-facts dd { color: #8a6a1f !important; }
	.cw-facts dt { color: #5c6070 !important; }

	.cw-ledger {
		border-color: #ddd;
		break-inside: avoid;
	}
	.cw-ledger__letter { color: #14161f !important; }
	.cw-ledger__value, .cw-ledger__sum b { color: #8a6a1f !important; }
	.cw-ledger__sum { color: #5c6070 !important; }
}
