:root {
  --forest: #1E3A8A;
  --forest-2: #2A4BA3;
  --cream: #F7F8FB;
  --cream-2: #EEF2F8;
  --sage: #93C5FD;
  --soft-sage: #E0ECF8;
  --peach: #FF7A6B;
  --soft-peach: #FFE6E1;
  --fog: #E0ECF8;
  --sand: #E8E4DC;
  --blush: #FFE6E1;
  --gold: #F5B544;
  --charcoal: #111C3A;
  --muted: #6B7489;
  --line: #E1E6EF;
  --white: #FFFFFF;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --hand: 'Caveat', cursive;
  --radius: 26px;
  --shadow: 0 18px 40px rgba(30, 58, 138, 0.12);
  --shadow-sm: 0 8px 20px rgba(30, 58, 138, 0.08);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { font-family: var(--sans); color: var(--charcoal); background: var(--cream); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: var(--serif); color: var(--forest); letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: #3B82F6; }
[data-lucide] { width: 1em; height: 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15px; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-sm { height: 40px; padding: 0 20px; font-size: 14px; }
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-2); }
.btn-outline { border: 1.5px solid var(--forest); color: var(--forest); }
.btn-ghost { border: 1.5px solid var(--forest); color: var(--forest); background: var(--cream); width: 100%; }
.btn-gold { background: var(--gold); color: var(--forest); width: 100%; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 248, 251, 0.86); backdrop-filter: blur(12px); transition: box-shadow .2s ease; }
.nav.scrolled { box-shadow: 0 6px 24px rgba(30, 58, 138, 0.08); }
.nav-inner { display: flex; align-items: center; height: 72px; gap: 36px; }
.logo { display: inline-flex; align-items: center; gap: 6px; color: var(--forest); font-weight: 800; font-size: 30px; letter-spacing: -0.04em; }
.logo-mark { width: 34px; height: 34px; fill: var(--forest); margin-top: -6px; }
.logo-word { height: .8em; width: 3.2342em; fill: currentColor; }
.logo-sm { font-size: 24px; }
.logo-sm .logo-mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links > a { position: relative; padding: 6px 0; }
.nav-links > a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--forest); transform: scaleX(0); transition: transform .2s ease; }
.nav-links > a:hover::after { transform: scaleX(1); }
.nav-mobile-actions { display: none; }
.nav-actions { margin-left: auto; display: flex; gap: 12px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--white); align-items: center; justify-content: center; font-size: 22px; color: var(--forest); box-shadow: var(--shadow-sm); }

/* Shared bits */
.pill { display: inline-block; background: var(--cream-2); border: 1px solid var(--line); color: var(--forest); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 8px 16px; border-radius: 999px; }
.note { font-family: var(--hand); color: var(--forest); font-size: 26px; line-height: 1.05; }
.heart { color: var(--peach); font-family: var(--sans); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.rays { position: absolute; display: block; width: 46px; height: 46px; }
.rays i { position: absolute; width: 3px; height: 16px; background: var(--forest); border-radius: 3px; bottom: 0; left: 50%; transform-origin: bottom center; }
.rays i:nth-child(1) { transform: rotate(-45deg) translateY(-14px); }
.rays i:nth-child(2) { transform: translateY(-18px); }
.rays i:nth-child(3) { transform: rotate(45deg) translateY(-14px); }
.squiggle { position: absolute; width: 60px; fill: none; stroke: var(--forest); stroke-width: 2.4; stroke-linecap: round; }

/* Phone mockup around real app screenshots */
.phone { position: relative; width: 100%; max-width: 300px; aspect-ratio: 390 / 844; border-radius: 46px; padding: 10px; background: linear-gradient(145deg, #1f2638, #0b0f1a); box-shadow: 0 30px 60px rgba(30, 58, 138, 0.28), inset 0 0 0 2px #30384d; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 36px; }
.phone::before { content: ''; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; background: #0b0f1a; border-radius: 0 0 14px 14px; z-index: 1; display: none; }

/* Store badges */
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 14px; border-radius: 12px; background: var(--forest); color: var(--white); text-align: left; transition: transform .15s ease, background .15s ease; }
.store:hover { transform: translateY(-1px); background: var(--forest-2); }
.store svg { width: 26px; height: 26px; fill: var(--white); flex-shrink: 0; }
.store span { display: flex; flex-direction: column; font-size: 18px; font-weight: 700; line-height: 1.05; }
.store small { font-size: 10px; font-weight: 500; opacity: .85; }
.store-sm { height: 46px; background: rgba(11, 18, 34, 0.55); border: 1px solid rgba(255, 255, 255, 0.35); backdrop-filter: blur(6px); }
.store-sm span { font-size: 15px; }
.store-sm svg { width: 22px; height: 22px; }
.web-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--forest); border-bottom: 1.5px solid var(--sage); cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero-photo { position: absolute; top: 0; right: 0; width: 62%; height: 100%; background: url('assets/hero.jpg') center 40% / cover no-repeat; -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 28%); mask-image: linear-gradient(to right, transparent 0%, #000 28%); }
.hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247, 248, 251, 0) 70%, var(--cream) 100%); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 680px; align-items: center; padding-top: 40px; padding-bottom: 60px; }
.hero h1 { font-size: clamp(42px, 6.2vw, 78px); line-height: 0.98; margin-top: 22px; }
.lead { font-size: 17px; color: #3D4760; max-width: 430px; margin-top: 22px; }
.hero-visual { position: relative; height: 100%; min-height: 560px; }
.hero-photo-mobile { display: none; }
.phone-hero { position: absolute; right: 0; top: 50%; transform: translateY(-50%) rotate(6deg); max-width: 280px; }
.note-hero { position: absolute; left: 6%; top: 4%; transform: rotate(-8deg); font-size: 30px; text-shadow: 0 1px 12px rgba(247, 248, 251, 0.9); }
.squiggle-hero { left: 10%; top: 26%; }
.rays-hero { right: -8px; top: 6%; transform: rotate(25deg); }

/* Features */
.features { padding: 64px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--cream-2); }
.features-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 24px; text-align: center; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: var(--c); color: var(--white); font-size: 30px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.feature h3 { font-family: var(--sans); font-weight: 700; font-size: 16px; color: var(--forest); }
.feature p { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Organized */
.organized { padding: 96px 0 40px; }
.organized-grid { display: grid; grid-template-columns: 1fr 0.8fr 1.2fr; gap: 28px; align-items: center; }
.organized h2, .care h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.02; }
.organized-copy p { color: #4A556E; margin: 20px 0 30px; max-width: 360px; }
.organized-phone { display: flex; justify-content: center; position: relative; z-index: 2; }
.organized-phone .phone { max-width: 260px; transform: rotate(-4deg); }
.organized-photo { position: relative; margin-left: -70px; }
.organized-photo img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.note-photo { position: absolute; right: 18px; bottom: 22px; color: var(--white); text-align: right; transform: rotate(-6deg); text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45); font-size: 30px; }
.note-photo .heart { color: var(--white); }

/* Care */
.care { padding: 40px 0 96px; }
.care-grid { display: grid; grid-template-columns: 1fr 1.1fr 0.8fr; gap: 36px; align-items: center; }
.care-photo { position: relative; }
.care-photo img { width: 100%; aspect-ratio: 1 / 0.82; object-fit: cover; border-radius: var(--radius); border-top-right-radius: 90px; box-shadow: var(--shadow); }
.care-photo::after { content: ''; position: absolute; inset: 0; border-radius: var(--radius); border-top-right-radius: 90px; background: linear-gradient(180deg, rgba(11, 22, 52, 0) 35%, rgba(11, 22, 52, 0.62) 100%); pointer-events: none; }
.care-photo p { z-index: 1; }
.care-photo p { position: absolute; left: 26px; bottom: 22px; font-family: var(--serif); font-size: clamp(30px, 3.4vw, 42px); line-height: 1; color: var(--white); text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.care-photo p .heart { color: var(--white); font-size: 26px; }
.badge-line { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--forest); font-size: 15px; }
.badge-line em { font-style: normal; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--forest); padding: 3px 9px; border-radius: 999px; }
.care h2 { margin-top: 12px; }
.care-copy > p { color: #4A556E; margin: 16px 0 22px; max-width: 440px; }
.insight { display: flex; gap: 14px; align-items: center; background: var(--white); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-sm); max-width: 440px; }
.insight-icon { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--soft-peach); color: #E8604F; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.insight strong { display: block; font-size: 14px; }
.insight span { font-size: 13px; color: var(--muted); }
.care-phone { position: relative; display: flex; justify-content: center; }
.care-phone .phone { max-width: 250px; transform: rotate(4deg); }
.rays-care { left: -10px; top: -26px; transform: rotate(-30deg); }

/* Reviews */

.blob { position: absolute; border-radius: 48% 52% 58% 42% / 52% 46% 54% 48%; }

/* CTA */
.cta { position: relative; min-height: 460px; display: flex; align-items: center; background: linear-gradient(90deg, rgba(11, 22, 52, 0.72) 0%, rgba(11, 22, 52, 0.25) 55%, rgba(11, 22, 52, 0.05) 100%), url('assets/cta.jpg') center 55% / cover no-repeat; color: var(--white); }
.cta-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding-top: 70px; padding-bottom: 70px; }
.cta h2 { color: var(--white); font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; }
.cta p { font-size: 19px; margin: 14px 0 28px; opacity: .92; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta .btn-primary { background: var(--cream); color: var(--forest); }
.note-cta { color: var(--white); text-align: right; transform: rotate(-6deg); font-size: 32px; }
.note-cta .heart { color: var(--white); }

/* Footer */
.footer { padding: 30px 0; background: var(--forest); color: #BFD2F3; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .logo { color: var(--cream); }
.footer .logo-mark { fill: var(--cream); }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; }
.footer nav a { cursor: pointer; }
.footer nav a:hover { color: var(--cream); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(11, 18, 34, 0.55); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .2s ease; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: 100%; max-width: 400px; background: var(--cream); border-radius: 28px; padding: 36px 28px 28px; text-align: center; box-shadow: var(--shadow); }
.modal-card h3 { font-family: var(--serif); font-size: 28px; color: var(--forest); margin-top: 12px; }
.modal-card p { color: var(--muted); margin: 10px 0 22px; }
.modal-mark { width: 54px; height: 54px; fill: var(--forest); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: var(--white); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .organized-grid { grid-template-columns: 1fr 1fr; }
  .organized-copy { grid-column: 1 / -1; text-align: center; }
  .organized-copy p { margin-left: auto; margin-right: auto; }
  .organized-photo { margin-left: -60px; }
  .care-grid { grid-template-columns: 1fr 1fr; }
  .care-copy { grid-column: 1 / -1; grid-row: 1; text-align: center; }
  .care-copy > p, .insight { margin-left: auto; margin-right: auto; }
  .insight { text-align: left; }
}

@media (max-width: 860px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--cream); padding: 10px var(--gutter) 24px; box-shadow: 0 18px 30px rgba(30, 58, 138, 0.12); transform: translateY(-120%); transition: transform .25s ease; z-index: -1; }
  .nav-links.open { transform: none; }
  .nav-links > a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links > a::after { display: none; }
  .nav-mobile-actions { display: flex; gap: 12px; margin-top: 18px; }
  .nav-mobile-actions .btn { flex: 1; }
  .nav-actions { display: none; }
  .menu-btn { display: inline-flex; }

  .hero-photo { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding-top: 28px; padding-bottom: 48px; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .stores { justify-content: center; }
  .hero-visual { min-height: 0; height: auto; }
  .hero-photo-mobile { display: block; height: 400px; border-radius: var(--radius); background: url('assets/hero.jpg') center 40% / cover no-repeat; margin-right: 70px; }
  .phone-hero { top: auto; bottom: -24px; right: 0; transform: rotate(6deg); max-width: 170px; }
  .note-hero, .squiggle-hero { display: none; }
  .rays-hero { right: 120px; top: -26px; }

  .organized-grid, .care-grid { grid-template-columns: 1fr; }
  .organized-phone { order: 2; }
  .organized-photo { margin-left: 0; order: 3; }
  .organized-phone .phone, .care-phone .phone { max-width: 230px; }
  .care-photo { order: 3; }
  .care-phone { order: 2; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .note-cta { align-self: flex-end; }
}

@media (max-width: 600px) {
  .features { padding: 48px 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .feature-icon { width: 60px; height: 60px; font-size: 24px; }

  .hero-photo-mobile { height: 320px; margin-right: 50px; }
  .phone-hero { max-width: 135px; }
  .organized, .care, .getapp { padding-top: 64px; padding-bottom: 64px; }
  .cta { min-height: 520px; background-position: 65% center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer nav { justify-content: center; }
}

@media (max-width: 380px) {
  .store span { font-size: 16px; }

  .btn { padding: 0 20px; }
}

/* The browser's hidden attribute has to win over the display set by component rules */
[hidden] { display: none !important; }
.web-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--forest); }
.cta .btn-outline { border-color: rgba(255, 255, 255, 0.75); color: var(--white); }
.cta .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

/* Get the app: the web app, installed on the phone */
.getapp { position: relative; padding: 96px 0; background: var(--soft-sage); overflow: hidden; }
.blob-get-1 { width: 280px; height: 280px; background: var(--sage); opacity: .45; left: -120px; bottom: -60px; }
.blob-get-2 { width: 240px; height: 260px; background: var(--gold); opacity: .4; right: -90px; bottom: -40px; }
.getapp-grid { position: relative; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 26px; align-items: center; }
.getapp h2 { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.02; }
.getapp-copy p { font-size: 17px; margin: 16px 0 26px; color: #3D4760; max-width: 400px; }
.install { background: var(--cream); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow); }
.install h3 { font-family: var(--serif); font-size: 24px; color: var(--forest); display: flex; align-items: center; gap: 8px; }
.install h3 small { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-left: auto; }
.install ol { list-style: none; margin-top: 18px; display: grid; gap: 14px; }
.install li { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.install li span { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: var(--cream); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.install li [data-lucide] { color: var(--forest); }
.note-get { grid-column: 1 / -1; text-align: center; transform: rotate(-3deg); font-size: 30px; }
@media (max-width: 1100px) {
  .getapp-grid { grid-template-columns: 1fr 1fr; }
  .getapp-copy { grid-column: 1 / -1; text-align: center; }
  .getapp-copy p { margin-left: auto; margin-right: auto; }
}
@media (max-width: 600px) {
  .getapp-grid { grid-template-columns: 1fr; }
}
