/* =========================================================================
   DropPlay — launch site
   Matches the app's design system: Geist + Geist Mono, monochrome ink-on-paper,
   deep-navy (#0E3E7F) brand accent lifted from the app icon. No other color.
   ========================================================================= */

/* ---------- Fonts (self-hosted from the app bundle) ---------- */
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("assets/fonts/Geist-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("assets/fonts/GeistMono-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  /* monochrome palette — mirrors the app's semantic colors */
  --ink: #0a0a0b;
  --paper: #ffffff;
  --surface: #f4f4f5;
  --surface-2: #ececee;
  --grey: #6b6b72;
  --tertiary: #b4b4ba;
  --hairline: #e6e6e9;

  /* brand navy from the icon (#0E3E7F) + a lighter step for gradients/glow */
  --brand: #0e3e7f;
  --brand-2: #1f63c4;
  --brand-soft: rgba(14, 62, 127, 0.08);

  --radius-sm: 14px;   /* thumbnails */
  --radius-md: 16px;   /* controls */
  --radius-lg: 22px;   /* video */
  --radius-xl: 28px;   /* cards */
  --pill: 999px;

  --shadow-sm: 0 1px 3px rgba(10, 10, 11, 0.06), 0 4px 16px rgba(10, 10, 11, 0.05);
  --shadow-md: 0 10px 30px rgba(10, 10, 11, 0.10), 0 2px 8px rgba(10, 10, 11, 0.06);
  --shadow-phone: 0 30px 70px rgba(10, 10, 11, 0.28), 0 8px 20px rgba(10, 10, 11, 0.16);

  --max: 1120px;
  --pad: 24px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  color-scheme: light;
}

[data-theme="dark"] {
  --ink: #f7f7f8;
  --paper: #0b0b0c;
  --surface: #161618;
  --surface-2: #1f1f22;
  --grey: #9c9ca4;
  --tertiary: #56565d;
  --hairline: #29292e;

  --brand: #5a92e0;
  --brand-2: #7fb0ff;
  --brand-soft: rgba(122, 168, 255, 0.12);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-phone: 0 30px 70px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f7f7f8;
    --paper: #0b0b0c;
    --surface: #161618;
    --surface-2: #1f1f22;
    --grey: #9c9ca4;
    --tertiary: #56565d;
    --hairline: #29292e;
    --brand: #5a92e0;
    --brand-2: #7fb0ff;
    --brand-soft: rgba(122, 168, 255, 0.12);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-phone: 0 30px 70px rgba(0, 0, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0; font-weight: 700; }

::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.container--narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 54px; padding: 0 26px;
  border-radius: var(--pill);
  font-weight: 600; font-size: 16px;
  cursor: pointer; border: none;
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { box-shadow: var(--shadow-md); }

.btn--ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--hairline);
}
.btn--ghost:hover { border-color: var(--ink); }

/* App Store badge — Apple-style pill */
.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper);
  height: 56px; padding: 0 22px 0 20px;
  border-radius: 14px;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.appstore-badge:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.appstore-badge:active { transform: scale(0.98); }
.appstore-badge__text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore-badge__text small { font-size: 11px; opacity: 0.85; letter-spacing: 0.02em; }
.appstore-badge__text strong { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.appstore-badge--invert { background: var(--paper); color: var(--ink); border: 1.5px solid var(--hairline); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--hairline); }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { border-radius: 8px; box-shadow: var(--shadow-sm); }
.brand__name { font-family: var(--font-mono); font-weight: 500; font-size: 19px; letter-spacing: -0.01em; }

.nav__links { display: flex; gap: 28px; }
.nav__links a {
  font-size: 15px; color: var(--grey); font-weight: 500;
  position: relative; transition: color 0.2s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--brand); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__cta { height: 42px; padding: 0 20px; font-size: 15px; }

.theme-toggle {
  width: 42px; height: 42px; flex: none;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink);
  border: none; border-radius: var(--pill); cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle__sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle__moon { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  color: var(--grey); margin: 0 0 22px;
  background: var(--surface); padding: 7px 14px; border-radius: var(--pill);
  border: 1px solid var(--hairline);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 0 var(--brand);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero__title {
  font-size: clamp(36px, 5.6vw, 62px);
  letter-spacing: -0.035em; margin-bottom: 22px;
  text-wrap: balance;
}
.hero__title .accent {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lede { font-size: clamp(17px, 2.1vw, 20px); color: var(--grey); max-width: 30ch; margin: 0 0 32px; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.hero__pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 32px 0 0; }
.hero__pills li {
  font-family: var(--font-mono); font-size: 12.5px; color: var(--grey);
  background: var(--surface); border: 1px solid var(--hairline);
  padding: 6px 13px; border-radius: var(--pill);
}

/* Hero art — two floating phones */
.hero__art { position: relative; display: grid; place-items: center; min-height: 520px; }
.hero__glow {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 55% at 60% 42%, var(--brand-soft), transparent 70%);
  filter: blur(8px);
}

/* ---------- Device frame ---------- */
.phone {
  position: relative; z-index: 1;
  width: clamp(210px, 22vw, 280px);
  aspect-ratio: 1206 / 2622;
  background: #0a0a0b;
  border-radius: 44px;
  padding: 9px;
  box-shadow: var(--shadow-phone);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.phone img {
  width: 100%; height: 100%;
  object-fit: cover; border-radius: 36px;
  background: var(--paper);
}

.phone--floating { position: absolute; }
.phone--back {
  transform: translate(-34%, -6%) rotate(-7deg) scale(0.9);
  filter: saturate(0.96);
  opacity: 0.96;
}
.phone--front { transform: translate(20%, 6%) rotate(4deg); }

/* ---------- Marquee strip ---------- */
.strip {
  border-block: 1px solid var(--hairline);
  background: var(--surface);
  overflow: hidden; padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.strip__track {
  display: flex; align-items: center; gap: 28px; white-space: nowrap;
  width: max-content;
  font-family: var(--font-mono); font-size: 15px; color: var(--ink);
  animation: marquee 32s linear infinite;
}
.strip__sep { color: var(--brand); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) { .strip__track { animation: none; } }

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

.section__head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 72px); text-align: center; }
.kicker {
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--brand);
  margin: 0 0 14px;
}
.section__head h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section__sub { color: var(--grey); font-size: clamp(16px, 2vw, 19px); margin: 16px 0 0; }

/* ---------- Feature rows ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px);
  align-items: center;
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid var(--hairline);
}
.feature:first-of-type { border-top: none; }
.feature--reverse .feature__media { order: 2; }
.feature__media { display: grid; place-items: center; }
.feature__media .phone {
  width: clamp(220px, 26vw, 290px);
  transition: transform 0.5s var(--ease);
}
.feature:hover .feature__media .phone { transform: translateY(-8px) rotate(-1deg); }

.feature__num {
  font-family: var(--font-mono); font-size: 15px; font-weight: 500;
  color: var(--brand); display: block; margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.feature__text h3 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 16px; letter-spacing: -0.025em; }
.feature__text p { color: var(--grey); margin: 0 0 24px; font-size: 18px; }

.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li {
  position: relative; padding-left: 32px; color: var(--ink); font-size: 16px;
}
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--brand-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%230e3e7f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
[data-theme="dark"] .ticks li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%237fb0ff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}

/* ---------- How it works ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  counter-reset: none;
}
.step {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--radius-xl); padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.step__n {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--font-mono); font-size: 20px; font-weight: 500;
  background: var(--ink); color: var(--paper); margin-bottom: 22px;
}
.step h3 { font-size: 21px; margin-bottom: 10px; }
.step p { color: var(--grey); margin: 0; font-size: 16px; }

/* ---------- Why cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius-xl); padding: 34px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 54px; height: 54px; border-radius: var(--radius-md);
  display: grid; place-items: center; margin-bottom: 22px;
  background: var(--brand-soft); color: var(--brand);
}
.card h3 { font-size: 22px; margin-bottom: 12px; }
.card p { color: var(--grey); margin: 0; font-size: 16.5px; }

/* ---------- Final CTA ---------- */
.cta { padding: clamp(72px, 10vw, 130px) 0; text-align: center; }
.cta__inner { display: grid; place-items: center; }
.cta__mark { border-radius: 18px; box-shadow: var(--shadow-md); margin-bottom: 26px; }
.cta h2 { font-size: clamp(34px, 5.2vw, 56px); letter-spacing: -0.03em; }
.cta p { color: var(--grey); font-size: clamp(17px, 2.2vw, 20px); margin: 16px 0 34px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--radius-md); overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq details[open] { border-color: var(--brand); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-weight: 600; font-size: 17.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px;
  border-right: 2px solid var(--grey); border-bottom: 2px solid var(--grey);
  transform: rotate(45deg); transition: transform 0.25s var(--ease);
  margin-top: -4px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--grey); font-size: 16.5px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 56px 0; }
.footer__inner { display: grid; place-items: center; gap: 14px; text-align: center; }
.footer__tag { font-family: var(--font-mono); color: var(--grey); font-size: 14px; margin: 0; }
.footer__links { display: flex; gap: 24px; }
.footer__links a { color: var(--grey); font-size: 15px; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--ink); }
.footer__legal { color: var(--tertiary); font-size: 13.5px; margin: 6px 0 0; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone--front, .phone--back { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: grid; justify-items: center; }
  .hero__lede { max-width: 46ch; }
  .hero__cta { justify-content: center; }
  .hero__pills { justify-content: center; }
  .hero__art { min-height: 480px; margin-top: 16px; }
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .feature, .feature--reverse { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .feature--reverse .feature__media { order: 0; }
  .feature__media { order: -1; }
  .ticks { justify-items: start; max-width: 320px; margin-inline: auto; text-align: left; }
  .steps { grid-template-columns: 1fr; }
  .feature__text p { font-size: 17px; }
}

@media (max-width: 420px) {
  :root { --pad: 18px; }
  .nav__cta { display: none; }
  .phone--back { transform: translate(-30%, -4%) rotate(-7deg) scale(0.86); }
}
