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

:root {
  --primary: #4A80C4;
  --primary-light: #5E94D4;
  --primary-pale: #D6E5F5;
  --cream: #FFF8F0;
  --warm: #F5E6D0;
  --accent: #E8793A;
  --text: #2E3A4D;
  --text-light: #5A6B80;
  --white: #FFFFFF;
  --shadow: 0 2px 12px rgba(74, 128, 196, 0.12);
  --shadow-lg: 0 8px 32px rgba(74, 128, 196, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Nav */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(74, 128, 196, 0.08);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.lang-toggle {
  display: inline-block;
  background: var(--primary-pale);
  border: 1px solid rgba(74, 128, 196, 0.15);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s;
}

.lang-toggle:hover {
  background: var(--warm);
}

/* Hero */

.hero {
  padding: 8rem 1.5rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--cream) 0%, var(--primary-pale) 100%);
}

.hero-inner {
  max-width: 640px;
  margin: 0 auto;
}

.hero-character {
  margin-bottom: 2rem;
}

.character-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: var(--shadow-lg);
}

.character-circle.large {
  width: 140px;
  height: 140px;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.store-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.15s;
  box-shadow: var(--shadow);
}

.badge:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
}

.badge svg {
  flex-shrink: 0;
}

.hero .badge {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  background: var(--accent);
}

.hero .badge:hover {
  background: #d56a2f;
}

/* Section headings */

.section-heading {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--text);
}

/* Features */

.features {
  padding: 6rem 1.5rem;
  background: var(--white);
}

.features-inner {
  max-width: 960px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature {
  text-align: center;
  padding: 2rem 1.5rem;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--primary-pale);
  margin-bottom: 1rem;
  color: var(--primary);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.feature p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* Visited links — prevent browser purple on styled components */

.page-inner .cta-button:visited,
.cta-button:visited,
.badge:visited,
.footer-nav a:visited,
.page-cta .badge:visited { color: var(--white); }

.section-link:visited,
.page-nav a:visited,
.page-inner a:not(.cta-button):visited,
.nav-brand:visited { color: var(--primary); }

.footer-legal a:visited { color: var(--primary-pale); }

p a:visited { color: inherit; }

/* Section link */

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: gap 0.2s;
  margin-top: 2rem;
}

.section-link:hover {
  gap: 0.6rem;
}

.section-link-wrap {
  text-align: center;
  margin-top: 2rem;
}

/* How it works */

.how-it-works {
  padding: 6rem 1.5rem;
  background: var(--cream);
}

.how-it-works-inner {
  max-width: 960px;
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 1rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.step p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* Social */

.social {
  padding: 6rem 1.5rem;
  background: var(--primary-pale);
}

.social-inner {
  max-width: 680px;
  margin: 0 auto;
}

.social-inner .section-heading {
  color: var(--text);
}

.social-prose p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.social-prose p:last-child {
  margin-bottom: 0;
}

/* Character section */

.character-section {
  padding: 6rem 1.5rem;
  background: var(--white);
}

.character-section-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.character-section .character-circle {
  margin-bottom: 2rem;
}

.character-prose {
  text-align: left;
}

.character-prose p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.character-prose p.character-closing {
  font-weight: 600;
  color: var(--text);
}

blockquote {
  margin: 2.5rem 0;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--accent);
  background: var(--cream);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

blockquote p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--primary);
  line-height: 1.5;
  margin-bottom: 0;
}

blockquote cite {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text-light);
}

/* Pricing */

.pricing {
  padding: 6rem 1.5rem;
  background: var(--cream);
  text-align: center;
}

.pricing-inner {
  max-width: 640px;
  margin: 0 auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.pricing-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(74, 128, 196, 0.12);
  background: var(--white);
  position: relative;
}

.pricing-card.premium {
  border-color: var(--primary);
  border-width: 2px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.premium-label {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.price-annual {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-top: 1.25rem;
}

.pricing-card li {
  padding: 0.35rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.pricing-card li::before {
  content: "\2713";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* CTA button */

.cta-button {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  box-shadow: 0 2px 12px rgba(232, 121, 58, 0.25);
}

.cta-button:hover {
  background: #d56a2f;
  transform: translateY(-1px);
}

/* FAQ */

.faq {
  padding: 6rem 1.5rem;
  background: var(--white);
}

.faq-inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(74, 128, 196, 0.1);
}

.faq-item:first-of-type {
  border-top: 1px solid rgba(74, 128, 196, 0.1);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex-shrink: 0;
  margin-left: 1rem;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item .faq-answer {
  padding: 0 0 1.25rem;
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* Footer */

.footer {
  padding: 2.5rem 1.5rem;
  background: var(--primary);
  color: var(--primary-pale);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.footer-nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.footer-nav a:hover {
  opacity: 0.8;
}

.footer-legal {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-legal a {
  color: var(--primary-pale);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--white);
}

.footer-copy {
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

/* Focus styles */

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

.badge:focus-visible,
.cta-button:focus-visible {
  outline-offset: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Responsive */

@media (max-width: 640px) {
  h1 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 6.5rem 1.25rem 3rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .section-heading {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .footer-nav,
  .footer-legal {
    gap: 1rem;
  }
}

@media (max-width: 400px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

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

  .store-badges {
    flex-direction: column;
    align-items: center;
  }
}

/* Inner pages */

.page-content {
  padding: 4rem 1.5rem;
  background: var(--white);
}

.page-inner {
  max-width: 720px;
  margin: 0 auto;
}

.page-inner h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.page-inner > h2:first-child {
  margin-top: 0;
}

.page-inner h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-inner p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.page-inner p:last-child {
  margin-bottom: 0;
}

.page-inner a:not(.cta-button):not(.badge) {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.page-inner a:not(.cta-button):not(.badge):hover {
  text-decoration: underline;
}

.page-inner .badge,
.page-cta .badge {
  color: var(--white);
}

.page-inner .badge:hover,
.page-cta .badge:hover {
  text-decoration: none;
}

.page-inner ul {
  list-style: none;
  margin: 1rem 0;
}

.page-inner li {
  padding: 0.3rem 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.page-inner li::before {
  content: "\2713";
  color: var(--primary);
  font-weight: 700;
  margin-right: 0.5rem;
}

.page-cta {
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--primary-pale);
}

.page-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.page-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

.faq-group {
  margin-bottom: 2rem;
}

.faq-group:last-child {
  margin-bottom: 0;
}

.faq-group-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-pale);
}

@media (max-width: 640px) {
  .page-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
}
