/* ============================================================
   H280 — shared stylesheet. Change the look here, every page updates.
============================================================ */
:root {
  color-scheme: light;
  --bone:  #F6F4EF;
  --paper: #FFFFFF;
  --ink:   #16181C;
  --soft:  #6B6E76;
  --faint: #9A9CA2;
  --blue:  #1C3F6E;
  --gold:  #9C7F4E;
  --line:  rgba(22,24,28,0.12);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', sans-serif;
  --mw:    1120px;
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
  body { background: #F6F4EF; color: #16181C; }
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bone); color: var(--ink); font-family: var(--sans); font-weight: 400; line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { cursor: pointer; font-family: var(--sans); }
::selection { background: var(--blue); color: var(--bone); }
.container { max-width: var(--mw); margin: 0 auto; padding: 0 36px; }
.eyebrow { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }

/* ---------- HEADER ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 120; padding: 24px 0; transition: all 0.4s ease; }
.site-header.scrolled { background: rgba(246,244,239,0.86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 15px 0; box-shadow: 0 1px 0 var(--line); }
.site-header.on-dark:not(.scrolled) { }
.header-inner { max-width: var(--mw); margin: 0 auto; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.brand svg { width: 26px; height: 26px; }
.menu-btn { display: flex; align-items: center; gap: 11px; background: none; border: none; font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.menu-btn .bars { display: inline-flex; flex-direction: column; gap: 4px; }
.menu-btn .bars i { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: 0.3s; }

/* ---------- MENU OVERLAY ---------- */
.menu-overlay { position: fixed; inset: 0; z-index: 200; background: var(--bone); display: flex; flex-direction: column; padding: 32px 0; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.menu-overlay.open { opacity: 1; pointer-events: auto; }
.menu-top { max-width: var(--mw); width: 100%; margin: 0 auto; padding: 0 36px; display: flex; align-items: center; justify-content: space-between; }
.menu-close { background: none; border: none; font-family: var(--sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }
.menu-list { flex: 1; max-width: var(--mw); width: 100%; margin: 0 auto; padding: 0 36px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.menu-list a { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 7vw, 4.2rem); line-height: 1.18; letter-spacing: -0.01em; color: var(--ink); transition: color 0.25s, padding-left 0.25s; width: fit-content; }
.menu-list a:hover { color: var(--blue); padding-left: 14px; }
.menu-list a.soon { color: var(--faint); pointer-events: none; }
.menu-list a.soon::after { content: ' soon'; font-family: var(--sans); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); vertical-align: super; margin-left: 10px; }
.menu-foot { max-width: var(--mw); width: 100%; margin: 0 auto; padding: 0 36px; display: flex; gap: 26px; }
.menu-foot a { font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--soft); }
.menu-foot a:hover { color: var(--ink); }

/* ---------- BADGE ---------- */
.badge { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bone); padding: 15px 26px; border-radius: 4px; transition: transform 0.3s, background 0.3s; }
.badge:hover { transform: translateY(-2px); background: var(--blue); }
.badge small { display: block; font-size: 0.58rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; line-height: 1; }
.badge strong { display: block; font-size: 1.02rem; font-weight: 500; line-height: 1.3; letter-spacing: 0.01em; }
.text-cta { font-family: var(--sans); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 5px; transition: color 0.25s, border-color 0.25s; }
.text-cta:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- HOME HERO ---------- */
#home-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; padding: 120px 28px 70px; }
.home-media { position: absolute; inset: 0; z-index: 0; background: linear-gradient(168deg, #E9F0F7 0%, #F1F1EC 55%, #F6F4EF 100%); overflow: hidden; }
.home-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* simulated water (delete when real video added) */
.home-media::before { content: ''; position: absolute; inset: -25%;
  background: radial-gradient(36% 30% at 40% 30%, rgba(46,107,184,0.16) 0, transparent 70%),
              radial-gradient(34% 28% at 66% 64%, rgba(120,170,220,0.18) 0, transparent 72%),
              radial-gradient(30% 26% at 24% 72%, rgba(28,63,110,0.12) 0, transparent 70%);
  animation: drift 24s ease-in-out infinite alternate; filter: blur(10px); }
@keyframes drift { from { transform: translate(0,0) scale(1);} to { transform: translate(4%,4%) scale(1.12);} }
.home-scrim { position: absolute; inset: 0; z-index: 1; background: radial-gradient(60% 60% at 50% 45%, rgba(246,244,239,0.30) 0, rgba(246,244,239,0.66) 100%); }
.home-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }

/* bottle placeholder */
.bottle-stage { position: relative; width: clamp(150px, 40vw, 210px); margin-bottom: 38px; opacity: 0; animation: fade 1.3s ease forwards 0.3s; }
.bottle { position: relative; width: 100%; aspect-ratio: 0.42; }
.bottle svg { width: 100%; height: 100%; overflow: visible; }
.bottle-sheen { position: absolute; inset: 0; border-radius: 60px; overflow: hidden; -webkit-mask: var(--bottle-mask); mask: var(--bottle-mask); }
.bottle-sheen::after { content: ''; position: absolute; inset: -40%;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.7) 48%, rgba(120,170,220,0.5) 52%, transparent 70%);
  animation: pour 5.5s linear infinite; }
@keyframes pour { from { transform: translateY(-60%);} to { transform: translateY(60%);} }

.home-wordmark { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 7vw, 4rem); letter-spacing: 0.06em; color: var(--ink); opacity: 0; animation: fade 1s ease forwards 0.5s; }
.home-caption { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--blue); margin-top: 12px; opacity: 0; animation: fade 1s ease forwards 0.7s; }
.home-actions { margin-top: 40px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; opacity: 0; animation: fade 1s ease forwards 0.9s; }
.scroll-cue { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); opacity: 0; animation: fade 1s ease forwards 1.3s; }

/* ---------- HOME OUTLINE (alternating) ---------- */
#home-outline { background: var(--paper); padding: 100px 0; border-top: 1px solid var(--line); }
.outline-head { text-align: center; max-width: 560px; margin: 0 auto 72px; }
.outline-head .eyebrow { display: block; margin-bottom: 18px; }
.outline-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 44px 0; border-top: 1px solid var(--line); }
.row:last-of-type { border-bottom: 1px solid var(--line); }
.row.flip .row-text { order: 2; }
@media (max-width: 760px) { .row { grid-template-columns: 1fr; gap: 24px; } .row.flip .row-text { order: 0; } }
.row-text h3 { font-family: var(--serif); font-weight: 500; font-size: 1.9rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.row-text p { font-size: 0.98rem; color: var(--soft); font-weight: 300; line-height: 1.7; max-width: 380px; }
.row-visual { display: flex; justify-content: center; }
.home-actions-2 { text-align: center; margin-top: 64px; display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ---------- INTERIOR PAGE HEADER ---------- */
.page-head { padding: 168px 0 60px; border-bottom: 1px solid var(--line); }
.page-head .eyebrow { display: block; margin-bottom: 18px; }
.page-head h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.01em; }
.page-head p { font-size: 1.1rem; color: var(--soft); font-weight: 300; max-width: 520px; margin-top: 20px; line-height: 1.7; }
.page-section { padding: 84px 0; }
.page-section.alt { background: var(--paper); }

/* principles / features reused */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
@media (max-width: 820px) { .principles { grid-template-columns: 1fr; gap: 36px; } }
.principle { border-top: 1px solid var(--ink); padding-top: 26px; }
.principle .num { font-family: var(--serif); font-style: italic; font-size: 1.05rem; color: var(--gold); margin-bottom: 14px; }
.principle h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.principle p { font-size: 0.92rem; color: var(--soft); font-weight: 300; line-height: 1.7; }
.section-title { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 4.5vw, 3rem); line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 18px; }
.section-title em { color: var(--blue); }
.section-sub { font-size: 1.05rem; color: var(--soft); font-weight: 300; line-height: 1.7; max-width: 540px; }

/* device mockups (placeholders) */
.devices { display: flex; align-items: flex-end; gap: 26px; flex-wrap: wrap; justify-content: center; }
.phone-sm { width: 150px; aspect-ratio: 9/19.5; background: var(--paper); border: 1px solid var(--line); border-radius: 32px; position: relative; box-shadow: 0 28px 56px -22px rgba(22,40,70,0.3); overflow: hidden; flex-shrink: 0; }
.phone-sm::before { content: ''; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 50px; height: 14px; background: var(--ink); border-radius: 50px; z-index: 3; }
.psr { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.psr svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.psr span { position: absolute; font-family: var(--serif); font-weight: 500; font-size: 1.25rem; color: var(--ink); }
.watch { width: 116px; height: 140px; background: var(--ink); border-radius: 36px; padding: 12px; box-shadow: 0 28px 56px -22px rgba(22,40,70,0.4); flex-shrink: 0; }
.watch-screen { width: 100%; height: 100%; background: var(--paper); border-radius: 27px; display: flex; align-items: center; justify-content: center; }
.wr { position: relative; }
.wr svg { width: 74px; height: 74px; transform: rotate(-90deg); }
.wr span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 500; font-size: 1rem; color: var(--ink); }

/* FAQ */
.faq { max-width: 720px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; background: none; border: none; color: var(--ink); font-family: var(--serif); font-size: 1.3rem; font-weight: 500; text-align: left; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color 0.2s; }
.faq-q:hover { color: var(--blue); }
.chev { width: 18px; height: 18px; flex-shrink: 0; color: var(--faint); transition: transform 0.3s; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 0 24px; font-size: 0.96rem; color: var(--soft); font-weight: 300; line-height: 1.78; max-width: 640px; }
.faq-item.open .faq-a { display: block; }

/* prose (privacy) */
.prose { max-width: 720px; }
.prose h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin: 30px 0 8px; }
.prose h3:first-child { margin-top: 0; }
.prose p { font-size: 0.92rem; color: var(--soft); font-weight: 300; line-height: 1.8; }
.prose a { color: var(--blue); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--ink); color: var(--bone); padding: 72px 0 38px; }
.footer-inner { max-width: var(--mw); margin: 0 auto; padding: 0 36px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 44px; }
.footer-brand .brand { color: var(--bone); margin-bottom: 14px; }
.footer-brand p { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: rgba(246,244,239,0.7); max-width: 280px; line-height: 1.5; }
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col h4 { font-size: 0.62rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(246,244,239,0.4); margin-bottom: 4px; }
.footer-col a { font-size: 0.84rem; color: rgba(246,244,239,0.72); font-weight: 300; transition: color 0.2s; }
.footer-col a:hover { color: var(--bone); }
.footer-base { max-width: var(--mw); margin: 50px auto 0; padding: 24px 36px 0; border-top: 1px solid rgba(246,244,239,0.14); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-base p { font-size: 0.72rem; color: rgba(246,244,239,0.4); font-weight: 300; letter-spacing: 0.02em; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.12s; } .d2 { transition-delay: 0.24s; }
@keyframes fade { from { opacity: 0; transform: translateY(16px);} to { opacity: 1; transform: translateY(0);} }

/* ---------- SHOWCASE (real App Store panels, displayed directly) ---------- */
.showcase-wrap { overflow: hidden; }
.showcase-intro { text-align: center; max-width: 560px; margin: 0 auto 30px; }
.showcase-intro .eyebrow { display: block; margin-bottom: 16px; }
.showcase-intro h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 4.5vw, 2.8rem); line-height: 1.1; letter-spacing: -0.01em; }
.showcase { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 36px 34px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.showcase::-webkit-scrollbar { display: none; }
.showcase .panel { flex: 0 0 auto; width: min(74vw, 312px); scroll-snap-align: center; border-radius: 18px; overflow: hidden; background: var(--bone); box-shadow: 0 34px 72px -34px rgba(22,40,70,0.30); }
.showcase .panel img { width: 100%; height: auto; display: block; }
.showcase.watch-strip .panel { width: min(70vw, 300px); }
