/* ===================================================================
   Mosaic — marketing site
   Visual identity mirrors the app: warm cream canvas, serif display
   titles, soft rounded cards, the app's accent palette.
   =================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; }

:root {
  --bg:        #F4F2EC;   /* warm cream canvas        */
  --bg-sink:   #EDE9DE;   /* slightly deeper sections */
  --card:      #FDFCF9;   /* near-white card          */
  --elevated:  #FFFFFF;
  --ink:       #18150F;   /* primary text             */
  --ink-2:     #6B6353;   /* secondary text           */
  --ink-3:     #9A9382;   /* tertiary / muted         */
  --hairline:  rgba(24, 21, 15, .08);
  --hairline-2:rgba(24, 21, 15, .14);
  --empty-tile:#E4E0D6;

  --amber:  #F6A21A;
  --green:  #18A982;
  --blue:   #3A91E8;
  --purple: #7467D9;
  --pink:   #C45A91;
  --mint:   #6ABF9C;

  --r-card: 26px;
  --r-tile: 6px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(24,21,15,.04);
  --shadow:    0 8px 30px rgba(24,21,15,.07);
  --shadow-lg: 0 24px 60px rgba(24,21,15,.12);

  --maxw: 1120px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans:  "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; color: var(--ink); }
.eyebrow { font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); line-height: 1.6; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 15px;
  border-radius: var(--r-pill); padding: 13px 22px; border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline-2); }
.btn-ghost:hover { background: var(--elevated); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Nav */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,242,236,.82);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.scrolled { border-bottom-color: var(--hairline); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--ink-2); transition: color .15s ease; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 8px 24px 18px; border-bottom: 1px solid var(--hairline); }
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 12px 8px; font-weight: 600; color: var(--ink-2); border-radius: 10px; }
.nav-mobile a:hover { background: var(--elevated); color: var(--ink); }
.nav-mobile .btn { margin-top: 8px; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 86px) 0 clamp(48px, 7vw, 90px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2);
  background: var(--elevated); border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 6px 14px; box-shadow: var(--shadow-sm); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(42px, 6.6vw, 72px); margin: 22px 0 18px; }
.hero h1 em { font-style: italic; color: var(--amber); }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 32ch; }
.hero-actions { display: flex; align-items: center; gap: 16px; margin: 30px 0 16px; flex-wrap: wrap; }
.store-badge img { height: 54px; }
.hero-note { font-size: 14px; color: var(--ink-3); font-weight: 600; }
.hero-note b { color: var(--ink-2); }

/* Phone mockup */
.phone-stage { display: flex; justify-content: center; position: relative; }
.phone-stage::before { content: ""; position: absolute; inset: -8% -4% -4%;
  background: radial-gradient(60% 55% at 60% 35%, rgba(246,162,26,.16), transparent 70%); filter: blur(10px); z-index: 0; }
.phone { position: relative; z-index: 1; width: min(330px, 82vw); background: #0c0b09; border-radius: 46px; padding: 11px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(24,21,15,.06); }
.phone-screen { background: var(--bg); border-radius: 36px; overflow: hidden; padding: 16px; min-height: 580px; }
.phone-notch { width: 110px; height: 26px; background: #0c0b09; border-radius: 0 0 16px 16px; margin: -16px auto 10px; }
.scr-date { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.scr-title { font-family: var(--serif); font-size: 38px; font-weight: 600; letter-spacing: -.02em; margin: 2px 0 16px; }

.hcard { background: var(--card); border: 1px solid var(--hairline); border-radius: 22px; padding: 15px; box-shadow: var(--shadow-sm); }
.hcard + .hcard { margin-top: 13px; }
.hcard-top { display: flex; align-items: center; gap: 12px; }
.icon-chip { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0; }
.icon-chip svg { width: 21px; height: 21px; }
.hcard-meta { flex: 1; min-width: 0; }
.hcard-name { font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.hcard-freq { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.orb { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; }
.orb.done { color: #fff; }
.orb.open { border: 3px solid var(--empty-tile); }
.orb svg { width: 17px; height: 17px; }
.hgrid { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin: 13px 0 12px; }
.hgrid i { aspect-ratio: 1; border-radius: 3px; background: var(--empty-tile); }
.hcard-foot { display: flex; align-items: center; gap: 8px; }
.streak-badge, .cat-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; border-radius: var(--r-pill); padding: 5px 9px; }
.streak-badge { background: rgba(246,162,26,.14); color: #B5710A; }
.cat-badge { background: rgba(116,103,217,.12); color: var(--purple); }

/* Section scaffolding */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section.sink { background: var(--bg-sink); }
.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section h2 { font-size: clamp(30px, 4.4vw, 46px); margin: 14px 0 14px; }
.divider { border: 0; height: 1px; background: var(--hairline); max-width: var(--maxw); margin: 0 auto; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
.feature { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--sans); font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.feature p { font-size: 15px; color: var(--ink-2); margin-top: 7px; }
.feature .tag-pro { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--amber); background: rgba(246,162,26,.13); border-radius: var(--r-pill); padding: 3px 9px; margin-top: 12px; }

/* Showcase rows */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.showcase + .showcase { margin-top: clamp(48px, 7vw, 96px); }
.showcase.flip .showcase-visual { order: 2; }
.showcase h3 { font-size: clamp(24px, 3.2vw, 34px); }
.showcase p { margin-top: 12px; font-size: 17px; color: var(--ink-2); }
.mini-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.mini-list li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: 15px; }
.mini-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.showcase-visual { display: flex; justify-content: center; }

.year-card { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow); width: 100%; }
.year-card .yc-title { font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }
.year-card .yc-sub { font-size: 13px; color: var(--ink-2); font-weight: 600; margin-bottom: 16px; }
.year-grid { display: grid; grid-template-columns: repeat(26, 1fr); gap: 3px; }
.year-grid i { aspect-ratio: 1; border-radius: 2px; background: var(--empty-tile); }

.widget-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; max-width: 360px; }
.widget { background: linear-gradient(150deg, var(--amber), #d9851a); border-radius: 22px; padding: 16px; color: #fff;
  box-shadow: var(--shadow); aspect-ratio: 1; display: flex; flex-direction: column; justify-content: space-between; }
.widget.med { grid-column: span 2; aspect-ratio: 2.1 / 1; background: var(--card); color: var(--ink); border: 1px solid var(--hairline); }
.widget .w-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 14px; }
.widget .w-strip { display: flex; gap: 3px; }
.widget .w-strip i { width: 9px; height: 11px; border-radius: 2px; background: rgba(255,255,255,.28); }
.widget .w-strip i.on { background: #fff; }
.widget .w-name { font-weight: 800; font-size: 15px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 52px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 26px 22px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; }
.plan.featured { border-color: var(--amber); box-shadow: 0 14px 40px rgba(246,162,26,.18); }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 12px; font-weight: 800; color: #fff; background: var(--amber); border-radius: var(--r-pill); padding: 5px 14px; box-shadow: var(--shadow-sm); }
.plan-tier { font-weight: 800; font-size: 15px; color: var(--ink-2); }
.plan-price { font-family: var(--serif); font-size: 44px; font-weight: 600; margin: 8px 0 2px; letter-spacing: -.02em; line-height: 1; }
.plan-price sup { font-size: 22px; top: -16px; font-weight: 600; }
.plan-price .cents { font-size: 24px; }
.plan-period { font-size: 13px; color: var(--ink-2); font-weight: 600; min-height: 20px; }
.plan hr { border: 0; height: 1px; background: var(--hairline); margin: 18px 0; }
.plan ul { display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan li { display: flex; gap: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink); align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; }
.plan li.off { color: var(--ink-3); }
.plan .btn { margin-top: 22px; width: 100%; }

/* FAQ */
.faq { max-width: 760px; margin: 44px auto 0; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font-weight: 700; font-size: 17px; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chevron { width: 18px; height: 18px; color: var(--ink-3); transition: transform .25s ease; flex-shrink: 0; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-body { padding: 0 4px 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 64ch; }
.faq-body a { color: var(--blue); font-weight: 600; }

/* Download CTA */
.cta { text-align: center; padding: clamp(60px, 10vw, 120px) 0; }
.cta h2 { font-size: clamp(32px, 5vw, 52px); }
.cta p { color: var(--ink-2); font-size: 18px; margin: 14px auto 28px; max-width: 40ch; }
.cta .store-badge { display: inline-flex; }
.cta .store-badge img { height: 56px; }
.cta .hero-note { margin-top: 14px; }

/* Footer */
.site-footer { background: var(--bg-sink); border-top: 1px solid var(--hairline); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-weight: 600; font-size: 14px; color: var(--ink-2); }
.footer-nav a:hover { color: var(--ink); }
.footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.footer-email { font-weight: 700; font-size: 14px; color: var(--ink); }
.footer-copy { font-size: 13px; color: var(--ink-3); }

/* Inner pages */
.page-hero { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 88px) 24px clamp(20px, 3vw, 32px); }
.page-hero h1 { font-size: clamp(34px, 5.2vw, 54px); margin: 12px 0 10px; }
.page-hero p { color: var(--ink-2); font-size: 17px; }
.page-date { color: var(--ink-3); font-size: 14px; font-weight: 600; }

.prose { max-width: 720px; margin: 0 auto; padding: 10px 24px 80px; }
.prose h2 { font-family: var(--sans); font-size: 21px; font-weight: 800; margin: 36px 0 10px; letter-spacing: -.01em; }
.prose p { color: var(--ink-2); margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; color: var(--ink-2); margin-bottom: 12px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--blue); font-weight: 600; }
.prose strong { color: var(--ink); }
.callout { background: var(--card); border: 1px solid var(--hairline); border-left: 3px solid var(--green); border-radius: 14px; padding: 18px 20px; margin-bottom: 28px; }
.callout p { color: var(--ink); font-weight: 600; margin: 0; }
.contact-card { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 12px 18px; font-weight: 700; box-shadow: var(--shadow-sm); }
.contact-card a { color: var(--ink); }

.faq-groups { max-width: 760px; margin: 0 auto; padding: 0 24px 60px; }
.faq-group { margin-top: 36px; }
.faq-group-title { font-family: var(--sans); font-weight: 800; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.contact-banner { max-width: 760px; margin: 0 auto 80px; padding: 0 24px; }
.contact-banner-inner { background: var(--ink); color: var(--bg); border-radius: var(--r-card); padding: 32px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.contact-banner-inner h3 { font-family: var(--serif); color: var(--bg); font-size: 24px; }
.contact-banner-inner p { color: rgba(244,242,236,.7); font-size: 15px; margin-top: 4px; }
.contact-banner-inner .btn { background: var(--bg); color: var(--ink); }

/* Year-grid tiles pop in (transform only, so per-tile color alpha is preserved) */
@keyframes tilePop { from { transform: scale(.55); } to { transform: scale(1); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 920px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { max-width: none; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .pill { margin: 0 auto; }
  .showcase, .showcase.flip { grid-template-columns: 1fr; text-align: center; }
  .showcase.flip .showcase-visual { order: 0; }
  .mini-list { display: inline-flex; text-align: left; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-right { align-items: flex-start; }
}
