:root {
  --bg: #eaf8ff;
  --bg-soft: #f7fcff;
  --card: rgba(255, 255, 255, 0.76);
  --card-strong: rgba(255, 255, 255, 0.9);
  --text: #17254d;
  --muted: #55708f;
  --accent: #17254d;
  --accent-2: #f0525a;
  --line: rgba(23, 37, 77, 0.12);
  --shadow: 0 18px 40px rgba(23, 37, 77, 0.13);
  --max: 1080px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  line-height: 1.68;
  background:
    radial-gradient(circle at top, rgba(240, 82, 90, 0.14), transparent 34%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(247, 252, 255, 0.86);
  border-bottom: 1px solid rgba(23, 37, 77, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(23, 37, 77, 0.18);
}

.nav-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 700;
}

.hero {
  padding: 52px 0 26px;
}

.hero-card,
.content-card,
.article-card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-card {
  border-radius: 28px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 28px;
  align-items: center;
}

.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 40 / 21;
  object-fit: contain;
  border-radius: 22px;
  display: block;
  box-shadow: 0 18px 34px rgba(23, 37, 77, 0.14);
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(23, 37, 77, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  color: var(--accent);
  line-height: 1.1;
  margin-top: 0;
}

h1 {
  font-size: clamp(32px, 5vw, 54px);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(25px, 3.2vw, 36px);
  margin-bottom: 14px;
}

h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

p {
  color: #3f5f83;
  margin: 0 0 14px;
}

.lead {
  font-size: 19px;
  max-width: 760px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

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

.article-card {
  border-radius: 22px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 40 / 21;
  object-fit: contain;
  border-radius: 16px;
}

.article-card h2 {
  font-size: 24px;
  line-height: 1.18;
  margin-bottom: 4px;
}

.tag {
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section {
  padding: 26px 0;
}

.content-card {
  border-radius: 28px;
  padding: 34px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}

.article-body {
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
}

.article-body ul,
.article-body ol {
  color: #3f5f83;
  padding-left: 22px;
}

.article-body li {
  margin-bottom: 9px;
}

.article-body h2 {
  margin-top: 42px;
  scroll-margin-top: 96px;
}

.article-body h3 {
  margin-top: 26px;
  font-size: 21px;
}

.article-intro {
  font-size: 19px;
  color: #294c76;
}

.article-body a {
  font-weight: 800;
}

.toc,
.related {
  position: sticky;
  top: 82px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
}

.toc a,
.related a {
  display: block;
  margin-top: 10px;
  font-weight: 800;
}

.callout {
  border-left: 4px solid var(--accent-2);
  padding: 4px 0 4px 20px;
  margin: 30px 0;
}

.callout h3 {
  margin-top: 0;
}

.phrase-list {
  list-style: none;
  padding-left: 0 !important;
}

.phrase-list li {
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.phrase-list li::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--accent-2);
  font-size: 25px;
  font-weight: 900;
}

.steps {
  padding-left: 24px !important;
}

.steps li {
  padding-left: 4px;
  margin-bottom: 14px;
}

.source-list {
  font-size: 15px;
}

.source-list a {
  text-decoration: underline;
  text-decoration-color: rgba(23, 37, 77, 0.28);
  text-underline-offset: 3px;
}

.install-cta {
  margin: 42px -34px -34px;
  padding: 30px 34px 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(23, 37, 77, 0.05), rgba(240, 82, 90, 0.09));
}

.install-cta h2 {
  margin: 0 0 12px;
  font-size: 30px;
}

.cta-kicker {
  margin-bottom: 8px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--accent-2);
  color: #fff;
  font-weight: 900;
}

.store-btn:hover {
  text-decoration: none;
}

.secondary-store {
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--accent-2);
  color: #fff;
  font-weight: 900;
}

.btn:hover {
  text-decoration: none;
}

footer {
  padding: 30px 0 44px;
  color: var(--muted);
}

.footer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 37, 77, 0.1);
}

@media (max-width: 900px) {
  .hero-card,
  .article-layout,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .toc,
  .related {
    position: static;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(100% - 20px, var(--max));
  }

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

  .hero {
    padding-top: 24px;
  }

  .hero-card,
  .content-card,
  .article-body {
    padding: 20px;
    border-radius: 22px;
  }

  .lead {
    font-size: 17px;
  }

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

  .install-cta {
    margin: 36px -20px -20px;
    padding: 26px 20px 28px;
  }

  .store-buttons,
  .store-btn {
    width: 100%;
  }
}
