/* Vista — marketing site
   Dark, photo-frame aesthetic with a HomeKit-green accent. */

:root {
  --bg: #000000;
  --bg-alt: #0c0c0e;
  --surface: #151517;
  --surface-2: #1c1c1e;
  --text: #f5f5f7;
  --muted: #98989d;
  --line: rgba(255, 255, 255, 0.08);
  --accent: #34c759;       /* HomeKit toggle green */
  --accent-2: #0a84ff;     /* iOS blue */
  --radius: 18px;
  --max: 1080px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

.muted { color: var(--muted); font-size: 0.9rem; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.05rem;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}
.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 19px;
  margin-bottom: 20px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 22px 64px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--accent);
  margin: 0 0 12px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.lede {
  font-size: 1.12rem;
  color: #d6d6db;
  margin: 0 0 28px;
  max-width: 34ch;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform .08s ease, opacity .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #00210d; }
.btn-primary:hover { background: #2db14e; }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: #2a2a2d; }

/* Official-style "Download on the App Store" badge */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 15px;
  border-radius: 12px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  line-height: 1;
  transition: transform .08s ease, background .2s ease;
}
.appstore-badge:hover { text-decoration: none; transform: translateY(-1px); background: #111; }
.appstore-badge svg { width: 24px; height: 24px; flex: none; fill: #fff; }
.appstore-badge .as-text { display: flex; flex-direction: column; text-align: left; }
.appstore-badge .as-small { font-size: 0.66rem; letter-spacing: 0.02em; opacity: 0.9; }
.appstore-badge .as-big { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.badges {
  margin-top: 26px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-shot { display: flex; justify-content: center; }
.frame {
  padding: 10px;
  background: linear-gradient(160deg, #2a2a2d, #0d0d0f);
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  max-width: 520px;
}
.frame img { border-radius: 14px; }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 22px;
}
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  text-align: center;
  margin: 0 0 10px;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 auto 44px;
  max-width: 52ch;
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s ease, transform .12s ease;
}
.card:hover { border-color: rgba(52, 199, 89, 0.5); transform: translateY(-2px); }
.card-icon { font-size: 1.7rem; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ---------- Screenshot story ---------- */
.story { display: flex; flex-direction: column; gap: 64px; }
.story-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
}
.story-row.reverse .story-shot { order: 2; }
.story-shot img {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.story-copy h3 { font-size: 1.45rem; letter-spacing: -0.01em; margin: 0 0 10px; }
.story-copy p { color: var(--muted); font-size: 1.05rem; margin: 0; max-width: 40ch; }

/* ---------- Privacy band ---------- */
.privacy-band { text-align: center; }
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 36px 0 30px;
}
.privacy-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: left;
}
.privacy-item strong { display: block; margin-bottom: 6px; font-size: 1.02rem; }
.privacy-item span { color: var(--muted); font-size: 0.92rem; }
.privacy-cta { margin: 0; }

/* ---------- Content pages (Privacy / Support) ---------- */
.page {
  max-width: 800px;
  margin: 0 auto;
  padding: 56px 22px 80px;
}
.page h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.page h2 {
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 2.2em 0 0.4em;
}
.page h3 { font-size: 1.08rem; margin: 1.4em 0 0.3em; }
.page p { color: #d6d6db; margin: 0 0 1em; }
.page ul { padding-left: 1.2em; color: #d6d6db; }
.page li { margin: 0.35em 0; }
.page strong { color: var(--text); }
.page .lead { font-size: 1.12rem; color: #d6d6db; }
.page-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--accent);
  margin: 0 0 12px;
}
.card-soft {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 24px 0;
}
.card-soft h3 { margin-top: 0; }
.card-soft p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 22px 56px;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.footer-links a { color: var(--muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 48px;
    text-align: center;
  }
  .hero .lede, .hero .badges, .hero-icon { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-shot { order: -1; }
  .frame { max-width: 360px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .story-row, .story-row.reverse { grid-template-columns: 1fr; gap: 22px; }
  .story-row.reverse .story-shot { order: 0; }
  .story-copy { text-align: center; }
  .story-copy p { margin-left: auto; margin-right: auto; }
  .privacy-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .nav-links { gap: 14px; }
  .grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
}
