/* gisheh.live — the English landing page. Same palette as the app (mobile/src/theme.ts) and the store images. */
@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2'); }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2'); }
@font-face { font-family: Vazirmatn; font-weight: 900; font-display: swap; src: url('/assets/fonts/Vazirmatn-Black.woff2') format('woff2'); }

:root {
  --night: #0b0f1a;
  --surface: #141a2a;
  --line: rgba(241, 233, 218, 0.12);
  --text: #f2f4f8;
  --muted: #a3abbe;
  --red: #c61c1c;
  --red-bright: #e5322d;
  --paper: #f1e9da;
  --ink: #2a1b0e;
  --ink-muted: #6b5a47;
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.6 Vazirmatn, system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red-bright); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 10; background: var(--paper); color: var(--ink); padding: 8px 14px; border-radius: 8px; }

/* ── header ─────────────────────────────────────────────────────────────── */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; }
.brand { display: inline-flex; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; gap: clamp(14px, 3vw, 32px); font-weight: 700; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); padding-block: 6px; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }

/* ── hero: the red light from the store images, the app beside the promise ───────── */
.hero { position: relative; margin-top: -82px; padding-top: 82px; }
.hero::before { /* the red light of the store images, fading out before the next section */
  content: ''; position: absolute; inset: 0 0 -160px; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 60% at 72% 22%, rgba(198, 28, 28, 0.42) 0%, rgba(198, 28, 28, 0.12) 48%, rgba(11, 15, 26, 0) 75%);
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: clamp(32px, 6vw, 72px); padding-block: clamp(36px, 7vw, 96px) 0; }
.hero h1 { font-weight: 900; font-size: clamp(2.6rem, 6.2vw, 4.9rem); line-height: 1.02; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34ch; margin: 22px 0 34px; }
.hero .fine { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 16px; min-width: 196px;
  border-radius: 14px; background: #05070c; color: var(--text);
  box-shadow: inset 0 0 0 1.5px rgba(242, 244, 248, 0.22);
  text-decoration: none;
}
.store .icon { width: 28px; height: 28px; }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: 12px; color: var(--muted); }
.store b { font-size: 18px; font-weight: 700; }
a.store:hover { box-shadow: inset 0 0 0 1.5px var(--text); }
.store[aria-disabled='true'] small { color: var(--red-bright); font-weight: 700; }

.hero-shot { position: relative; justify-self: center; width: min(340px, 86%); margin-bottom: -120px; }
.hero-shot::before { /* the glow behind the phone */
  content: ''; position: absolute; inset: 8% -20% 10%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(229, 50, 45, 0.45), rgba(229, 50, 45, 0));
  filter: blur(18px); z-index: -1;
}

/* the phone that frames every screenshot */
.phone { border-radius: 46px; padding: 10px; background: #05070c; box-shadow: 0 0 0 1.5px #2a3042, 0 40px 100px rgba(0, 0, 0, 0.55); }
.phone img { width: 100%; height: auto; border-radius: 37px; }
.phone.landscape { border-radius: 34px; padding: 9px; }
.phone.landscape img { border-radius: 26px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-shot { animation: rise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both 120ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
}

/* ── features: the app's own screens, one idea each ─────────────────────── */
.features { padding-block: clamp(150px, 16vw, 210px) clamp(40px, 8vw, 96px); }
.features > .wrap > h2, .section-title { font-weight: 900; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 12px; text-wrap: balance; }
.section-intro { color: var(--muted); max-width: 52ch; margin: 0 0 clamp(36px, 6vw, 64px); }
.feature { display: grid; grid-template-columns: 280px 1fr; align-items: center; gap: clamp(32px, 7vw, 96px); padding-block: clamp(28px, 4vw, 44px); }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-of-type(even) { grid-template-columns: 1fr 280px; }
.feature:nth-of-type(even) .shot { order: 2; }
.feature.wide { grid-template-columns: 1.3fr 1fr; }
.feature.wide:nth-of-type(even) { grid-template-columns: 1fr 1.3fr; }
.feature h3 { font-weight: 900; font-size: clamp(1.45rem, 2.4vw, 1.9rem); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); margin: 0; max-width: 42ch; }

.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line); }
.extras h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; font-weight: 700; margin: 0 0 6px; }
.extras h3 .icon { color: var(--red-bright); }
.extras p { margin: 0; color: var(--muted); font-size: 16px; }

/* ── the ticket: the privacy promise, torn along the perforation ─────────── */
.privacy-band { padding-block: clamp(40px, 8vw, 96px); }
.ticket {
  --stub: 72%;
  --notch: 18px;
  display: grid; grid-template-columns: var(--stub) 1fr;
  background: var(--paper); color: var(--ink);
  border-radius: 18px;
  -webkit-mask: radial-gradient(circle at var(--stub) 0, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--stub) 100%, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at var(--stub) 0, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) top / 100% 51% no-repeat,
    radial-gradient(circle at var(--stub) 100%, transparent var(--notch), #000 calc(var(--notch) + 0.5px)) bottom / 100% 51% no-repeat;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.ticket .main { padding: clamp(28px, 5vw, 56px); }
.ticket .stub {
  padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
  background-image: linear-gradient(var(--ink-muted) 50%, transparent 0);
  background-size: 2px 14px; background-repeat: repeat-y; background-position: left top;
}
.ticket h2 { font-weight: 900; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.05; letter-spacing: -0.015em; margin: 0 0 22px; color: var(--ink); }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.promises li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 17px; }
.promises li b { font-weight: 900; }
.promises .icon { color: var(--red); width: 24px; height: 24px; margin-top: 2px; }
.ticket .stub p { margin: 0; color: var(--ink-muted); font-size: 15px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; font-weight: 700; text-decoration: none;
  background: var(--red); color: #fff;
}
.button:hover { background: var(--red-bright); }
.button.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.button.quiet:hover { background: rgba(42, 27, 14, 0.08); }

/* ── support ─────────────────────────────────────────────────────────────── */
.support { padding-block: clamp(32px, 6vw, 72px) clamp(56px, 9vw, 112px); }
.support .wrap { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.support p { color: var(--muted); max-width: 56ch; margin: 0; }

/* ── footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; }
.site-footer img { height: 26px; width: auto; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }

/* ── document pages (privacy, support) ───────────────────────────────────── */
.doc { padding-block: clamp(28px, 6vw, 72px) clamp(56px, 9vw, 112px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-weight: 900; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 10px; }
.doc .effective { color: var(--muted); margin: 0 0 32px; font-size: 15px; }
.doc .intro { font-size: 1.12rem; margin: 0 0 40px; }
.doc h2 { font-weight: 900; font-size: 1.4rem; margin: 40px 0 12px; }
.doc p, .doc li { color: #cfd4df; }
.doc ul { padding-left: 1.2em; margin: 0 0 12px; }
.doc li { margin-bottom: 8px; }
.doc li::marker { color: var(--red-bright); }
.doc a { color: var(--text); text-decoration-color: var(--red-bright); text-underline-offset: 3px; }
.doc .contact { margin-top: 48px; padding: 24px; border-radius: 16px; background: var(--surface); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.doc .contact p { margin: 0; color: var(--muted); }
.faq dt { font-weight: 700; color: var(--text); margin-top: 22px; }
.faq dd { margin: 6px 0 0; color: #cfd4df; }

/* ── narrow screens ──────────────────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: left; }
  .hero-shot { width: min(300px, 78%); margin-bottom: -110px; }
  .feature, .feature:nth-of-type(even), .feature.wide, .feature.wide:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-of-type(even) .shot { order: 0; }
  .feature .shot { width: min(280px, 80%); }
  .feature.wide .shot { width: 100%; }
  .extras { grid-template-columns: 1fr; }
  .ticket {
    --notch: 16px;
    grid-template-columns: 1fr;
    -webkit-mask: radial-gradient(circle at 0 var(--stub-y), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) left / 51% 100% no-repeat,
      radial-gradient(circle at 100% var(--stub-y), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) right / 51% 100% no-repeat;
    mask: radial-gradient(circle at 0 var(--stub-y), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) left / 51% 100% no-repeat,
      radial-gradient(circle at 100% var(--stub-y), transparent var(--notch), #000 calc(var(--notch) + 0.5px)) right / 51% 100% no-repeat;
  }
  .ticket .stub { background-image: linear-gradient(90deg, var(--ink-muted) 50%, transparent 0); background-size: 14px 2px; background-repeat: repeat-x; }
  .support .wrap { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 520px) {
  .nav { gap: 14px; font-size: 14px; }
  .brand img { height: 32px; }
  .store { min-width: 0; flex: 1 1 200px; }
}
