/* ============ SAYF marketing site — HUD aesthetic matching the app ============ */
:root {
  --bg: #0B0E13;
  --surface: #131720;
  --surface-2: #1A1F2A;
  --border: rgba(74, 219, 230, 0.20);
  --border-soft: rgba(255, 255, 255, 0.07);
  --text: #E6F0FA;
  --text-2: #94A6BD;
  --text-3: #5C6B80;
  --accent: #47DBE6;
  --accent-dim: rgba(74, 219, 230, 0.45);
  --warn: #F5A623;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --head: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --brand: "Orbitron", var(--head); /* wordmark only — too wide/geometric for body headings */
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.accent { color: var(--accent); }
.center { text-align: center; }

.kicker {
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 8px;
}
.kicker.center { justify-content: center; }
.kicker::before {
  content: ""; width: 20px; height: 2px; background: var(--accent); display: inline-block;
}
.kicker.center::before { display: none; }

.section-title {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 16px 0 0;
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--mono); font-weight: 600;
  font-size: 14px; letter-spacing: 0.05em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 4px;
  padding: 15px 26px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #05262a; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(74,219,230,.35); }
.btn-sm { padding: 10px 18px; font-size: 12px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 14, 19, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { border-radius: 8px; }
.brand span {
  font-family: var(--brand); font-weight: 700; font-size: 19px;
  letter-spacing: 0.06em; color: var(--text);
  text-shadow: 0 0 18px rgba(74, 219, 230, 0.45);
}
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .12s ease;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 900px; pointer-events: none;
  background: radial-gradient(circle, rgba(66,50,148,0.30) 0%, rgba(66,50,148,0) 62%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center;
}
.hero h1 {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(38px, 6vw, 66px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 18px 0 22px;
}
.lede { color: var(--text-2); font-size: clamp(16px, 2vw, 19px); max-width: 34ch; }
.lede-strong { color: var(--text); font-weight: 600; margin-top: 14px; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 30px; }
.cta-note { color: var(--text-3); font-size: 13px; margin-top: 14px; max-width: 46ch; }

/* App Store badge + secondary CTA */
.appstore-link { display: inline-block; line-height: 0; transition: transform .12s ease; }
.appstore-link:hover { transform: translateY(-2px); }
.appstore-link img { display: block; }
.btn-ghost {
  font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--text-2);
  text-decoration: none; padding: 15px 4px; transition: color .12s ease;
}
.btn-ghost:hover { color: var(--accent); }
.final-badge { margin-top: 30px; }

/* phone frame */
.hero-device { display: flex; justify-content: center; }
.phone {
  position: relative; width: 100%; max-width: 300px;
  border: 3px solid #2b2f38; border-radius: 42px;
  background: #05070b; padding: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(74,219,230,.08);
}
.phone img { width: 100%; display: block; border-radius: 34px; }

/* ---------- live shift-clock overlay on the log screenshot ---------- */
/* The screenshot has a static "02:59:58" baked into its pixels. This masks
   just that spot and draws a real, ticking countdown + progress bar on top,
   positioned as % of the image so it stays aligned at any phone size. Inset
   matches .phone's own border(3px)+padding(8px) so the overlay's box exactly
   overlays the <img>, not the outer frame. */
/* .phone-screen wraps ONLY the <img>, no border/padding of its own, so
   inset:0 on the overlay aligns pixel-exact with the image regardless of the
   outer .phone frame's border+padding box-model. */
.phone-screen { position: relative; line-height: 0; container-type: inline-size; }
.clock-overlay { position: absolute; inset: 0; pointer-events: none; }
/* Coordinates below measured directly off the screenshot's cyan pixels (a
   Swift/CoreGraphics scan for the accent color, banded by contiguous runs) —
   not eyeballed. Bands found: [0] nav "Preview" button, [1] status-strip dot,
   [2] "TIME REMAINING" label, [3] the big digits, [4] the progress bar. Only
   [3] and [4] should be masked/replaced; [0]-[2] must stay untouched. */
.clock-digits-mask {
  position: absolute; left: 7%; top: 21.6%; width: 43%; height: 4.2%;
  background: var(--surface);
}
.clock-digits {
  position: absolute; left: 8.5%; top: 21.7%; width: 42%; height: 4%;
  font-family: var(--mono); font-weight: 700; color: var(--accent);
  font-size: 4.6cqw; line-height: 1; letter-spacing: 0.01em;
  display: flex; align-items: center;
  text-shadow: 0 0 12px rgba(74, 219, 230, 0.5);
}
.clock-digits.is-overtime { color: var(--warn); text-shadow: 0 0 12px rgba(245, 166, 35, 0.5); }
.clock-bar-track {
  position: absolute; left: 8.2%; top: 26.9%; width: 52%; height: 0.7%;
  background: var(--surface-2);
}
.clock-bar-fill {
  height: 100%; width: 0%; background: var(--accent);
  transition: width 1s linear, background-color .4s ease;
}
.clock-bar-fill.is-overtime { background: var(--warn); }

/* trust strip */
.trust-strip {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px;
  margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--border-soft);
  list-style: none;
}
.trust-strip li { font-family: var(--mono); font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.trust-strip .tick { color: var(--accent); font-weight: 700; }

/* ---------- marquee ticker (Cash-App-style scroll, HUD telemetry vibe) ---------- */
.marquee {
  overflow: hidden; white-space: nowrap;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface); padding: 20px 0;
}
.marquee-track { display: inline-flex; align-items: center; animation: marquee 34s linear infinite; will-change: transform; }
.marquee-track span {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(20px, 2.8vw, 32px); text-transform: uppercase; letter-spacing: 0.01em;
  padding: 0 24px; color: var(--text);
}
.marquee-track i { color: var(--accent); font-style: normal; font-size: 15px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- positioning strip ---------- */
.strip { padding: 60px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); background: var(--surface); }
.strip-line { text-align: center; font-family: var(--head); font-weight: 500; font-size: clamp(20px, 3vw, 30px); line-height: 1.35; }

/* ---------- features ---------- */
.features { padding: 90px 0; }
.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  margin-top: 72px;
}
.feature-row:first-of-type { margin-top: 56px; }
.feature-num {
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent);
  border: 1px solid var(--border); padding: 4px 9px; border-radius: 4px;
}
.feature-text h3 { font-family: var(--head); font-weight: 600; font-size: clamp(22px, 2.6vw, 30px); margin: 18px 0 14px; line-height: 1.2; }
.feature-text p { color: var(--text-2); font-size: 17px; max-width: 42ch; }
.feature-shot { display: flex; justify-content: center; }
.feature-shot .phone { max-width: 264px; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-shot { order: 1; }

/* ---------- why free — signature full-bleed color block ---------- */
.free {
  padding: 110px 0; position: relative; overflow: hidden;
  background: var(--accent); color: #05171a;
  background-image: linear-gradient(180deg, #5CE6F0 0%, #3FCEDA 100%);
}
/* faint grid texture for HUD continuity */
.free::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .14;
  background-image:
    linear-gradient(#05171a 1px, transparent 1px),
    linear-gradient(90deg, #05171a 1px, transparent 1px);
  background-size: 46px 46px;
}
.free-inner { max-width: 820px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.free .kicker { color: #05171a; opacity: .65; }
.free-headline {
  font-family: var(--head); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(30px, 5.2vw, 58px); line-height: 1.04; margin-top: 18px; color: #041215;
}
.free-lede { color: #06343a; font-size: 19px; margin: 26px auto 0; max-width: 60ch; }
.free-punch {
  font-family: var(--head); font-weight: 700; font-size: clamp(28px, 4.6vw, 48px);
  color: #041215; margin-top: 40px; line-height: 1.1; letter-spacing: -0.02em;
}

/* ---------- privacy ---------- */
.privacy { padding: 96px 0; }
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 52px; }
.pcard {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  padding: 28px; border-radius: 6px;
}
.pcard::before, .pcard::after {
  content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--accent); opacity: .55;
}
.pcard::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.pcard::after { bottom: -1px; right: -1px; border-left: none; border-top: none; }
.pcard h3 { font-family: var(--head); font-weight: 600; font-size: 20px; margin-bottom: 10px; }
.pcard p { color: var(--text-2); font-size: 15.5px; }

/* ---------- faq ---------- */
.faq { padding: 96px 0; background: var(--surface); border-top: 1px solid var(--border-soft); }
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--border-soft); border-radius: 6px; padding: 4px 22px;
  margin-top: 12px; background: var(--bg);
}
.faq details[open] { border-color: var(--border); }
.faq summary {
  font-family: var(--head); font-weight: 600; font-size: 17px; cursor: pointer;
  padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-family: var(--mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--text-2); padding: 0 0 20px; font-size: 16px; }

/* ---------- final CTA ---------- */
.final-cta { position: relative; padding: 100px 0; text-align: center; overflow: hidden; }
.final-inner { position: relative; z-index: 1; }
.final-icon { border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.final-cta h2 { font-family: var(--head); font-weight: 700; font-size: clamp(28px, 4.4vw, 48px); line-height: 1.1; margin: 22px 0 12px; letter-spacing: -0.01em; }
.final-cta p { color: var(--text-2); font-size: 18px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding: 34px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; color: var(--text-2); }
.footer-brand img { border-radius: 7px; }
.footer-meta { display: flex; gap: 24px; align-items: center; font-size: 14px; }
.footer-meta a { color: var(--accent); text-decoration: none; }
.footer-meta span { color: var(--text-3); font-family: var(--mono); }

/* ---------- sticky mobile download bar ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(11, 14, 19, 0.92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform .28s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-info { display: flex; align-items: center; gap: 11px; }
.sticky-info img { border-radius: 8px; }
.sticky-info strong { display: block; font-family: var(--brand); font-size: 14px; letter-spacing: 0.05em; }
.sticky-info span { font-family: var(--mono); font-size: 11px; color: var(--text-2); }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-device { order: -1; }
  .phone { max-width: 260px; }
  .lede { max-width: none; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 30px; }
  .feature-row.reverse .feature-text { order: 1; }
  .feature-row.reverse .feature-shot { order: 2; }
  .feature-text p { max-width: none; }
  .privacy-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 520px) {
  .cta-row { flex-direction: column; align-items: stretch; }
  .notify { flex-direction: column; }
  .notify input[type=email] { min-width: 0; }
  .footer-inner { flex-direction: column; text-align: center; }
}
