/* =====================================================
   My Sister's Budget — shared site styles
   ===================================================== */

:root {
  --bg-1: #FFE5EC;
  --bg-2: #E0F0FF;
  --bg-3: #FFF1A8;
  --paper: #FFFFFF;
  --paper-soft: #FFF8FB;
  --ink: #2B2540;
  --ink-soft: #6B6585;
  --ink-faint: #9A93B0;
  --accent: #FF6B9D;
  --accent-2: #7CC4E8;
  --accent-3: #FFD9A8;
  --green: #2BAF59;
  --shadow-sm: 0 4px 12px rgba(83, 54, 102, 0.08);
  --shadow: 0 8px 24px rgba(83, 54, 102, 0.12);
  --shadow-lg: 0 18px 44px rgba(83, 54, 102, 0.18);
  --radius: 18px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", -apple-system, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(165deg, var(--bg-1) 0%, var(--bg-2) 60%, #FFF8FB 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Soft confetti background */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(255,200,140,0.4) 0 4px, transparent 5px),
    radial-gradient(circle at 92% 18%, rgba(180,200,255,0.45) 0 6px, transparent 7px),
    radial-gradient(circle at 22% 78%, rgba(255,180,200,0.4) 0 5px, transparent 6px),
    radial-gradient(circle at 80% 88%, rgba(200,240,200,0.4) 0 5px, transparent 6px),
    radial-gradient(circle at 96% 55%, rgba(255,240,180,0.45) 0 4px, transparent 5px),
    radial-gradient(circle at 4% 50%, rgba(220,200,255,0.4) 0 5px, transparent 6px);
  pointer-events: none;
  z-index: 0;
}

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

h1, h2, h3, h4 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.18;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }

a { color: var(--accent); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

.container {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 760px; }

/* =====================================================
   HEADER
   ===================================================== */

.site-header {
  position: sticky; top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(43,37,64,0.06);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #FFD9E4, #A8DCFF);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  box-shadow: var(--shadow-sm);
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  text-decoration: none;
}
.nav a:hover { background: rgba(255,107,157,0.08); color: var(--accent); text-decoration: none; }
.nav a.active { color: var(--accent); }
.nav .cta {
  background: var(--ink); color: white !important;
  padding: 8px 16px; border-radius: 12px;
  margin-left: 6px;
}
.nav .cta:hover { background: var(--accent); }
.menu-toggle {
  display: none;
  border: none; background: none; cursor: pointer;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: ""; display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s ease, top 0.25s ease;
}
.menu-toggle span::before { position: absolute; top: -7px; left: 0; }
.menu-toggle span::after  { position: absolute; top: 7px;  left: 0; }

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav {
    position: absolute; left: 16px; right: 16px; top: 100%;
    flex-direction: column;
    background: var(--paper);
    border-radius: 18px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0; pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { padding: 12px 14px; }
}

/* =====================================================
   HERO
   ===================================================== */

.hero {
  padding: 64px 0 40px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 820px) {
  .hero { padding: 36px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
}
.hero h1 { margin-bottom: 0.4em; }
.hero .kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,107,157,0.1);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.hero-art {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none !important;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-primary {
  background: linear-gradient(135deg, #FF8FB1, #FF6B9D);
  color: white !important;
  box-shadow: 0 8px 22px rgba(255,107,157,0.32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(255,107,157,0.4); }
.btn-secondary {
  background: var(--paper);
  color: var(--ink) !important;
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* =====================================================
   SECTIONS / CARDS
   ===================================================== */

section { padding: 56px 0; }
section.tight { padding: 36px 0; }

.section-head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 36px;
}
.section-head .kicker {
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.card.link {
  text-decoration: none !important;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card.link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 0.96rem; }
.card .arrow { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--accent); }

.bg-pink   { background: #FFE3EC; }
.bg-blue   { background: #DCEEFF; }
.bg-peach  { background: #FFE8D2; }
.bg-mint   { background: #DDF5DC; }
.bg-lavender { background: #E8DEFF; }
.bg-butter { background: #FFF5C8; }

/* =====================================================
   STEP LIST
   ===================================================== */

.steps { display: grid; gap: 18px; }
.step {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: flex-start;
}
.step-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFD9E4, #A8DCFF);
  display: flex; align-items: center; justify-content: center;
  font-family: "Fraunces", serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--ink);
  flex-shrink: 0;
}
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-soft); }
@media (max-width: 600px) {
  .step { grid-template-columns: 1fr; }
}

/* =====================================================
   PULL QUOTE / CALLOUT
   ===================================================== */

.pull-quote {
  position: relative;
  background: linear-gradient(135deg, #FFF1F4, #F0F7FF);
  border-radius: var(--radius-lg);
  padding: 36px 36px 32px;
  margin: 36px 0;
  box-shadow: var(--shadow);
  text-align: center;
}
.pull-quote::before {
  content: "“";
  font-family: "Fraunces", serif;
  font-size: 6rem;
  position: absolute;
  top: -10px; left: 24px;
  color: var(--accent);
  opacity: 0.45;
  line-height: 1;
}
.pull-quote p {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 12px;
  line-height: 1.4;
}
.pull-quote .attribution {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  text-transform: uppercase;
}

.callout {
  background: var(--paper);
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  padding: 18px 22px;
  margin: 20px 0;
  box-shadow: var(--shadow-sm);
}
.callout strong { color: var(--accent); }

/* =====================================================
   ARTICLE / PROSE
   ===================================================== */

.prose {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 40px clamp(20px, 5vw, 56px);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-bottom: 0.4em; }

/* =====================================================
   ENVELOPE ILLUSTRATION
   ===================================================== */

.envelope-illo { width: 100%; max-width: 460px; }

/* =====================================================
   FAQ
   ===================================================== */

.faq { display: grid; gap: 12px; }
details.faq-item {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 4px 22px;
  box-shadow: var(--shadow-sm);
}
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 18px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  font-size: 1.6rem; color: var(--accent);
  transition: transform 0.2s ease;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
details.faq-item p { margin: 0 0 18px; color: var(--ink-soft); }

/* =====================================================
   TIPS
   ===================================================== */

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.tip {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.tip-num {
  font-family: "Fraunces", serif;
  font-size: 2.4rem;
  color: var(--accent);
  opacity: 0.4;
  font-weight: 700;
  line-height: 1;
}
.tip h3 { margin: 4px 0 8px; }
.tip p { margin: 0; color: var(--ink-soft); }

/* =====================================================
   DOWNLOAD STRIP
   ===================================================== */

.download-strip {
  background: linear-gradient(135deg, #2B2540 0%, #4D3D6E 100%);
  border-radius: var(--radius-lg);
  padding: 44px clamp(24px, 5vw, 56px);
  color: white;
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
  box-shadow: var(--shadow-lg);
}
.download-strip h2 { color: white; margin: 0 0 8px; }
.download-strip p { color: rgba(255,255,255,0.78); margin: 0; }
.download-strip .btn-primary {
  background: linear-gradient(135deg, #FFD0DD, #FF8FB1);
  color: var(--ink) !important;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .download-strip { grid-template-columns: 1fr; text-align: center; }
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
  margin-top: 60px;
  padding: 40px 0 28px;
  border-top: 1px solid rgba(43,37,64,0.08);
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.92rem;
  position: relative;
  z-index: 1;
}
.site-footer .brand { justify-content: center; margin-bottom: 8px; }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 16px 0 12px; }
.footer-links a { color: var(--ink-soft); }
.site-footer .credit { font-size: 0.82rem; color: var(--ink-faint); margin-top: 12px; }

/* =====================================================
   PAGE HEAD (smaller hero for inner pages)
   ===================================================== */

.page-head {
  text-align: center;
  padding: 60px 0 30px;
}
.page-head .kicker {
  display: inline-block;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255,107,157,0.1);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.page-head h1 { margin-bottom: 12px; }
.page-head p { max-width: 620px; margin: 0 auto; color: var(--ink-soft); font-size: 1.1rem; }

/* =====================================================
   UTIL
   ===================================================== */

.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
