/* Shared styles for Gridwell product landing pages (e.g. /2027-goal-planner/) */
:root {
  --bg: #0B1220; --card: #141f33; --line: #24324b;
  --green: #4ADE80; --gold: #FDE047; --teal: #2DD4BF;
  --text: #F1F5F9; --muted: #94A3B8;
  --serif: 'Fraunces', Georgia, serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, Segoe UI, Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: hidden; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

header { position: sticky; top: 0; background: rgba(11,18,32,.85); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(36,50,75,.7); z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; letter-spacing: 3px; }
.brand:hover { text-decoration: none; }
.brand img { height: 30px; width: 30px; border-radius: 7px; }

.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #052e14; font-weight: 700; padding: 13px 22px; border-radius: 12px; transition: transform .15s ease, box-shadow .15s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(74,222,128,.28); }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn.gold { background: var(--gold); color: #3b2f04; }
.btn.gold:hover { box-shadow: 0 10px 28px rgba(253,224,71,.28); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }

.crumbs { font-size: 13.5px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); }

.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 28px 0 72px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; line-height: 1.06; letter-spacing: -1.3px; }
.hero h1 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--green); letter-spacing: -.4px; margin-top: 6px; }
.hero .lead { margin: 20px 0 26px; font-size: 18px; color: var(--muted); max-width: 50ch; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.trust b { color: var(--green); margin-right: 4px; }
.hero > * { min-width: 0; }
.hero img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 30px 60px rgba(0,0,0,.5); transform: rotate(-2deg); }

section { padding: 64px 0; border-top: 1px solid rgba(36,50,75,.6); }
.kicker { color: var(--teal); font-weight: 700; letter-spacing: 2.5px; font-size: 12.5px; text-transform: uppercase; }
h2 { font-size: clamp(28px, 3.8vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -.8px; margin: 8px 0 16px; }
h2 em { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--green); }
h3 { font-size: 19px; margin-bottom: 6px; }
p { color: var(--muted); font-size: 16.5px; }
p + p { margin-top: 14px; }
p strong { color: var(--text); }

.tabs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 30px; }
.tab { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.tab .label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #3b2f04; background: var(--gold); padding: 3px 10px; border-radius: 999px; margin-bottom: 12px; }
.tab p { font-size: 15.5px; }

ol.steps { list-style: none; counter-reset: s; margin-top: 28px; display: grid; gap: 18px; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
ol.steps li::before { content: counter(s, decimal-leading-zero); font-family: var(--serif); font-style: italic; font-size: 34px; line-height: 1; color: var(--green); }
ol.steps li:nth-child(even)::before { color: var(--gold); }

.compare { width: 100%; border-collapse: collapse; margin-top: 26px; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { color: var(--teal); font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; }
.compare td { color: var(--muted); }
.compare td:first-child { color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-top: 12px; }
.faq details[open] { border-color: var(--teal); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--teal); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 10px; font-size: 15px; }

.cta-final { text-align: center; background: linear-gradient(135deg, #0f3b33, #13203a 60%); border: 1px solid var(--line); border-radius: 26px; padding: 56px 26px; }
.cta-final h2 { max-width: 20ch; margin: 8px auto 12px; }
.cta-final p { max-width: 50ch; margin: 0 auto 26px; }
.cta-final .ctas { justify-content: center; }
.cta-final .price { display: block; font-size: 34px; font-weight: 800; color: var(--gold); margin-bottom: 16px; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.related a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; color: var(--text); font-weight: 600; }
.related a:hover { text-decoration: none; border-color: var(--teal); }
.related small { display: block; color: var(--muted); font-weight: 400; margin-top: 4px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; margin-top: 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-bottom: 56px; }
  .hero img { max-width: 420px; margin: 0 auto; }
  .tabs, .related { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
@media (max-width: 560px) {
  .wrap, .nav { padding-left: 16px; padding-right: 16px; }
  ol.steps li { grid-template-columns: 40px 1fr; gap: 12px; }
  ol.steps li::before { font-size: 26px; }
  .compare { min-width: 560px; font-size: 14px; }
  .compare th, .compare td { padding: 11px 10px; }
}

/* checklist (e.g. "where subscriptions hide") */
ul.check { list-style: none; margin-top: 24px; display: grid; gap: 14px; }
ul.check li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; }
ul.check li::before { content: '✓'; color: var(--green); font-weight: 800; font-size: 18px; line-height: 1.5; }
ul.check li p { font-size: 16px; }
