/* Landing page. Shared header/footer/doc styles live in style.css.
   Colours are the app's story screens (lib/screens/onboarding_flow.dart,
   _Look), the display face is the app's: Bricolage Grotesque at wght 800,
   wdth 88, opsz 96 (fonts/bricolage.woff2 is that instance, Latin only). */

.landing .container { max-width: 1080px; }

/* The app, as on the App Store: its icon big and its name. */
.app-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 36px;
}

.app-lockup img {
  width: 104px;
  height: 104px;
  border-radius: 23px;
  box-shadow: 0 14px 30px -12px rgba(8, 80, 65, 0.45);
}

.app-name {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 6px;
}

.app-sub {
  font-size: 15px;
  color: var(--muted);
}

.display {
  font-family: "Bricolage", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 8px 0 72px;
}

.hero h1 {
  font-size: clamp(56px, 8vw, 96px);
  margin-bottom: 24px;
}

.hero .lead {
  font-size: 19px;
  line-height: 1.5;
  color: #55504A;
  max-width: 460px;
  margin-bottom: 32px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--text);
  color: white;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
}

.cta svg { margin-top: -2px; }
.cta:hover { text-decoration: none; opacity: 0.88; }

/* The app's own cards, cut out of its screens (no phone frame). The tab's
   background is the page's beige, so the boards sit straight on the page. */
.hero-visual { justify-self: center; width: min(420px, 100%); }

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Feature bands: one per screen of the app's stories. */
.band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  border-radius: 36px;
  padding: 64px 56px;
  margin-bottom: 20px;
  overflow: hidden;
  color: white;
}

.band.flip .band-text { order: 2; }

.band h2 {
  font-size: clamp(44px, 5.5vw, 68px);
  margin-bottom: 20px;
}

.band p {
  font-size: 18px;
  line-height: 1.5;
  font-weight: 500;
  max-width: 440px;
  opacity: 0.92;
}

.band-visual { display: flex; justify-content: center; }

.band-visual > img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
}

.blue { background: linear-gradient(135deg, #1FAFD4, #0D7FA6); }
.wrapped { background: linear-gradient(135deg, #5B2A99, #B04FC9, #F58A72); }
/* Matches the bananas' crop (the onboarding's night screen at that height). */
.night { background: linear-gradient(180deg, #1B153D, #0F0B26); }
.orange { background: linear-gradient(135deg, #FFB42E, #E88F0C); color: #2B1700; }
.purple { background: linear-gradient(135deg, #9B52E4, #6A2BB6); }

/* The two wrapped cards, fanned out like stories. */
.cards {
  position: relative;
  width: min(420px, 100%);
  aspect-ratio: 1 / 1.3;
}

.cards img {
  position: absolute;
  width: 54%;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 24px 48px -16px rgba(40, 0, 60, 0.55);
}

.cards img:first-child { left: 0; top: 6%; transform: rotate(-6deg); }
.cards img:last-child { right: 0; top: 0; transform: rotate(5deg); }

/* Crops of the app on its own story colour: fade all four edges into the
   band (the bars stop short of the sides, the labels of the top and bottom). */
.fade {
  -webkit-mask-image:
    linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent),
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-composite: intersect;
}

.card-shot {
  border-radius: 18px;
  box-shadow: 0 24px 48px -18px rgba(60, 25, 0, 0.45);
}

/* Closing call to action */
.final {
  text-align: center;
  padding: 72px 0 8px;
}

.final h2 {
  font-size: clamp(40px, 6vw, 64px);
  margin-bottom: 28px;
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; gap: 40px; padding-top: 8px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .app-lockup { justify-content: center; text-align: left; }
  .band { grid-template-columns: 1fr; padding: 44px 24px; gap: 32px; border-radius: 28px; text-align: center; }
  .band.flip .band-text { order: 0; }
  .band p { margin: 0 auto; font-size: 17px; }
}

/* The page a profile or crew link opens without the app (u.html, c.html). */
.open-page {
  max-width: 560px;
  margin: 0 auto;
  padding: 72px 0 24px;
  text-align: center;
}

.open-icon {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  box-shadow: 0 16px 34px -14px rgba(8, 80, 65, 0.5);
  margin-bottom: 32px;
}

.open-page h1 {
  font-size: clamp(40px, 7vw, 60px);
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}

.open-lead {
  font-size: 18px;
  line-height: 1.5;
  color: #55504A;
  margin-bottom: 32px;
}

.open-note {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
