/* Rehri — site styles. Colours and type are the app's own (lib/theme.dart). */
:root {
  --paper: #FBF7F1;
  --card: #FFFFFF;
  --sand: #F3ECE1;
  --rule: #E6DCCB;
  --ink: #241E1A;
  --ink-soft: #443B34;
  --mute: #6E6055;
  --coral: #E8643C;
  --coral-deep: #B64320;
  --coral-soft: #FBE7DC;
  --amber: #F0A93B;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* Serif headlines with ligatures off — Fraunces fuses "fi" otherwise. */
.display {
  font-family: var(--serif);
  font-weight: 600;
  font-variant-ligatures: no-common-ligatures;
  font-feature-settings: "liga" 0, "clig" 0;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
}
.dot { color: var(--coral); }
.dot--light { color: var(--paper); }
.center { text-align: center; }

.eyebrow {
  margin: 0 0 18px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--coral-deep);
}

/* ───────────── buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--radius);
  font: 600 16px var(--sans);
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn--primary { background: var(--coral); color: #fff; box-shadow: 0 6px 18px rgba(232, 100, 60, .35); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(232, 100, 60, .42); }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 15px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stores--center { justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 58px; padding: 0 20px 0 16px;
  border-radius: var(--radius);
  background: var(--ink); color: #fff;
  text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
  box-shadow: 0 6px 18px rgba(36, 30, 26, .18);
}
.store:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(36, 30, 26, .24); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 11px; line-height: 1; opacity: .8; letter-spacing: .02em; }
.store b { display: block; font-size: 18px; line-height: 1.2; font-weight: 600; }
.store[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.stores[data-invert] .store { background: var(--paper); color: var(--ink); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.fineprint { margin: 14px 0 0; font-size: 14px; color: var(--mute); }

/* ───────────── nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 247, 241, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav.is-scrolled { border-color: var(--rule); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 38px; height: 38px; }
.wordmark { font: 700 26px/1 var(--serif); letter-spacing: -.02em; }
.wordmark--small { font-size: 22px; }
.nav__links { display: flex; gap: 24px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 500; color: var(--ink-soft); }
.nav__links a:hover { color: var(--ink); }

/* ───────────── hero */
.hero { padding: 56px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; }
.hero h1 { font-size: clamp(44px, 6.2vw, 80px); }
.lede { margin: 24px 0 0; font-size: 19px; color: var(--ink-soft); max-width: 34em; }

.hero__stage { position: relative; display: grid; place-items: center; min-height: 660px; }
.glow {
  position: absolute; inset: 8% 6%;
  background: radial-gradient(closest-side, rgba(232, 100, 60, .28), rgba(240, 169, 59, .12) 60%, transparent);
  filter: blur(18px);
  animation: breathe 6s ease-in-out infinite;
}

/* The phone: a dark bezel around the app's own screens. */
.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 720 / 1500;
  border-radius: 46px;
  padding: 11px;
  background: #1c1714;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .06) inset,
    0 40px 80px -20px rgba(36, 30, 26, .45),
    0 18px 36px -18px rgba(36, 30, 26, .35);
}
.phone--hero { width: min(318px, 80vw); z-index: 2; }
.phone__island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 20px; background: #000; z-index: 3;
}
.phone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden; background: var(--paper);
  padding-top: 38px;
}
.phone__screen img {
  width: 100%; height: auto;
}
[data-cycle] .phone__screen img {
  position: absolute; top: 38px; left: 0;
  opacity: 0; transform: scale(1.03);
  transition: opacity .7s var(--ease), transform 1.1s var(--ease);
}
[data-cycle] .phone__screen img.is-active { opacity: 1; transform: scale(1); }

.cycle-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; position: relative; z-index: 2; }
.cycle-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px;
  background: var(--rule); cursor: pointer;
  transition: width .35s var(--ease), background .35s;
}
.cycle-dots button.is-active { width: 26px; background: var(--coral); }

.float {
  position: absolute; z-index: 3;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: 0 18px 40px -14px rgba(36, 30, 26, .35);
  animation: bob 5.5s ease-in-out infinite;
}
.float--a {
  left: -4%; bottom: 20%;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 8px; font-weight: 600; font-size: 14px;
}
.float--a img { width: 46px; height: 46px; object-fit: cover; object-position: 20% 6%; border-radius: 12px; }
.float--a em { font-style: normal; color: var(--mute); font-weight: 500; }
.float--b {
  right: 0; top: 16%;
  padding: 12px 16px; text-align: center;
  animation-delay: -2.5s;
}
.float--b strong { display: block; font: 700 28px/1 var(--serif); color: var(--coral-deep); }
.float--b span { font-size: 12px; font-weight: 600; color: var(--mute); }

/* ───────────── marquee */
.marquee {
  overflow: hidden; border-block: 1px solid var(--rule);
  background: var(--card); padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; width: max-content; gap: 44px; animation: scroll 38s linear infinite; }
.marquee__track span { font: 600 22px var(--serif); white-space: nowrap; color: var(--ink-soft); }
.marquee__track span::after { content: "·"; color: var(--coral); margin-left: 44px; }

/* ───────────── features */
.features { padding: 120px 0 40px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px;
  margin-bottom: 140px;
}
.feature--flip .feature__copy { order: 2; }
.feature__copy h2 { font-size: clamp(36px, 4.4vw, 56px); margin: 10px 0 20px; }
.feature__copy p { color: var(--ink-soft); font-size: 18px; max-width: 30em; margin: 0; }
.feature__media { display: grid; place-items: center; position: relative; }
.feature__media::before {
  content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: var(--coral-soft); z-index: -1;
}
.feature--flip .feature__media::before { background: #FBEED4; }
.strike {
  margin: 0; font-weight: 500; font-size: 17px; color: var(--mute);
  text-decoration: line-through; text-decoration-color: var(--coral); text-decoration-thickness: 2px;
}

/* ───────────── how */
.how { padding: 40px 0 120px; }
.how h2 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 56px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--card); border: 1px solid var(--rule); border-radius: 22px;
  padding: 30px 28px;
}
.step__n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--coral-soft); color: var(--coral-deep); font-weight: 700; margin-bottom: 18px;
}
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--ink-soft); }

/* ───────────── cta */
.cta { background: var(--coral); color: var(--paper); padding: 110px 0; overflow: hidden; position: relative; }
.cta__inner { text-align: center; }
.cta h2 { font-size: clamp(34px, 5vw, 64px); max-width: 16em; margin: 18px auto 0; }
.mark--big { width: 86px; height: 86px; margin: 0 auto; animation: lift 3.6s ease-in-out infinite; }

.footer { padding: 30px 0; color: var(--mute); font-size: 14px; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ───────────── motion */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.feature .reveal:nth-child(2) { transition-delay: .12s; }
.steps .step:nth-child(2) { transition-delay: .1s; }
.steps .step:nth-child(3) { transition-delay: .2s; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes breathe { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes scroll { to { transform: translateX(-50%); } }
@keyframes lift { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-3deg); } }

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

/* ───────────── small screens */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav .btn--small { margin-left: auto; }
  .hero { padding-top: 32px; }
  .hero__grid, .feature { grid-template-columns: 1fr; gap: 40px; }
  .hero__copy { text-align: center; }
  .lede { margin-inline: auto; }
  .stores { justify-content: center; }
  .hero__stage { min-height: 0; padding: 20px 0 10px; }
  .float--a { left: 0; bottom: 14%; }
  .float--b { right: 2%; }
  .feature { margin-bottom: 96px; text-align: center; }
  .feature--flip .feature__copy { order: 0; }
  .feature__copy p { margin-inline: auto; }
  .features { padding-top: 80px; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .float { transform: scale(.88); }
  .store { min-height: 54px; }
}

/* ───────────── legal pages */
.legal { padding: 56px 0 96px; }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 5vw, 60px); }
.legal__meta { color: var(--mute); margin: 10px 0 36px; font-size: 15px; }
.legal h2 { font: 700 22px var(--sans); margin: 40px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 10px; }
.legal a { color: var(--coral-deep); }
.footer a { color: inherit; }
