/* FlyVibe landing page. Brand tokens mirror lib/core/ui/app_colors.dart. */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/PlusJakartaSans-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-SemiBoldItalic.ttf") format("truetype");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url("fonts/SpaceMono-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --cream: #fff8f1;
  --cream-deep: #fdeedd;
  --ink: #26181a;
  --ink-soft: #6b5557;
  --red: #ae2f34;
  --coral: #ff6b6b;
  --coral-soft: #ffdad8;
  --yellow: #fdd73b;
  --sky: #cfeaff;
  --line: #f0dcc8;
  --radius: 24px;
  --shadow: 0 24px 60px -24px rgba(110, 30, 34, 0.35);
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Playfair Display", Georgia, serif;
  --font-mono: "Space Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  color: var(--red);
}
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.wrap--narrow { width: min(760px, calc(100% - 40px)); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
}
.skip:focus { top: 12px; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.03em;
}
h2 {
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 24ch;
}
h3 { font-size: 1.2rem; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 20px -10px rgba(112, 93, 0, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -10px rgba(112, 93, 0, 0.8); }
.btn--sm { padding: 10px 20px; font-size: 0.95rem; }
.btn--light { background: #fff; color: var(--red); box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.5); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 248, 241, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(240, 220, 200, 0.7);
}
.nav__row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--red); text-decoration: none;
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
}
.brand img { height: 54px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav__links a:hover { color: var(--red); }
.nav .btn { margin-left: 0; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(36px, 7vw, 84px) 0 clamp(56px, 8vw, 110px);
  background:
    radial-gradient(900px 480px at 85% 8%, var(--sky), transparent 70%),
    radial-gradient(700px 420px at 0% 100%, var(--coral-soft), transparent 70%),
    var(--cream);
}
.hero__path {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: var(--red); stroke-width: 2.5; stroke-dasharray: 3 12;
  stroke-linecap: round; opacity: 0.28; pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid; gap: 44px; align-items: center;
  grid-template-columns: 1fr;
}
.lead { margin-top: 22px; font-size: 1.2rem; color: var(--ink-soft); max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 22px 8px 16px;
  background: var(--ink); color: #fff; border-radius: 16px;
  text-decoration: none; font-weight: 800; font-size: 1.1rem; line-height: 1.15;
  opacity: 0.92; cursor: default;
}
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.04em; opacity: 0.8; }
a.store { cursor: pointer; opacity: 1; }
.hero__note { margin-top: 20px; font-size: 0.95rem; color: var(--ink-soft); }

.hero__phone { display: grid; justify-items: center; gap: 18px; }
.phone {
  position: relative;
  width: min(300px, 72vw);
  aspect-ratio: 9 / 16;
  border: 10px solid #14100f;
  border-radius: 42px;
  background: #14100f;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 2px #3a2f2d;
  transform: rotate(2.5deg);
}
.phone__video { width: 100%; height: 100%; object-fit: cover; background: #14100f; }
.phone__sound {
  position: absolute; right: 12px; bottom: 12px;
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: rgba(20, 16, 15, 0.7); color: #fff;
  display: grid; place-items: center; cursor: pointer;
}
.phone__sound svg { width: 22px; height: 22px; fill: currentColor; }
.phone__sound .i-on { display: none; }
.phone__sound[aria-pressed="true"] .i-on { display: block; }
.phone__sound[aria-pressed="true"] .i-off { display: none; }
.phone__caption { font-size: 0.9rem; color: var(--ink-soft); }
.phone__caption span {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.75rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-right: 8px;
}

.hero__phone { position: relative; }
.float {
  display: none; position: absolute; margin: 0; width: 150px; aspect-ratio: 1;
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 5px solid #fff;
}
.float img { width: 100%; height: 100%; object-fit: cover; }
.float figcaption {
  position: absolute; left: 8px; bottom: 8px;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: #fff; color: var(--ink); padding: 3px 9px; border-radius: 999px;
}
.float--a { left: -26px; top: 18%; transform: rotate(-7deg); }
.float--b { right: -30px; bottom: 16%; transform: rotate(6deg); }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tint { background: var(--cream-deep); }

/* Steps */
.steps { display: grid; gap: 20px; margin-top: 44px; counter-reset: step; }
.step {
  position: relative; padding: 28px 26px 26px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; gap: 10px; align-content: start;
}
.step__tag {
  justify-self: start;
  font-family: var(--font-accent); font-style: italic; font-weight: 600;
  font-size: 1.9rem; line-height: 1; color: var(--red);
}
.step p { color: var(--ink-soft); }

/* Gallery */
.gallery { margin-top: 56px; }
.gallery__track {
  display: flex; gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(20px, calc((100vw - 1120px) / 2)) 28px;
  scroll-padding-inline: max(20px, calc((100vw - 1120px) / 2));
  scrollbar-width: thin; scrollbar-color: var(--coral) transparent;
}
.shot {
  flex: 0 0 min(260px, 66vw); margin: 0; scroll-snap-align: start;
  border-radius: 28px; overflow: hidden; background: var(--sky);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: auto; }
.gallery__ctrl { display: none; justify-content: center; gap: 12px; }
.round {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  font-size: 1.25rem; line-height: 1;
}
.round:hover { background: var(--ink); color: #fff; }

/* Features */
.features { display: grid; gap: 18px; margin-top: 44px; }
.feat {
  background: var(--cream); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; display: grid; gap: 10px; align-content: start;
}
.feat p { color: var(--ink-soft); }
.feat__icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--red); display: grid; place-items: center; margin-bottom: 4px;
}
.feat__icon svg { width: 24px; height: 24px; fill: #fff; }

/* Section helpers */
.section__lead { margin-top: 18px; color: var(--ink-soft); max-width: 40em; font-size: 1.1rem; }
.section__lead strong { color: var(--ink); }
.section__note { margin-top: 26px; font-weight: 700; text-align: center; }
.credits { margin-top: 14px; font-size: 0.78rem; line-height: 1.5; color: var(--ink-soft); text-align: center; max-width: 60em; margin-inline: auto; }

/* Garage */
.garage { display: grid; gap: 16px; margin-top: 40px; grid-template-columns: repeat(2, 1fr); }
.ride {
  position: relative; border-radius: 22px; padding: 14px 14px 18px;
  display: grid; gap: 4px; justify-items: center; text-align: center;
  border: 1px solid rgba(38, 24, 26, 0.06); overflow: hidden;
}
.ride img { width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: contain; filter: drop-shadow(0 14px 12px rgba(38, 24, 26, 0.28)); }
.ride h3 { font-size: 1rem; }
.ride--sky { background: linear-gradient(160deg, #d8efff, #b9e0fa); }
.ride--sun { background: linear-gradient(160deg, #fff0bf, #ffd98a); }
.ride--mint { background: linear-gradient(160deg, #d9f7ea, #a8ebcf); }
.ride--rose { background: linear-gradient(160deg, #ffe3e1, #ffbcb8); }
.ride__tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--ink);
}
.ride__tag--pro { background: var(--red); color: #fff; }

/* Plans */
.plans { display: grid; gap: 20px; margin-top: 44px; }
.plan {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; display: grid; gap: 14px; align-content: start;
}
.plan__head { display: grid; gap: 6px; }
.plan__sub { color: var(--ink-soft); }
.plan strong { font-weight: 800; }
.plan__price { margin-top: 6px; font-size: 0.9rem; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.3); color: rgba(255, 255, 255, 0.85); }
.plan ul { display: grid; gap: 10px; margin-top: 6px; }
.plan li { position: relative; padding-left: 28px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0.35em;
  width: 16px; height: 16px; border-radius: 50%; background: var(--coral);
  box-shadow: inset 0 0 0 5px var(--coral-soft);
}
.plan--pro { background: var(--red); color: #fff; border-color: var(--red); }
.plan--pro .plan__sub { color: rgba(255, 255, 255, 0.85); }
.plan--pro li::before { background: var(--yellow); box-shadow: inset 0 0 0 5px #7a1f23; }
.plan__badge {
  position: absolute; top: 22px; right: 22px;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--yellow); color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
}

/* Share your reel */
.share { display: grid; gap: 44px; align-items: center; }
.share__copy { display: grid; gap: 4px; justify-items: start; }
.share__copy .btn { margin-top: 22px; }
.share__steps { margin-top: 20px; display: grid; gap: 12px; counter-reset: s; }
.share__steps li { position: relative; padding-left: 44px; counter-increment: s; }
.share__steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); color: var(--ink);
  font-weight: 800; display: grid; place-items: center;
}
.mosaic { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.mosaic li { position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); }
.mosaic li:nth-child(2) { transform: translateY(22px); }
.mosaic li:nth-child(3) { transform: translateY(-6px); }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic span {
  position: absolute; left: 12px; bottom: 12px;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase;
  background: #fff; color: var(--ink); padding: 5px 11px; border-radius: 999px;
}

/* FAQ */
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details {
  background: var(--cream); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 28px 20px 0; font-weight: 700; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--red);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); }

/* Final CTA */
.cta { padding: clamp(56px, 8vw, 100px) 0; }
.cta__box {
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(253, 215, 59, 0.35), transparent 70%),
    var(--red);
  color: #fff; border-radius: 36px;
  padding: clamp(18px, 3vw, 28px);
  display: grid; gap: clamp(22px, 4vw, 44px); align-items: center;
}
.cta__banner { width: 100%; height: auto; border-radius: 24px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55); }
.cta__copy { display: grid; justify-items: start; gap: 18px; padding: 8px clamp(8px, 3vw, 28px) 20px; }
.cta__copy h2 { max-width: 16ch; }
.cta__copy em { color: var(--yellow); }
.cta__copy p { color: rgba(255, 255, 255, 0.88); max-width: 30em; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--ink-soft); font-size: 0.95rem; }
.foot__row { display: grid; gap: 16px; }
.foot__brand { display: grid; gap: 10px; justify-items: start; }
.foot__brand img { height: 42px; width: auto; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--ink); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--red); text-decoration: underline; }

/* Wider screens */
@media (min-width: 720px) {
  .garage { grid-template-columns: repeat(4, 1fr); }
  .share { grid-template-columns: 1.1fr 0.9fr; gap: 64px; }
  .cta__box { grid-template-columns: 1.05fr 0.95fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .gallery__ctrl { display: flex; }
  .foot__row { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 960px) {
  .float { display: block; }
  .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .shot { flex-basis: 280px; }
}
@media (max-width: 719px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn:hover { transition: none; transform: none; }
  .phone { transform: none; }
}
