/* ============================================================================
 * Focusly landing page — matches the in-app Aurora design system.
 *
 * Palette (from BRAND.md + tailwind.config.js):
 *   primary:  #5b6ee8 (indigo)
 *   accent:   #f08273 (warm coral)
 *   warm:     #f5a524 (v2 amber) — primary CTA, focus ring
 *   sage:     #7ab87a (success / "good focus")
 *   cool:     #5b8def ("on device" / browsing)
 *   bg dark:  #0e0f12 / 0a0b10
 *   text:     #e8eaed / #9aa0aa / #6b7280
 *
 * Z.85 — landing visual rebuild.
 *
 * Z.84 tried to build the page from CSS mockups (a tiny
 * app preview frame, a mini Today, a mini Focus, a tiny
 * SVG ring with hardcoded math). The user said the result
 * "completely sucked" — the small CSS mockups looked like
 * design exercises, not a real product.
 *
 * Z.85 tears out every tiny mockup and replaces the hero
 * with ONE big real product screenshot (the focus overlay,
 * rendered to a 2400x1800 PNG) and a second big screenshot
 * (the Today dashboard) in a new "The app" section. The
 * visuals are no longer "this is what the app might look
 * like" — they're "this is what the app looks like, in a
 * still frame." The hero becomes: text + a real product
 * photo + CTA. The page now reads as a real product page.
 *
 * Everything else (Features, Privacy, Download, Footer)
 * is the same structure as Z.84 but with reduced visual
 * weight — the hero and screens sections do the heavy
 * lifting, the rest is calm reference material.
 * ============================================================================ */

:root {
  color-scheme: dark;
  --bg: #0e0f12;
  --bg-1: #161922;
  --bg-2: #1f2330;
  --bg-3: #2a2f3c;
  --fg: #e8eaed;
  --fg-muted: #9aa0aa;
  --fg-dim: #6b7280;
  --primary: #5b6ee8;
  --accent: #f08273;
  --warm: #f5a524;
  --warm-bright: #ffb949;
  --sage: #7ab87a;
  --cool: #5b8def;
  --border: #2a2f3c;
  --border-soft: rgba(232,234,237,0.06);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --shadow-soft: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-elevated: 0 2px 8px rgba(0,0,0,0.08), 0 8px 24px rgba(0,0,0,0.12);
  --shadow-product: 0 32px 80px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 0 1px rgba(232,234,237,0.04), 0 0 80px rgba(245,165,36,0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01';
  line-height: 1.5;
  overflow-x: hidden;
}

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

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 { margin: 0; font-family: 'Fraunces', 'Inter', serif; font-weight: 600; letter-spacing: -0.02em; }

p { margin: 0; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ============================================================================
 * Ambient mesh — Z.84→Z.85 same.
 * ============================================================================ */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(800px 600px at 15% 10%, rgba(91,141,239,0.10), transparent 60%),
    radial-gradient(900px 700px at 90% 0%,  rgba(245,165,36,0.08),  transparent 60%),
    radial-gradient(700px 700px at 80% 80%, rgba(240,130,115,0.06), transparent 60%),
    radial-gradient(900px 700px at 10% 90%, rgba(91,110,232,0.08),  transparent 60%);
  animation: mesh-drift 24s ease-in-out infinite alternate;
}
@keyframes mesh-drift {
  0%   { transform: translate3d(0,    0,   0) scale(1);    }
  100% { transform: translate3d(20px, -16px, 0) scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .ambient-mesh { animation: none; }
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
  position: relative;
  z-index: 1;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .nav-links { gap: 12px; font-size: 13px; }
  .nav-links a:not(.btn) { display: none; }
  .nav .btn-primary { padding: 8px 14px; font-size: 13px; }
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.brand-mark { border-radius: 8px; }
.brand-name {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--fg-muted);
}
.nav-links a:hover { color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  transition: all 200ms cubic-bezier(0.215, 0.61, 0.355, 1);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--warm);
  color: var(--bg);
  box-shadow: 0 0 32px rgba(245,165,36,0.30), 0 4px 16px rgba(245,165,36,0.20);
}
.btn-primary:hover { background: var(--warm-bright); transform: translateY(-1px); box-shadow: 0 0 40px rgba(245,165,36,0.40), 0 6px 24px rgba(245,165,36,0.30); }
.btn-ghost {
  background: var(--bg-2);
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--bg-3); }

/* ============================================================================
 * Hero — Z.85. One big product screenshot, not five
 * small mockups. The hero text column stays centered as
 * in Z.83/Z.84 (max-width 720px, single column, no
 * marketing speak) and the figure below is a single real
 * product photo: the focus overlay rendered to a PNG.
 * The photo is 2400x1800 @ 2x DPR so it's sharp on
 * retina displays. The figcaption underneath names the
 * surface and what makes it calm — not a marketing line,
 * a description of what the user is looking at.
 * ============================================================================ */
.hero {
  padding: 56px 0 80px;
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1120px;
}
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 20px;
}
.eyebrow + h2 { margin-top: 0; }

.hero h1 {
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--fg);
  margin: 0 auto;
  max-width: 820px;
  padding: 0 4px;
  font-weight: 600;
}
@media (max-width: 640px) {
  .hero h1 br { display: none; }
}
.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-muted);
  margin-top: 20px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ============================================================================
 * Hero figure — the real focus overlay screenshot.
 * The image fills ~96% of the container width and is
 * centered. A soft drop-shadow + warm glow underneath
 * makes it feel like a real product photo. The figcaption
 * is small, muted, and describes what the user is seeing
 * (not a marketing line). The hero-meta line is below the
 * figcaption so the privacy promise is the last thing the
 * user reads before scrolling.
 * ============================================================================ */
.hero-figure {
  margin: 64px auto 0;
  max-width: 1080px;
  position: relative;
}
.hero-figure-frame {
  position: relative;
  display: block;
}
.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-product), var(--shadow-glow);
  background: transparent;
  position: relative;
  z-index: 1;
}
.hero-figure-glow {
  position: absolute;
  inset: 8% -8% -10% -8%;
  background: radial-gradient(ellipse at 50% 60%, rgba(245,165,36,0.18), transparent 65%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}
.hero-figure figcaption {
  margin-top: 20px;
  font-size: 14px;
  color: var(--fg-muted);
  font-style: italic;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}
.hero-meta {
  margin-top: 28px;
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.04em;
}

/* ============================================================================
 * "The app" section — Z.85. A second real screenshot
 * (the Today dashboard) at full container width. Same
 * pattern as the hero: a single big photo + a small
 * figcaption that names the surface. The h2 above the
 * photo is editorial, not marketing.
 * ============================================================================ */
.screens { padding: 80px 0 60px; position: relative; z-index: 1; }
.screens h2 {
  font-size: clamp(36px, 5vw, 56px);
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  text-align: center;
}
.screens-lede {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 620px;
}
.screens-figure {
  margin: 0 auto;
  max-width: 1120px;
}
.screens-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-elevated), 0 0 0 1px var(--border-soft);
  background: #0e0f12;
}
.screens-figure figcaption {
  margin-top: 18px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.screens-figure figcaption strong {
  color: var(--fg);
  font-weight: 600;
  font-style: normal;
}

/* ============================================================================
 * Features — Z.85. Same 4 cards as Z.84 with real
 * Lucide-style SVG icons. Visual weight is reduced
 * (smaller icons, less padding) because the hero and
 * screens sections are now the visual centrepieces.
 * Features is a quick reference, not a marketing pitch.
 * ============================================================================ */
.features { padding: 100px 0; position: relative; z-index: 1; }
.features h2 {
  font-size: clamp(32px, 4vw, 44px);
  max-width: 720px;
  margin-bottom: 56px;
}
.features h2 em {
  font-style: italic;
  color: var(--warm);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 200ms cubic-bezier(0.215, 0.61, 0.355, 1);
  position: relative;
  overflow: hidden;
}
.feature::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(245,165,36,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 200ms;
  pointer-events: none;
}
.feature:hover { background: var(--bg-2); transform: translateY(-2px); border-color: rgba(245,165,36,0.20); }
.feature:hover::after { opacity: 1; }
.feature-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--warm));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(245,165,36,0.15);
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}
.feature h3 {
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.feature p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-muted);
  position: relative;
  z-index: 1;
}

/* Privacy */
.privacy { padding: 100px 0; position: relative; z-index: 1; }
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 860px) {
  .privacy-grid { grid-template-columns: 1fr; }
}
.privacy h2 {
  font-size: clamp(32px, 4vw, 44px);
  margin-bottom: 24px;
}
.privacy-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.privacy-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  color: var(--fg);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.dot-success {
  background: #7ab87a;
  box-shadow: 0 0 8px rgba(122,184,122,0.4);
}
.privacy-file-path {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-dim);
  flex-wrap: wrap;
}
.privacy-file-path-label { white-space: nowrap; }
.privacy-file-path code {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 11px;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--fg-muted);
  word-break: break-all;
}

/* Download — same as Z.84. */
.download { padding: 100px 0 120px; text-align: center; position: relative; z-index: 1; }
.download h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin-bottom: 16px;
}
.download .lede { margin: 0 auto 56px; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .download-grid { grid-template-columns: 1fr; }
}
.download-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: left;
  transition: all 200ms cubic-bezier(0.215, 0.61, 0.355, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  position: relative;
}
.download-card:hover {
  background: var(--bg-2);
  border-color: var(--warm);
  transform: translateY(-2px);
}
.download-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.download-platform-logo {
  width: 32px;
  height: 32px;
  color: var(--fg-muted);
  flex-shrink: 0;
}
.download-card:hover .download-platform-logo { color: var(--warm); }
.download-os {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.download-file {
  font-size: 13px;
  font-weight: 500;
  color: var(--warm);
  letter-spacing: 0.02em;
  margin-left: auto;
}
.download-meta-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.download-meta-list li {
  font-size: 13px;
  color: var(--fg-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.download-meta-list li::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fg-dim);
  flex-shrink: 0;
}
.download-arrow {
  font-size: 22px;
  color: var(--warm);
  margin-top: auto;
  align-self: flex-end;
  line-height: 1;
  transition: transform 200ms;
}
.download-card:hover .download-arrow { transform: translateY(2px); }
.download-other-ways {
  margin-top: 28px;
  font-size: 14px;
  color: var(--fg-muted);
}
.download-other-ways a { color: var(--warm); }
.download-other-ways a:hover { text-decoration: underline; }
.download-other-ways-sep {
  margin: 0 8px;
  color: var(--fg-dim);
}
.download-reassurance {
  margin-top: 16px;
  font-size: 13px;
  color: var(--fg-dim);
  font-style: italic;
}

/* Footer */
.footer { padding: 80px 0 60px; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-tagline {
  margin-top: 12px;
  font-size: 13px;
  color: var(--fg-muted);
  max-width: 280px;
}
.footer h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin-bottom: 12px;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer ul a {
  font-size: 13px;
  color: var(--fg-muted);
  transition: color 150ms;
}
.footer ul a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--fg-dim);
  text-align: center;
}
