/* Bloomr — marketing site. Brand tokens mirror src/brand.config.ts. */
:root {
  --bg: #F4EFE6; --surface: #FBF8F2; --surface-alt: #EFEAE0;
  --moss: #4E6253; --pine: #34433A; --on-primary: #F4EFE6;
  --foliage-mid: #56705F; --foliage-hi: #6F8C77;
  --bark: #6F5034; --clay: #B07D5A; --soil-rim: #9C6A48;
  --sakura: #E8A0A8; --sakura-core: #F0C4CA;
  --ink: #2E322C; --muted: #8A8F80; --muted2: #9AA08E;
  --hairline: #E6E0D2; --hairline2: #DCD5C8;
  --chip-bg: #E7EDE2; --chip-text: #3B4D3F;
  --hm0: #EBE6DA; --hm1: #CBD6C2; --hm2: #A3BB97; --hm3: #7A9E72; --hm4: #4E6253;
  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --maxw: 1080px;
  --shadow-sm: 0 1px 2px rgba(46,50,44,.05), 0 6px 16px rgba(46,50,44,.06);
  --shadow-md: 0 8px 24px rgba(46,50,44,.08), 0 24px 60px rgba(46,50,44,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--moss); text-decoration: none; }
a:hover { color: var(--pine); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 62px); }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 21px; line-height: 1.25; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

/* ---- nav ---- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(244,239,230,.82); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--hairline); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 24px; height: 24px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links a:not(.btn) { display: none; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--moss); color: var(--on-primary); font-family: var(--sans); font-weight: 600; font-size: 15px; padding: 12px 22px; border-radius: 999px; border: none; cursor: pointer; transition: transform .12s ease, background .2s ease, box-shadow .2s ease; box-shadow: var(--shadow-sm); }
.btn:hover { background: var(--pine); color: var(--on-primary); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: transparent; color: var(--moss); box-shadow: none; border: 1px solid var(--hairline2); }
.btn-ghost:hover { background: var(--surface); color: var(--pine); }
.cta-note { font-size: 13.5px; color: var(--muted); margin: 14px 0 0; }
.store-badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 12px; border: 1px solid var(--hairline2); background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 500; }
.store-badge small { display: block; font-size: 10px; color: var(--muted); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.store-badge svg { width: 22px; height: 22px; }

/* ---- hero ---- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 30ch; margin: 22px 0 28px; line-height: 1.55; }
.hero-art { display: flex; justify-content: center; position: relative; }
.hero-glow { position: absolute; inset: -8% -4% auto; height: 60%; background: radial-gradient(60% 60% at 50% 40%, rgba(110,140,119,.18), transparent 70%); filter: blur(8px); z-index: 0; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; text-align: center; } .hero-sub { margin-inline: auto; } .hero .btn-row, .store-badges { justify-content: center; } }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- phone mockup ---- */
.phone { position: relative; width: 290px; aspect-ratio: 290 / 596; background: #25271f; border-radius: 44px; padding: 11px; box-shadow: var(--shadow-md); z-index: 1; }
.phone::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 96px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.16); z-index: 3; }
.screen { position: relative; width: 100%; height: 100%; background: var(--bg); border-radius: 34px; overflow: hidden; }
.screen-pad { position: absolute; inset: 0; padding: 30px 18px 16px; display: flex; flex-direction: column; }
.phone-sm { width: 220px; }

/* app-ui pieces (mockups) */
.app-head { display: flex; align-items: center; justify-content: space-between; }
.app-title { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--chip-bg); color: var(--chip-text); font-size: 12.5px; font-weight: 500; }
.chip svg { width: 13px; height: 13px; }
.app-center { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ring-wrap { position: relative; width: 196px; height: 196px; }
.ring-wrap .bonsai { position: absolute; inset: 0; margin: auto; width: 124px; height: 135px; }
.timer { font-family: var(--serif); font-size: 30px; font-weight: 500; margin-top: 16px; }
.app-meta { font-size: 12px; color: var(--muted); }
.app-btn { height: 46px; border-radius: 12px; background: var(--moss); color: var(--on-primary); display: flex; align-items: center; justify-content: center; font-size: 14.5px; font-weight: 600; }

.garden-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 14px; }
.gcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: 16px; padding: 14px 8px 11px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gcard.dash { background: transparent; border: 1.5px dashed var(--hairline2); }
.gcard .bonsai { width: 70px; height: 76px; }
.gcard .gname { font-size: 12.5px; font-weight: 600; }
.gcard .gstatus { font-size: 11px; color: var(--muted); }
.gcard .gstatus.bloom { color: var(--sakura); font-weight: 600; }

.metrics { display: flex; gap: 9px; margin-top: 16px; align-self: stretch; }
.mcard { flex: 1; background: var(--surface-alt); border-radius: 12px; padding: 13px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mcard .mv { font-family: var(--serif); font-size: 24px; font-weight: 500; line-height: 1; }
.mcard .ml { font-size: 10.5px; color: var(--muted); text-align: center; }

.streak-block { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 8px; }
.streak-num { font-family: var(--serif); font-size: 46px; font-weight: 500; line-height: 1; }
.streak-lbl { font-size: 12.5px; color: var(--muted); }
.heat { margin-top: 18px; }
.heat-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.heat-row + .heat-row { margin-top: 5px; }
.heat-cell { aspect-ratio: 1; border-radius: 5px; background: var(--hm0); }
.heat-cell.l1 { background: var(--hm1); } .heat-cell.l2 { background: var(--hm2); }
.heat-cell.l3 { background: var(--hm3); } .heat-cell.l4 { background: var(--hm4); }
.heat-cell.today { outline: 1.5px solid var(--moss); outline-offset: -1.5px; }

.complete-head { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-top: 14px; text-align: center; }
.complete-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; text-align: center; max-width: 22ch; }
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.petal { position: absolute; width: 9px; height: 6px; background: var(--sakura); border-radius: 60% 60% 60% 0; opacity: 0; animation: drift var(--d, 6s) var(--dl, 0s) ease-in infinite; }
@keyframes drift { 0% { opacity: 0; transform: translate(0,0) rotate(0); } 14% { opacity: .85; } 70% { opacity: .5; } 100% { opacity: 0; transform: translate(var(--dx,20px), var(--dy,150px)) rotate(220deg); } }

/* ---- features ---- */
.features { padding: clamp(40px, 6vw, 80px) 0; }
.section-head { text-align: center; max-width: 36ch; margin: 0 auto clamp(36px, 5vw, 60px); }
.section-head p { color: var(--muted); margin-top: 14px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; padding: clamp(28px, 5vw, 54px) 0; }
.feature:nth-child(even) .feature-art { order: -1; }
.feature-art { display: flex; justify-content: center; }
.feature h3 { font-size: clamp(24px, 3vw, 30px); }
.feature p { color: var(--muted); margin-top: 14px; font-size: 17px; max-width: 40ch; }
.feature .num { font-family: var(--serif); font-size: 15px; color: var(--foliage-hi); margin-bottom: 10px; display: inline-block; }
@media (max-width: 760px) { .feature { grid-template-columns: 1fr; gap: 28px; text-align: center; } .feature:nth-child(even) .feature-art { order: 0; } .feature p { margin-inline: auto; } .feature-art { order: -1; } }

/* feature cards (no-mockup) */
.cardgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.fcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 26px 24px; box-shadow: var(--shadow-sm); }
.fcard h3 { font-size: 20px; margin-bottom: 10px; }
.fcard p { color: var(--muted); font-size: 15.5px; margin: 0; }
.fcard .ic { width: 34px; height: 34px; color: var(--moss); margin-bottom: 16px; }
@media (max-width: 760px) { .cardgrid { grid-template-columns: 1fr; } }

/* ---- closing ---- */
.closing { padding: clamp(48px, 7vw, 96px) 0; }
.closing-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 28px; padding: clamp(40px, 6vw, 72px); text-align: center; box-shadow: var(--shadow-sm); }
.closing-card p { color: var(--muted); max-width: 56ch; margin: 18px auto 28px; font-size: 18px; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--hairline); padding: 44px 0 56px; margin-top: 24px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer .brand { font-size: 20px; }
.footer-tag { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 30ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 28px; }
.footer-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted2); margin: 0 0 12px; font-weight: 600; }
.footer-col a { display: block; color: var(--ink); font-size: 14.5px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--moss); }
.footer-legal { margin-top: 36px; color: var(--muted2); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }

/* ---- prose (legal/support pages) ---- */
.page-head { padding: clamp(44px, 7vw, 80px) 0 8px; }
.page-head h1 { font-size: clamp(32px, 5vw, 46px); }
.page-head .lead { color: var(--muted); font-size: 18px; max-width: 60ch; margin-top: 16px; }
.prose { max-width: 720px; margin: 0 auto; padding: 24px 0 72px; }
.prose h2 { font-size: 24px; margin: 40px 0 12px; }
.prose h3 { font-size: 18.5px; margin: 28px 0 8px; }
.prose p, .prose li { color: #43473E; font-size: 16.5px; line-height: 1.7; }
.prose ul { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.back-link:hover { color: var(--moss); }

/* entrance */
.reveal { opacity: 0; transform: translateY(14px); animation: up .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes up { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } .petal { animation: none; opacity: .6; } html { scroll-behavior: auto; } }
