/* ============================================================
   HOYRO — landing page styles
   Design DNA lifted from the app (src/constants/theme.ts):
   pure-black canvas, lime accent used sparingly, Instrument
   Serif (editorial) + DM Sans (UI) + JetBrains Mono (data).
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --surface-3: #222222;
  --border: #2a2a2a;
  --border-2: #333333;

  --lime: #e3ff4a;          /* primary accent — active state / one CTA */
  --lime-dim: #b8cc3a;

  --text: #ffffff;
  --text-2: #a0a0a0;
  --text-3: #666666;
  --text-4: #3a3a3a;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --edge: clamp(20px, 5vw, 80px);
  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Diagonal hairline atmosphere — straight from the app's auth screen */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 11px, rgba(255,255,255,0.012) 11px 12px);
  pointer-events: none;
  z-index: 0;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- shared type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow.lime { color: var(--lime); }

.serif { font-family: var(--serif); font-weight: 400; }
em.lime, .ital-lime {
  font-style: italic;
  color: var(--lime);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--edge); padding-right: var(--edge); position: relative; z-index: 1; }

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, opacity .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }

/* App Store — primary store button (dark glassy pill) */
.btn-store {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 14px;
  padding: 12px 22px 12px 18px;
}
.btn-store:hover { background: var(--surface-3); border-color: #444; }
.btn-store .glyph { width: 26px; height: 26px; fill: currentColor; flex: 0 0 auto; }
.btn-store .store-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn-store .store-txt .sm { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.btn-store .store-txt .lg { font-size: 18px; font-family: var(--sans); font-weight: 600; }

/* Android — secondary, outlined, "coming soon" feel */
.btn-android {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
  border-radius: 14px;
  padding: 12px 22px;
  align-items: center;
}
.btn-android:hover { border-color: var(--lime); color: var(--text); }
.btn-android.is-live .dot { display: none; }
.btn-android.is-live { color: var(--text); }
.btn-android.is-live .glyph { width: 22px; height: 22px; fill: currentColor; }
.btn-android .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.btn-android .a-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn-android .a-txt .sm { font-family: var(--mono); font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.btn-android .a-txt .lg { font-size: 15px; font-weight: 600; }

/* lime pill (nav cta) */
.btn-lime {
  background: var(--lime);
  color: #0a0a0a;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 14px;
}
.btn-lime:hover { background: #eeff70; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-color: var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .word { font-family: var(--mono); font-weight: 700; letter-spacing: 0.28em; font-size: 15px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a:not(.btn) {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  transition: color .2s ease;
}
.nav-links a:not(.btn):hover { color: var(--text); }
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ============================================================
   HERO  (three switchable directions)
   ============================================================ */
.hero { position: relative; }
.hero-variant { display: none; }
.hero[data-hero="1"] .hv-1,
.hero[data-hero="2"] .hv-2,
.hero[data-hero="3"] .hv-3 { display: block; }

/* phone frame */
.phone {
  position: relative;
  border-radius: 46px;
  background: #000;
  border: 1.5px solid var(--border-2);
  padding: 7px;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,0.9);
}
.phone::after {
  content: '';
  position: absolute;
  inset: -1.5px;
  border-radius: 46px;
  padding: 1.5px;
  background: linear-gradient(160deg, rgba(255,255,255,0.14), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.phone img { border-radius: 40px; width: 100%; }
.phone-glow::before {
  content: '';
  position: absolute;
  inset: -14% -10%;
  background: radial-gradient(ellipse at 50% 40%, rgba(227,255,74,0.16), transparent 62%);
  filter: blur(30px);
  z-index: -1;
}

/* --- Direction 1: editorial split --- */
.hv-1 .hv1-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-top: clamp(48px, 8vw, 110px);
  padding-bottom: clamp(60px, 9vw, 120px);
}
.hv-1 .lede { max-width: 600px; }
.hv-1 h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(54px, 7vw, 104px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
}
.hv-1 .sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-2);
  max-width: 440px;
  margin: 28px 0 36px;
  line-height: 1.55;
}
.hv-1 .phone-col { display: flex; justify-content: center; }
.hv-1 .phone { max-width: 340px; }
@media (max-width: 880px) {
  .hv-1 .hv1-grid { grid-template-columns: 1fr; gap: 8px; }
  .hv-1 .phone-col { order: 2; margin-top: 24px; }
  .hv-1 .phone { max-width: 280px; }
}

/* --- Direction 2: centered, type-forward --- */
.hv-2 .hv2-inner { text-align: center; padding-top: clamp(56px, 9vw, 130px); }
.hv-2 h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 188px);
  line-height: 0.86;
  letter-spacing: -0.025em;
  margin: 26px auto 0;
  max-width: 14ch;
}
.hv-2 .sub {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text-2);
  max-width: 520px;
  margin: 30px auto 36px;
}
.hv-2 .cta-row { justify-content: center; }
.hv-2 .duo {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(16px, 3vw, 44px);
  margin-top: clamp(40px, 6vw, 80px);
  padding-bottom: 60px;
}
.hv-2 .duo .phone { width: clamp(200px, 26vw, 320px); }
.hv-2 .duo .p-back { transform: translateY(-26px) rotate(-3deg); opacity: .92; }
.hv-2 .duo .p-front { transform: rotate(2deg); z-index: 2; }
@media (max-width: 720px) {
  .hv-2 .duo .p-back { display: none; }
  .hv-2 .duo .p-front { transform: none; }
}

/* --- Direction 3: asymmetric / dramatic bleed --- */
.hv-3 .hv3-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-top: clamp(40px, 6vw, 90px);
  padding-bottom: clamp(50px, 7vw, 100px);
  position: relative;
}
.hv-3 h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(68px, 11vw, 168px);
  line-height: 0.84;
  letter-spacing: -0.025em;
  margin: 18px 0 0;
}
.hv-3 .ghost {
  font-family: var(--serif);
  font-size: clamp(120px, 22vw, 340px);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-2);
  position: absolute;
  left: -2vw; bottom: -6%;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}
.hv-3 .hv3-left { position: relative; z-index: 2; }
.hv-3 .sub { color: var(--text-2); max-width: 400px; margin: 26px 0 34px; font-size: clamp(16px,1.8vw,20px); }
.hv-3 .phone-col { display: flex; justify-content: flex-end; position: relative; z-index: 2; }
.hv-3 .phone { max-width: 320px; transform: rotate(3deg); }
.hv-3 .callout {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 30px;
}
.hv-3 .callout span::before { content: '— '; color: var(--lime); }
@media (max-width: 880px) {
  .hv-3 .hv3-grid { grid-template-columns: 1fr; }
  .hv-3 .phone-col { justify-content: center; order: 2; margin-top: 26px; }
  .hv-3 .phone { max-width: 260px; transform: none; }
  .hv-3 .ghost { display: none; }
}

/* trust strip under hero */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 14px 44px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.trust .item { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); display: flex; align-items: center; gap: 10px; }
.trust .item b { color: var(--text); font-weight: 600; }

/* ============================================================
   FEATURE ROWS
   ============================================================ */
.section { padding: clamp(70px, 11vw, 150px) 0; }
.feature {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.feature.flip { grid-template-columns: 0.82fr 1fr; }
.feature.flip .f-media { order: -1; }
.f-head {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.015em;
  margin: 20px 0 0;
}
.f-body { color: var(--text-2); font-size: clamp(16px, 1.7vw, 19px); margin: 22px 0 0; max-width: 460px; }
.f-list { list-style: none; margin: 30px 0 0; display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.f-list li { background: var(--bg); padding: 15px 18px; display: flex; align-items: baseline; gap: 14px; }
.f-list li .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); white-space: nowrap; min-width: 92px; }
.f-list li .v { color: var(--text-2); font-size: 14.5px; }
.f-media { display: flex; justify-content: center; }
.f-media .phone { max-width: 320px; }
@media (max-width: 860px) {
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 36px; }
  .feature.flip .f-media { order: 0; }
  .f-media .phone { max-width: 270px; }
}

/* ============================================================
   MANIFESTO
   ============================================================ */
.manifesto { padding: clamp(90px, 15vw, 220px) 0; text-align: center; position: relative; }
.manifesto .big {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
  margin: 22px auto 0;
}
.manifesto .big .muted { color: var(--text-3); }

/* ============================================================
   CAPABILITY GRID
   ============================================================ */
.caps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; margin-top: 48px; }
.cap { background: var(--bg); padding: clamp(24px, 3vw, 38px); min-height: 180px; display: flex; flex-direction: column; }
.cap:hover { background: var(--surface); }
.cap .num { font-family: var(--mono); font-size: 11px; color: var(--text-4); letter-spacing: 0.1em; }
.cap .t { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 34px); margin-top: auto; line-height: 1.05; }
.cap .d { color: var(--text-3); font-size: 14px; margin-top: 10px; }
@media (max-width: 760px) { .caps { grid-template-columns: 1fr; } .cap { min-height: 0; } }

/* ============================================================
   CREATOR
   ============================================================ */
.creator-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  padding: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  overflow: hidden;
}
.creator-card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 64px); line-height: 0.98; margin: 18px 0 0; }
.creator-card p { color: var(--text-2); margin: 20px 0 0; max-width: 420px; }
.creator-media { display: flex; justify-content: center; }
.creator-media .phone { max-width: 290px; }
@media (max-width: 820px) { .creator-card { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download { text-align: center; padding: clamp(90px, 14vw, 200px) 0; position: relative; }
.download::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 60%, rgba(227,255,74,0.08), transparent 60%);
  pointer-events: none;
}
.download h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(52px, 9vw, 136px); line-height: 0.9; letter-spacing: -0.025em; margin: 20px auto 0; }
.download .sub { color: var(--text-2); margin: 26px auto 38px; max-width: 480px; font-size: clamp(16px,1.8vw,20px); }
.download .cta-row { justify-content: center; }
.download .fine { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-4); margin-top: 26px; }

/* email capture */
.notify { max-width: 540px; margin: 30px auto 0; text-align: left; }
.notify-row { display: flex; gap: 10px; align-items: stretch; }
.notify-input {
  flex: 1;
  min-width: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: 14px;
  padding: 15px 18px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color .2s ease, background .2s ease;
}
.notify-input::placeholder { color: var(--text-3); }
.notify-input:focus { outline: none; border-color: var(--lime); background: var(--surface-3); }
.notify-btn { white-space: nowrap; padding: 0 24px; font-size: 15px; flex: 0 0 auto; }
.notify-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-4);
  margin-top: 14px;
  text-align: center;
  transition: color .2s ease;
}
.notify.error .notify-input { border-color: var(--danger, #ff3b30); }
.notify.error .notify-hint { color: #ff6a61; }
.notify-success {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--border-2);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 15px;
}
.notify-success .check {
  width: 22px; height: 22px; flex: 0 0 auto;
  border-radius: 50%;
  background: var(--lime);
  color: #0a0a0a;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700;
}
.notify-success b { color: var(--text); font-weight: 600; }
.notify.done .notify-row, .notify.done .notify-hint { display: none; }
.notify.done .notify-success { display: flex; }
@media (max-width: 540px) {
  .notify-row { flex-direction: column; }
  .notify-btn { padding: 14px 24px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: clamp(56px, 8vw, 96px) 0 48px; }
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.footer .mark { font-family: var(--serif); font-size: clamp(64px, 12vw, 150px); line-height: 0.8; letter-spacing: -0.02em; }
.footer .mark .dot { color: var(--lime); }
.footer-cols { display: flex; gap: clamp(40px, 7vw, 90px); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .h { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-4); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--text-2); transition: color .2s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: clamp(48px, 7vw, 88px); padding-top: 26px; border-top: 1px solid var(--border); }
.footer-bottom .m { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); }

/* ============================================================
   HERO SWITCHER (review control)
   ============================================================ */
.hero-switch {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(20,20,20,0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-2);
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 12px 40px -8px rgba(0,0,0,0.7);
}
.hero-switch .lbl { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-right: 6px; }
.hero-switch button {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.hero-switch button:hover { color: var(--text); }
.hero-switch button.active { background: var(--lime); color: #0a0a0a; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ============================================================
   LEGAL PAGES  (terms, privacy, creator-terms)
   ============================================================ */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px,8vw,80px) var(--edge) clamp(80px,12vw,140px);
  position: relative;
  z-index: 1;
}
.legal-hero { border-bottom: 1px solid var(--border); padding-bottom: 32px; margin-bottom: 52px; }
.legal-hero h1 { font-size: clamp(28px,4vw,44px); font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 0; }
.legal-meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-top: 16px; }

.legal-article { font-size: 15.5px; line-height: 1.78; color: var(--text-2); }
.legal-article > p { margin-top: 14px; }
.legal-article > p:first-child { margin-top: 0; }
.legal-article section { margin-top: 44px; }
.legal-article h2 { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.legal-article p + p { margin-top: 12px; }
.legal-article ul { list-style: disc; padding-left: 22px; margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.legal-article a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; opacity: .9; }
.legal-article a:hover { opacity: 1; }
.legal-article strong { color: var(--text); font-weight: 600; }
.legal-article .notice {
  border: 1px solid rgba(227,255,74,0.2);
  background: rgba(227,255,74,0.05);
  border-radius: 10px;
  padding: 16px 20px;
  font-weight: 500;
  margin-top: 14px;
}
.legal-article .upper { text-transform: uppercase; font-size: 13.5px; line-height: 1.65; }

.legal-footer { border-top: 1px solid var(--border); padding: 28px 0; position: relative; z-index: 1; }
.legal-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.legal-footer .m { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-4); }
.legal-footer a.m { text-decoration: none; transition: color .2s; }
.legal-footer a.m:hover { color: var(--text-2); }
