/* ============================================
   Building Better: homepage styles (home.css)
   Used only by website/index.html. The shared
   styles.css is untouched, so other pages are safe.
   ============================================ */

:root {
    --cream: #fff8f0;
    --cream-deep: #ffeedd;
    --peach: #ffd9c2;
    --coral: #f2876d;
    --butter: #ffe8a8;
    --sage: #d3e8d9;
    --lilac: #e6deff;
    --plum: #5a47b8;
    --plum-dark: #45349a;
    --ink: #2b2340;
    --ink-soft: #5e5873;
    --line: #eadfd2;
    --white: #ffffff;
    --night: #1a1a2e;
    --night-2: #262445;
    --radius: 28px;
    --radius-sm: 18px;
    --shadow: 0 18px 50px rgba(90, 71, 184, 0.14);
    --shadow-soft: 0 8px 24px rgba(43, 35, 64, 0.08);
    --serif: ui-serif, "New York", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --sans: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--sans);
    color: var(--ink);
    background: var(--cream);
    line-height: 1.65;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--plum); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; left: -999px; top: 8px; background: var(--plum); color: #fff;
    padding: 10px 16px; border-radius: 10px; z-index: 2000; text-decoration: none;
}
.skip-link:focus { left: 12px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 1rem;
    text-decoration: none; border: 2px solid transparent; cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    font-family: inherit;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--plum); color: #fff; box-shadow: 0 10px 26px rgba(90, 71, 184, 0.35); }
.btn-primary:hover { background: var(--plum-dark); box-shadow: 0 14px 30px rgba(90, 71, 184, 0.42); }
.btn-ghost { background: rgba(255,255,255,0.7); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-small { padding: 10px 20px; font-size: .95rem; }
.btn svg { width: 20px; height: 20px; fill: currentColor; }

/* App Store badge */
.badge-link { display: inline-block; line-height: 0; border-radius: 12px; transition: transform .2s ease, filter .2s ease; }
.badge-link:hover { transform: translateY(-2px); filter: drop-shadow(0 8px 14px rgba(43, 35, 64, 0.25)); }
.badge-link img { width: 176px; height: auto; }

/* ---------- Nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 248, 240, 0.88); backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(234, 223, 210, 0.7);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand-mark { width: 40px; height: 40px; border-radius: 22%; background: #000; display: block; flex: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; font-weight: 600; color: var(--ink-soft); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--plum); }
.menu-toggle {
    display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer;
    flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.menu-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 84px 0 96px; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(10px); z-index: 0; }
.hero::before { width: 520px; height: 520px; background: radial-gradient(circle, var(--peach), transparent 68%); top: -140px; right: -120px; }
.hero::after { width: 460px; height: 460px; background: radial-gradient(circle, var(--lilac), transparent 68%); bottom: -180px; left: -140px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line);
    padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--plum); margin-bottom: 26px;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); display: inline-block; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); margin-bottom: 24px; }
h1 em { font-style: italic; color: var(--plum); }
.lead { font-size: 1.22rem; color: var(--ink-soft); max-width: 34em; margin-bottom: 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 22px; }
.hero-note { color: var(--ink-soft); font-size: .95rem; }
.hero-note strong { color: var(--ink); }

/* Phones (illustrations built in HTML) */
.hero-visual { position: relative; min-height: 560px; display: flex; justify-content: center; align-items: center; }
.phone {
    width: 270px; background: var(--night); border-radius: 42px; padding: 12px;
    box-shadow: 0 30px 70px rgba(43, 35, 64, 0.3); position: absolute;
}
.phone-screen { background: linear-gradient(180deg, #1a1a2e, #20203d); border-radius: 32px; padding: 20px 16px 18px; color: #fff; min-height: 470px; }
.phone-a { transform: rotate(-4deg) translateX(-84px); z-index: 2; }
.phone-b { transform: rotate(5deg) translate(124px, 44px); z-index: 1; width: 250px; }
.phone-b .phone-screen { min-height: 440px; }
.p-title { text-align: center; font-weight: 700; font-size: .95rem; margin-bottom: 16px; }
.bubble { font-size: .84rem; line-height: 1.45; padding: 11px 14px; border-radius: 18px; margin-bottom: 11px; max-width: 88%; }
.bubble.bb { background: #3b3a58; border-bottom-left-radius: 6px; }
.bubble.me { background: #1f86f2; margin-left: auto; border-bottom-right-radius: 6px; }
.p-input { margin-top: 14px; background: #34334f; border-radius: 999px; padding: 11px 16px; color: #9a98b5; font-size: .82rem; }
.p-speak { margin-top: 10px; background: #b45be8; border-radius: 999px; text-align: center; padding: 11px; font-weight: 700; font-size: .85rem; }
.p-card { background: #34334f; border-radius: 18px; padding: 14px; margin-bottom: 12px; }
.p-card h4 { font-size: .88rem; margin-bottom: 4px; }
.p-card small { color: #b9b7d3; font-size: .74rem; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 64px; margin-top: 12px; }
.bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #8f7bf0, #5ad1d1); }
.ring { width: 74px; height: 74px; border-radius: 50%; background: conic-gradient(#8f7bf0 0 30%, #4a4870 30% 100%); display: grid; place-items: center; }
.ring b { width: 56px; height: 56px; border-radius: 50%; background: #34334f; display: grid; place-items: center; font-size: .9rem; }
.p-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.p-crisis { background: #4f2240; border: 1px solid #7a3a5e; border-radius: 16px; padding: 12px 14px; font-size: .8rem; }

/* ---------- Promise strip ---------- */
.strip { padding: 0 0 40px; }
.strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.strip-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.strip-item .dot { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.3rem; flex: none; }
.strip-item h3 { font-family: var(--sans); font-size: 1.02rem; font-weight: 800; margin-bottom: 4px; }
.strip-item p { color: var(--ink-soft); font-size: .95rem; line-height: 1.5; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 54px; }
.kicker { display: inline-block; color: var(--coral); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin-bottom: 14px; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); margin-bottom: 16px; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow-soft); position: relative; }
.step::before {
    counter-increment: step; content: counter(step);
    width: 46px; height: 46px; border-radius: 50%; background: var(--butter); color: var(--ink);
    display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; margin-bottom: 20px;
}
.step:nth-child(2)::before { background: var(--sage); }
.step:nth-child(3)::before { background: var(--lilac); }
.step h3 { font-size: 1.4rem; margin-bottom: 10px; }
.step p { color: var(--ink-soft); }

/* Features */
.features { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-deep) 100%); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.feature { border-radius: var(--radius); padding: 38px 36px; background: var(--white); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.7rem; margin-bottom: 22px; }
.feature h3 { font-size: 1.5rem; margin-bottom: 10px; }
.feature p { color: var(--ink-soft); }
.bg-peach { background: var(--peach); } .bg-sage { background: var(--sage); }
.bg-lilac { background: var(--lilac); } .bg-butter { background: var(--butter); }

/* Honest box */
.honest { padding: 24px 0 88px; background: var(--cream-deep); }
.honest-box { background: var(--white); border-radius: var(--radius); padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; border: 1px solid var(--line); }
.honest-box h2 { font-size: 1.9rem; }
.honest-box ul { list-style: none; display: grid; gap: 12px; }
.honest-box li { padding-left: 34px; position: relative; color: var(--ink-soft); }
.honest-box li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--sage); }
.honest-box li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.honest-box li.no::before { background: var(--peach); }
.honest-box li.no::after { width: 10px; height: 2px; border: 0; background: var(--ink); left: 5px; top: 13px; transform: none; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px 32px; display: flex; flex-direction: column; position: relative; }
.price-card.featured { background: linear-gradient(180deg, #fff 0%, #f5f0ff 100%); border: 2px solid var(--plum); box-shadow: var(--shadow); }
.tag { position: absolute; top: -14px; left: 32px; background: var(--plum); color: #fff; font-weight: 800; font-size: .8rem; padding: 6px 14px; border-radius: 999px; letter-spacing: .04em; }
.price-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.price-card .who { color: var(--ink-soft); font-size: .95rem; margin-bottom: 18px; }
.amount { font-family: var(--serif); font-size: 2.8rem; font-weight: 600; line-height: 1; margin-bottom: 4px; }
.amount small { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.alt-price { color: var(--ink-soft); font-size: .9rem; margin-bottom: 22px; min-height: 1.4em; }
.price-card ul { list-style: none; margin-bottom: 28px; display: grid; gap: 11px; flex: 1; }
.price-card li { padding-left: 28px; position: relative; font-size: .97rem; }
.price-card li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 7px; height: 12px; border: solid var(--plum); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(.85); }
.price-card .btn { width: 100%; }
.price-foot { text-align: center; color: var(--ink-soft); font-size: .92rem; margin-top: 26px; }

/* FAQ */
.faq { background: var(--cream-deep); }
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 24px; }
summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; color: var(--plum); line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-soft); padding-bottom: 20px; }
details a { color: var(--plum); font-weight: 600; }

/* Crisis band */
.crisis { padding: 64px 0; background: var(--white); }
.crisis-box {
    background: linear-gradient(135deg, #fff0ea, #ffe3d1); border: 1px solid #f6c9b3; border-radius: var(--radius);
    padding: 38px 44px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center;
}
.crisis-box h2 { font-size: 1.9rem; margin-bottom: 10px; }
.crisis-box p { color: var(--ink-soft); }
.crisis-list { display: grid; gap: 12px; }
.crisis-list a, .crisis-list div { background: #fff; border-radius: 16px; padding: 14px 18px; text-decoration: none; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; border: 1px solid #f6c9b3; }
.crisis-list span { font-weight: 500; color: var(--ink-soft); }
.crisis-list .big { font-size: 1.15rem; }

/* Final CTA */
.final { padding: 88px 0; text-align: center; background: radial-gradient(circle at 50% 0%, var(--lilac), var(--cream) 62%); }
.final h2 { font-size: clamp(2rem, 4vw, 3rem); max-width: 16em; margin: 0 auto 18px; }
.final p { color: var(--ink-soft); font-size: 1.12rem; max-width: 30em; margin: 0 auto 30px; }
.final .cta-row { justify-content: center; }

/* Footer */
.footer { background: var(--night); color: rgba(255,255,255,.78); padding: 64px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer p { line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 26px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom p + p { margin-top: 10px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.phone-a { animation: floaty 7s ease-in-out infinite; }
.phone-b { animation: floaty 8s ease-in-out infinite reverse; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .phone-a, .phone-b { animation: none; }
    .btn:hover, .feature:hover { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .lead { margin-left: auto; margin-right: auto; }
    .cta-row { justify-content: center; }
    .hero-visual { min-height: 520px; }
    .strip-grid, .steps, .pricing-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .honest-box, .crisis-box { grid-template-columns: 1fr; padding: 32px 26px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .price-card.featured { order: -1; }
}
@media (max-width: 760px) {
    .menu-toggle { display: flex; }
    .nav-links {
        position: absolute; top: 72px; left: 0; right: 0; background: var(--cream); padding: 20px 24px 26px;
        flex-direction: column; align-items: stretch; gap: 16px; border-bottom: 1px solid var(--line);
        display: none; text-align: center;
    }
    .nav-links.open { display: flex; }
    .hero { padding: 52px 0 64px; }
    section { padding: 64px 0; }
}
@media (max-width: 480px) {
    .phone-a { transform: rotate(-4deg) translateX(-44px); width: 236px; }
    .phone-b { transform: rotate(5deg) translate(70px, 40px); width: 216px; }
    .hero-visual { min-height: 500px; }
    .footer-grid { grid-template-columns: 1fr; }
}
