/* LastHour — landing styles */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8f7;
  --bg-tint: #eefbf4;
  --ink: #0c1210;
  --ink-soft: #5b6660;
  --line: #e7ece9;
  --accent: #10b981;
  --accent-deep: #059669;
  --accent-cyan: #22d3ee;
  --radius: 16px;
  --maxw: 1160px;
  --shadow: 0 18px 50px -20px rgba(8, 40, 30, 0.28);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* landing only: blue top background (with soft glow) behind nav + hero,
   fading to white. Privacy page has no .home class, so it stays white. */
body.home {
  background:
    radial-gradient(900px 460px at 50% -60px, rgba(56, 132, 226, 0.18), transparent 72%),
    linear-gradient(180deg, #e9f2fc 0px, #ffffff 88vh);
  background-repeat: no-repeat;
}

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

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

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease, border-color 0.25s ease;
}
/* at the very top of the landing the bar is fully transparent and the
   page's blue background (on body.home) shows through — one continuous color */
.nav.at-top {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 650; font-size: 22px; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-soft); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 680px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- hero ---------- */
.hero {
  position: relative;
  text-align: center;
  min-height: calc(100vh - 64px);
  display: grid;
  align-content: center;
  padding: 48px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 56px;
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-copy h1 { margin: 0; max-width: 16ch; }
.hero-copy .lede { margin: 22px 0 0; max-width: none; }
.hero-copy .cta-row { justify-content: flex-start; }
.hero-copy .req { text-align: left; }
.hero-media .shot-img { width: 100%; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero-copy h1 { margin: 0 auto; }
  .hero-copy .lede { margin: 22px auto 0; }
  .hero-copy .cta-row { justify-content: center; }
  .hero-copy .req { text-align: center; }
  .hero-media { max-width: 560px; margin: 0 auto; }
}
.hero-icon { display: block; margin: 0 auto; width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); }
.eyebrow {
  display: inline-block;
  margin: 22px 0 0;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
h1 {
  margin: 28px auto 0;
  max-width: 14ch;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 720;
}
.lede {
  margin: 20px auto 0;
  max-width: 62ch;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-soft);
  text-wrap: balance;
}
.cta-row {
  margin: 32px 0 14px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 13px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
/* pre-launch: app not on the App Store yet — greyed, non-clickable */
.badge.soon { opacity: 0.5; pointer-events: none; cursor: default; }
.badge.soon:hover { transform: none; box-shadow: none; }
.badge svg { width: 24px; height: 24px; }
.badge small { display: block; font-size: 11px; font-weight: 500; opacity: 0.72; line-height: 1; margin-bottom: 3px; }
.badge b { font-size: 18px; font-weight: 600; line-height: 1; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  transition: border-color 0.15s ease;
}
.btn-ghost:hover { border-color: #cfd8d3; }
.req { margin-top: 10px; color: var(--ink-soft); font-size: 14px; }
.req b { color: var(--ink); font-weight: 600; }

/* ---------- screenshot frame ---------- */
.shot {
  margin: 40px auto 0;
  max-width: 920px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }
.shot-body {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--bg-tint), #fff 60%),
    repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(16,185,129,0.04) 18px, rgba(16,185,129,0.04) 19px);
  color: var(--ink-soft);
}
.shot-ph { text-align: center; }
.shot-ph svg { width: 46px; height: 46px; color: var(--accent); opacity: 0.7; }
.shot-ph p { margin: 12px 0 0; font-size: 14px; }

/* real screenshots: window captures already carry a baked shadow; region
   captures (popover / break overlay) get a rounded card treatment */
.shot-img { display: block; width: 100%; height: auto; }
.shot-img.framed { border-radius: 14px; box-shadow: var(--shadow); }
.hero-shot { margin: 40px auto 0; max-width: 640px; }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 48px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}
.section-head p { margin: 14px 0 0; color: var(--ink-soft); font-size: 18px; }

/* ---------- features ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8e3dd; }
.chip {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), var(--accent-cyan));
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(16,185,129,0.6);
}
.chip svg { width: 24px; height: 24px; }
.card h3 { margin: 18px 0 8px; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.tag-pro {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0.02em;
}

/* ---------- alternating feature rows ---------- */
.rows { display: flex; flex-direction: column; gap: 28px; }
.feature-row {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;   /* text narrow, screenshot wide */
  gap: 52px;
  align-items: center;
  padding: 24px 0;
}
.feature-row.reverse { grid-template-columns: 1.5fr 0.85fr; }
.feature-row.reverse .feature-media { order: -1; }
.pill {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--bg-tint);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* full-width screenshot showcase — big, readable screens with a caption above */
.showcase { display: flex; flex-direction: column; gap: 96px; }
.show-block { text-align: center; }
.show-head { max-width: 62ch; margin: 0 auto 40px; }
.show-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 0; font-weight: 700; }
.show-head p { margin: 14px auto 0; color: var(--ink-soft); font-size: 18px; }
.feature-text h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}
.feature-text p { color: var(--ink-soft); font-size: 17px; margin: 0; }
.feature-media .shot { margin: 0; max-width: none; }
.feature-media .shot-body { aspect-ratio: 4 / 3; }
@media (max-width: 820px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 28px; padding: 8px 0; }
  .feature-row.reverse .feature-media { order: 0; }
}

/* ---------- privacy band ---------- */
.band {
  background: linear-gradient(160deg, #0c1210, #112b22);
  color: #eaf6f0;
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  right: -120px; top: -180px;
  background: radial-gradient(closest-side, rgba(34,211,238,0.22), transparent);
  pointer-events: none;
}
.band .chip { margin: 0 auto 20px; width: 54px; height: 54px; }
.band h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.02em; margin: 0 auto; max-width: 20ch; font-weight: 720; }
.band p { margin: 18px auto 0; max-width: 56ch; color: #aecabd; font-size: 17px; }
.band a.inline { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- pricing ---------- */
.price-wrap { display: flex; justify-content: center; }
.price {
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow);
  background:
    radial-gradient(120% 100% at 50% 0%, var(--bg-tint), #fff 60%);
}
.price .kicker { color: var(--accent-deep); font-weight: 700; font-size: 14px; letter-spacing: 0.03em; text-transform: uppercase; }
.price .amount { font-size: 60px; font-weight: 760; letter-spacing: -0.03em; margin: 10px 0 2px; }
.price .amount span { font-size: 22px; color: var(--ink-soft); font-weight: 600; }
.price .once { color: var(--ink-soft); font-size: 15px; }
.price ul { list-style: none; padding: 0; margin: 26px 0; text-align: left; }
.price li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 15px; }
.price li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.price .badge { width: 100%; justify-content: center; }
.price .trial-note { margin-top: 14px; font-size: 13px; color: var(--ink-soft); }

/* ---------- faq ---------- */
.faq { max-width: 760px; margin: 0 auto; }
details {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
  margin-bottom: 12px;
  background: var(--bg);
}
details[open] { background: var(--bg-soft); }
summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-deep); font-size: 22px; font-weight: 400; }
details[open] summary::after { content: "\2013"; }
details p { margin: 0 0 18px; color: var(--ink-soft); font-size: 15px; }

/* ---------- closing CTA ---------- */
.closing { text-align: center; background: var(--bg-tint); border-top: 1px solid var(--line); }
.closing-icon { width: 76px; height: 76px; border-radius: 18px; box-shadow: var(--shadow); }
.closing h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 22px 0 0; font-weight: 720; }
.closing-sub { margin: 14px auto 0; max-width: 48ch; color: var(--ink-soft); font-size: 18px; }
.closing .cta-row { margin-top: 28px; margin-bottom: 0; }
.closing .req { margin-top: 14px; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 44px 0;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}
.footer-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; color: var(--ink); margin-bottom: 14px; }
.footer-brand img { width: 24px; height: 24px; border-radius: 6px; }
.footer-links { display: flex; gap: 22px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--ink); }
.muted { font-size: 15px; }

/* ---------- privacy article ---------- */
.doc { max-width: 720px; margin: 0 auto; padding: 64px 0; }
.doc h1 { text-align: left; font-size: 40px; max-width: none; margin: 0; }
.doc .updated { color: var(--ink-soft); margin: 8px 0 36px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #2b332f; font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc code {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 14px;
}
.doc .back { display: inline-block; margin-bottom: 28px; color: var(--accent-deep); font-weight: 600; }
.doc strong { color: var(--ink); }
