/* LoveMetric — shared styles. Pure static site, no framework. */
:root {
  --bg: #F8F5EE;
  --card: #FFFDF8;
  --article: #FAF8F5;
  --beige: #F0ECE3;
  --navy: #26374E;
  --navy-dark: #202E42;
  --burgundy: #922645;
  --burgundy-dark: #7A1E3A;
  --gold: #C99447;
  --text: #586577;
  --footer-link: #B4C1C5;
  --copyright: #9FABB5;
  --wordmark: #F8F2E8;
  --border: #E5DFD3;
  --shadow: 0 10px 30px rgba(38, 55, 78, .08);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 700;
}

a { color: var(--burgundy); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow.burgundy { color: var(--burgundy); }

.lead { font-size: 19px; max-width: 720px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--burgundy); color: #fff; }
.btn-primary:hover { background: var(--burgundy-dark); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #B07F33; }
.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .65);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn-small { padding: 10px 20px; font-size: 15px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px;
  border: 2.5px solid var(--burgundy);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--burgundy);
  line-height: 1;
}
.brand-name {
  font-family: "Playfair Display", serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--navy);
}
.main-nav { display: flex; gap: 26px; margin-left: auto; }
.main-nav a {
  color: var(--navy);
  font-weight: 500;
  font-size: 15.5px;
  text-decoration: none;
}
.main-nav a:hover { color: var(--burgundy); text-decoration: none; }
.main-nav a.active { color: var(--burgundy); font-weight: 700; }
.header-cta { flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { font-size: 58px; margin: 18px 0 20px; }
.hero h1 em {
  color: var(--burgundy);
  font-style: italic;
  font-weight: 700;
}
.hero p.lead { margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 15px; color: var(--text); }

.hero-art { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.hero-disc {
  width: 340px; height: 340px;
  border-radius: 50%;
  background: var(--burgundy);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: var(--shadow);
}
.hero-disc::before {
  content: "";
  position: absolute; inset: -22px;
  border: 2px dashed var(--burgundy);
  border-radius: 50%;
  opacity: .55;
}
.hero-disc::after {
  content: "";
  position: absolute; inset: -44px;
  border: 2px dashed var(--gold);
  border-radius: 50%;
  opacity: .5;
}
.hero-disc svg { width: 170px; height: 170px; }
.hero-chip {
  position: absolute;
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 20px;
  color: var(--navy);
  box-shadow: 0 6px 18px rgba(38, 55, 78, .14);
  z-index: 2;
}
.hero-chip.listen { top: 22px; left: 6%; }
.hero-chip.understand { bottom: 62px; left: 0; }
.hero-chip.grow { bottom: 8px; right: 2%; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-size: 40px; margin: 12px 0 14px; }
.section-head.left { text-align: left; margin-left: 0; }

.beige { background: var(--beige); }
.white-card { background: var(--card); }

/* ---------- Tool cards ---------- */
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.tool-card {
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  box-shadow: var(--shadow);
}
.tool-card.dark { background: var(--navy); color: #fff; }
.tool-card.dark h3 { color: #fff; }
.tool-card.dark p { color: #D5DDE3; }
.tool-card.light { background: var(--card); border: 1px solid var(--border); }
.tool-card h3 { font-size: 30px; }
.tool-card p { flex: 1; }
.tool-card .btn { margin-top: 6px; }

.tool-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tool-card.small { padding: 30px 26px; }
.tool-card.small h3 { font-size: 24px; }

/* ---------- Three columns / steps ---------- */
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.col-card h3 { font-size: 24px; margin-bottom: 10px; }
.step-num {
  font-family: "Playfair Display", serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .1em;
}
.steps { counter-reset: step; }
.step { position: relative; padding-top: 8px; }
.step .step-num { font-size: 20px; display: block; margin-bottom: 8px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  font-family: "Playfair Display", serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .faq-icon { font-family: "Inter", sans-serif; font-size: 26px; color: var(--burgundy); flex-shrink: 0; }
.faq-a { display: none; padding: 0 24px 22px; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--burgundy);
  color: #fff;
  text-align: center;
  padding: 72px 24px;
}
.cta-band h2 { color: #fff; font-size: 42px; margin-bottom: 12px; }
.cta-band p { color: #F3D9E0; font-size: 18px; margin-bottom: 28px; }

/* ---------- Article ---------- */
.article { background: var(--article); }
.article-inner { max-width: 820px; margin: 0 auto; }
.article h2 { font-size: 32px; margin: 36px 0 14px; }
.article h2:first-child { margin-top: 0; }
.article p { margin-bottom: 16px; }
.article ul { margin: 0 0 18px 22px; }
.article li { margin-bottom: 10px; }
.article li strong { color: var(--navy); }
.friendly-note {
  background: var(--beige);
  border-left: 4px solid var(--gold);
  padding: 18px 22px;
  border-radius: 0 12px 12px 0;
  margin-top: 28px;
}
.friendly-note strong { color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--footer-link); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 56px 24px 40px;
}
.footer-brand .brand-name { color: var(--wordmark); }
.footer-brand .brand-mark { color: var(--wordmark); border-color: var(--wordmark); }
.footer-brand p { margin-top: 16px; font-size: 15px; max-width: 300px; }
.footer-col h3 {
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--footer-link); font-size: 15px; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14.5px;
  color: var(--copyright);
}
.footer-bottom a { color: var(--footer-link); }

/* ---------- Tool / quiz pages ---------- */
.page-head { padding: 56px 0 8px; text-align: center; }
.page-head h1 { font-size: 44px; margin: 14px 0 14px; }
.page-head .lead { margin: 0 auto; }
.page-body { padding: 32px 0 72px; }

.panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 760px;
  margin: 0 auto;
}
.panel.wide { max-width: 920px; }

.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-row input[type="text"], .form-row select {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  font-family: "Inter", sans-serif;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
}
.form-row input[type="text"]:focus, .form-row select:focus {
  outline: none;
  border-color: var(--burgundy);
}
.form-error { color: var(--burgundy); font-weight: 600; margin-top: 10px; display: none; }
.entertainment-note {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--text);
  background: var(--beige);
  border-radius: 10px;
  padding: 12px 16px;
}

/* Quiz */
.quiz-progress { margin: 8px auto 24px; max-width: 760px; }
.quiz-progress-track {
  height: 10px;
  background: #E7E0D2;
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--burgundy);
  border-radius: 999px;
  transition: width .3s ease;
}
.quiz-meta {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 8px;
}
.quiz-partner {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  color: var(--burgundy);
  margin-bottom: 6px;
}
.quiz-category {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.quiz-question {
  font-family: "Playfair Display", serif;
  font-size: 26px;
  line-height: 1.4;
  color: var(--navy);
  text-align: center;
  margin-bottom: 28px;
}
.quiz-options { display: flex; flex-direction: column; gap: 10px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  transition: border-color .12s ease, background .12s ease;
}
.quiz-option:hover { border-color: var(--burgundy); }
.quiz-option.selected { border-color: var(--burgundy); background: #FBEFF3; }
.quiz-option input { accent-color: var(--burgundy); width: 18px; height: 18px; }
.quiz-nav { display: flex; justify-content: space-between; gap: 14px; margin-top: 28px; }

/* Results */
.result-score {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 84px;
  line-height: 1;
  font-weight: 800;
  color: var(--burgundy);
}
.result-score small { font-size: 40px; }
.result-title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  color: var(--navy);
  margin: 10px 0 6px;
}
.result-sub { text-align: center; margin-bottom: 28px; }
.cat-bar { margin-bottom: 14px; }
.cat-bar-head {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--navy);
  font-size: 15px;
  margin-bottom: 5px;
}
.cat-bar-track { height: 10px; background: #EDE7DA; border-radius: 999px; overflow: hidden; }
.cat-bar-fill { height: 100%; background: var(--gold); border-radius: 999px; }
.result-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.result-list {
  background: var(--beige);
  border-radius: 12px;
  padding: 18px 20px;
}
.result-list h4 { font-size: 19px; margin-bottom: 10px; }
.result-list ul { list-style: none; }
.result-list li { padding: 5px 0; font-size: 15.5px; }
.result-list li::before { content: "✓ "; color: var(--burgundy); font-weight: 700; }
.result-list.explore li::before { content: "→ "; }
.share-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 24px 0 8px;
}
.share-status { text-align: center; font-size: 14.5px; color: var(--burgundy); font-weight: 600; min-height: 22px; }
.result-actions { text-align: center; margin-top: 18px; }

/* Meter (love calculator) */
.meter-wrap { text-align: center; margin: 26px 0 10px; }
.meter-circle {
  width: 220px; height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: conic-gradient(var(--burgundy) 0deg, var(--burgundy) var(--pct, 0deg), #EDE7DA var(--pct, 0deg));
  position: relative;
}
.meter-circle::before {
  content: "";
  position: absolute; inset: 16px;
  background: var(--card);
  border-radius: 50%;
}
.meter-value {
  position: relative;
  font-family: "Playfair Display", serif;
  font-size: 56px;
  font-weight: 800;
  color: var(--burgundy);
  line-height: 1;
}
.meter-label { position: relative; font-size: 14px; font-weight: 600; color: var(--navy); margin-top: 4px; }
.verdict { text-align: center; font-family: "Playfair Display", serif; font-size: 26px; color: var(--navy); margin: 14px 0 6px; }

.flames-result { text-align: center; }
.flames-letter {
  font-family: "Playfair Display", serif;
  font-size: 96px;
  font-weight: 800;
  color: var(--burgundy);
  line-height: 1;
}
.flames-word { font-family: "Playfair Display", serif; font-size: 30px; color: var(--navy); margin: 8px 0; }
.zodiac-pair { text-align: center; margin-bottom: 8px; }
.zodiac-signs { font-size: 52px; letter-spacing: 6px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
}
.blog-card h3 { font-size: 23px; }
.blog-card h3 a { color: var(--navy); text-decoration: none; }
.blog-card h3 a:hover { color: var(--burgundy); }
.blog-card p { flex: 1; font-size: 15.5px; }
.blog-meta { font-size: 13.5px; color: var(--gold); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.post { max-width: 780px; margin: 0 auto; }
.post h2 { font-size: 29px; margin: 34px 0 12px; }
.post p { margin-bottom: 16px; }
.post ul, .post ol { margin: 0 0 18px 24px; }
.post li { margin-bottom: 8px; }
.post .cta-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  margin: 36px 0;
}
.post .cta-box h3 { color: #fff; font-size: 26px; margin-bottom: 10px; }
.post .cta-box p { color: #D5DDE3; }
.post .cta-box .btn { margin-top: 16px; }

/* Trust pages */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 28px; margin: 32px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 8px; }

/* 404 */
.notfound { text-align: center; padding: 90px 24px; }
.notfound h1 { font-size: 110px; color: var(--burgundy); line-height: 1; }
.notfound h2 { font-size: 34px; margin: 12px 0 14px; }

/* ---------- Love Calculator extras & share ---------- */
/* The .btn rule sets display:inline-block, which would override the
   browser's built-in [hidden] handling — force it here. */
[hidden] { display: none !important; }

#love-result { position: relative; }

.hearts-burst {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}
.burst-heart {
  position: absolute;
  bottom: 12%;
  opacity: 0;
  animation-name: heart-rise;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes heart-rise {
  0% { transform: translateY(0) rotate(0deg) scale(.8); opacity: 0; }
  15% { opacity: 1; }
  100% { transform: translateY(-260px) rotate(24deg) scale(1.15); opacity: 0; }
}

.love-extras {
  max-width: 460px;
  margin: 22px auto 4px;
  background: var(--beige);
  border-radius: 12px;
  padding: 18px 20px;
}
.extras-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15.5px;
  color: var(--navy);
  margin-bottom: 14px;
}
.extras-line strong { color: var(--burgundy); }
.mini-bar { margin-bottom: 10px; }
.mini-bar:last-child { margin-bottom: 0; }
.mini-bar-head {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: var(--navy);
  font-size: 14.5px;
  margin-bottom: 4px;
}
.mini-bar-track { height: 8px; background: #E7DFCF; border-radius: 999px; overflow: hidden; }
.mini-bar-fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width .8s ease; }

.challenge-row { text-align: center; margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .tool-grid, .tool-grid-3, .cols-3, .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .result-lists { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  body { font-size: 16px; }
  .header-inner { flex-wrap: wrap; height: auto; padding: 12px 0; gap: 12px; }
  .main-nav { order: 3; width: 100%; margin-left: 0; gap: 18px; flex-wrap: wrap; }
  .header-cta { margin-left: auto; }
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 42px; }
  .section { padding: 48px 0; }
  .section-head h2 { font-size: 32px; }
  .page-head h1 { font-size: 34px; }
  .panel { padding: 24px 20px; }
  .hero-disc { width: 260px; height: 260px; }
  .hero-disc svg { width: 130px; height: 130px; }
  .hero-art { min-height: 360px; }
  .quiz-question { font-size: 22px; }
  .result-score { font-size: 64px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band h2 { font-size: 32px; }
  .btn { padding: 13px 22px; }
}
