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

:root {
  color-scheme: dark;
  --bg: #505a51;
  --text: #ffffff;
  --muted: rgba(255,255,255,.56);
  --soft: rgba(255,255,255,.78);
  --border: rgba(255,255,255,.28);
  --surface: #ffffff;
  --brand: #505a51;
  --max: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.home {
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
}

.hero {
  min-height: 76svh;
  display: grid;
  place-items: center;
  padding: 72px 24px 32px;
  text-align: center;
}

.hero__content {
  width: min(100%, var(--max));
}

.brand {
  margin: 0;
  font-size: clamp(64px, 9vw, 112px);
  line-height: 0.94;
  letter-spacing: -0.072em;
  font-weight: 700;
  color: var(--text);
}

.tagline {
  margin: 28px 0 34px;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.35;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-button {
  min-width: 178px;
  height: 58px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 15px;
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}

.store-button:hover {
  border-color: rgba(255,255,255,.7);
  transform: translateY(-1px);
}

.store-button svg {
  width: 28px;
  height: 28px;
  fill: var(--brand);
  flex: none;
}

.store-button span {
  color: var(--brand);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.store-button small {
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
}

.store-button strong {
  margin-top: 3px;
  font-size: 18px;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.footer {
  padding: 26px 24px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.footer nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.footer a {
  text-decoration: none;
  transition: color .18s ease;
}

.footer a:hover {
  color: #fff;
}

.footer p {
  margin: 14px 0 0;
}

.page {
  width: min(100% - 40px, 760px);
  margin: 0 auto;
  padding: 54px 0 80px;
}

.page__back {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.page__back:hover {
  color: var(--text);
}

.page h1 {
  margin: 44px 0 18px;
  font-size: clamp(38px, 7vw, 62px);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 700;
}

.page h2 {
  margin: 34px 0 12px;
  font-size: 22px;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.page p,
.page li {
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.7;
}

.page ul {
  padding-left: 20px;
}

.page .meta {
  color: var(--muted);
  font-size: 14px;
}

.page .card {
  margin-top: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 22px;
}

.page .email {
  color: #fff;
  text-underline-offset: 4px;
}

@media (max-width: 520px) {
  .hero {
    min-height: 72svh;
    padding-top: 52px;
  }

  .brand {
    font-size: clamp(58px, 20vw, 82px);
  }

  .tagline {
    margin-top: 22px;
  }

  .store-links {
    flex-direction: column;
    align-items: stretch;
  }

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

  .footer nav {
    gap: 14px;
  }
}


.contact-list {
  margin-top: 34px;
  display: grid;
  gap: 14px;
}

.contact-item {
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 16px;
  padding: 22px 24px;
  background: rgba(255,255,255,.06);
}

.contact-label {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  margin-bottom: 7px;
}

.contact-item .email {
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 400;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.contact-item .email:hover {
  color: #ffffff;
}

.contact-operator {
  margin-top: 24px;
}

@media (max-width: 520px) {
  .contact-item {
    padding: 18px;
  }

  .contact-label,
  .contact-item .email {
    font-size: 15px;
  }
}


.content-page {
  max-width: 820px;
}

.content-page .lead {
  color: rgba(255,255,255,.84);
  font-size: 20px;
  line-height: 1.65;
  margin-bottom: 34px;
}

.content-meta,
.content-kicker {
  color: rgba(255,255,255,.55);
  font-size: 13px;
  letter-spacing: .02em;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 34px;
}

.content-card {
  display: block;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.content-card:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.085);
  border-color: rgba(255,255,255,.35);
}

.content-card h2 {
  color: #fff;
  margin: 8px 0 8px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: rgba(255,255,255,.70);
}

.section-link {
  margin-top: 30px;
}

.section-link a,
.related-links a,
.cta-card a {
  color: #fff;
  text-underline-offset: 4px;
}

.cta-card {
  margin-top: 42px;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
}

.cta-card h2 {
  margin-top: 0;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}

.quote-card {
  margin: 32px 0;
  padding: 26px;
  border-left: 3px solid rgba(255,255,255,.75);
  background: rgba(255,255,255,.055);
  font-size: 24px;
  line-height: 1.4;
  font-weight: 600;
  color: #fff;
}

@media (min-width: 720px) {
  .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.blog-featured {
  margin-top: 34px;
}

.blog-featured-link {
  display: block;
  max-width: 620px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.blog-featured-link:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,.085);
  border-color: rgba(255,255,255,.35);
}

.blog-featured-link h2 {
  color: #fff;
  font-size: 28px;
  margin: 8px 0 8px;
}

.blog-featured-link p {
  color: rgba(255,255,255,.72);
  margin: 0 0 18px;
}

.read-more {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.blog-list {
  margin-top: 28px;
  max-width: 720px;
}

.blog-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.15);
  color: inherit;
  text-decoration: none;
}

.blog-row-date {
  color: rgba(255,255,255,.50);
  font-size: 13px;
}

.blog-row h3 {
  color: #fff;
  margin: 0 0 6px;
  font-size: 20px;
}

.blog-row p {
  margin: 0;
  color: rgba(255,255,255,.68);
}

@media (max-width: 620px) {
  .blog-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .blog-featured-link {
    padding: 22px;
  }
}


/* Compact Guides index */
.guides-page {
  max-width: 980px;
}

.guides-page h1 {
  margin-bottom: 16px;
}

.guides-page .lead {
  max-width: 760px;
  margin-bottom: 26px;
}

.guides-page .content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.guides-page .content-card {
  padding: 20px;
  min-height: 176px;
}

.guides-page .content-card h2 {
  font-size: 21px;
  line-height: 1.15;
  margin: 7px 0 8px;
}

.guides-page .content-card p {
  font-size: 15px;
  line-height: 1.55;
}

.guides-page .section-link {
  margin-top: 22px;
}

@media (max-width: 900px) {
  .guides-page .content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .guides-page .content-grid {
    grid-template-columns: 1fr;
  }

  .guides-page .content-card {
    min-height: auto;
  }
}


/* Article and guide header spacing */
.content-page > .page__back {
  display: inline-block;
  margin-bottom: 34px;
}

.content-page > .content-meta {
  margin: 0 0 28px;
}

.content-page > .content-meta + h1 {
  margin-top: 0;
}

.content-page > .page__back + h1 {
  margin-top: 0;
}

.article-date {
  color: rgba(255,255,255,.55);
}

@media (max-width: 620px) {
  .content-page > .page__back {
    margin-bottom: 28px;
  }

  .content-page > .content-meta {
    margin-bottom: 22px;
  }
}
