:root {
  --bg:#ffffff;
  --bg-subtle:#fafafa;
  --border:#e4e4e7;
  --border-input:#949499;
  --text:#18181b;
  --text-muted:#71717a;
  --text-soft:#52525b;
  --accent:#4f46e5;
  --accent-hover:#4338ca;
  --accent-subtle:#eef2ff;
  --danger:#b91c1c;
  --danger-subtle:#fef2f2;
  --success:#15803d;
  --success-subtle:#f0fdf4;
  --warning:#a16207;
  --warning-subtle:#fefce8;
  --ease:cubic-bezier(0.2,0,0,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

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

.tnum {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--border-input);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: top 150ms var(--ease);
}

.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.nav {
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.92);
}

.nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-icon {
  width: 20px;
  height: 20px;
  border-radius: 22%;
  object-fit: cover;
  flex: none;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--text-soft);
  font-size: 14px;
}

.nav-links a {
  transition: color 150ms var(--ease), opacity 150ms var(--ease);
}

.nav-links a:hover { color: var(--text); }

.nav-actions .button { white-space: nowrap; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: transform 150ms var(--ease), opacity 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}

.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover { background: var(--accent-hover); }

.button-secondary {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}

.button-secondary:hover { border-color: var(--border-input); }

section { padding: 64px 0; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.headline {
  margin: 0;
  max-width: 720px;
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 600;
}

.section-title {
  margin: 0;
  max-width: 720px;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.lede {
  margin: 16px 0 0;
  max-width: 620px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero {
  padding: 72px 0 64px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-subtle) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: 48px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.store-badge svg { flex: none; }

.hero-note {
  margin: 12px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
  max-width: 640px;
}

.stat {
  min-width: 0;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.stat-label {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.stat-value {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.stat-caption {
  display: block;
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 13px;
}

.trend-up { color: var(--success); font-variant-numeric: tabular-nums; }

.hero-visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.hero-visual-caption {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  text-align: right;
}

.mac-window {
  width: min(520px, 100%);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.mock-section .mac-window { width: 100%; }

/* Five-column margin table scrolls inside its window on narrow phones instead of being clipped. */
.mock-section .window-body { overflow-x: auto; }
.mock-section .window-body:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.window-bar {
  position: relative;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.traffic {
  display: flex;
  gap: 8px;
  align-items: center;
}

.light {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.light:nth-child(1) { background: #ff5f57; border-color: #e0443e; }
.light:nth-child(2) { background: #febc2e; border-color: #d89e24; }
.light:nth-child(3) { background: #28c840; border-color: #1aad29; }

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  max-width: 58%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-body { padding: 20px; }

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.app-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.app-name strong {
  font-size: 16px;
  font-weight: 600;
}

.app-name span {
  color: var(--text-soft);
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 9999px;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}

.summary-cell {
  min-width: 0;
  padding: 12px 16px;
  background: var(--bg);
}

.summary-cell + .summary-cell { border-left: 1px solid var(--border); }

.summary-cell span {
  display: block;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
}

.summary-cell strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-align: right;
  white-space: nowrap;
}

.summary-cell small {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 13px;
  text-align: right;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

caption {
  text-align: left;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
}

thead th {
  background: var(--bg-subtle);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:first-child td { border-top: 0; }
tbody tr:hover { background: var(--bg-subtle); }

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: nowrap;
}

.negative { color: var(--danger); }
.muted { color: var(--text-muted); }
.strong { font-weight: 600; }

.promise { background: var(--bg); }

.promise-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}

.promise-visual {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-subtle);
  padding: 24px;
  display: flex;
  justify-content: center;
}

.promise-visual svg {
  width: min(360px, 100%);
  height: auto;
  display: block;
}

.promise-list {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.promise-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.check {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--success-subtle);
  color: var(--success);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}

.promise-item h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.promise-item p {
  margin: 4px 0 0;
  color: var(--text-muted);
}

.features {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.section-head .lede { margin-top: 0; max-width: 460px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  margin-bottom: 16px;
}

.card h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.card p {
  margin: 8px 0 0;
  color: var(--text-muted);
}

.mock-section { background: var(--bg); }

.mock-wrap {
  margin-top: 32px;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 32px;
  align-items: start;
}

.mock-notes {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.note-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.note-row strong {
  color: var(--text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-align: right;
}

.pricing {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 48px;
  align-items: center;
}

.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
}

.price-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.price {
  margin-top: 8px;
  font-size: 36px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.price-sub {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 13px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 12px;
}

.price-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  color: var(--text-muted);
}

.price-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 600;
}

.price-name {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

.price-card .button { width: 100%; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.trust-cell {
  min-width: 0;
  padding: 12px 16px;
}

.trust-cell + .trust-cell { border-left: 1px solid var(--border); }

.trust-cell strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.trust-cell span {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: var(--text-soft);
}

.fine {
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.faq { background: var(--bg); }

.faq-list {
  margin-top: 32px;
  border-top: 1px solid var(--border);
}

details {
  border-bottom: 1px solid var(--border);
}

summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 12px;
  margin: 0 -12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: background-color 150ms var(--ease);
}

summary:hover { background: var(--bg-subtle); }

summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex: none;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 9999px;
  color: var(--text-soft);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  transition: transform 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}

summary:hover .faq-icon {
  border-color: var(--border-input);
  color: var(--text);
}

details[open] .faq-icon {
  transform: rotate(45deg);
  border-color: var(--accent);
  color: var(--accent);
}

details p {
  margin: 0;
  padding: 0 12px 20px;
  max-width: 760px;
  color: var(--text-muted);
}

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(4, minmax(120px, 1fr));
  gap: 32px;
}

.footer-about {
  margin: 16px 0 0;
  max-width: 320px;
  color: var(--text-soft);
  font-size: 13px;
}

.footer-col h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: var(--text-soft);
  font-size: 13px;
  transition: color 150ms var(--ease);
}

.footer-col a:hover { color: var(--text); }

.copyright {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-soft);
  font-size: 13px;
}

/* Brand artwork (assets/brand/) */
.brand-hero {
  max-width: 1120px;
  margin: 8px auto 56px;
  padding: 0 24px;
}

.brand-promo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto 64px;
  padding: 0 24px;
}

.brand-promo figure { margin: 0; }

.brand-hero img,
.brand-promo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Secondary pages (privacy.html) */
.copyright:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.page {
  padding: 64px 0;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  margin: 40px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.prose p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .hero-grid,
  .mock-wrap,
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-visual { align-items: flex-start; }
  .hero-visual-caption { text-align: left; }
  .section-head { align-items: start; flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .headline { font-size: 40px; }
  .promise-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container { padding-left: 16px; padding-right: 16px; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
  .headline { font-size: 34px; }
  .section-title { font-size: 22px; }
  .nav-inner { min-height: 60px; gap: 12px; }
  .nav-actions .button { padding: 0 10px; font-size: 13px; }
  .hero-actions,
  .hero-actions .button { width: 100%; }
  .store-badge { justify-content: center; width: 100%; }
  .hero-stats,
  .summary-strip,
  .trust-strip { grid-template-columns: 1fr; }
  .summary-cell + .summary-cell { border-left: 0; border-top: 1px solid var(--border); }
  .trust-cell + .trust-cell { border-left: 0; border-top: 1px solid var(--border); }
  .window-body { padding: 16px; }
  .app-toolbar { align-items: start; flex-direction: column; }
  .price-card { padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .copyright { flex-direction: column; }
  summary { padding: 16px 8px; margin: 0 -8px; }
  details p { padding: 0 8px 20px; }
}

@media (max-width: 720px) {
  .brand-promo { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  /* The hero's primary CTA sits right below; keep the nav to the wordmark on small phones. */
  .nav-actions { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .button:hover { transform: none; opacity: 0.92; }
  details[open] .faq-icon { transform: none; }
}
