:root {
  --bg: #FAF9F5;
  --bg-secondary: #F0EFE7;
  --bg-tertiary: #E5E3D8;
  --surface: #FFFFFF;
  --surface-muted: #F5F4ED;
  --text-primary: #1F1E1B;
  --text-secondary: #5A5852;
  --text-tertiary: #8C8A82;
  --accent: #C15F3C;
  --accent-strong: #A5532F;
  --accent-muted: #F2E4DA;
  --divider: #DCDAD0;
  --divider-strong: #C5C2B6;
  --shadow-sm: 0 2px 8px rgba(31, 30, 27, 0.06);
  --shadow-md: 0 4px 16px rgba(31, 30, 27, 0.08);
  --shadow-lg: 0 8px 28px rgba(31, 30, 27, 0.10);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --font-stack: -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1A1816;
    --bg-secondary: #1F1E1B;
    --bg-tertiary: #2E2D2A;
    --surface: #30302E;
    --surface-muted: #2A2826;
    --text-primary: #F0EEE6;
    --text-secondary: #B8B5A9;
    --text-tertiary: #807D72;
    --accent: #D97757;
    --accent-strong: #C66440;
    --accent-muted: #3D2A21;
    --divider: #3D3B36;
    --divider-strong: #4D4A44;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 28px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-stack);
  color: var(--text-primary);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv01", "cv11";
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 120ms ease;
}
a:hover { border-bottom-color: var(--accent); }

p { margin: 0 0 1rem 0; }

h1, h2, h3, h4 {
  letter-spacing: -0.012em;
  color: var(--text-primary);
  margin: 0 0 .6em 0;
  line-height: 1.2;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.25rem); font-weight: 600; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; font-weight: 600; margin-top: 2.2rem; }
h3 { font-size: 1.2rem; font-weight: 600; margin-top: 1.6rem; }

ul, ol { padding-left: 1.4rem; margin: 0 0 1rem 0; }
li { margin-bottom: .35rem; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  background: var(--surface-muted);
  padding: .12em .35em;
  border-radius: 4px;
  font-size: .92em;
}

/* ----- Layout ----- */

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ----- Nav ----- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--divider);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem;
  color: var(--text-primary);
}
.nav-brand a { color: inherit; border-bottom: none; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--text-secondary);
  font-size: .92rem;
  border-bottom: none;
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: .92rem;
  font-weight: 500;
}
.nav-cta:hover { background: var(--accent-strong); border-bottom: none !important; }

/* ----- Brand mark ----- */
/* Mirrors the macOS app icon: coral squircle + sunburst with "AI" letters. */

.brand-mark {
  width: 30px; height: 30px;
  background-image: url('/brand-mark.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-block;
  box-shadow: var(--shadow-sm);
  border-radius: 7px;       /* tightens the bounding box around the squircle */
}
.brand-mark.lg { width: 56px; height: 56px; border-radius: 13px; }

/* ----- Hero ----- */

.hero {
  padding: 96px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 30%, color-mix(in srgb, var(--accent-strong) 10%, transparent), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 100px;
  font-size: .82rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}
.hero h1 { max-width: 820px; margin: 0 auto .8rem; }
.hero .sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 32px;
  line-height: 1.55;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff !important;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 120ms ease, background 120ms ease;
  border-bottom: none !important;
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-1px); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text-primary) !important;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--divider);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid var(--divider) !important;
}
.btn-secondary:hover { border-color: var(--divider-strong) !important; }

.hero-meta {
  margin-top: 14px;
  font-size: .85rem;
  color: var(--text-tertiary);
}

/* ----- Feature grid ----- */

.features {
  padding: 60px 0 100px;
}
.features-title {
  text-align: center;
  margin-bottom: 48px;
}
.features-title h2 { font-size: 2rem; margin-top: 0; }
.features-title p { color: var(--text-secondary); max-width: 560px; margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.feature {
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.feature:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}
.feature-icon {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: 10px;
  margin-bottom: 14px;
  font-size: 18px;
}
.feature h3 { font-size: 1.05rem; margin: 0 0 6px; }
.feature p { color: var(--text-secondary); font-size: .92rem; margin: 0; }

/* ----- Page header (legal/support) ----- */

.page-header {
  padding: 64px 0 24px;
  text-align: center;
}
.page-header h1 { font-size: 2.4rem; }
.page-header .lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}

.page-content {
  padding-bottom: 100px;
}
.last-updated {
  display: inline-block;
  font-size: .85rem;
  color: var(--text-tertiary);
  background: var(--surface-muted);
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 32px;
}

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

footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--divider);
  padding: 48px 0 32px;
  margin-top: 60px;
}
footer .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: flex-start;
}
footer .brand-col p {
  color: var(--text-tertiary);
  font-size: .85rem;
  max-width: 380px;
  margin-top: 12px;
}
footer .links-col {
  display: flex;
  gap: 60px;
  justify-content: flex-end;
}
footer .links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer .links-col li { margin-bottom: 8px; }
footer .links-col h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-tertiary);
  margin: 0 0 12px 0;
}
footer .links-col a {
  color: var(--text-secondary);
  font-size: .92rem;
  border-bottom: none;
}
footer .links-col a:hover { color: var(--text-primary); }
.legal-line {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
  color: var(--text-tertiary);
  font-size: .78rem;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 56px; }
  .hero-cta { flex-direction: column; gap: 8px; }
  footer .container { grid-template-columns: 1fr; }
  footer .links-col { justify-content: flex-start; gap: 40px; }
}

/* ----- Support FAQ ----- */

.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: border-color 120ms ease;
}
.faq details[open] { border-color: var(--divider-strong); }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-tertiary);
  transition: transform 160ms ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin-top: 12px;
  color: var(--text-secondary);
}
.faq details ul { color: var(--text-secondary); }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 32px 0;
}
.contact-card .icon {
  width: 44px; height: 44px;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.contact-card h3 { margin: 0 0 4px; font-size: 1rem; }
.contact-card p { margin: 0; color: var(--text-secondary); font-size: .92rem; }
.contact-card a { font-weight: 500; }

/* ----- Misc ----- */

.disclaimer-box {
  background: var(--surface-muted);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: .92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
