:root {
  --bg: #ffffff;
  --surface: #f7f7f8;
  --surface-elevated: #ffffff;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --text: #09090b;
  --text-secondary: #71717a;
  --text-tertiary: #a1a1aa;
  --accent: #2563eb;
  --accent-muted: #dbeafe;
  --teal: #2dd4bf;
  --teal-muted: rgba(45, 212, 191, 0.12);
  --on-accent: #ffffff;
  --success: #16a34a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(9, 9, 11, 0.04), 0 8px 24px rgba(9, 9, 11, 0.06);
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1080px;
  --narrow: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #09090b;
    --surface: #18181b;
    --surface-elevated: #27272a;
    --border: #27272a;
    --border-strong: #3f3f46;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #71717a;
    --accent: #3b82f6;
    --accent-muted: #1e3a8a;
    --teal-muted: rgba(45, 212, 191, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.container-narrow { width: min(100% - 40px, var(--narrow)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero {
  padding: 80px 0 56px;
  text-align: center;
}
.hero-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-muted);
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 650;
  max-width: 14em;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 420px) {
  .hero h1 {
    font-size: clamp(1.85rem, 8.2vw, 2.25rem);
  }
}
.hero .lede {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: default;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-disabled,
.btn-disabled:hover {
  background: var(--surface);
  color: var(--text-secondary);
  border-color: var(--border);
  cursor: default;
  filter: none;
}

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head {
  text-align: center;
  margin-bottom: 40px;
}
.section-head .eyebrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section-head p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--text-secondary);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 800px) {
  .grid-3 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card .icon-pill {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--teal-muted);
  color: var(--teal);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Screenshots */
.shot-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: end;
}
@media (max-width: 800px) {
  .shot-row { grid-template-columns: 1fr; max-width: 280px; margin-inline: auto; }
}
.phone {
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.phone img {
  width: 100%;
  border-radius: 20px;
}
.phone-caption {
  text-align: center;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}
.theme-note {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 20px;
}
.shot-light { display: none; }
.shot-dark { display: block; }
@media (prefers-color-scheme: light) {
  .shot-dark { display: none; }
  .shot-light { display: block; }
}
@media (prefers-color-scheme: dark) {
  .shot-light { display: none; }
  .shot-dark { display: block; }
}

/* Pro */
.pro-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}
@media (max-width: 800px) {
  .pro-panel { grid-template-columns: 1fr; padding: 24px; }
}
.pro-panel h2 {
  margin: 0 0 10px;
  font-size: 1.75rem;
  letter-spacing: -0.03em;
}
.pro-panel .price {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.pro-panel .price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.pro-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}
.pro-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.pro-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}
.coming-tag {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--teal-muted);
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
}

/* Legal / doc pages */
.doc-header {
  padding: 56px 0 24px;
  border-bottom: 1px solid var(--border);
}
.doc-header h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.035em;
}
.doc-meta {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.doc-meta strong { color: var(--text); font-weight: 600; }
.doc {
  padding: 40px 0 72px;
}
.doc h2 {
  margin: 36px 0 12px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.doc h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
}
.doc p, .doc li {
  color: var(--text-secondary);
}
.doc ul, .doc ol { padding-left: 1.25rem; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); }
.doc a { color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}
.footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a { color: var(--text-secondary); }
.footer-links a:hover { color: var(--text); }

/* Interactive app demo */
.app-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.demo-device {
  width: min(100%, 320px);
  margin-inline: auto;
}
.demo-bezel {
  background: var(--surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 36px;
  padding: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-clip {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 393 / 769;
  border-radius: 26px 26px 0 0;
  background: var(--bg);
  position: relative;
}
.demo-clip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* Full phone shot is 393×852; object-position top crops baked-in tab bar. */
  object-fit: cover;
  object-position: top center;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.demo-clip img.is-active {
  opacity: 1;
}
/* App default is dark; site demo matches unless visitor prefers light. */
.demo-clip img.demo-light { display: none !important; }
.demo-clip img.demo-dark { display: block; }
@media (prefers-color-scheme: light) {
  .demo-clip img.demo-dark { display: none !important; }
  .demo-clip img.demo-light { display: block !important; }
}
@media (prefers-color-scheme: dark) {
  .demo-clip img.demo-light { display: none !important; }
  .demo-clip img.demo-dark { display: block !important; }
}
.demo-tabs {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0;
  padding: 8px 4px 18px;
  background: color-mix(in srgb, var(--surface-elevated) 92%, transparent);
  border-top: 1px solid var(--border);
  position: relative;
  border-radius: 0 0 26px 26px;
}
.demo-tabs button {
  flex: 1;
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-tertiary);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  padding: 4px 2px 0;
  -webkit-tap-highlight-color: transparent;
}
.demo-tabs button svg {
  width: 24px;
  height: 24px;
  display: block;
}
.demo-tabs button[aria-selected="true"] {
  color: var(--accent);
}
.demo-tabs .home-pip {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 108px;
  height: 4px;
  border-radius: 3px;
  background: var(--text-primary);
  opacity: 0.18;
  pointer-events: none;
}
.demo-hint {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  margin: 0;
}
