/* ============================================
   CSS Custom Properties
   ============================================ */
:root {
  /* Colors */
  --color-primary: #dc2626;
  --color-primary-dark: #b91c1c;
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-border: #e5e7eb;
  --color-white: #ffffff;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 2.5rem;
  --line-height: 1.6;

  /* Layout */
  --max-width: 1100px;
  --max-width-narrow: 720px;
  --radius: 8px;
}

/* ============================================
   Reset & Base
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

a:hover {
  text-decoration: underline;
}

ul {
  list-style-position: inside;
}

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

/* ============================================
   Button
   ============================================ */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: var(--color-primary-dark);
  text-decoration: none;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-alt);
  text-align: center;
}

.hero h1 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.hero__subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
}

/* Store Buttons */
.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  background: var(--color-text);
  color: var(--color-white);
  border-radius: var(--radius);
  transition: opacity 0.2s;
}

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

.store-btn__icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn__text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.store-btn__label {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.store-btn__store {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================
   Benefits
   ============================================ */
.benefits {
  padding: var(--space-2xl) 0;
}

.benefits h2,
.steps h2,
.faq h2 {
  text-align: center;
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-lg);
}

.benefits__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg) var(--space-md);
  text-align: center;
}

.card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.card h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.card p {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

/* ============================================
   Steps
   ============================================ */
.steps {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-alt);
}

.steps__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  text-align: center;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-xs);
}

.step p {
  color: var(--color-text-light);
  max-width: 300px;
  margin: 0 auto;
  font-size: var(--font-size-sm);
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: var(--space-2xl) 0;
}

.faq__list {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  display: block;
  width: 100%;
  padding: var(--space-md) 0;
  font-size: var(--font-size-base);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--font-size-xl);
  font-weight: 300;
  color: var(--color-text-light);
  transition: transform 0.2s;
}

.faq__item[open] .faq__question::after {
  content: "\2212";
}

.faq__answer {
  padding-bottom: var(--space-md);
  color: var(--color-text-light);
}

.faq__answer p {
  font-size: var(--font-size-sm);
  line-height: var(--line-height);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.footer__links a {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__copy {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

/* ============================================
   Document Pages (Privacy, Terms)
   ============================================ */
.page-document {
  background: var(--color-bg);
}

.document {
  padding: var(--space-xl) 0 var(--space-2xl);
}

.document h1 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  margin-bottom: var(--space-xs);
}

.document__date {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xl);
}

.document section {
  margin-bottom: var(--space-lg);
}

.document h2 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

.document h3 {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
}

.document p {
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

.document ul {
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
  list-style-position: outside;
}

.document li {
  margin-bottom: var(--space-xs);
}

.document a {
  color: var(--color-primary);
}

/* ============================================
   Responsive — Tablet (768px+)
   ============================================ */
@media (min-width: 768px) {
  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .benefits__grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================
   Responsive — Desktop (1024px+)
   ============================================ */
@media (min-width: 1024px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .benefits__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
