:root {
  --bg: #f8f7f4;
  --surface: #ffffff;
  --text: #181816;
  --muted: #66635c;
  --border: rgba(24, 24, 22, 0.09);
  --accent: #c83c23;
  --accent-soft: rgba(200, 60, 35, 0.08);
  --focus-ring: #c83c23;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141412;
    --surface: #1d1d19;
    --text: #eeece8;
    --muted: #9e9a91;
    --border: rgba(238, 236, 232, 0.1);
    --accent: #d94b32;
    --accent-soft: rgba(217, 75, 50, 0.16);
    --focus-ring: #e05e46;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 64px;
}

/* Nav / Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 40px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

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

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
  object-fit: cover;
}

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-latin {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

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

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

/* Keep the header legible on narrow screens: let the nav drop to its own line
   instead of squeezing link labels into vertical stacks. */
@media (max-width: 560px) {
  .site-header {
    flex-wrap: wrap;
    gap: 14px 20px;
    padding-bottom: 32px;
  }

  .nav-links {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .nav-links a {
    white-space: nowrap;
  }
}

/* Hero Section */
.hero {
  margin-bottom: 52px;
}

.ribbon-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
}

.ribbon-tag::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 12px;
  background: var(--accent);
  border-radius: 1px;
}

h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", system-ui, sans-serif;
  font-size: clamp(2rem, 5.5vw, 2.75rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}

.lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 54ch;
}

/* CTA & App Store Badge */
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 48px;
}

.badge-link {
  display: inline-block;
  line-height: 0;
  border-radius: 9px;
  transition: transform 0.15s ease;
}

.badge-link:hover {
  transform: translateY(-1px);
}

.badge-img {
  height: 44px;
  width: auto;
  display: block;
}

.cta-meta {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Highlights Grid */
.highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 56px;
}

@media (min-width: 580px) {
  .highlights {
    grid-template-columns: repeat(3, 1fr);
  }
}

.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 18px;
}

.highlight-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.highlight-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Content Pages (Support / Privacy) */
.page-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.page-title {
  font-size: clamp(1.8rem, 4.5vw, 2.3rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}

.page-sub {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 36px;
}

.contact-card h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

.contact-card p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 15px;
}

.faq-section h2, .policy-section h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 18px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-q {
  font-size: 16px;
  font-weight: 650;
  margin: 0 0 8px;
}

.faq-a {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.policy-meta {
  font-size: 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 28px;
}

.policy-block {
  margin-bottom: 28px;
}

.policy-block h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.policy-block p, .policy-block li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.policy-block ul {
  padding-left: 20px;
  margin: 8px 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

@media (min-width: 480px) {
  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-nav {
  display: flex;
  gap: 16px;
}

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

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
