@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --text: #101423;
  --text-muted: #4f5b77;
  --line: #d8e0f2;
  --brand: #0f5bff;
  --cta-width: 184px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0a1020;
    --surface: #121b30;
    --text: #eef3ff;
    --text-muted: #a8b6d8;
    --line: #2f4067;
    --brand: #84bdff;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.site-wrap {
  width: min(880px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo-wrap {
  background: #fff;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.4rem;
}

.brand-logo {
  display: block;
  height: 31px;
  width: auto;
}

.brand-title {
  font-family: "Space Grotesk", "Futura", sans-serif;
  font-weight: 700;
}

.header-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  white-space: nowrap;
}

.header-link,
.link-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  border-radius: 0.38rem;
  padding: 0.5rem 0.82rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 160ms ease;
}

.header-link:hover,
.link-button:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
}

.hero {
  padding: 3.5rem 0 2.2rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: "Space Grotesk", "Futura", sans-serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.02;
}

.text-highlight {
  display: inline;
  padding: 0 0.18em;
  border-radius: 0.2em;
  box-decoration-break: clone;
  background: #ffe66a;
  color: #121212;
}

.hero p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
}

.apps-overview {
  padding-bottom: 3.6rem;
}

.app-row {
  display: grid;
  grid-template-columns: 124px 1fr auto;
  gap: 1.3rem;
  align-items: center;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
}

.app-row:first-child {
  border-top: 1px solid var(--line);
}

.app-row:last-child {
  border-bottom: 0;
}

.app-icon {
  width: 124px;
  height: 124px;
  border: 0;
  box-shadow: none;
  object-fit: cover;
}

.app-main h2 {
  margin: 0;
  font-family: "Space Grotesk", "Futura", sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
}

.app-row-link {
  color: inherit;
  text-decoration: none;
}

.platforms {
  margin: 0.48rem 0 0.72rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.app-main p {
  margin: 0;
  color: var(--text-muted);
}

.row-actions {
  display: grid;
  gap: 0.62rem;
  justify-items: end;
}

.row-actions .link-button {
  width: var(--cta-width);
}

.app-store-badge {
  display: inline-block;
}

.app-store-badge-img {
  width: var(--cta-width);
  display: block;
}

.app-hero {
  padding: 2.6rem 0 1.9rem;
}

.app-hero-card {
  display: grid;
  grid-template-columns: 164px 1fr;
  gap: 1.2rem;
  align-items: start;
  padding: 1.3rem 0;
  border-bottom: 1px solid var(--line);
}

.app-hero-card h1 {
  margin: 0 0 0.5rem;
  font-family: "Space Grotesk", "Futura", sans-serif;
  font-size: clamp(2.35rem, 6vw, 4.1rem);
  line-height: 1.02;
}

.hero-cta-wrap {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.62rem;
  align-items: center;
  flex-wrap: wrap;
}

.hero-cta-wrap .link-button {
  width: var(--cta-width);
  min-height: 61px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

.app-meta-links {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.app-meta-links a {
  color: var(--brand);
  text-decoration: none;
}

.app-meta-links a:hover {
  text-decoration: underline;
}

.feature-list,
.quotes {
  padding-bottom: 2.8rem;
}

.quotes h2 {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", "Futura", sans-serif;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 38%);
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-row:nth-child(even) {
  grid-template-columns: minmax(220px, 300px) 1fr;
}

.feature-row:nth-child(even) .feature-shot {
  order: -1;
  justify-self: start;
}

.feature-row h3 {
  margin: 0 0 0.48rem;
  font-family: "Space Grotesk", "Futura", sans-serif;
  font-size: clamp(1.34rem, 2.2vw, 1.74rem);
  line-height: 1.1;
}

.feature-row p {
  margin: 0;
  color: var(--text-muted);
}

.feature-shot {
  width: 100%;
  max-width: 420px;
  height: auto;
  justify-self: end;
  border-radius: 0.8rem;
  border: 1px solid var(--line);
}

.feature-row.feature-row--wide {
  grid-template-columns: 1fr;
}

.feature-row.feature-row--wide .feature-shot {
  order: 0;
  justify-self: start;
  max-width: min(100%, 680px);
}

.quote-card {
  padding: 0.98rem 0;
  border-bottom: 1px solid var(--line);
}

.quote-card:first-child {
  border-top: 1px solid var(--line);
}

.quote-card:last-child {
  border-bottom: 1px solid var(--line);
}

.quote-card blockquote {
  margin: 0;
  font-size: 1.02rem;
}

.quote-card cite {
  margin-top: 0.48rem;
  display: block;
  font-style: normal;
  color: var(--text-muted);
}

.quote-card a {
  color: var(--brand);
  text-decoration: none;
}

.quote-card a:hover {
  text-decoration: underline;
}

.press-kit {
  padding: 0 0 2rem;
}

.press-kit-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.press-kit-link:hover {
  color: var(--brand);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  padding: 1.75rem 0 2.35rem;
}

.doc-main {
  padding: 2.2rem 0 3rem;
}

.doc-title {
  margin: 0 0 1rem;
  font-family: "Space Grotesk", "Futura", sans-serif;
  font-size: clamp(2rem, 4.6vw, 3rem);
  line-height: 1.05;
}

.doc-section {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.doc-prose h2,
.doc-prose h3,
.doc-prose h4 {
  font-family: "Space Grotesk", "Futura", sans-serif;
  margin: 0 0 0.65rem;
}

.doc-prose h2 {
  font-size: clamp(1.4rem, 2.3vw, 1.8rem);
}

.doc-prose h3 {
  font-size: 1.2rem;
}

.doc-prose h4 {
  font-size: 1.05rem;
}

.doc-prose p,
.doc-prose li {
  color: var(--text-muted);
  line-height: 1.6;
}

.doc-prose p {
  margin: 0 0 0.9rem;
}

.doc-prose ul,
.doc-prose ol {
  margin: 0 0 1rem 1.2rem;
  padding: 0;
}

.doc-prose a {
  color: var(--brand);
  text-decoration: none;
}

.doc-prose a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .app-row {
    grid-template-columns: 92px 1fr;
  }

  .app-icon {
    width: 86px;
    height: 86px;
    border-radius: 0.74rem;
  }

  .row-actions {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .app-hero-card {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .feature-row:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .feature-row:nth-child(even) .feature-shot {
    order: 0;
  }

  .feature-shot {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .site-wrap {
    width: min(880px, calc(100% - 1rem));
  }

  .site-header-inner {
    min-height: 62px;
    gap: 0.45rem;
  }

  .brand-title {
    font-size: 0.96rem;
  }

  .header-nav {
    gap: 0.35rem;
  }

  .header-link {
    padding: 0.42rem 0.58rem;
    font-size: 0.78rem;
  }
}
