/* Pricing guide pages (cheesecake, cupcakes). Same tokens and components as the home page. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #6C4FD8;
  --primary-dk:#4A32A5;
  --primary-lt:#D9CEF3;
  --ink-deep:  #2E2272;
  --bg:        #F4F0FC;
  --text:      #2C2547;
  --muted:     #655C7D;
  --accent:    #F8F5FE;
  --cream:     #FBF3EA;
  --shadow:    0 18px 48px rgba(74,50,165,0.18);
  --radius:    20px;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { background: #fff; color: var(--text); font-family: 'Lato', sans-serif; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dk); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: 'Playfair Display', serif; line-height: 1.2; text-wrap: balance; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); font-weight: 700; margin-bottom: 12px; }

/* ── NAV ── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--primary-lt); }
nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand span { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem; color: var(--primary-dk); overflow: hidden; text-overflow: ellipsis; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a.text { color: var(--text); text-decoration: none; font-weight: 700; font-size: 0.92rem; }
.nav-links a.text:hover, .nav-links a.text[aria-current="page"] { color: var(--primary-dk); text-decoration: underline; text-underline-offset: 4px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; font: 700 0.92rem 'Lato', sans-serif; white-space: nowrap;
}
.btn:hover { background: var(--primary-dk); }

/* ── HEADER ── */
.guide-head { background: linear-gradient(120deg, #EFEAFB 0%, #F6F2FC 50%, var(--cream) 100%); padding: 56px 0 48px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.guide-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); color: var(--text); margin-bottom: 16px; max-width: 820px; }
.guide-head .lede { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.answer { margin-top: 26px; max-width: 680px; background: #fff; border: 1px solid var(--primary-lt); border-radius: 16px; padding: 18px 22px; }
.answer strong { color: var(--primary-dk); }

/* ── CALCULATOR ── */
.calc-section { padding: 56px 0 72px; }
.calc-title { font-size: clamp(1.5rem, 3vw, 1.95rem); color: var(--primary-dk); margin-bottom: 24px; }
.calc { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 28px; align-items: start; }
.calc form { background: #fff; border: 1px solid var(--primary-lt); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: 0.8rem; margin-top: 4px; line-height: 1.4; }
.input { display: flex; align-items: center; border: 1px solid #CFC5EC; border-radius: 12px; background: #fff; }
.input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(108,79,216,0.18); }
.input span { padding: 0 10px; color: var(--muted); font-size: 0.95rem; white-space: nowrap; }
.input input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 12px; font: 400 1rem 'Lato', sans-serif; color: var(--text); font-variant-numeric: tabular-nums; }
.input input:focus { outline: none; }
.input span + input { padding-left: 0; }
.result { background: var(--ink-deep); color: #fff; border-radius: var(--radius); padding: 28px; position: sticky; top: 88px; }
.result .label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.85); font-weight: 700; }
.result .price { font-family: 'Lato', sans-serif; font-weight: 700; font-size: 3rem; letter-spacing: -0.02em; line-height: 1.1; margin: 6px 0 18px; font-variant-numeric: tabular-nums; }
.result dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 18px; font-variant-numeric: tabular-nums; }
.result dt { color: rgba(255,255,255,0.88); }
.result dd { font-weight: 700; text-align: right; }
.result .profit { color: #8EE3B5; }
.result p.note { margin-top: 18px; font-size: 0.85rem; color: rgba(255,255,255,0.88); }
.play-badge { display: inline-block; }
.play-badge img { height: 74px; width: auto; margin: -12px; max-width: none; }
.result .play-badge { margin-top: 18px; }
.result .play-badge img { height: 64px; margin: -10px; }

/* ── ARTICLE ── */
article { padding: 24px 0 40px; }
article .wrap > * { max-width: 780px; }   /* reading width, same left edge as the sections above */
article h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); color: var(--primary-dk); margin: 48px 0 14px; }
article h2:first-child { margin-top: 0; }
article p, article ul, article ol { margin-bottom: 16px; }
article ul, article ol { padding-left: 22px; }
article li { margin-bottom: 6px; }
.table-wrap { overflow-x: auto; margin: 8px 0 12px; border: 1px solid var(--primary-lt); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--primary-lt); }
th { background: var(--accent); color: var(--primary-dk); font-size: 0.85rem; }
td.num, th.num { text-align: right; white-space: nowrap; }
tfoot td { font-weight: 700; border-bottom: 0; background: var(--accent); }
.table-note { font-size: 0.85rem; color: var(--muted); }
.callout { background: var(--accent); border-left: 4px solid var(--primary); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 20px 0; }
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0 20px; }
.compare div { border: 1px solid var(--primary-lt); border-radius: 14px; padding: 16px 18px; }
.compare strong { display: block; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 1.8rem; letter-spacing: -0.01em; color: var(--primary-dk); font-variant-numeric: tabular-nums; }
.compare span { color: var(--muted); font-size: 0.92rem; }
.figure { margin: 24px 0; }
.figure img { border-radius: 16px; border: 1px solid var(--primary-lt); box-shadow: var(--shadow); max-width: 460px; width: 100%; }
.figure figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }

/* ── FAQ ── */
.faq { display: grid; gap: 12px; margin-top: 8px; }
.faq details { border: 1px solid var(--primary-lt); border-radius: 14px; background: #fff; }
.faq summary { padding: 16px 20px; cursor: pointer; font-weight: 700; color: var(--primary-dk); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 20px 16px; color: var(--muted); margin: 0; }

/* ── CTA + MORE GUIDES ── */
.guide-cta { background: var(--ink-deep); color: #fff; text-align: center; padding: 72px 0; }
.guide-cta h2 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: 12px; }
.guide-cta p { color: rgba(255,255,255,0.9); max-width: 540px; margin: 0 auto 24px; }
.more-guides { padding: 48px 0; background: var(--bg); }
.more-guides ul { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.more-guides a { font-weight: 700; }

/* ── WHERE THE PRICE GOES (calculator) ── */
.split { margin-top: 22px; }
.split-title { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.85); font-weight: 700; margin-bottom: 8px; }
.split-bar { display: flex; gap: 2px; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.15); }
.split-bar span { flex: 1 1 0; min-width: 0; transition: flex-grow 0.35s ease; }
.s-ing { background: #F4C26B; } .s-pack { background: #C7B8FF; } .s-time { background: #7FB3FF; } .s-over { background: #F29BB2; } .s-profit { background: #8EE3B5; }
.split-legend { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; margin-top: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.9); padding: 0; }
.split-legend li { display: flex; align-items: center; gap: 6px; margin: 0; }
.split-legend i { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.split-legend b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ── HEADER ANIMATION, REVEAL, CONFETTI ── */
.guide-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.head-lottie { width: 220px; height: 220px; flex-shrink: 0; }
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }
.confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 200; }
@media (prefers-reduced-motion: reduce) { .split-bar span { transition: none; } }

footer { background: #1F1750; color: rgba(255,255,255,0.85); text-align: center; padding: 30px 24px; font-size: 0.88rem; }
footer a { color: #D9CEF3; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .calc { grid-template-columns: minmax(0, 1fr); }
  .result { position: static; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-links a.text { display: none; }
  .brand span { font-size: 1.05rem; }
  .calc form { gap: 14px 12px; padding: 18px; }
  .field label { font-size: 0.85rem; }
  .compare { grid-template-columns: minmax(0, 1fr); }
  .head-lottie { display: none; }
  /* Phones: drop the "You pay" column so the cost column fits */
  .pay { display: none; }
  th, td { padding: 9px 10px; }
}
@media (max-width: 380px) {
  .calc form { grid-template-columns: minmax(0, 1fr); }
  .brand span { font-size: 0.95rem; }
  .nav-links .btn { padding: 8px 14px; font-size: 0.85rem; }
}
