/* The Family Budget — public pages (Green Midnight) */
:root { color-scheme: dark; --page: #111413; --card: #1A1E1C; --soft: #232826; --border: #2C322F; --line: #262B29; --text: #EEF2EF; --muted: #A3ADA7; --dark: #0A0C0B; --green: #15803D; --bright: #4ADE80; --yellow: #FFD25A; --head: 'Bricolage Grotesque', system-ui, sans-serif; --body: 'Figtree', system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--page); color: var(--text); font-family: var(--body); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--bright); }
a:hover { color: #86EFAC; }
:focus-visible { outline: 2px solid var(--bright); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--head); font-weight: 800; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; cursor: pointer; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #16903F; color: #fff; }
.btn-ghost { background: var(--card); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { color: var(--text); border-color: #3A413D; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; padding: 40px 0 64px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); }
.hero h1 span { background: var(--yellow); color: #111413; padding: 0 10px; border-radius: 12px; }
.lead { font-size: 19px; color: var(--muted); margin: 18px 0 26px; max-width: 34em; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }
.mock { background: var(--card); border-radius: 26px; padding: 20px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--border); }
.mock .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.mock .fig, .fig { font-family: var(--head); font-weight: 800; }
.tile-y { background: var(--yellow); color: #111413; border-radius: 18px; padding: 16px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bar { height: 6px; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; }
section { padding: 56px 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bright); margin-bottom: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.card { background: var(--card); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card p { margin: 0; color: var(--muted); }
.dot { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.steps .card::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 999px; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--head); }
.price { background: var(--card); border: 2px solid var(--green); border-radius: 26px; padding: 30px; max-width: 520px; margin: 28px auto 0; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.price .amt { font-family: var(--head); font-weight: 800; font-size: 56px; line-height: 1; }
.price ul { list-style: none; padding: 0; margin: 4px 0 8px; text-align: left; display: flex; flex-direction: column; gap: 8px; }
.price li::before { content: '✓'; color: var(--bright); font-weight: 800; margin-right: 10px; }
details { background: var(--card); border-radius: 16px; padding: 16px 18px; margin-top: 10px; }
summary { cursor: pointer; font-weight: 700; font-size: 17px; }
details p { color: var(--muted); margin: 10px 0 0; }
footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }
.center { text-align: center; }
.narrow { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: 40px; margin: 20px 0 6px; }
.legal h2 { font-size: 22px; margin: 32px 0 8px; }
.legal p, .legal li { color: #CDD5D0; }
.draft { background: #3D2A14; color: #FDBA74; border-radius: 14px; padding: 12px 16px; font-size: 14px; margin: 16px 0; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 16px; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .top .btn-ghost { display: none; }
}

/* Comparison table */
.compare { margin-top: 24px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.c-row { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; border-top: 1px solid var(--line); }
.c-row:first-child { border-top: 0; }
.c-row span { padding: 16px 18px; }
.c-row span:first-child { font-weight: 700; }
.c-row span:nth-child(2) { color: var(--muted); }
.c-row .us { background: rgba(21,128,61,.16); color: var(--bright); font-weight: 700; }
.c-head span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.c-head .us { color: var(--bright); }
@media (max-width: 560px) { .c-row { grid-template-columns: 1.1fr .8fr 1.1fr; font-size: 14px; } .c-row span { padding: 12px 10px; } }

/* Product tour, printable planner and Pinterest strip */
.show { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; align-items: center; margin-top: 40px; }
.show.flip { grid-template-columns: 1fr 1.15fr; }
.show.flip > img { order: 2; }
.show img { width: 100%; height: auto; display: block; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent), linear-gradient(transparent, #000 8%, #000 92%, transparent); mask-composite: intersect; }
.show .phone-img { max-width: 320px; margin: 0 auto; }
.show h3 { font-size: 26px; }
.show p { color: var(--muted); font-size: 17px; margin: 10px 0 0; }
.paper { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; background: var(--card); border: 1px solid var(--border); border-radius: 26px; padding: 28px; }
.paper img { width: 100%; height: auto; display: block; border-radius: 18px; }
.paper .btn { margin-top: 8px; }
.pins { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.pins img { width: 100%; height: auto; display: block; border-radius: 16px; transition: transform .2s; }
.pins:hover img { transform: translateY(-3px); }
@media (max-width: 860px) {
  .show, .show.flip, .paper { grid-template-columns: 1fr; gap: 20px; }
  .show.flip > img { order: 0; }
  .show .phone-img { max-width: 260px; }
  .pins { grid-template-columns: repeat(5, 46%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .pins img { scroll-snap-align: start; }
}

/* Reviews (section is commented out in index.html until real reviews come in) */
.review { margin: 0; }
.review blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
.review figcaption { color: var(--muted); font-size: 14px; font-weight: 700; margin-top: auto; padding-top: 8px; }

/* Lifestyle photos */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.photos img, .show img.photo { width: 100%; height: auto; display: block; border-radius: 22px; -webkit-mask-image: none; mask-image: none; }
.photos img { aspect-ratio: 3 / 2; object-fit: cover; }
@media (max-width: 860px) { .photos { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } .photos img { scroll-snap-align: start; } }

/* Free pages signup */
.signup { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.signup input[type=email] { flex: 1 1 220px; min-height: 48px; border-radius: 14px; border: 1px solid var(--border); background: var(--soft); color: var(--text); font: 500 16px var(--body); padding: 0 16px; }
.signup input[type=email]:focus { outline: 2px solid var(--bright); outline-offset: 1px; }
.signup .btn { margin-top: 0; }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Free pages popup: centered card on desktop, bottom sheet on phones */
.fp-lock, .fp-lock body { overflow: hidden; }
.fp-pop { position: fixed; inset: 0; z-index: 100; background: rgba(5, 7, 6, 0.72); display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .2s ease; }
.fp-pop[hidden] { display: none; }
.fp-pop.in { opacity: 1; }
.fp-card { position: relative; width: 100%; max-width: 760px; max-height: calc(100vh - 32px); overflow: auto; display: grid; grid-template-columns: 1fr 1.05fr; background: var(--card); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.5); transform: translateY(14px); transition: transform .25s ease; }
.fp-pop.in .fp-card { transform: none; }
.fp-card > img { width: 100%; height: 100%; object-fit: cover; display: block; background: #1A1E1C; }
.fp-body { padding: 30px 28px 22px; display: flex; flex-direction: column; }
.fp-body h2 { font-size: 28px; margin: 0 0 8px; }
.fp-body p { color: var(--muted); margin: 0 0 14px; }
.fp-body .signup { flex-direction: column; }
.fp-body .signup input[type=email] { flex: none; }
.fp-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--soft); color: var(--text); font-size: 24px; line-height: 1; cursor: pointer; }
.fp-no { margin-top: 10px; align-self: center; background: none; border: 0; color: var(--muted); font: 600 14px var(--body); text-decoration: underline; cursor: pointer; padding: 8px; }
@media (max-width: 699px) {
  .fp-pop { align-items: flex-end; padding: 0; }
  .fp-card { grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 88vh; transform: translateY(100%); }
  .fp-card > img { height: 150px; object-fit: contain; }
  .fp-body { padding: 18px 16px 16px; }
  .fp-body h2 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { .fp-pop, .fp-card { transition: none; } }

/* Launch price */
.price .launch { background: var(--yellow); color: #111413; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.price .was { font-size: 30px; font-weight: 600; color: var(--muted); text-decoration-thickness: 3px; margin-right: 8px; vertical-align: middle; }

/* Our Family Dashboard nod, above the footer */
.sister { display: flex; align-items: center; gap: 20px; margin: 10px 0 30px; padding: 20px 24px; border-radius: 20px; background: linear-gradient(165deg, #121826, #0E1322); border: 1px solid #222B3D; }
.sister img { width: 56px; height: auto; flex: none; }
.sister div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sister-k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8FB4FF; }
.sister b { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 26px; color: #F4EFE6; line-height: 1.15; }
.sister span { font-size: 14px; color: #B6C0D0; line-height: 1.45; }
.sister .btn { flex: none; }
@media (max-width: 640px) { .sister { flex-wrap: wrap; } .sister .btn { width: 100%; } }
