/* Financial Planning Toolkit — landing page styles (mobile first) */
:root {
  --ink: #2b2433;
  --muted: #5e566b;
  --purple: #5b3fa0;
  --purple-dark: #46307f;
  --purple-mid: #8b6fd8;
  --lav-50: #faf8fe;
  --lav-100: #f3eefd;
  --lav-200: #e4dbf8;
  --lav-300: #cfc0f0;
  --blush: #fdeff3;
  --blush-deep: #f4b6c2;
  --gold: #f6c945;
  --excel: #1d6f42;
  --excel-bg: #e8f5ee;
  --white: #fff;
  --line: #e7e0f4;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(91, 63, 160, 0.12);
  --shadow-sm: 0 3px 10px rgba(91, 63, 160, 0.1);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; margin-top: 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--purple); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--purple-mid); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 0.97rem; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 6px 16px rgba(91, 63, 160, 0.28); }
.btn-primary:hover { background: var(--purple-dark); }
.btn-ghost { background: #fff; color: var(--purple); border-color: var(--lav-300); }
.btn-ghost:hover { background: var(--lav-100); }
.btn-excel { background: #fff; color: var(--excel); border-color: var(--excel); }
.btn-excel:hover { background: var(--excel-bg); }
.btn-light { background: #fff; color: var(--purple-dark); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15); }
.btn-disabled { background: #efeff2; color: #6d6877; border-color: #d9d7de; cursor: not-allowed; }
.btn-disabled:hover { transform: none; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; font-size: 0.98rem; }
.brand b { color: var(--purple); }
.brand img { width: 34px; height: auto; }
.nav-toggle { background: none; border: 0; padding: 8px; border-radius: 10px; color: var(--ink); cursor: pointer; display: inline-flex; }
.nav-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 2px;
  background: #fff; padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.nav-menu.open { display: flex; }
.nav-menu a:not(.btn) { padding: 12px 8px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: 10px; }
.nav-menu a:not(.btn):hover, .nav-menu a[aria-current] { color: var(--purple); background: var(--lav-100); }
.nav-cta { margin-top: 8px; }

/* ---------- Typography helpers ---------- */
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; font-weight: 800; color: var(--purple); margin: 0 0 10px; }
.section { padding: 64px 0; }
.section-soft { background: var(--lav-50); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head h2, .about-copy h2, .beta h2 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 14px 0 0; }

/* ---------- Hero ---------- */
.hero { background: radial-gradient(900px 420px at 85% -10%, var(--lav-200), transparent 60%), radial-gradient(600px 360px at -10% 10%, var(--blush), transparent 60%), #fff; padding: 36px 0 56px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--lav-300); color: var(--purple-dark); font-weight: 700; font-size: 0.82rem; padding: 7px 14px; border-radius: 999px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #2fa66a; box-shadow: 0 0 0 4px rgba(47, 166, 106, 0.18); flex: none; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); font-weight: 800; }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.22rem); color: var(--muted); margin: 18px 0 26px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 20px 0 0; color: var(--muted); font-size: 0.94rem; }

.hero-visual { position: relative; padding-bottom: 70px; }
.hero-app { position: relative; z-index: 1; }
.hero-sheet { position: absolute; z-index: 2; width: 62%; right: -2%; bottom: 0; transform: rotate(1.5deg); }
.hero-penny { position: absolute; z-index: 3; left: -4px; bottom: -8px; width: 92px; height: auto; filter: drop-shadow(0 6px 8px rgba(70, 48, 127, 0.18)); }

/* ---------- Frames (browser + spreadsheet mockups) ---------- */
.frame { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.frame img { width: 100%; height: auto; }
.frame-bar { display: flex; gap: 6px; align-items: center; padding: 9px 12px; background: var(--lav-100); border-bottom: 1px solid var(--line); }
.frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--lav-300); }
.frame-bar-sheet { background: var(--excel-bg); border-bottom-color: #cfe8da; }
.frame-bar-sheet .sheet-dot { background: var(--excel); border-radius: 3px; width: 11px; height: 11px; }
.frame-bar-sheet .sheet-name { width: auto; height: auto; background: none; border-radius: 0; font-size: 0.72rem; font-weight: 600; color: var(--excel); }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; padding-top: 16px; padding-bottom: 16px; }
.trust-row p { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.trust-row svg { color: var(--excel); flex: none; }

/* ---------- Included ---------- */
.two-parts { display: grid; gap: 16px; margin-bottom: 28px; }
.part { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.part-app { background: var(--lav-100); }
.part-sheet { background: var(--excel-bg); border-color: #cfe8da; }
.part-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--purple); color: #fff; font-weight: 800; margin-bottom: 12px; }
.part-sheet .part-num { background: var(--excel); }
.part h3 { font-size: 1.3rem; margin-bottom: 8px; }
.part p { margin: 0; color: var(--muted); }
.inc-grid { list-style: none; display: grid; gap: 12px; }
.inc-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.15s; }
.inc-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.inc-num { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--lav-100); color: var(--purple); font-weight: 800; }
.inc-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inc-parts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.83rem; color: var(--muted); }
.inc-parts span { display: inline-flex; align-items: center; gap: 5px; }
.inc-parts svg { width: 14px; height: 14px; color: var(--purple); }
.inc-parts span + span svg { color: var(--excel); }

/* ---------- Pain points ---------- */
.pain-grid { display: grid; gap: 16px; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.pain-quote { margin: 0; font-weight: 700; font-size: 1.05rem; line-height: 1.4; }
.pain-fix { margin: 0; display: flex; gap: 8px; align-items: flex-start; color: var(--excel); font-weight: 700; font-size: 0.95rem; }
.pain-fix svg { flex: none; margin-top: 3px; }
.pain a { margin-top: auto; font-weight: 700; font-size: 0.92rem; }
.pain-penny { background: var(--blush); border-color: #f6d5de; align-items: center; text-align: center; justify-content: center; }
.pain-penny img { width: 96px; height: auto; }
.pain-penny p { margin: 0; }

/* ---------- Products ---------- */
.tools { padding-top: 64px; }
.beta-pill { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; background: var(--lav-100); color: var(--purple-dark); padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; }
.product { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.tint-lavender { background: #f3eefd; }
.tint-blush { background: #fdf0f4; }
.tint-periwinkle { background: #eef0fd; }
.tint-lilac { background: #f7effa; }
.tint-sky { background: #edf3fd; }
.product-head { display: flex; gap: 16px; align-items: center; margin-bottom: 26px; }
.product-num { flex: none; width: 54px; height: 54px; border-radius: 16px; background: var(--purple); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.5rem; margin: 0; box-shadow: 0 6px 14px rgba(91, 63, 160, 0.3); }
.product h3 { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.product-headline { margin: 6px 0 0; font-size: 1.1rem; color: var(--muted); font-weight: 500; }
.product-body { display: grid; gap: 28px; }
.product-copy { background: rgba(255, 255, 255, 0.72); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.product-problem { color: var(--muted); }
.product-problem strong { color: var(--ink); }
.checks { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checks svg { flex: none; margin-top: 3px; color: var(--excel); }
.product-both { margin: 0; font-size: 0.92rem; color: var(--purple-dark); background: var(--lav-100); padding: 10px 14px; border-radius: 12px; }

.panels { display: grid; gap: 18px; }
.panel { background: #fff; border-radius: var(--radius); padding: 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.panel-app { border-top: 5px solid var(--purple); }
.panel-excel { border-top: 5px solid var(--excel); }
.panel h4 { font-size: 1.08rem; }
.panel .frame { box-shadow: none; }
.panel-blurb { margin: 0; color: var(--muted); font-size: 0.94rem; flex: 1; }
.chip { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; }
.chip svg { width: 15px; height: 15px; }
.chip-app { background: var(--lav-100); color: var(--purple-dark); }
.chip-excel { background: var(--excel-bg); color: var(--excel); }

/* ---------- Quick wins ---------- */
.wins { list-style: none; display: grid; gap: 14px; max-width: 820px; margin: 0 auto; }
.wins li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: var(--shadow-sm); }
.win-num { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blush); color: var(--purple-dark); font-weight: 800; border: 1px solid #f6d5de; }
.wins h3 { font-size: 1.08rem; margin-bottom: 4px; }
.wins p { margin: 0; color: var(--muted); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 32px; align-items: center; }
.about-photo { position: relative; max-width: 320px; margin: 0 auto; width: 100%; }
.about-photo > img:first-child { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.penny-frame { aspect-ratio: 1; border-radius: 28px; background: linear-gradient(160deg, var(--lav-100), var(--blush)); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; align-items: flex-end; justify-content: center; padding: 20px 20px 0; overflow: hidden; }
.penny-frame img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { color: var(--muted); font-size: 1.04rem; }

/* ---------- Beta ---------- */
.beta-card { display: grid; gap: 20px; align-items: center; background: linear-gradient(135deg, var(--lav-100), var(--blush)); border: 1px solid var(--line); border-radius: 28px; padding: 32px 22px; box-shadow: var(--shadow); max-width: 1000px; }
.beta-card > img { width: 150px; height: auto; margin: 0 auto; order: -1; }
.beta-card h2 { margin-bottom: 14px; }
.beta-card p { color: var(--muted); }
.beta-list { margin: 0 0 24px; padding-left: 1.2rem; display: grid; gap: 8px; color: var(--ink); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; }
.faq-list { display: grid; gap: 12px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 700; position: relative; border-radius: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--lav-100); color: var(--purple); font-size: 1.2rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }
.faq-penny { display: flex; gap: 14px; align-items: center; margin-top: 28px; justify-content: center; text-align: left; }
.faq-penny img { width: 56px; height: auto; flex: none; }
.faq-penny p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Final CTA ---------- */
.final { background: linear-gradient(160deg, var(--purple), #7a5ccc 70%, #9a7be0); color: #fff; padding: 72px 0; text-align: center; }
.final-inner { max-width: 720px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.final-inner img { width: 120px; height: auto; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.2)); }
.final h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); }
.final p { margin: 0 0 8px; font-size: 1.12rem; color: #f0eafc; }

/* ---------- Footer ---------- */
.site-footer { background: #231c30; color: #cfc7de; padding: 32px 0; font-size: 0.9rem; }
.footer-row { display: grid; gap: 14px; }
.footer-brand { margin: 0; display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; }
.footer-brand img { width: 24px; height: auto; }
.footer-fine { margin: 0; max-width: 60ch; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: #e6dffa; }
.notice { background: var(--lav-100); border-radius: 12px; padding: 16px; }

/* ---------- Tablet and up ---------- */
@media (min-width: 720px) {
  .container { padding: 0 28px; }
  .trust-row { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .two-parts { grid-template-columns: 1fr 1fr; }
  .inc-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .panels { grid-template-columns: 1fr 1fr; }
  .product-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; padding: 28px; }
  .product-problem { grid-column: 1; font-size: 1.05rem; }
  .checks { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .product-both { grid-column: 1; align-self: end; }
  .about-grid { grid-template-columns: 320px 1fr; gap: 56px; }
  .about-photo { margin: 0; }
  .beta-card { grid-template-columns: 1fr 200px; padding: 44px; }
  .beta-card > img { order: 0; width: 210px; }
  .footer-row { grid-template-columns: 1fr auto; align-items: start; }
  .footer-fine { grid-column: 1; }
  .site-footer nav { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px; padding: 0; border: 0; box-shadow: none; background: none; }
  .nav-cta { margin: 0 0 0 10px; }
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1.02fr 1fr; gap: 56px; }
  .hero-penny { width: 128px; left: -40px; bottom: -14px; }
  .inc-grid { grid-template-columns: repeat(3, 1fr); }
  .pain-grid { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 88px 0; }
  .product { padding: 72px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .inc-link { transition: none; }
  .btn:hover, .inc-link:hover { transform: none; }
}

/* ---------- Optional email signup (bottom section + popup) ---------- */
.hp { position: absolute; left: -9999px; }
.signup { padding: 48px 0; }
.signup-card {
  display: grid; gap: 12px; justify-items: center; text-align: center; max-width: 820px; margin: 0 auto; padding: 32px 22px;
  background: linear-gradient(135deg, var(--lav-100), var(--blush)); border: 1px solid var(--lav-200); border-radius: 28px; box-shadow: var(--shadow);
}
.signup-penny { width: 96px; height: auto; }
.signup-card h2, .popup-card h2 { font-size: clamp(1.5rem, 5vw, 2rem); color: var(--purple-dark); line-height: 1.2; margin: 0 0 8px; }
.signup-card p, .popup-card p { margin: 0 0 16px; }
.signup-form { display: grid; gap: 10px; max-width: 480px; margin: 0 auto; text-align: left; }
.signup-input {
  width: 100%; font: inherit; padding: 14px 18px; border-radius: 999px; border: 2px solid var(--lav-300); background: #fff; color: var(--ink);
}
.signup-input:focus { outline: 3px solid var(--purple-mid); outline-offset: 2px; border-color: var(--purple); }
.signup-input[aria-invalid="true"] { border-color: #c0392b; }
.signup-btn { width: 100%; }
.signup-btn[disabled] { opacity: .7; cursor: progress; }
.signup-msg { min-height: 1.4em; margin: 0 !important; font-weight: 600; font-size: .95rem; text-align: center; }
.signup-msg.ok { color: #1e7a4a; }
.signup-msg.err { color: #b3261e; }
.signup-small { font-size: .85rem; opacity: .75; margin: 6px 0 0 !important; text-align: center; }
@media (min-width: 720px) {
  .signup-card { grid-template-columns: auto 1fr; text-align: left; padding: 36px 40px; gap: 28px; justify-items: start; align-items: center; }
  .signup-penny { width: 140px; }
  .signup-form { margin: 0; max-width: 520px; grid-template-columns: 1fr auto; }
  .signup-msg { grid-column: 1 / -1; text-align: left; }
  .signup-btn { width: auto; }
  .signup-card .signup-small { text-align: left; }
}

.popup {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(43, 36, 51, .45); animation: popup-fade .3s ease both;
}
.popup[hidden] { display: none; }
.popup-card {
  position: relative; width: 100%; max-width: 420px; max-height: 100%; overflow-y: auto; text-align: center; padding: 22px 22px 22px;
  background: linear-gradient(180deg, #fff, var(--lav-50)); border: 1px solid var(--lav-200); border-radius: 28px; box-shadow: var(--shadow);
  animation: popup-in .45s cubic-bezier(.2,.8,.2,1) both;
}
.popup-card:focus { outline: none; }
.popup-card .signup-form { grid-template-columns: 1fr; max-width: none; }
.popup-card .signup-btn { width: 100%; }
.popup-card .signup-msg { text-align: center; }
.popup-penny { width: 96px; height: auto; margin: 0 auto 6px; display: block; filter: drop-shadow(0 6px 10px rgba(91,63,160,.2)); }
.popup-close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--lav-100); color: var(--purple-dark); cursor: pointer;
}
.popup-close:hover { background: var(--lav-200); }
.popup-close:focus-visible { outline: 3px solid var(--purple-mid); outline-offset: 2px; }
@keyframes popup-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes popup-in { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .popup, .popup-card { animation: none; } }
