:root {
  --bg: #F5F0E8;          /* AppColors.bgLight */
  --surface: #FBF8F2;     /* AppColors.surfaceLight */
  --surface-2: #EFE8DB;   /* AppColors.surface2Light */
  --line: #E3DAC8;        /* AppColors.lineLight */
  --ink: #1C1917;         /* AppColors.inkLight */
  --ink-2: #3E3A34;       /* AppColors.ink2Light */
  --ink-3: #6B6459;       /* AppColors.ink3Light */
  --primary: #3D6B52;     /* AppColors.primaryLight */
  --primary-dark: #2D5441;/* AppColors.primaryDark */
  --primary-soft: #E8F2EC;/* AppColors.primarySoftBg */
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 0; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
}
.site-header nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.site-header nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
}
.site-header nav a:hover,
.site-header nav a:focus {
  color: var(--primary-dark);
  text-decoration: underline;
}

.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--ink-2);
  margin: 0 0 2rem;
}
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus { background: var(--primary-dark); }
.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary-dark);
}

.features {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.features h2, .download h2 {
  font-size: 2rem;
  text-align: center;
  margin: 0 0 2rem;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
}
.feature-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.feature-card p { margin: 0; color: var(--ink-2); }

.how {
  max-width: 1100px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.how h2, .trust h2, .faq h2 {
  font-size: 2rem;
  text-align: center;
  margin: 0 0 2rem;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  counter-increment: step;
}
.step-card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.step-card h3::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.95rem;
}
.step-card p { margin: 0; color: var(--ink-2); }

.trust {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  text-align: center;
}
.trust-item h3 { margin: 0 0 0.35rem; font-size: 1.05rem; color: var(--primary-dark); }
.trust-item p { margin: 0; color: var(--ink-2); }

.faq {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1.5rem 3rem;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 0.75rem;
  padding: 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 1.25rem;
}
.faq-item summary:hover { color: var(--primary-dark); }
.faq-item p { margin: 0; padding: 0 1.25rem 1rem; color: var(--ink-2); }

.not-found hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.download {
  background: var(--primary-soft);
  padding: 4rem 1.5rem;
  text-align: center;
}
.download > p {
  color: var(--ink-2);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.store-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.9rem 1.8rem;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  min-width: 180px;
}
.store-btn:hover, .store-btn:focus { background: var(--ink-2); }
.store-btn small { font-weight: 400; opacity: 0.85; }
.store-btn-disabled {
  background: var(--surface-2);
  color: var(--ink-2);
  cursor: not-allowed;
}
.store-btn-disabled:hover { background: var(--surface-2); }

.legal-stub {
  max-width: 700px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.9rem;
}
.site-footer a { color: var(--ink-2); }

.legal-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.legal-page h2 {
  font-size: 1.35rem;
  margin: 2rem 0 0.5rem;
}
.legal-page li { margin-bottom: 0.35rem; }
.legal-updated {
  color: var(--ink-3);
  font-size: 0.9rem;
}
