:root {
  --bg: #ffffff;
  --ink: #0b0b0c;
  --muted: #68686f;
  --soft: #f4f4f2;
  --panel: #fafafa;
  --border: #d8d8dc;
  --green: #16875d;
  --blue: #2563eb;
  --yellow: #b7791f;
  --red: #be2a2a;
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(216, 216, 220, 0.78);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  font-size: 17px;
  font-weight: 900;
}

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

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

.site-nav a {
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--soft);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: min(680px, calc(100svh - 130px));
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #fbfbfa;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: rgba(255, 255, 255, 0.86);
}

.hero-mascot {
  position: absolute;
  right: 5vw;
  bottom: -42px;
  z-index: -1;
  width: min(46vw, 520px);
  min-width: 310px;
  opacity: 0.9;
}

.hero-copy {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 82px 28px 92px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.hero h1,
.blog-hero h1,
.article-view h1 {
  max-width: 780px;
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
}

.hero-lede,
.blog-hero p,
.article-excerpt {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.45;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  min-width: 184px;
  min-height: 58px;
  gap: 12px;
  padding: 10px 16px;
  border: 1px solid #111;
  border-radius: 8px;
  color: #fff;
  background: #0b0b0c;
  font-size: 18px;
  font-weight: 900;
}

.store-badge small {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.1;
}

.store-badge[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.72;
}

.store-icon {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.apple-icon::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 14px;
  height: 15px;
  border-radius: 7px 7px 8px 8px;
  background: #fff;
}

.apple-icon::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 1px;
  width: 6px;
  height: 8px;
  border-radius: 8px 0 8px 0;
  background: #fff;
  transform: rotate(38deg);
}

.play-icon::before {
  content: "";
  position: absolute;
  inset: 2px 3px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: #fff;
}

.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 76px 28px;
}

.intro-band {
  width: 100%;
  max-width: none;
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: var(--ink);
  color: #fff;
}

.section-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 42px 28px;
}

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

.three-up article {
  min-height: 190px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.step {
  color: #b8d7c9;
  font-size: 13px;
  font-weight: 950;
}

.three-up h2 {
  margin: 14px 0 10px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 950;
}

.three-up p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 650;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 950;
}

.section-heading a {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

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

.article-grid-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(11, 11, 12, 0.06);
}

.article-card:hover {
  border-color: #aaaab0;
  transform: translateY(-1px);
}

.article-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.18;
  font-weight: 950;
}

.article-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #7b7b82;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.article-meta span:last-child {
  color: var(--blue);
}

.state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  background: var(--panel);
  font-weight: 750;
}

.blog-hero {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 72px 28px 42px;
}

.blog-hero h1 {
  font-size: 58px;
}

.article-view {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 58px 28px 88px;
}

.back-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  margin-bottom: 28px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.article-view h1 {
  font-size: 52px;
  line-height: 1.05;
}

.article-body {
  margin-top: 42px;
  color: #171719;
  font-size: 19px;
  line-height: 1.72;
}

.article-body h2,
.article-body h3 {
  margin: 42px 0 12px;
  line-height: 1.15;
  font-weight: 950;
}

.article-body h2 {
  font-size: 32px;
}

.article-body h3 {
  font-size: 24px;
}

.article-body p,
.article-body ul,
.article-body ol {
  margin: 0 0 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
}

.article-body li {
  margin: 8px 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .hero::before {
    background: rgba(255, 255, 255, 0.9);
  }

  .hero-mascot {
    right: -70px;
    bottom: -20px;
    width: 340px;
    min-width: 0;
    opacity: 0.35;
  }

  .hero-copy {
    padding: 60px 22px 72px;
  }

  .hero h1 {
    font-size: 48px;
    line-height: 1.04;
  }

  .blog-hero h1,
  .article-view h1 {
    font-size: 42px;
  }

  .hero-lede,
  .blog-hero p,
  .article-excerpt {
    font-size: 18px;
  }

  .three-up,
  .article-grid,
  .article-grid-wide {
    grid-template-columns: 1fr;
  }

  .section,
  .section-inner,
  .blog-hero,
  .article-view {
    padding-left: 22px;
    padding-right: 22px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px 16px;
  }

  .brand {
    font-size: 15px;
  }

  .site-nav a {
    padding: 8px 9px;
  }

  .hero-copy {
    padding-top: 46px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .store-badge {
    width: 100%;
    justify-content: center;
  }

  .section-heading h2 {
    font-size: 28px;
  }

  .article-view h1 {
    font-size: 36px;
  }

  .article-body {
    font-size: 17px;
  }

  .site-footer {
    align-items: start;
    flex-direction: column;
  }
}
