/* Landing page styles. Inner pages (support, ai, privacy) keep style.css. */

:root {
  --bg-top: #f4f5f9;
  --bg-bottom: #e7e9f0;
  --card: #ffffff;
  --card-stroke: rgba(0, 0, 0, 0.06);
  --card-shadow: rgba(0, 0, 0, 0.09);
  --text: #1c1e24;
  --muted: #5c616e;
  --green: #23a94d;
  --green-bright: #30d158;
  --blue: #0a74ff;
  --yellow: #f5b800;
  --red: #e5483e;
  --purple: #a550e0;
  --purple-bright: #bf5af2;
  --hero-top: #1b1c22;
  --hero-bottom: #121318;
  --hero-text: #eceef2;
  --hero-muted: #9aa0ad;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg-top: #1b1c22;
    --bg-bottom: #121318;
    --card: rgba(255, 255, 255, 0.055);
    --card-stroke: rgba(255, 255, 255, 0.09);
    --card-shadow: rgba(0, 0, 0, 0.32);
    --text: #eceef2;
    --muted: #9aa0ad;
    --green: #30d158;
    --blue: #409cff;
    --yellow: #ffd60a;
    --red: #ff6961;
    --purple: #bf5af2;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(to bottom, var(--bg-top), var(--bg-bottom)) fixed;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0; }
h1 { font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 650; }

/* ---------- Hero (always graphite, like the app's dark backdrop) ---------- */

.hero {
  background: linear-gradient(to bottom, var(--hero-top) 0%, #16211b 46%, var(--hero-bottom) 100%);
  color: var(--hero-text);
  overflow: hidden;
  padding-bottom: 8px;
}
.hero a { color: inherit; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand-sub { color: var(--hero-muted); font-weight: 600; white-space: pre; }
.ring-mini {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(from 41deg, var(--green-bright) 0 83%, #ffd60a 83% 91%, #ff453a 91% 96%, var(--green-bright) 96% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}
.nav nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
  color: var(--hero-muted);
}
.nav nav a { color: inherit; }
.nav nav a:hover { color: var(--hero-text); text-decoration: none; }

.hero-inner {
  text-align: center;
  padding: 48px 0 0;
}
.hero h1 { color: #ffffff; max-width: 17em; margin: 22px auto 0; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(to bottom, #5be28a, var(--green-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  color: var(--hero-muted);
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  max-width: 38em;
  margin: 18px auto 0;
}

/* The status ring: mostly green, with the tiny degraded/down slivers from the app icon. */
.ring {
  --ring-size: 108px;
  width: var(--ring-size);
  height: var(--ring-size);
  margin: 0 auto;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(from 41deg, var(--green-bright) 0 83%, #ffd60a 83% 91%, #ff453a 91% 96%, var(--green-bright) 96% 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 13px), #000 calc(100% - 12px));
}
.ring-wrap {
  position: relative;
  width: 108px;
  margin: 0 auto;
}
.ring-wrap::before {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(48, 209, 88, 0.28), transparent 65%);
}
.ring-wrap .pct {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.store-badge { display: inline-block; margin-top: 30px; }
.store-badge img { height: 54px; width: auto; }
.fineprint {
  color: var(--hero-muted);
  font-size: 0.88rem;
  margin: 14px 0 0;
}

.hero-shot {
  margin: 48px auto -4px;
  max-width: 960px;
}

/* ---------- Screenshot frames ---------- */

.shot {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  background: #1b1c22;
}
.shot.light {
  border-color: var(--card-stroke);
  box-shadow: 0 18px 44px var(--card-shadow);
}

/* ---------- Stats strip ---------- */

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 56px 0 8px;
  text-align: center;
}
.strip .num {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.strip .num.green { color: var(--green); }
.strip .num.blue { color: var(--blue); }
.strip .num.purple { color: var(--purple); }
.strip .label { color: var(--muted); font-size: 0.95rem; margin-top: 2px; }

/* ---------- Feature rows ---------- */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: 64px 0;
}
.feature.flip > .copy { order: 2; }
.feature .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.feature h2 { margin-bottom: 14px; }
.feature p { color: var(--muted); margin: 0 0 12px; }
.feature p strong { color: var(--text); font-weight: 650; }

.badge-ic {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: none;
}
.badge-ic svg { width: 14px; height: 14px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.badge-ic.green { background: linear-gradient(to bottom, #3ddc64, #23a94d); box-shadow: 0 2px 6px rgba(48, 209, 88, 0.35); }
.badge-ic.blue { background: linear-gradient(to bottom, #4a9bff, #0a74ff); box-shadow: 0 2px 6px rgba(10, 116, 255, 0.35); }
.badge-ic.yellow { background: linear-gradient(to bottom, #ffd84d, #f0a800); box-shadow: 0 2px 6px rgba(245, 184, 0, 0.35); }
.badge-ic.red { background: linear-gradient(to bottom, #ff6b61, #e5483e); box-shadow: 0 2px 6px rgba(229, 72, 62, 0.35); }
.badge-ic.purple { background: linear-gradient(to bottom, #d077ff, #a550e0); box-shadow: 0 2px 6px rgba(191, 90, 242, 0.35); }

/* ---------- MCP highlight ---------- */

.mcp {
  margin: 48px 0;
  border-radius: 22px;
  border: 1px solid rgba(191, 90, 242, 0.35);
  background:
    radial-gradient(90% 120% at 85% 0%, rgba(191, 90, 242, 0.16), transparent 60%),
    linear-gradient(to bottom, var(--hero-top), var(--hero-bottom));
  color: var(--hero-text);
  overflow: hidden;
}
.mcp-inner {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px);
}
.mcp .pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #e9c8ff;
  background: rgba(191, 90, 242, 0.18);
  border: 1px solid rgba(191, 90, 242, 0.45);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}
.mcp h2 { color: #ffffff; margin-bottom: 14px; }
.mcp p { color: var(--hero-muted); margin: 0 0 12px; }
.mcp p strong { color: var(--hero-text); }
.mcp .q {
  font-size: 1.05rem;
  color: #e9c8ff;
  font-weight: 600;
}
.mcp a.link { color: var(--purple-bright); font-weight: 600; }
.mcp .shot { max-width: 420px; margin: 0 auto; }

/* ---------- Privacy ---------- */

.privacy {
  text-align: center;
  padding: 72px 0 24px;
}
.privacy h2 { margin-bottom: 14px; }
.privacy p { color: var(--muted); max-width: 42em; margin: 0 auto 10px; }
.privacy .seal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--green);
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.92rem;
}

/* ---------- Supporting feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 40px 0 24px;
}
.cardlet {
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: 14px;
  box-shadow: 0 6px 18px var(--card-shadow);
  padding: 20px;
}
.cardlet .head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cardlet p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ---------- Final CTA ---------- */

.cta {
  text-align: center;
  padding: 72px 0 84px;
}
.cta h2 { margin-bottom: 10px; }
.cta p { color: var(--muted); margin: 0 auto; max-width: 36em; }
.cta .store-badge { margin-top: 26px; }
.cta .fineprint { color: var(--muted); }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--card-stroke);
  padding: 26px 0 40px;
  color: var(--muted);
  font-size: 0.88rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .feature,
  .mcp-inner {
    grid-template-columns: 1fr;
    padding-top: 40px;
    padding-bottom: 40px;
  }
  .feature.flip > .copy { order: 0; }
  .feature .shot, .mcp .shot { order: 1; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav nav { gap: 14px; }
  .nav nav .hide-sm { display: none; }
}
@media (max-width: 700px) {
  .brand-sub { display: none; }
}
@media (max-width: 560px) {
  .grid, .strip { grid-template-columns: 1fr; }
  .strip { gap: 28px; }
  .hero-inner { padding-top: 36px; }
}
/* ---------- Motion ---------- */

/* Scroll reveals: hidden only when JS is running; shown instantly for
   reduced motion (no transition) and without JS at all. */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.in { opacity: 1; transform: none; }
.strip > :nth-child(2) { --d: 0.12s; }
.strip > :nth-child(3) { --d: 0.24s; }
.grid > :nth-child(3n + 2) { --d: 0.1s; }
.grid > :nth-child(3n + 3) { --d: 0.2s; }

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--d, 0s);
  }

  .ring-wrap::before { animation: breathe 3.6s ease-in-out infinite; }
  @keyframes breathe {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.06); }
  }

  /* Hero entrance: ring spins in, the rest rises in a stagger. */
  .js .hero-inner > * {
    opacity: 0;
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .js .hero-inner > .ring-wrap {
    animation: ring-in 1.1s cubic-bezier(0.25, 0.8, 0.3, 1) forwards;
  }
  .js .hero-inner > :nth-child(2) { animation-delay: 0.12s; }
  .js .hero-inner > :nth-child(3) { animation-delay: 0.24s; }
  .js .hero-inner > :nth-child(4) { animation-delay: 0.36s; }
  .js .hero-inner > :nth-child(5) { animation-delay: 0.44s; }
  .js .hero-inner > :nth-child(6) { animation-delay: 0.55s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
  }
  @keyframes ring-in {
    from { opacity: 0; transform: scale(0.45) rotate(-150deg); }
    60% { opacity: 1; }
    to { opacity: 1; transform: none; }
  }

  /* Hover life. */
  .cardlet { transition: transform 0.25s ease, box-shadow 0.25s ease; }
  .cardlet:hover { transform: translateY(-4px); box-shadow: 0 14px 30px var(--card-shadow); }
  .store-badge img { transition: transform 0.2s ease; }
  .store-badge:hover img { transform: scale(1.045); }
  .feature .shot, .mcp .shot { transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.45s ease; }
  .feature .shot:hover, .mcp .shot:hover { transform: translateY(-5px); }
  .mcp .pill { animation: pill-glow 3s ease-in-out infinite; }
  @keyframes pill-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(191, 90, 242, 0); }
    50% { box-shadow: 0 0 18px 2px rgba(191, 90, 242, 0.25); }
  }
}
