:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --accent: #0e1a2b;
  --accent-soft: #0e1a2b0d;
  --border: #0e1a2b22;
  --radius: 12px;
  --max-width: 760px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

code,
pre,
kbd {
  font-family: var(--mono);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--border);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--fg);
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  margin-top: 5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Headings */
h1,
h2,
h3,
h4 {
  font-family: var(--mono);
  color: var(--accent);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 1.85rem;
  margin: 2.5rem 0 1rem;
}

h2 {
  font-size: 1.35rem;
  margin: 3rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

h3 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.5rem;
}

/* Hero */
.hero {
  text-align: center;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.hero-icon {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.25rem;
  border-radius: 24px;
  box-shadow: 0 10px 30px -12px var(--accent);
}

.hero-title {
  font-size: 2.1rem;
  margin: 0 0 0.5rem;
  border: 0;
  padding: 0;
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--muted);
  margin: 0 auto 1.25rem;
  max-width: 36ch;
}

.hero-lede {
  max-width: 52ch;
  margin: 0 auto 1.75rem;
}

.hero-cta {
  display: inline-flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

.appStoreLink img {
  height: 40px;
  width: auto;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  border: 1px solid var(--accent);
  font-family: var(--mono);
  transition: background 120ms ease, color 120ms ease;
}

.btn:hover {
  background: var(--bg);
  color: var(--accent);
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg);
  color: var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--bg);
}

/* Features */
.features {
  margin-top: 1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.25rem;
}

.feature-list li {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.feature-list h3 {
  margin: 0 0 0.35rem;
}

.feature-list p {
  margin: 0;
}

/* Download */
.download {
  margin-top: 2.5rem;
}

.download-card {
  text-align: center;
  padding: 2.5rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -16px var(--accent);
}

.download-title {
  margin: 0 0 0.5rem;
  border: 0;
  padding: 0;
}

.download-lede {
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto 1.5rem;
}

.appStoreLink-lg img {
  height: 56px;
  width: auto;
  margin: 0 auto;
}

/* Gallery */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.screenshot-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.screenshot {
  margin: 0;
}

.screenshot img {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.screenshot-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  color: inherit;
  font: inherit;
}

.screenshot-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.lightbox {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  max-width: 95vw;
  max-height: 95vh;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.lightbox-inner {
  position: relative;
  padding: 1rem;
}

.lightbox-inner img {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: calc(var(--radius) - 2px);
}

.lightbox-close {
  position: absolute;
  top: 0.35rem;
  right: 0.5rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--fg);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: var(--accent-soft);
  outline: none;
}

.muted {
  color: var(--muted);
}

/* FAQ */
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin: 0.6rem 0;
  background: var(--surface);
}

.faq details[open] {
  border-color: var(--accent);
}

.faq summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 500;
  list-style: none;
}

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

.faq summary::before {
  content: "›";
  display: inline-block;
  margin-right: 0.5rem;
  transition: transform 120ms ease;
}

.faq details[open] summary::before {
  transform: rotate(90deg);
}

.faq details p {
  margin: 0.6rem 0 0;
}

.support-line {
  margin-top: 1.5rem;
  color: var(--muted);
}

/* Prose pages */
.prose {
  padding: 1rem 0 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
}

.prose li {
  margin: 0.35rem 0;
}

.prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.25rem 0;
  padding: 0.25rem 1rem;
  color: var(--muted);
  background: var(--accent-soft);
}

/* Press Kit */
.press-kit-header {
  text-align: center;
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.press-kit-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 0.75rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px -14px var(--accent);
}

.press-kit-header h1 {
  margin: 0 0 0.5rem;
  border: 0;
  padding: 0;
}

.press-kit-header p {
  margin: 0.25rem auto;
  max-width: 52ch;
}

.fact-sheet {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.fact-sheet dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1rem;
  margin: 0;
}

.fact-sheet dt {
  color: var(--muted);
}

.fact-sheet dd {
  margin: 0;
  word-break: break-word;
}

.screenshot-download {
  display: block;
  text-align: center;
  margin-top: 0.4rem;
  font-size: 13px;
  color: var(--muted);
}

.asset-downloads {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.asset-downloads li {
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

@media (max-width: 480px) {
  .fact-sheet dl {
    grid-template-columns: 1fr;
    gap: 0.1rem 0;
  }
  .fact-sheet dd {
    margin-bottom: 0.5rem;
  }
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .site-nav {
    gap: 0.75rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
}
