:root {
  --lavender-50: #fbf9ff;
  --lavender-75: #f7f3ff;
  --lavender-100: #f0e8ff;
  --lavender-200: #e5d7ff;
  --lavender-300: #cfb5fb;
  --lavender-400: #b28be9;
  --lavender-500: #9766dc;
  --lavender-600: #7d4fc3;
  --ink: #25223a;
  --muted: #77718d;
  --line: #e8e1f4;
  --white: #ffffff;
  --green: #4ba66a;
  --green-bg: #f1fbf4;
  --amber: #c98c2c;
  --amber-bg: #fff9ee;
  --red: #cf626f;
  --red-bg: #fff4f6;
  --shadow: 0 24px 70px rgba(108, 73, 148, .13);
  --soft-shadow: 0 12px 35px rgba(108, 73, 148, .08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }

/* Respect the native hidden attribute even on elements with display rules below. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 4%, rgba(215, 194, 255, .28), transparent 30%),
    radial-gradient(circle at 93% 7%, rgba(239, 225, 255, .5), transparent 24%),
    var(--lavender-50);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.site-shell { overflow: hidden; }
.topbar {
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 18px;
  position: sticky;
  top: 12px;
  z-index: 50;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(229, 215, 255, .8);
  border-radius: 24px;
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(105, 78, 142, .08);
}

.brand {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--lavender-500);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
}
.desktop-nav { display: flex; gap: 30px; font-size: .92rem; color: #5f5a72; }
.desktop-nav a, .footer-links a, .footer-links button { transition: .2s ease; }
.desktop-nav a:hover, .footer-links a:hover, .footer-links button:hover { color: var(--lavender-600); }
.top-actions { display: flex; align-items: center; gap: 10px; }

.pill-btn, .icon-btn, .text-btn, .menu-btn, .quick-card, .calc-tab, .heart-btn, .text-link, .guide-open, .footer-links button, .modal-close, .card-mini-head button {
  border: 0;
  cursor: pointer;
}
.pill-btn {
  border-radius: 999px;
  min-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.pill-btn:hover { transform: translateY(-2px); }
.pill-btn.primary { color: white; background: linear-gradient(135deg, #aa7ce7, #8b5ad0); box-shadow: 0 12px 24px rgba(139, 90, 208, .2); }
.pill-btn.soft { color: #7b5aae; background: #efe5ff; }
.pill-btn.full { width: 100%; }
.icon-btn, .menu-btn {
  width: 42px; height: 42px; border-radius: 50%; background: transparent; font-size: 1.25rem;
}
.icon-btn:hover, .menu-btn:hover { background: var(--lavender-75); }
.menu-btn { display: none; }
.mobile-menu { position: absolute; top: 76px; right: 0; left: 0; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--soft-shadow); }
.mobile-menu a { display: block; padding: 10px; }

.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  min-height: 610px;
  padding: clamp(34px, 6vw, 76px);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 30px;
  align-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,241,255,.95));
  border: 1px solid #eadff8;
  border-radius: 40px;
  box-shadow: var(--shadow);
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 6% 0 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e3d5f6, transparent);
}
.eyebrow, .mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: lowercase;
  color: #9065cb;
  background: #f2eaff;
  border: 1px solid #e8dbfb;
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .01em;
}
.hero h1 {
  margin: 20px 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  color: #9364d3;
  font-size: clamp(3.6rem, 7vw, 6.7rem);
  line-height: .88;
  letter-spacing: -.055em;
}
.hero h1 span { color: #a97ae4; }
.hero-sub { max-width: 610px; color: #6f6882; font-size: clamp(1rem, 1.8vw, 1.17rem); }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.text-btn, .text-link { background: transparent; color: #8362b2; font-weight: 600; }
.text-btn span { display: inline-grid; place-items: center; margin-left: 7px; width: 23px; height: 23px; border-radius: 50%; border: 1px solid #c8adef; font-size: .58rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; color: #9189a2; font-size: .82rem; }

.hero-art { min-height: 430px; position: relative; display: grid; place-items: center; }
.calculator-tilt {
  width: 265px;
  padding: 22px;
  border-radius: 38px;
  background: linear-gradient(155deg, #eadcff, #bd97ef);
  box-shadow: 0 32px 45px rgba(121, 87, 165, .26), inset 0 0 0 5px rgba(255,255,255,.22);
  transform: rotate(10deg);
  position: relative;
  z-index: 3;
}
.calc-display { height: 68px; padding: 18px; text-align: right; border-radius: 18px; background: rgba(255,255,255,.78); color: #a27dd2; font-style: italic; font-size: 1.08rem; box-shadow: inset 0 2px 8px rgba(96,64,145,.08); }
.calc-grid { margin-top: 14px; display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; }
.calc-grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.72); color: #a178d3; box-shadow: 0 5px 12px rgba(90,61,130,.09); }
.sparkle { position: absolute; color: #dfbc7f; font-size: 2.2rem; filter: drop-shadow(0 5px 8px rgba(218,176,104,.15)); }
.s1 { top: 10%; left: 16%; }
.s2 { top: 27%; right: 7%; color: #b78ce8; }
.s3 { bottom: 11%; right: 18%; }
.cloud { position: absolute; width: 145px; height: 55px; background: rgba(255,255,255,.9); border-radius: 999px; filter: blur(.1px); box-shadow: 0 14px 25px rgba(164,136,197,.12); }
.cloud::before, .cloud::after { content:""; position:absolute; background:inherit; border-radius:50%; }
.cloud::before { width: 72px; height: 72px; left: 18px; top: -35px; }
.cloud::after { width: 88px; height: 88px; right: 9px; top: -45px; }
.cloud-one { left: 3%; bottom: 10%; z-index: 4; }
.cloud-two { right: 3%; top: 17%; transform: scale(.62); opacity:.7; }

.quick-picker {
  width: min(1080px, calc(100% - 42px));
  margin: -48px auto 0;
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
  z-index: 5;
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
}
.quick-card { padding: 13px 8px; border-radius: 16px; background: transparent; color: #9274bd; display: grid; gap: 4px; place-items: center; transition: .2s ease; }
.quick-card:hover { background: var(--lavender-75); transform: translateY(-2px); }
.quick-card strong { font-size: .83rem; font-weight: 500; }
.quick-icon { font-size: 1.35rem; }

.section { width: min(1180px, calc(100% - 32px)); margin: 110px auto 0; }
.section-heading { max-width: 730px; margin-bottom: 34px; }
.section-heading.split { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading h2, .soft-banner h2, .about-card h2 {
  margin: 14px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  line-height: 1;
  letter-spacing: -.04em;
  color: #3b3152;
}
.section-heading p, .soft-banner p, .about-card p { color: var(--muted); font-size: 1rem; }

.calculator-layout { display: grid; grid-template-columns: 230px minmax(320px,.8fr) minmax(390px,1.2fr); gap: 18px; align-items: stretch; }
.calculator-sidebar, .calculator-card, .result-card { background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--soft-shadow); }
.calculator-sidebar { padding: 12px; display: flex; flex-direction: column; gap: 7px; }
.calc-tab { text-align: left; padding: 13px; border-radius: 15px; background: transparent; display: flex; align-items: center; gap: 12px; transition:.2s ease; }
.calc-tab > span { width: 34px; height: 34px; display:grid; place-items:center; border-radius:12px; background: #f6f0ff; color: #986bd1; }
.calc-tab b { display:block; font-size: .92rem; }
.calc-tab small { display:block; margin-top:2px; color:#928ba0; font-size:.72rem; }
.calc-tab:hover, .calc-tab.active { background: #f5efff; }
.calc-tab.active { box-shadow: inset 0 0 0 1px #e2d2f7; }
.calculator-card, .result-card { padding: clamp(20px, 3vw, 30px); }
.calc-card-head, .result-topline { display:flex; justify-content:space-between; gap:18px; align-items:flex-start; }
.calc-card-head h3, .result-empty h3, .verdict-wrap h3 { margin: 12px 0 0; font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.7rem, 3vw, 2.45rem); line-height: 1.02; }
.heart-btn { width: 40px; height: 40px; border-radius:50%; background:#faf7ff; color:#9e73d4; font-size:1.25rem; }
.heart-btn.active { background:#efe2ff; color:#7e4bbe; }
.progress-wrap { height:6px; background:#f0e8f7; border-radius:999px; overflow:hidden; margin:23px 0; }
.progress-wrap span { display:block; width:82%; height:100%; border-radius:inherit; background:linear-gradient(90deg,#c49df0,#9b6ad9); }
.form-grid { display:grid; gap:14px; }
.field label { display:block; color:#4d465d; font-size:.78rem; font-weight:600; margin-bottom:6px; }
.field-wrap { position:relative; }
.field-wrap span { position:absolute; left:14px; top:50%; transform:translateY(-50%); color:#9b92aa; }
.field input, .field select { width:100%; height:48px; padding:0 14px; border-radius:12px; border:1px solid #e6deee; background:#fff; color:#302b3c; outline:none; transition:.2s ease; }
.field-wrap input { padding-left:30px; }
.field input:focus, .field select:focus { border-color:#bb96ea; box-shadow:0 0 0 4px rgba(176,135,229,.11); }
.calculator-card .pill-btn { margin-top:20px; }
.tiny-note { margin:14px 0 0; color:#9a93a5; font-size:.72rem; }

.result-card { min-height: 610px; }
.result-empty { height:100%; min-height:520px; display:grid; place-items:center; align-content:center; text-align:center; padding:30px; color:#837b91; }
.result-face { width:86px; height:86px; display:grid; place-items:center; border-radius:50%; background:#f4ecff; border:8px double #dac5f4; color:#9f74d5; font-size:2rem; }
.result-empty h3 { color:#4a405b; }
.result-empty p { max-width:380px; }
.result-topline { padding-bottom:16px; border-bottom:1px solid var(--line); font-weight:600; }
.verdict-wrap { display:grid; grid-template-columns:auto 1fr; gap:18px; align-items:center; margin:28px 0; }
.verdict-icon { width:64px; height:64px; display:grid; place-items:center; border-radius:50%; border:2px solid var(--lavender-400); color:var(--lavender-500); font-size:1.55rem; box-shadow: inset 0 0 0 7px #f7f1ff; }
.verdict-kicker { color:#8d64c2; font-size:.75rem; font-weight:700; text-transform:uppercase; letter-spacing:.08em; }
.verdict-wrap h3 { margin-top:4px; color:#6f48a8; }
.verdict-wrap p { color:#777080; margin-bottom:0; }
.range-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.range-box { padding:16px; border-radius:16px; border:1px solid #eee8f3; background:#fbfaff; }
.range-box span, .range-box small { display:block; }
.range-box span { font-size:.72rem; font-weight:700; text-transform:lowercase; }
.range-box strong { display:block; margin:6px 0 3px; font-size:1rem; }
.range-box small { color:#8d8697; font-size:.68rem; }
.range-box.good span { color:var(--green); }
.range-box.stretch span { color:var(--amber); }
.range-box.risky span { color:var(--red); }
.result-lower { display:grid; grid-template-columns:1.5fr .85fr; gap:12px; margin:14px 0; }
.breakdown-card, .tip-card { border-radius:16px; border:1px solid var(--line); padding:17px; }
.card-mini-head { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-bottom:12px; }
.card-mini-head button { background:transparent; color:#9970cd; font-size:.72rem; }
.breakdown-row { display:flex; justify-content:space-between; gap:20px; padding:6px 0; color:#625b70; font-size:.76rem; }
.breakdown-row.total { margin-top:5px; padding-top:11px; border-top:1px solid #eee8f3; color:#30283e; font-weight:700; }
.tip-card { background:linear-gradient(145deg,#faf6ff,#f0e6ff); color:#76569d; }
.tip-card span { font-weight:700; font-size:.78rem; }
.tip-card p { margin-bottom:0; font-size:.79rem; }

.steps-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.step-card { min-height:230px; padding:28px; background:white; border:1px solid var(--line); border-radius:24px; box-shadow:var(--soft-shadow); }
.step-card span { color:#b083e5; font-family:"Playfair Display",Georgia,serif; font-size:1.6rem; }
.step-card h3 { margin:25px 0 8px; font-size:1.18rem; }
.step-card p { color:var(--muted); margin:0; }

.guide-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
.guide-card { min-height:260px; padding:28px; background:white; border:1px solid var(--line); border-radius:24px; box-shadow:var(--soft-shadow); display:flex; flex-direction:column; align-items:flex-start; }
.guide-card.featured { background:linear-gradient(135deg,#f1e5ff,#fff); }
.guide-tag { color:#9368cb; font-size:.75rem; font-weight:700; }
.guide-card h3 { font-family:"Playfair Display",Georgia,serif; font-size:1.65rem; line-height:1.08; margin:13px 0 8px; }
.guide-card p { color:var(--muted); }
.guide-open { margin-top:auto; padding:0; }

.soft-banner { width:min(1180px,calc(100% - 32px)); margin:110px auto 0; padding:50px; border-radius:34px; background:linear-gradient(135deg,#efe2ff,#fbf8ff 60%,#eee6ff); border:1px solid #e3d4f4; display:flex; justify-content:space-between; gap:28px; align-items:center; }
.soft-banner > div:first-child { max-width:760px; }
.banner-bubble { flex:0 0 auto; width:120px; height:120px; border-radius:50%; display:grid; place-items:center; background:white; border:8px double #d9c1f4; color:#a477db; font-size:2rem; box-shadow:var(--soft-shadow); }

.faq-list { display:grid; gap:10px; max-width:880px; }
details { background:white; border:1px solid var(--line); border-radius:18px; padding:0 20px; box-shadow:0 8px 26px rgba(94,73,120,.04); }
summary { cursor:pointer; list-style:none; font-weight:600; padding:18px 0; }
summary::-webkit-details-marker { display:none; }
summary::after { content:"+"; float:right; color:#9b72cf; }
details[open] summary::after { content:"−"; }
details p { color:var(--muted); margin-top:0; padding-bottom:18px; }

.about-section { width:min(1180px,calc(100% - 32px)); margin:110px auto; }
.about-card { padding:50px; background:white; border:1px solid var(--line); border-radius:34px; box-shadow:var(--soft-shadow); display:grid; grid-template-columns:1.3fr .7fr; gap:40px; align-items:center; }
.about-stats { display:grid; gap:12px; }
.about-stats div { padding:18px; border-radius:18px; background:#faf7ff; border:1px solid #eee5f8; display:flex; justify-content:space-between; align-items:center; gap:20px; }
.about-stats strong { color:#8b5fc2; font-family:"Playfair Display",Georgia,serif; font-size:2rem; }
.about-stats span { color:#777080; font-size:.78rem; text-align:right; }

footer { width:min(1180px,calc(100% - 32px)); margin:0 auto 30px; padding:34px 10px 10px; border-top:1px solid var(--line); display:grid; grid-template-columns:1fr auto; gap:24px; align-items:center; }
.footer-brand p { color:#90889d; margin:4px 0 0; }
.footer-links { display:flex; flex-wrap:wrap; gap:18px; color:#6d6578; font-size:.86rem; }
.footer-links button { background:transparent; padding:0; }
.footer-note { grid-column:1/-1; color:#aaa3b4; font-size:.72rem; }

.modal-backdrop { position:fixed; inset:0; z-index:100; background:rgba(44,33,57,.28); backdrop-filter:blur(8px); padding:22px; display:grid; place-items:center; }
.modal { width:min(640px,100%); max-height:85vh; overflow:auto; position:relative; padding:34px; background:white; border:1px solid var(--line); border-radius:26px; box-shadow:0 30px 90px rgba(59,36,88,.25); }
.modal h2 { margin:14px 0; font-family:"Playfair Display",Georgia,serif; font-size:2rem; }
.modal p, .modal li { color:#6f687b; }
.modal-close { position:absolute; top:15px; right:15px; width:38px; height:38px; border-radius:50%; background:#f7f1ff; color:#8861bc; font-size:1.35rem; }
.toast { position:fixed; right:24px; bottom:24px; z-index:120; transform:translateY(120px); opacity:0; padding:12px 18px; border-radius:999px; background:#3e3151; color:white; box-shadow:0 14px 32px rgba(56,41,74,.25); transition:.3s ease; }
.toast.show { transform:translateY(0); opacity:1; }

.reveal { opacity:0; transform:translateY(18px); transition:opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity:1; transform:none; }

@media (max-width: 1050px) {
  .calculator-layout { grid-template-columns: 190px 1fr; }
  .result-card { grid-column:1/-1; min-height:auto; }
  .result-empty { min-height:320px; }
}

@media (max-width: 820px) {
  .desktop-nav, .top-actions .icon-btn, .top-actions .soft { display:none; }
  .menu-btn { display:block; }
  .hero { grid-template-columns:1fr; min-height:auto; text-align:center; }
  .hero-sub { margin-inline:auto; }
  .hero-actions, .trust-row { justify-content:center; }
  .hero-art { min-height:360px; }
  .quick-picker { grid-template-columns:repeat(3,1fr); margin-top:-28px; }
  .calculator-layout { grid-template-columns:1fr; }
  .calculator-sidebar { flex-direction:row; overflow-x:auto; }
  .calc-tab { min-width:175px; }
  .result-card { grid-column:auto; }
  .steps-grid { grid-template-columns:1fr; }
  .guide-grid { grid-template-columns:1fr; }
  .about-card { grid-template-columns:1fr; }
  .soft-banner { padding:36px; }
}

@media (max-width: 600px) {
  .topbar { width:calc(100% - 20px); top:8px; margin-top:10px; }
  .hero, .section, .soft-banner, .about-section, footer { width:calc(100% - 20px); }
  .hero { border-radius:28px; padding:34px 20px 58px; }
  .hero h1 { font-size:clamp(3.2rem,16vw,4.7rem); }
  .hero-actions { flex-direction:column; }
  .hero-actions .pill-btn { width:100%; }
  .calculator-tilt { width:220px; }
  .hero-art { min-height:320px; }
  .cloud { transform:scale(.8); }
  .quick-picker { width:calc(100% - 34px); grid-template-columns:repeat(2,1fr); }
  .section { margin-top:80px; }
  .section-heading.split { align-items:flex-start; flex-direction:column; }
  .calculator-card, .result-card { padding:19px; }
  .range-grid, .result-lower { grid-template-columns:1fr; }
  .verdict-wrap { grid-template-columns:1fr; }
  .soft-banner { margin-top:80px; padding:30px 22px; flex-direction:column; align-items:flex-start; }
  .banner-bubble { width:90px; height:90px; }
  .about-card { padding:30px 22px; }
  footer { grid-template-columns:1fr; }
  .footer-note { grid-column:auto; }
}
