/* Ad landing page. Same warm near-black and coral as the app, with a serif display face for headlines.
   Instrument Serif (OFL) is self-hosted so the build never fetches fonts. */
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); }
.page {
  --serif: "Instrument Serif";
  --ink: #f5ecea;
  --soft: #cdb9b7;
  --dim: #9c8584;
  --coral: #e5554e;
  --night: #170c0d;
  --card: #241415;
  --radius: 18px;
  min-height: 100dvh;
  background: var(--night);
  color: var(--ink);
  padding-bottom: 96px;
  overflow-x: clip;
}
.page img { display: block; width: 100%; height: 100%; object-fit: cover; }

.h1, .h2, .h3, .brand, .quote blockquote { font-family: var(--serif), Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.h1 { margin: 0; font-size: clamp(40px, 11vw, 68px); line-height: 1.02; }
.h1 em { font-style: italic; color: #ffb4a8; }
.h2 { margin: 0; font-size: clamp(30px, 8vw, 46px); line-height: 1.08; }
.h3 { margin: 0 0 8px; font-size: clamp(26px, 7vw, 34px); line-height: 1.1; }

.cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 30px; border-radius: 999px;
  background: var(--coral); color: #fff8f6; font-size: 17px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(229, 85, 78, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, background-color 0.2s;
}
.cta:hover { background: #ee635c; }
.cta:active { transform: scale(0.97); }
.note { margin: 12px 0 0; font-size: 13px; color: var(--dim); }

/* Hero: full-bleed portrait on phones, text over the bottom fade; side by side on wide screens. */
.hero { position: relative; min-height: 100dvh; display: grid; align-items: end; }
.heroImg { position: absolute; inset: 0; }
.heroImg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 12, 13, 0.1) 0%, rgba(23, 12, 13, 0.15) 40%, rgba(23, 12, 13, 0.88) 72%, var(--night) 100%); }
.heroImg img { object-position: center 20%; }
.heroText { position: relative; padding: 0 22px calc(36px + env(safe-area-inset-bottom)); max-width: 560px; }
.brand { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 22px; z-index: 2; font-size: 26px; font-style: italic; color: var(--ink); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
.lede { margin: 16px 0 26px; font-size: 17px; line-height: 1.5; color: var(--soft); max-width: 34ch; }

/* Cast: horizontal rail of tall cards. */
.cast { padding: 72px 0 24px; }
.cast .h2 { padding: 0 22px; max-width: 16ch; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 12px; overflow-x: auto; padding: 26px 22px 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.card { position: relative; aspect-ratio: 3 / 4.4; border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; background: var(--card); }
.card img { transition: transform 0.6s; }
.card:hover img { transform: scale(1.04); }
.card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(18, 9, 10, 0.92)); }
.cardText { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; gap: 4px; padding: 16px; font-size: 14px; line-height: 1.35; color: var(--soft); }
.cardText strong { font-family: var(--serif), Georgia, serif; font-weight: 400; font-size: 26px; color: var(--ink); }

/* Features: image and text alternate sides on wide screens. */
.features { display: grid; gap: 56px; padding: 64px 22px 24px; max-width: 1080px; margin: 0 auto; }
.feature { display: grid; gap: 20px; align-items: center; }
.featureImg { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.featureImg img { object-position: center 18%; }
.featureText p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--soft); max-width: 42ch; }

.quote { padding: 72px 22px; text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 22ch; font-size: clamp(28px, 7.5vw, 44px); font-style: italic; line-height: 1.15; }
.quoteBy { display: block; margin-top: 18px; font-size: 14px; color: var(--dim); }

.final { display: grid; justify-items: center; gap: 22px; padding: 24px 22px 56px; text-align: center; }
.final .h2 { max-width: 15ch; }
.final .note { margin-top: -8px; max-width: 30ch; }
.finalStack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: min(100%, 420px); }
.finalStack img { aspect-ratio: 3 / 4; border-radius: 14px; }
.finalStack img:nth-child(2) { transform: translateY(-14px); }

.footer { display: flex; justify-content: space-between; align-items: baseline; padding: 24px 22px; font-size: 13px; color: var(--dim); max-width: 1080px; margin: 0 auto; }
.footer a { font-family: var(--serif), Georgia, serif; font-size: 22px; font-style: italic; color: var(--soft); }

/* Bottom dock CTA for phones; it fades in once the hero has scrolled away where scroll-driven animations exist. */
.dock {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 3;
  display: flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px;
  background: var(--coral); color: #fff8f6; font-size: 17px; font-weight: 600;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.5);
}
@supports (animation-timeline: scroll()) {
  .dock { opacity: 0; pointer-events: none; animation: dock-in linear both; animation-timeline: scroll(root); animation-range: 60vh 90vh; }
}
@keyframes dock-in { to { opacity: 1; pointer-events: auto; } }

@media (prefers-reduced-motion: no-preference) {
  .heroText > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .heroText > :nth-child(2) { animation-delay: 0.08s; }
  .heroText > :nth-child(3) { animation-delay: 0.16s; }
  .heroText > :nth-child(4) { animation-delay: 0.24s; }
  .heroText > :nth-child(5) { animation-delay: 0.3s; }
  @supports (animation-timeline: view()) {
    .feature, .quote blockquote { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .card img, .cta { transition: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (min-width: 900px) {
  .page { padding-bottom: 0; }
  .dock { display: none; }
  .hero { grid-template-columns: 1fr 1fr; align-items: center; max-width: 1180px; margin: 0 auto; padding: 0 40px; gap: 56px; }
  .heroImg { position: relative; inset: auto; order: 2; height: min(86dvh, 860px); border-radius: 28px; overflow: hidden; }
  .heroImg::after { background: linear-gradient(180deg, transparent 70%, rgba(23, 12, 13, 0.35)); }
  .heroText { padding: 0; }
  .brand { position: absolute; top: 28px; left: 40px; }
  .cast { max-width: 1180px; margin: 0 auto; }
  .cast .h2, .rail { padding-left: 40px; padding-right: 40px; }
  .cast .h2 { max-width: none; }
  .rail { grid-auto-columns: calc((100% - 80px - 36px) / 4); }
  .features { gap: 96px; padding-top: 96px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature:nth-child(even) .featureImg { order: 2; }
  .featureImg { width: min(100%, 440px); justify-self: center; }
  .featureText p { font-size: 17px; }
}
