/* ===========================================================================
   Lore — marketing site. Editorial / warm-paper aesthetic, matching the app:
   cream paper, charcoal ink, coral accent, Instrument Serif display italics,
   JetBrains Mono eyebrows, Geist body.
   =========================================================================== */

:root {
  --cream: #faf7f0;        /* page paper (slightly warmer than app cream for depth) */
  --paper: #ffffff;
  --ink: #1c1917;
  --ink-soft: #292524;
  --coral: #d4502a;
  --coral-deep: #b8421f;
  --coral-soft: #fcede5;
  --rule: #e7e2d6;
  --muted: #78716c;
  --faint: #a8a29e;
  --hairline: #f1ece1;
  --charcoal: #17140f;
  --parchment: #fafaf7;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* subtle paper grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---- typography ---- */
.display {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.display em { font-style: italic; color: var(--coral); }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--coral { color: var(--coral); }

.lede { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-soft); max-width: 30em; }

.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.wordmark .dot { color: var(--coral); }
.wordmark--sm { font-size: 26px; }

/* ---- buttons / store badges ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 500; font-size: 14px;
  padding: 9px 16px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: 0.25s var(--ease);
}
.btn--ghost { border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--parchment); }

.store {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 11px 20px 11px 16px; border-radius: 14px;
  background: var(--ink); color: var(--parchment);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.25s;
  box-shadow: 0 8px 22px -12px rgba(28, 25, 23, 0.55);
}
.store:hover { transform: translateY(-3px); box-shadow: 0 16px 34px -14px rgba(28, 25, 23, 0.6); }
.store__icon { width: 24px; height: 24px; fill: currentColor; flex: none; }
.store__txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store__txt small { font-size: 10px; letter-spacing: 0.08em; opacity: 0.7; text-transform: uppercase; }
.store__txt strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

.store--soft { background: transparent; color: var(--ink); border: 1px solid var(--rule); box-shadow: none; }
.store--soft:hover { background: var(--coral-soft); border-color: var(--coral); transform: translateY(-3px); }
.store--soft .store__txt small { opacity: 0.6; }
.store[aria-disabled="true"] { cursor: default; }

.store--invert { background: var(--parchment); color: var(--ink); }
.store--invert-soft { background: transparent; color: var(--parchment); border: 1px solid rgba(250, 250, 247, 0.28); box-shadow: none; }
.store--invert-soft:hover { background: rgba(250, 250, 247, 0.08); transform: translateY(-3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-row--center { justify-content: center; }

/* ===========================================================================
   NAV
   =========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250, 247, 240, 0.82);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom-color: var(--rule);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 14px; color: var(--ink-soft); font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--coral); }
.nav__cta:hover { color: var(--parchment); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================================================================
   HERO
   =========================================================================== */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero__title { font-size: clamp(40px, 7.2vw, 88px); margin: 18px 0 22px; }
.hero .trust { margin-top: 26px; letter-spacing: 0.14em; }

.hero__art { position: relative; display: flex; justify-content: center; align-items: center; }
.glow {
  position: absolute; width: 130%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 80, 42, 0.26), transparent 62%);
  filter: blur(8px); z-index: 0;
}

/* ---- phone frame ---- */
.phone {
  position: relative; z-index: 1;
  width: clamp(230px, 27vw, 300px); aspect-ratio: 1230 / 2460;
  background: #0f0d0b; border-radius: 40px; padding: 9px;
  box-shadow: 0 40px 80px -32px rgba(28, 25, 23, 0.5), 0 0 0 1px rgba(28, 25, 23, 0.06);
}
.phone__notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 22px; background: #0f0d0b; border-radius: 0 0 14px 14px; z-index: 2;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 31px; }
.phone--hero { transform: rotate(2deg); }

/* ===========================================================================
   TICKER
   =========================================================================== */
.ticker { border-block: 1px solid var(--rule); overflow: hidden; padding: 16px 0; background: var(--paper); }
.ticker__row {
  display: flex; align-items: center; gap: 28px; white-space: nowrap; width: max-content;
  animation: marquee 32s linear infinite;
  font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 30px); color: var(--ink);
}
.ticker__row .sep { color: var(--coral); font-style: normal; font-size: 0.6em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ===========================================================================
   WHY (dark)
   =========================================================================== */
.why { position: relative; background: var(--charcoal); color: var(--parchment); padding: clamp(64px, 10vw, 128px) 0; overflow: hidden; }
.why__glow { position: absolute; top: -120px; right: -120px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 80, 42, 0.34), transparent 64%); }
.why__inner { position: relative; max-width: 820px; }
.why__title { font-size: clamp(38px, 6vw, 72px); margin: 16px 0 24px; }
.why__title em { color: var(--coral); }
.why__body { font-size: clamp(16px, 1.5vw, 20px); color: rgba(242, 238, 230, 0.72); max-width: 36em; }
.why__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.why__col { padding: 24px; border-radius: var(--radius); border: 1px solid rgba(250, 250, 247, 0.12); }
.why__col p { font-size: 15px; color: rgba(242, 238, 230, 0.75); margin-top: 12px; }
.why__col--good { background: rgba(212, 80, 42, 0.1); border-color: rgba(212, 80, 42, 0.3); }
.why__tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.why__col--good .why__tag { color: var(--coral); }

/* ===========================================================================
   SECTION HEADS / FEATURES
   =========================================================================== */
.sec-head { max-width: 700px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head__title { font-size: clamp(30px, 4.4vw, 52px); margin-top: 14px; }

.features { padding: clamp(64px, 9vw, 120px) 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 30px 26px 32px; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--coral); box-shadow: 0 22px 40px -26px rgba(28, 25, 23, 0.4); }
.card__num { font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--coral); }
.card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin: 12px 0 8px; }
.card p { font-size: 15px; color: var(--muted); }

/* ===========================================================================
   SCREENS
   =========================================================================== */
.screens { padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 10vw, 128px); background: var(--hairline); border-block: 1px solid var(--rule); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.shot { display: flex; flex-direction: column; align-items: center; }
.shot .phone { width: 100%; max-width: 240px; }
.shot--raise { transform: translateY(-26px); }
.shot figcaption { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.shot figcaption strong { font-size: 16px; color: var(--ink); font-weight: 600; }

/* ===========================================================================
   CTA
   =========================================================================== */
.cta { position: relative; background: var(--charcoal); color: var(--parchment); padding: clamp(72px, 11vw, 140px) 0; overflow: hidden; text-align: center; }
.cta__glow { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 80, 42, 0.3), transparent 60%); }
.cta__inner { position: relative; max-width: 720px; margin-inline: auto; }
.cta__title { font-size: clamp(40px, 7vw, 84px); margin: 14px 0 18px; }
.cta__title em { color: var(--coral); }
.cta__body { color: rgba(242, 238, 230, 0.7); font-size: clamp(16px, 1.5vw, 19px); }

/* ===========================================================================
   FOOTER
   =========================================================================== */
.foot { background: var(--cream); padding: clamp(48px, 7vw, 80px) 0 32px; }
.foot__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--rule); }
.foot__brand p { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 28em; }
.foot__nav { display: flex; gap: 26px; flex-wrap: wrap; }
.foot__nav a { font-size: 14px; color: var(--ink-soft); font-weight: 500; }
.foot__nav a:hover { color: var(--coral); }
.foot__base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: 13px; color: var(--faint); }

/* ===========================================================================
   REVEAL ANIMATIONS
   =========================================================================== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.in { opacity: 1; transform: none; }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */
@media (max-width: 880px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0; padding: 24px var(--pad) 30px;
    background: rgba(250, 247, 240, 0.97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule);
  }
  .nav__toggle { display: flex; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .phone--hero { transform: none; }
  .why__pair { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .shot--raise { transform: none; }
}

@media (max-width: 540px) {
  .grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; justify-items: center; }
  .shot .phone { max-width: 260px; }
  .cta-row { justify-content: center; }
  .hero__copy { text-align: left; }
}

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

/* ===========================================================================
   LEGAL PAGES (privacy)
   =========================================================================== */
.legal { padding: clamp(44px, 7vw, 88px) 0 clamp(64px, 9vw, 110px); }
.legal__head { max-width: 760px; margin-bottom: clamp(30px, 5vw, 50px); }
.legal__back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted); transition: color 0.2s;
}
.legal__back:hover { color: var(--coral); }
.legal__title { font-size: clamp(38px, 6.4vw, 68px); margin: 10px 0 14px; }
.legal__meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--faint); }

.legal__body { max-width: 760px; }
.legal__body h2 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(23px, 3.2vw, 32px); color: var(--ink); letter-spacing: -0.01em;
  margin: 42px 0 12px;
}
.legal__body h2 .n { font-family: var(--mono); font-style: normal; font-size: 0.5em; color: var(--coral); margin-right: 12px; letter-spacing: 0; vertical-align: middle; }
.legal__body p, .legal__body li { color: var(--ink-soft); font-size: 16px; line-height: 1.72; }
.legal__body p { margin-bottom: 14px; }
.legal__body ul { margin: 0 0 16px; padding-left: 20px; }
.legal__body li { margin-bottom: 8px; }
.legal__body strong { color: var(--ink); font-weight: 600; }
.legal__body a { color: var(--coral); text-decoration: underline; text-underline-offset: 2px; }
.legal__note {
  margin-top: 44px; padding: 22px 24px; background: var(--coral-soft);
  border: 1px solid #f0d9cc; border-radius: var(--radius); font-size: 14px; color: var(--ink-soft);
}
.legal__note strong { color: var(--coral-deep); }
