/* La Rouste landing page.
   Values mirror lib/core/theme/app_colors.dart, landing_text_theme.dart and the
   widgets under lib/features/public/. The app is dark-only, so is this page. */

@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/barlow-400.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/barlow-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow';
  src: url('assets/fonts/barlow-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/barlowcondensed-600.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/barlowcondensed-700.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/fonts/barlowcondensed-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --background: #0F2B3C;
  --surface: #1A3D52;
  --surface-light: #2A5268;
  --gold: #F5C518;
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.7);

  --nav-height: 64px;
  --shell: 1200px;
  --content: 1100px;

  --sans: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --condensed: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  margin: 0;
  background: var(--background);
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2 {
  font-family: var(--condensed);
  color: var(--text-primary);
  margin: 0;
}

p { margin: 0; }

.muted { color: var(--text-secondary); }
.small { font-size: 14px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--background);
  padding: 12px 20px;
  font-weight: 700;
  z-index: 20;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-height);
  padding: 0 24px;
  background: rgba(15, 43, 60, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.nav-inner {
  max-width: var(--shell);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-primary);
}

.wordmark img { width: 40px; height: 40px; }

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 20px;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 120ms ease, filter 120ms ease;
}

.button:hover { filter: brightness(1.08); }
.button:active { transform: translateY(1px); }

.button-gold {
  background: var(--gold);
  color: var(--background);
}

.nav-cta {
  padding: 10px 18px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.button-large {
  padding: 22px 40px;
  font-size: 20px;
  font-weight: 700;
}

.button-ig {
  padding: 16px 26px;
  font-size: 17px;
  font-weight: 700;
  color: #000;
}

/* ---------- hero ---------- */

.hero {
  padding: calc(var(--nav-height) + 64px) 24px 64px;
}

.hero-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-weight: 800;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.hero-tagline {
  margin-top: 8px;
  font-family: var(--condensed);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.1;
  color: var(--gold);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 20px;
}

.badges-center { justify-content: center; }

.badge img { height: 46px; width: auto; }

.instagram-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  margin-top: 18px;
  padding: 12px 8px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 8px;
}

/* Meta forbids recolouring the mark, so it stays white and is dimmed with
   opacity only — same rule the Flutter widgets follow. */
.ig-glyph-dim { opacity: 0.55; }
.ig-glyph-large { opacity: 0.9; margin: 0 auto; }
.ig-glyph-dark { filter: invert(1); }

.instagram-inline .handle {
  font-weight: 600;
  color: var(--text-primary);
}

.hero-phones {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ---------- phone frame (mirrors PhoneFrame) ---------- */

.phone {
  width: 280px;
  padding: 10px;
  background: #000;
  border: 2px solid var(--surface-light);
  border-radius: 40px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  flex: none;
}

/* PhoneFrame is width x 2.05 with 10px padding inside a 2px border, so the
   screen itself is 256 x 550 at the default 280px frame. height:auto is what
   stops the intrinsic height attribute from winning over the ratio. */
.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 256 / 550;
  object-fit: cover;
  border-radius: 32px;
}

.phone-small { width: 240px; }
.phone-tilt-left { transform: rotate(-2.9deg); }
.phone-tilt-right { transform: rotate(2.9deg); }

.hide-narrow { display: none; }

/* ---------- numbered sections ---------- */

.step { padding: 64px 24px; }

.step[data-surface='raised'] { background: var(--surface); }

.step-inner {
  max-width: var(--content);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--background);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  flex: none;
}

.step-text h2 {
  margin-top: 20px;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.2;
  color: var(--gold);
}

.step-text p {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.5;
}

.step-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.demo-card {
  width: 100%;
  max-width: 428px;
  height: auto;
}

/* ---------- closing sections ---------- */

.cta, .contact {
  background: var(--surface);
  padding: 96px 24px;
  text-align: center;
}

.instagram {
  padding: 64px 24px;
  text-align: center;
}

.display {
  font-family: var(--condensed);
  font-weight: 800;
  font-size: 45px;
  line-height: 1.1;
  color: var(--text-primary);
}

.instagram .display { margin-top: 20px; }

.lead {
  margin-top: 16px;
  font-size: 18px;
}

.contact .button-large { margin-top: 32px; }

.cta .badges { margin-top: 32px; }

.rhythm {
  max-width: 420px;
  margin: 44px auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
  text-align: left;
}

.moment-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--gold);
}

.moment-promise {
  margin-top: 8px;
  font-size: 17px;
  line-height: 1.45;
}

.footer {
  padding: 48px 24px;
  text-align: center;
}

.wordmark-footer {
  font-family: var(--condensed);
  font-weight: 600;
  font-size: 22px;
  color: var(--text-primary);
}

.footer .small { margin-top: 8px; }

/* ---------- reveal on scroll (mirrors ScrollReveal) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(8%);
  transition: opacity 400ms ease-out, transform 400ms ease-out;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- wide layout ---------- */

@media (min-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-cta { padding: 12px 24px; }

  .hero { padding: calc(var(--nav-height) + 96px) 24px 96px; }

  .hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }

  .hero-text {
    flex: 1;
    align-items: flex-start;
    text-align: left;
  }

  .hero h1 { font-size: 72px; }
  .hero-tagline { font-size: 40px; }
  .badge img { height: 56px; }

  .instagram-inline {
    justify-content: flex-start;
    margin-left: -8px;
  }

  .hero-phones {
    flex: 1;
    justify-content: flex-end;
  }

  .hide-narrow { display: block; }

  .step { padding: 96px 24px; }

  .step-inner {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }

  .step[data-demo-first='true'] .step-inner { flex-direction: row-reverse; }

  .step-text {
    flex: 1;
    align-items: flex-start;
    text-align: left;
  }

  .step-demo { flex: 1; }

  .instagram { padding: 96px 24px; }

  .rhythm {
    max-width: 900px;
    flex-direction: row;
    gap: 32px;
  }

  .moment { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .button { transition: none; }
}
