/* =========================================================
   Lumi — premium landing styles
   Calm, Scandinavian, champagne-gold on warm ivory.
   ========================================================= */

:root {
  /* Brand palette */
  --gold:        #C2A375;
  --bronze:      #9C7E54;
  --champagne:   #E0D1AD;
  --ivory:       #F5F1E9;
  --ivory-deep:  #EFE9DD;
  --ink:         #292621;
  --taupe:       #80786B;
  --sage:        #6B9E7D;
  --clay:        #C75C4D;

  --white-soft:  #FBF9F4;

  /* Typography */
  --font-head: "Jost", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing / shape */
  --radius:    20px;
  --radius-sm: 12px;
  --maxw:      1120px;

  /* Soft, warm depth */
  --shadow-sm: 0 4px 16px rgba(41, 38, 33, 0.06);
  --shadow-md: 0 18px 48px rgba(41, 38, 33, 0.10);
  --shadow-gold: 0 24px 70px rgba(194, 163, 117, 0.30);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

/* Snow canvas sits behind everything */
#snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Keep content above snow */
.nav, main, .footer { position: relative; z-index: 1; }

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

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 100;
  background: var(--ink);
  color: var(--ivory);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}
.skip-link:focus { left: 16px; }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 1.45rem;
  letter-spacing: 0.42em;
  color: var(--ink);
  padding-left: 0.42em; /* optical balance for tracking */
}
.wordmark--sm { font-size: 1.15rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}

.btn--ghost {
  padding: 9px 22px;
  border-radius: 999px;
  border: 1px solid rgba(156, 126, 84, 0.35);
  color: var(--ink);
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.4);
}
.btn--ghost:hover {
  background: var(--gold);
  color: var(--white-soft);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* App Store badge — clean custom black badge */
.btn--appstore {
  background: var(--ink);
  color: var(--ivory);
  padding: 12px 22px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
}
.btn--appstore:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn--appstore__logo { width: 26px; height: 30px; flex: none; }
.btn--appstore__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.btn--appstore__small { font-size: 0.66rem; letter-spacing: 0.04em; opacity: 0.85; font-weight: 400; }
.btn--appstore__big { font-family: var(--font-head); font-weight: 400; font-size: 1.18rem; letter-spacing: 0.005em; }
.btn--appstore--lg { padding: 15px 30px; }
.btn--appstore--lg .btn--appstore__big { font-size: 1.32rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;            /* always on top — content scrolls UNDER the bar */
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(245, 241, 233, 0.82);
  border-bottom: 1px solid rgba(156, 126, 84, 0.10);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
/* Nav "Download" — the gold (pressed) treatment by default; it's prettier. */
.nav__cta {
  background: linear-gradient(160deg, var(--gold), var(--bronze));
  color: var(--white-soft);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}
.nav__cta:hover {
  background: linear-gradient(160deg, var(--gold), var(--bronze));
  color: var(--white-soft);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--ivory-deep); }

.section__title {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  text-align: center;
  max-width: 18ch;
  margin: 0 auto 56px;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--bronze);
  margin-bottom: 22px;
}

/* ===========================================================
   HERO
   =========================================================== */
.hero { padding: 56px 0 88px; }
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
.hero__copy { max-width: 560px; }

.hero__title {
  font-size: clamp(2.6rem, 6.5vw, 4.2rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}
.hero__subhead {
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  color: var(--taupe);
  max-width: 44ch;
  margin-bottom: 36px;
}
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
/* Mobile/tablet: the App Store button lives below the phone; desktop one is hidden. */
.hero__actions--desktop { display: none; }
.hero__actions--mobile { align-items: center; margin-top: 24px; }
.hero__note { font-size: 0.9rem; color: var(--taupe); }

/* ---------- iPhone mockup ---------- */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
}
.phone {
  position: relative;
  width: 300px;
  height: 620px;
  background: linear-gradient(160deg, #2f2b25, #211e1a);
  border-radius: 52px;
  padding: 14px;
  box-shadow:
    0 2px 0 rgba(255,255,255,0.06) inset,
    var(--shadow-gold),
    0 40px 80px rgba(41, 38, 33, 0.22);
  z-index: 1;
}
.phone__notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 122px; height: 26px;
  background: #1b1815;
  border-radius: 13px;   /* fully-rounded pill (Dynamic Island), all corners */
  z-index: 3;
}
.phone__screen {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, var(--white-soft) 0%, var(--ivory) 60%, var(--ivory-deep) 100%);
  border-radius: 40px;
  overflow: hidden;
  padding: 52px 26px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* soft gold glow halo behind the phone */
.phone__glow {
  position: absolute;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(194,163,117,0.34) 0%, rgba(224,209,173,0.12) 45%, transparent 70%);
  filter: blur(8px);
  z-index: 0;
  border-radius: 50%;
}

.screen__top {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.screen__brand { font-family: var(--font-head); font-weight: 300; letter-spacing: 0.34em; font-size: 0.82rem; color: var(--ink); }
.screen__hint { font-size: 0.66rem; color: var(--sage); letter-spacing: 0.04em; }

/* Storage ring */
.ring {
  position: relative;
  width: 188px; height: 188px;
  margin: 6px auto 18px;
}
.ring__svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(156,126,84,0.16); stroke-width: 14; }
.ring__fill {
  fill: none;
  stroke: url(#goldgrad);
  stroke: var(--gold);
  stroke-width: 14;
  stroke-linecap: round;
  stroke-dasharray: 540;
  stroke-dashoffset: 162; /* ~70% filled */
  filter: drop-shadow(0 4px 10px rgba(194,163,117,0.5));
  animation: ringDraw 2.4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes ringDraw {
  from { stroke-dashoffset: 540; }
  to   { stroke-dashoffset: 162; }
}
.ring__label {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2px;
}
.ring__value { font-family: var(--font-head); font-weight: 300; font-size: 2.7rem; color: var(--ink); line-height: 1; }
.ring__unit { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze); }

/* Photo cards mid-swipe */
.cards {
  position: relative;
  width: 170px; height: 132px;
  margin: 4px auto 20px;
}
.card {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #efe7d6, #e3d8c1);
}
.card--back  { transform: rotate(-7deg) translateY(8px) scale(0.92); opacity: 0.55; background: linear-gradient(135deg, #ece3d0, #ded2b8); }
.card--mid   { transform: rotate(4deg) translateY(3px) scale(0.96); opacity: 0.8; }
.card--front {
  background: linear-gradient(135deg, #fbf6ec, #efe4cd);
  transform: rotate(-3deg);
  overflow: hidden;
  animation: cardSwipe 6s ease-in-out infinite;
}
@keyframes cardSwipe {
  0%, 62%   { transform: rotate(-3deg) translateX(0); }
  74%       { transform: rotate(7deg) translateX(34px); }
  86%, 100% { transform: rotate(-3deg) translateX(0); }
}
.card__shimmer {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: shimmer 5.5s ease-in-out infinite;
}
@keyframes shimmer { 0%,70% { transform: translateX(-120%); } 85% { transform: translateX(120%); } 100% { transform: translateX(120%); } }
.card__check {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px;
  background: var(--sage);
  color: var(--white-soft);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(107,158,125,0.4);
}
.card__check svg { width: 16px; height: 16px; }

/* Gold pill */
.pill {
  margin-top: auto;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold), var(--bronze));
  color: var(--white-soft);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px rgba(194,163,117,0.45);
  cursor: default;
}

/* ===========================================================
   VALUE PROPS
   =========================================================== */
.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
.value {
  background: var(--white-soft);
  border: 1px solid rgba(156,126,84,0.12);
  border-radius: var(--radius);
  padding: 38px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s ease, box-shadow .3s ease;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value__icon {
  display: inline-flex;
  width: 56px; height: 56px;
  align-items: center; justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(224,209,173,0.55), rgba(194,163,117,0.22));
  color: var(--bronze);
  margin-bottom: 22px;
}
.value__icon svg { width: 28px; height: 28px; }
.value__title { font-size: 1.3rem; margin-bottom: 10px; }
.value__copy { color: var(--taupe); font-size: 1rem; }

/* ===========================================================
   STEPS
   =========================================================== */
.steps__row {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  max-width: 940px;
  margin-inline: auto;
}
.step { text-align: center; }
.step__num {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(194,163,117,0.5);
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--bronze);
  margin-bottom: 16px;
  background: var(--white-soft);
}
.step__title { font-size: 1.25rem; margin-bottom: 8px; }
.step__copy { color: var(--taupe); font-size: 0.98rem; max-width: 28ch; margin-inline: auto; }
.step__arrow { display: none; }

/* ===========================================================
   PRIVACY BAND
   =========================================================== */
.privacy__inner { text-align: center; max-width: 640px; margin-inline: auto; }
.privacy__icon {
  display: inline-flex;
  width: 64px; height: 64px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(107,158,125,0.12);
  color: var(--sage);
  margin-bottom: 24px;
}
.privacy__icon svg { width: 34px; height: 34px; }
.privacy__title { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin-bottom: 18px; }
.privacy__copy { color: var(--taupe); font-size: 1.1rem; }

/* ===========================================================
   SHARE TEASER
   =========================================================== */
.share__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}
.share__title { text-align: left; margin: 0 0 18px; max-width: 20ch; }
.share__lede { color: var(--taupe); font-size: 1.1rem; max-width: 42ch; }

.share__card {
  background: var(--white-soft);
  border: 1px solid rgba(156,126,84,0.12);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.share__bubble {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 34px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(224,209,173,0.4), rgba(194,163,117,0.16));
}
.share__amount { font-family: var(--font-head); font-weight: 300; font-size: 2.6rem; color: var(--bronze); line-height: 1; }
.share__caption { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--taupe); margin-top: 6px; }
.share__example {
  margin-top: 22px;
  font-family: var(--font-head);
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--ink);
}
.share__tag { display: block; font-family: var(--font-body); font-size: 0.78rem; color: var(--taupe); margin-top: 8px; letter-spacing: 0.02em; }

/* ===========================================================
   FINAL CTA
   =========================================================== */
.cta__inner { text-align: center; max-width: 680px; margin-inline: auto; }
.cta__title { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 300; margin-bottom: 16px; }
.cta__sub { color: var(--taupe); font-size: 1.12rem; margin-bottom: 36px; }
.cta__inner .btn--appstore { margin-inline: auto; }

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 56px 0 36px;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer .wordmark { color: var(--ivory); }
.footer__domain { color: var(--champagne); font-size: 0.92rem; letter-spacing: 0.04em; }
.footer__domain:hover { color: var(--gold); }
.footer__links { display: flex; gap: 28px; }
.footer__links a { color: rgba(245,241,233,0.78); font-size: 0.95rem; transition: color .2s ease; }
.footer__links a:hover { color: var(--gold); }
.footer__copy {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(245,241,233,0.12);
  color: rgba(245,241,233,0.55);
  font-size: 0.85rem;
}

/* ===========================================================
   RESPONSIVE — phones: keep the hero copy AND the demo in view
   (compact copy + a uniformly-scaled phone so both fit one screen).
   transform:scale keeps the demo's fixed-px content perfectly crisp.
   =========================================================== */
@media (max-width: 700px) {
  .hero {
    padding: 12px 0 32px;
  }
  .hero__inner { gap: 16px; }
  .hero__copy { max-width: 100%; }
  .hero__title { font-size: clamp(1.6rem, 7vw, 2.3rem); margin-bottom: 10px; }
  .hero__subhead { font-size: 1.02rem; margin-bottom: 16px; max-width: 40ch; }
  .hero__visual { padding: 0; height: 466px; align-items: flex-start; }
  .phone { transform: scale(0.75); transform-origin: center top; }
}

/* ===========================================================
   RESPONSIVE — tablet & up
   =========================================================== */
@media (min-width: 720px) {
  .values__grid { grid-template-columns: repeat(3, 1fr); }
  .steps__row {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: start;
    gap: 16px;
  }
  .step__arrow {
    display: block;
    width: 46px; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(194,163,117,0.6), transparent);
    margin-top: 24px;
    position: relative;
  }
  .share__inner { grid-template-columns: 1.1fr 0.9fr; }
}

@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; gap: 40px; }
  .hero { padding: 72px 0 110px; }
  .phone { width: 318px; height: 656px; }
  .section { padding: 120px 0; }
  /* Desktop: App Store button sits under the copy; the below-phone one is hidden. */
  .hero__actions--desktop { display: flex; }
  .hero__actions--mobile { display: none; }
}

/* ===========================================================
   REDUCED MOTION
   =========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .ring__fill { stroke-dashoffset: 162; }
}
