/* ─────────────────────────────────────────────────────────────
   AgenToDo — landing page
   Brand: MacPaw Brand Book (Pink Power #FF00AA, Fixel, clean & confident)
   Fonts loaded via <link rel="preconnect"> + <link rel="stylesheet"> in
   index.astro <head> — keeps font fetching off the critical CSS path.
   ───────────────────────────────────────────────────────────── */

:root {
  --pink: #FF00AA;
  --pink-soft: #FFE5F6;
  --pink-hover: #E6009A;
  --black: #000000;
  --ink: #0D0D0D;
  --gray-900: #1a1a1a;
  --gray-700: #333333;
  --gray-500: #666666;
  --gray-400: #999999;
  --gray-300: #CCCCCC;
  --gray-200: #E5E5E5;
  --gray-100: #F2F2F2;
  --gray-50: #FAFAFA;
  --white: #FFFFFF;
  --green: #34C759;
  --red: #FF0033;
  --blue: #0088FF;

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-pill: 9999px;

  --max-w: 1320px;
  --gutter: 32px;

  --display: 'Fixel Display', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --text: 'Fixel Text', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--pink); color: var(--white); }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* type ────────────────────────────────────────────────────── */

.h1, .h2, .h3, .h4 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: var(--ink);
  margin: 0;
}

.h1 { font-size: clamp(56px, 9.4vw, 140px); }
.h2 { font-size: clamp(44px, 6.2vw, 96px); line-height: 0.95; }
.h3 { font-size: clamp(32px, 3.8vw, 56px); line-height: 1; letter-spacing: -0.03em; }
.h4 { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }

.eyebrow {
  font-family: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pink);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
}

.lead {
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.32;
  color: var(--gray-500);
  letter-spacing: -0.01em;
  font-weight: 400;
  max-width: 36em;
}

.muted { color: var(--gray-500); }
.pink { color: var(--pink); }

/* layout ──────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: clamp(80px, 9vw, 160px) 0; }
.section-tight { padding: clamp(48px, 6vw, 100px) 0; }

hr.rule {
  border: none;
  height: 1px;
  background: var(--gray-200);
  margin: 0;
}

/* nav ──────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.brand-mark-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-block;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--gray-700); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
/* `.nav-links a` (specificity 0,1,1) was overriding `.nav-cta` (0,1,0) and
   washing out the Download button text to gray. Bumping the CTA selector to
   `.nav-links a.nav-cta` (0,2,1) makes it win cleanly inside the nav. */
.nav-links a.nav-cta {
  background: var(--pink);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: background .15s, color .15s;
}
.nav-links a.nav-cta:hover {
  background: var(--pink-hover);
  color: var(--white);
}

@media (max-width: 900px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* buttons ──────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--text);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.005em;
  border: none;
  transition: transform .15s ease, background .2s, box-shadow .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--pink); }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-pink {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 0 0 0 rgba(255, 0, 170, 0.3);
}
.btn-pink:hover {
  background: var(--pink-hover);
  box-shadow: 0 12px 32px -8px rgba(255, 0, 170, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 14px 0;
}

/* hero ────────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(48px, 7vw, 120px) 0 clamp(64px, 8vw, 140px);
  overflow: hidden;
}
.hero-bow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(255, 0, 170, 0.06), transparent 70%),
    radial-gradient(40% 40% at 0% 60%, rgba(255, 0, 170, 0.04), transparent 70%);
}
.hero-inner { position: relative; z-index: 1; }

.hero h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 11.2vw, 192px);
  line-height: 0.88;
  letter-spacing: -0.045em;
  margin: 0 0 32px;
  color: var(--ink);
}
.hero h1 .accent { color: var(--pink); }
.hero h1 em {
  font-style: normal;
  color: var(--gray-300);
}

.hero-sub {
  font-family: var(--text);
  font-size: clamp(20px, 1.7vw, 26px);
  line-height: 1.32;
  color: var(--gray-500);
  letter-spacing: -0.01em;
  max-width: 32em;
  margin: 0 0 48px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 64px;
}
.hero-actions .note {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 500;
}
.store-badges {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.store-badges a {
  display: block;
  line-height: 0;
  transition: opacity 0.2s ease;
}
.store-badges a:hover {
  opacity: 0.8;
}

/* command bar (hero) ──────────────────────────────────────── */

.cmdbar-wrap {
  position: relative;
  margin-top: 40px;
  /* Reserve full space upfront to prevent iOS Safari scroll-jump when
     preview cards appear/disappear and shift layout height. */
  min-height: 400px;
  padding-bottom: 20px;
}
.cmdbar {
  background: var(--white);
  border: 1.5px solid var(--pink-soft);
  border-radius: 16px;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(17px, 1.5vw, 21px);
  box-shadow:
    0 0 0 4px rgba(255, 0, 170, 0.06),
    0 24px 64px -28px rgba(0,0,0,0.18);
  position: relative;
  z-index: 2;
}
.cmdbar-icon {
  width: 24px;
  height: 24px;
  border-radius: 0;
  background: transparent;
  color: var(--pink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cmdbar-icon svg { width: 22px; height: 22px; }
.cmdbar-mic {
  width: 22px;
  height: 22px;
  color: var(--gray-400);
  flex-shrink: 0;
  cursor: pointer;
}
.cmdbar-mic:hover { color: var(--pink); }
.cmdbar-input {
  flex: 1;
  font-family: var(--text);
  font-size: inherit;
  color: var(--ink);
  letter-spacing: -0.01em;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  position: relative;
}
.cmdbar-input.placeholder { color: var(--gray-400); }
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--pink);
  vertical-align: -0.18em;
  margin-left: 2px;
  animation: blink 1s steps(2, jump-none) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.cmdbar-kbd {
  background: var(--gray-100);
  color: var(--gray-500);
  font-family: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.cmdbar-go {
  display: none;
}
.cmdbar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.cmdbar-chip {
  background: var(--pink-soft);
  color: var(--pink);
  border: none;
  padding: 9px 16px;
  border-radius: 9999px;
  font-family: var(--text);
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: default;
}
.cmdbar-chip svg { width: 14px; height: 14px; }

/* preview chip stack ──────────────────────────────────────── */

.preview-card {
  margin-top: 12px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 22px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 24px 64px -32px rgba(0,0,0,0.16);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .4s ease, transform .4s ease;
  /* Absolute so it never pushes content below when appearing */
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
  pointer-events: none;
}
.preview-card.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.preview-head .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--pink); display: inline-block;
  margin-right: 8px;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.55; }
}
.preview-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--gray-50);
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  font-size: 15px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease;
}
.preview-row.in { opacity: 1; transform: translateY(0); }
.preview-row .verb {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}
.verb-move { background: rgba(0,136,255,0.1); color: var(--blue); }
.verb-add { background: rgba(52,199,89,0.12); color: var(--green); }
.verb-flag { background: rgba(255,0,170,0.1); color: var(--pink); }
.verb-remind { background: rgba(255,204,0,0.18); color: #8a6b00; }
.verb-find { background: rgba(151,71,255,0.12); color: #7140d4; }
.verb-email { background: rgba(0,0,0,0.06); color: var(--gray-700); }

.preview-row .what {
  color: var(--ink);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.preview-row .strike {
  color: var(--gray-400);
  text-decoration: line-through;
  margin-right: 6px;
}
.preview-row .arrow {
  color: var(--gray-400);
  margin: 0 6px;
}

.preview-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.preview-foot button {
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  background: var(--gray-100);
  color: var(--gray-700);
}
.preview-foot .approve {
  background: var(--ink);
  color: var(--white);
}

/* generic cards ───────────────────────────────────────────── */

.card {
  background: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3vw, 48px);
  position: relative;
  overflow: hidden;
}
.card-ink { background: var(--ink); color: var(--white); }
.card-ink .muted { color: var(--gray-400); }
.card-pink { background: var(--pink); color: var(--white); }
.card-pink .muted { color: rgba(255,255,255,0.7); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: 1fr; }
}

/* command bar (deep section) ─────────────────────────────── */

.demo-stage {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.demo-stage .cmdbar-wrap {
  /* Reserve full space to prevent iOS Safari scroll-jump. Must fit the
     tallest scenario card (~332px incl. cmdbar at desktop widths) — the
     card is absolutely positioned, so if this is too small it paints over
     the .demo-pills that follow. */
  min-height: 360px;
}
.demo-stage .cmdbar {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255, 0, 170, 0.4);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 0, 170, 0.08), 0 0 64px -20px rgba(255, 0, 170, 0.3);
}
.demo-stage .cmdbar-input { color: var(--white); }
.demo-stage .cmdbar-input.placeholder { color: rgba(255,255,255,0.5); }
.demo-stage .cmdbar-icon { color: var(--pink); }
.demo-stage .cmdbar-mic { color: rgba(255,255,255,0.5); }
.demo-stage .preview-card {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.12);
  color: var(--white);
}
.demo-stage .preview-row {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
}
.demo-stage .preview-row .what { color: var(--white); }
.demo-stage .preview-row .strike { color: rgba(255,255,255,0.4); }
.demo-stage .preview-foot button { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }
.demo-stage .preview-foot .approve { background: var(--pink); color: var(--white); }
.demo-stage .preview-head { color: rgba(255,255,255,0.65); }

.demo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.demo-pill {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.85);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
}
.demo-pill:hover { border-color: var(--pink); color: var(--white); }
.demo-pill.active { background: var(--pink); border-color: var(--pink); color: var(--white); }

/* perspectives ────────────────────────────────────────────── */

.perspective-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  margin-top: 64px;
  align-items: start;
}
@media (max-width: 900px) { .perspective-row { grid-template-columns: 1fr; } }

.persp-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.persp {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all .2s;
  cursor: default;
  border: 1.5px solid transparent;
}
.persp:hover {
  background: var(--white);
  border-color: var(--gray-200);
  transform: translateY(-2px);
}
.persp-glyph {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pink);
  color: var(--white);
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.persp-glyph svg { width: 20px; height: 20px; }
.persp-glyph-blue   { background: #E6F2FF; color: #0088FF; }
.persp-glyph-yellow { background: #FFF6D6; color: #C99800; }
.persp-glyph-teal   { background: #DFF7F2; color: #00A896; }
.persp-glyph-purple { background: #EFE6FF; color: #7140d4; }
.persp-glyph-red    { background: #FFE6EA; color: #FF0033; }
.persp-glyph-amber  { background: #FFEFD9; color: #C97500; }
.persp-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0;
}
.persp-desc {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.4;
  margin: 0;
}

/* features ────────────────────────────────────────────────── */

.feature {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.feature h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}
.feature p {
  color: var(--gray-500);
  font-size: 17px;
  line-height: 1.42;
  margin: 0;
  max-width: 30em;
}
.feature .label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
}

.feature-ink {
  background: var(--ink);
  color: var(--white);
}
.feature-ink h3 { color: var(--white); }
.feature-ink p { color: rgba(255,255,255,0.65); }
.feature-ink .label { color: var(--pink); }

.feature-pink {
  background: var(--pink);
  color: var(--white);
}
.feature-pink h3 { color: var(--white); }
.feature-pink p { color: rgba(255,255,255,0.85); }
.feature-pink .label { color: rgba(255,255,255,0.8); }

.feature-gray {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
  min-height: auto;
}
.feature-gray h3 {
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
}
.feature-gray:hover {
  border-color: var(--gray-200);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-soft) 0%, rgba(255,0,170,0.08) 100%);
  color: var(--pink);
  flex-shrink: 0;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* macpaw story ────────────────────────────────────────────── */

.story {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: end;
}
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } }

.story h2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(48px, 6.2vw, 96px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
}
.story h2 em { font-style: normal; color: var(--pink); }
.story .lead { color: rgba(255,255,255,0.75); max-width: none; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 32px;
}
.stat-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(36px, 4.2vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--white);
}
.stat-label {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-top: 8px;
  font-weight: 500;
}

/* screenshot frames ───────────────────────────────────────── */

.screenshot-frame {
  position: relative;
  width: 100%;
  display: block;
  overflow: visible;
  border-radius: 12px;
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}
.screenshot-frame picture {
  display: block;
  border-radius: 12px;
}
.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
.screenshot-frame-light {
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
}
.screenshot-frame-light picture {
  display: block;
  border-radius: 12px;
}
.screenshot-frame-light img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* family grid (sister products) ──────────────────────────── */

.family-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .family-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .family-grid { grid-template-columns: 1fr 1fr; } }

.family-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1.5px solid transparent;
  transition: all .2s ease;
  color: var(--ink);
  text-decoration: none;
}
.family-card:hover {
  border-color: var(--gray-200);
  transform: translateY(-2px);
  box-shadow: 0 24px 40px -24px rgba(0,0,0,0.12);
}
.family-card img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: block;
}
.family-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.family-tag {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.35;
}

/* press logos ─────────────────────────────────────────────── */

.press-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vw, 64px);
  row-gap: 28px;
  filter: grayscale(1);
  opacity: 0.55;
}
.press-row img {
  height: 28px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
  transition: opacity .2s, filter .2s;
}
.press-row img:hover { opacity: 1; }

.kyiv-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  position: relative;
}
.kyiv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.kyiv-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

/* image slot styling (override) ───────────────────────────── */

image-slot {
  background: var(--gray-100);
  border: 1.5px dashed var(--gray-300);
  color: var(--gray-500);
  font-family: var(--text);
  font-size: 14px;
}

/* footer ──────────────────────────────────────────────────── */

footer {
  padding: 80px 0 48px;
  border-top: 1px solid var(--gray-200);
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--gray-200);
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.footer-col h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin: 0 0 16px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
  color: var(--gray-700);
}
.footer-col a:hover { color: var(--pink); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gray-500);
}
.by-macpaw {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.by-macpaw svg.paw { width: 18px; height: 18px; color: var(--ink); }
.social-row {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--gray-500);
}
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--gray-700);
  transition: all .15s;
}
.social-row a:hover { background: var(--pink); color: var(--white); }
.social-row a svg { width: 16px; height: 16px; }
.social-row > a:not([aria-label]) {
  width: auto;
  height: auto;
  border-radius: 0;
  color: var(--gray-500);
}
.social-row > a:not([aria-label]):hover {
  background: transparent;
  color: var(--pink);
}

/* split layouts (section headers + image/text rows) ─────── */

.split-header {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: end;
}
.split-inbox {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .split-header,
  .split-inbox { grid-template-columns: 1fr; gap: 28px; }
}

/* utilities ───────────────────────────────────────────────── */

.no-wrap { white-space: nowrap; }
.balance { text-wrap: balance; }
.pretty { text-wrap: pretty; }

/* ── mobile polish ───────────────────────────────────────── */

@media (max-width: 720px) {
  :root { --gutter: 20px; }

  .hero { padding: 32px 0 56px; }
  .hero h1 { margin-bottom: 24px; }
  .hero-sub { margin-bottom: 32px; }
  .hero-actions { margin-bottom: 40px; gap: 12px; align-items: center; }
  .store-badges { justify-content: center; }
  .hero-actions .note { width: 100%; text-align: center; }

  .cmdbar-wrap { min-height: 320px; margin-top: 24px; }
  .cmdbar { padding: 14px 16px; gap: 10px; border-radius: 14px; }
  .cmdbar-input { font-size: 16px; }

  .demo-stage { padding: 24px 18px; border-radius: 20px; }
  /* Narrow rows wrap → taller cards (~360px incl. cmdbar, measured). Keep
     the reserve above the tallest card so it can't cover the pills. */
  .demo-stage .cmdbar-wrap { min-height: 400px; }
  .demo-pills { margin-top: 20px; gap: 8px; }
  .demo-pill { padding: 8px 14px; font-size: 13px; }

  .grid-3 { gap: 14px; }
  .grid-3 > div { padding: 4px 0; }

  .feature { min-height: 0; padding: 28px 22px; gap: 14px; }
  .feature-pink > div:last-child {
    font-size: clamp(48px, 14vw, 72px) !important;
  }

  .persp-list { grid-template-columns: 1fr; }
  .perspective-row { gap: 28px; margin-top: 40px; }

  .stats { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; padding-top: 24px; }

  .family-card { padding: 20px; gap: 10px; }
  .family-card img { width: 48px; height: 48px; }
  .family-name { font-size: 18px; }
  .family-tag { font-size: 13px; }

  .story { padding: 32px 22px; }

  footer { padding: 56px 0 32px; margin-top: 48px; }
  .footer-grid { gap: 32px 24px; padding-bottom: 40px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .footer-bottom .by-macpaw,
  .footer-bottom .social-row { width: 100%; justify-content: center; flex-wrap: wrap; }

  .card-pink { padding: 48px 24px !important; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .family-grid { grid-template-columns: 1fr; }
}

/* trust bar ─────────────────────────────────────────────────── */

.trust-bar {
  padding: 28px 0;
  border-bottom: 1px solid var(--gray-200);
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.trust-icon {
  width: 20px;
  height: 20px;
  color: var(--gray-500);
  flex-shrink: 0;
}
.trust-text {
  font-family: var(--text);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}
.trust-text strong {
  color: var(--ink);
  font-weight: 700;
}
.trust-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .trust-items { gap: 16px 20px; }
  .trust-dot { display: none; }
  .trust-text { font-size: 13px; }
}

/* faq ──────────────────────────────────────────────────────── */

.faq-list {
  max-width: 800px;
}
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-item:first-child {
  border-top: 1px solid var(--gray-200);
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  -webkit-user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { display: none; content: ''; }
.faq-q::after {
  content: '+';
  font-family: var(--text);
  font-weight: 400;
  font-size: 24px;
  color: var(--gray-400);
  transition: transform .2s ease;
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item[open] .faq-q::after {
  content: '−';
  color: var(--pink);
}
.faq-a {
  padding: 0 0 24px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--gray-500);
  max-width: 640px;
}
.faq-a p { margin: 0; }
.faq-a a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-a a:hover { color: var(--pink-hover); }

@media (max-width: 720px) {
  .faq-q { padding: 20px 0; }
  .faq-a { padding-bottom: 20px; font-size: 16px; }
}

/* mid-page cta strip ─────────────────────────────────────── */

.cta-strip {
  padding: clamp(48px, 6vw, 80px) 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.cta-strip-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .cta-strip-buttons { flex-direction: column; align-items: center; }
  .cta-strip-buttons .btn { width: 100%; max-width: 320px; justify-content: center; }
}

/* nav: dual CTA buttons (CleanMyMac style) ───────────────── */

.nav-cta-ghost {
  border: 1.5px solid var(--gray-200);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14px;
  transition: border-color .15s, color .15s;
}
.nav-cta-ghost:hover { border-color: var(--ink); }

/* nav: hamburger menu ─────────────────────────────────────── */

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 60;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    flex-direction: column;
    padding: 20px var(--gutter) 24px;
    gap: 0;
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.12);
    z-index: 55;
  }
  .nav-links.nav-open { display: flex; }

  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 49;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
  }

  .nav-overlay.visible {
    display: block;
  }
  .nav-links a {
    display: flex !important;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.nav-cta {
    margin-top: 12px;
    justify-content: center;
  }
  .nav-links a.nav-cta-ghost {
    margin-top: 8px;
    justify-content: center;
    text-align: center;
  }
}

/* Today view preview card ─────────────────────────────────── */

.split-today {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .split-today { grid-template-columns: 1fr; gap: 32px; }
}

.today-preview {
  display: flex;
  justify-content: center;
}
.today-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 16px 48px -16px rgba(0,0,0,0.10);
}
.today-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.today-day {
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}
.today-date {
  font-size: 14px;
  color: var(--gray-400);
  font-weight: 500;
}
.today-meter { margin-bottom: 20px; }
.today-meter-bar {
  height: 6px;
  background: var(--gray-100);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 6px;
}
.today-meter-fill {
  height: 100%;
  width: 72%;
  background: linear-gradient(90deg, var(--pink), #FF66CC);
  border-radius: 3px;
}
.today-meter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--pink);
}
.today-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.today-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: background .15s;
}
.today-item:hover { background: var(--gray-50); }
.today-time {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  width: 36px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.today-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.today-check {
  width: 16px;
  height: 16px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  flex-shrink: 0;
}
.today-flagged .today-check {
  border-color: var(--pink);
}
.today-event { color: var(--gray-500); }

/* scroll reveal animations ────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.revealed {
  opacity: 1;
  transform: translateY(0);
}
/* Don't animate the hero — it should be visible immediately */
.hero.reveal { opacity: 1; transform: none; }

/* reduce footer gap — download section was section, now section-tight */
footer { margin-top: 0; }

/* step numbers (1-2-3 in How it works) ────────────────────── */

.step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
}

/* spec strip (system requirements, pricing, etc.) ─────────── */

.spec-strip {
  padding: 48px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.spec-title {
  font-family: var(--text);
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-400);
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.spec-value {
  font-size: 15px;
  color: var(--gray-700);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .spec-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .spec-grid { grid-template-columns: 1fr; }
}

/* footer legal links row ──────────────────────────────────── */

.footer-legal {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--gray-500);
  flex-wrap: wrap;
}
.footer-legal a { color: var(--gray-500); }
.footer-legal a:hover { color: var(--pink); }

@media (max-width: 720px) {
  .footer-bottom { flex-direction: column; gap: 20px; align-items: flex-start; }
  .footer-legal { gap: 12px; }
}

/* Store badge placeholders (until real App Store URLs are available) */
.store-badge-placeholder {
  display: block;
  line-height: 0;
  cursor: default;
  opacity: 0.9;
}
