/* Home page (presentation of the app). Shares the tokens of styles.css. */
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('/fonts/BricolageGrotesque_800ExtraBold.ttf') format('truetype'); }
/* Bricolage has no Greek or Cyrillic: Manrope takes over for el and bg, as in the store visuals. */
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('/fonts/Manrope_800ExtraBold.ttf') format('truetype'); }

.home { --wide: min(1120px, 100% - 32px); --frame: #1B1C1B; --frame-edge: #3A3C3A; overflow-x: hidden; }
.home .top, .home main, .home footer { width: var(--wide); }
.home main { margin-top: 0; padding: 0; background: none; border: 0; border-radius: 0; }
.home h1, .home h2 { font-family: 'Bricolage Grotesque', 'Manrope', sans-serif; font-weight: 800; letter-spacing: -0.02em; }
.home h1 { margin: 0; font-size: clamp(42px, 7.4vw, 76px); line-height: 1.02; }
.home h2 { margin: 14px 0 0; font-size: clamp(32px, 4.6vw, 50px); line-height: 1.05; }
.home :is(h1, h2) span { display: block; }
.home .accent { width: fit-content; padding-right: .06em; background-clip: text; -webkit-background-clip: text; color: transparent; }
.home p { margin: 0; }

.top-link { padding: 6px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.top-link:hover { background: var(--card); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding: 56px 0 40px; }
.hero .intro { max-width: 520px; margin-top: 22px; color: var(--muted); font-size: 18px; }
.home .note { margin-top: 16px; color: var(--muted); font-size: 14px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-width: 196px; padding: 11px 20px 11px 16px; border-radius: 16px; background: var(--ink); color: var(--page); text-decoration: none; transition: transform .15s ease; }
.store:hover { transform: translateY(-2px); }
.store:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.store svg { flex: none; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.15; }
.store small { font-size: 12px; opacity: .75; }
.store b { font-size: 20px; letter-spacing: -0.01em; }

/* Phones: real app screens (dark theme) in a simple frame. */
.phones { display: flex; justify-content: center; align-items: flex-start; }
.phone { --w: 300px; flex: none; width: var(--w); margin: 0; padding: 9px; border-radius: 46px; background: var(--frame); box-shadow: 0 0 0 1.5px var(--frame-edge), 0 30px 60px -20px rgba(36, 32, 28, .45); overflow: hidden; }
.phone .status { position: relative; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 24px 0 30px; border-radius: 37px 37px 0 0; background: #0F100F; color: #fff; font: 600 15px -apple-system, 'Helvetica Neue', Arial, sans-serif; }
.phone .status svg { width: 56px; fill: currentColor; }
.phone .island { position: absolute; left: 50%; top: 10px; width: 92px; height: 26px; border-radius: 13px; background: #000; transform: translateX(-50%); }
.phone img { display: block; width: 100%; height: auto; border-radius: 0 0 37px 37px; }
.phone.back { margin: 64px 0 0 -70px; transform: rotate(4deg); }
.phones .phone:first-child:not(:only-child) { position: relative; z-index: 1; transform: rotate(-3deg); }

/* A day of photos, hour after hour. */
.frieze { margin: 0 calc(50% - 50vw); padding: 8px 0 24px; overflow: hidden; }
/* The day drifts slowly to the left; the list is written twice so the loop has no seam. */
.frieze ul { display: flex; gap: 12px; width: max-content; margin: 0; padding: 0; list-style: none; animation: drift 80s linear infinite; }
.frieze:hover ul { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(calc(-50% - 6px)); } }
.frieze li { position: relative; flex: none; width: 168px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--card); }
.frieze img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; color: #fff; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.frieze .pill { position: absolute; left: 10px; top: 10px; }

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 72px 0; border-top: 1px solid var(--border); }
.frieze + .feature { border-top: 0; }
.feature.flip .feature-text { order: 2; }
.feature-text p { max-width: 460px; margin-top: 18px; color: var(--muted); font-size: 18px; }

/* Download */
.download { margin: 32px 0 24px; padding: 40px; border: 1px solid var(--border); border-radius: 28px; background: var(--card); }
.download h2 { margin: 0; }
.download .intro { max-width: 680px; margin-top: 14px; color: var(--muted); font-size: 17px; }
.small { margin-top: 10px !important; color: var(--muted); font-size: 14px; }
.download .stores + .small { margin-top: 20px !important; }

.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 12px; }
.footer-links a { color: var(--ink); text-decoration: none; font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }

@media (prefers-color-scheme: dark) {
  .home { --frame: #262826; --frame-edge: #3A3C3A; }
  .phone { box-shadow: 0 0 0 1.5px var(--frame-edge), 0 30px 60px -20px rgba(0, 0, 0, .7); }
}

@media (max-width: 860px) {
  .hero, .feature { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero { padding-top: 36px; }
  .feature { padding: 56px 0; }
  .feature.flip .feature-text { order: 0; }
  .phone { --w: 260px; }
  .phone.back { margin-left: -120px; }
  .download { padding: 24px; }
}
@media (max-width: 520px) {
  .top-link { display: none; }
  .store { flex: 1 1 100%; }
  .frieze li { width: 132px; border-radius: 14px; }
  .phone { --w: 240px; border-radius: 40px; }
  .phone .status { border-radius: 31px 31px 0 0; }
  .phone img { border-radius: 0 0 31px 31px; }
  .phone.back { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .store { transition: none; }
  .frieze { overflow-x: auto; }
  .frieze ul { animation: none; padding: 0 16px; }
}
