:root {
  --bg: #f2f7fb;
  --surface: #ffffff;
  --surface-strong: #0b2330;
  --text: #102434;
  --text-muted: #4d6373;
  --brand: #0e9fbb;
  --brand-dark: #0a7b92;
  --line: #d8e4ec;
  --success: #169b76;
  --radius: 16px;
  --shadow: 0 18px 40px rgba(8, 34, 48, 0.12);
  --mobile-download-height: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", sans-serif;
  background: radial-gradient(circle at 15% 0%, #d7f7ff 0%, #f3f8fb 45%, #edf4f8 100%);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: var(--mobile-download-height);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 1000;
}

.container {
  width: min(1140px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: rgba(242, 247, 251, 0.9);
  border-bottom: 1px solid rgba(216, 228, 236, 0.8);
  z-index: 50;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

.lang-switch {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.lang-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.86rem;
  border: 1px solid var(--line);
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
}

.lang-link:hover,
.lang-link:focus-visible {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.hero {
  padding: 4.2rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: center;
}

.badge {
  display: inline-block;
  background: rgba(14, 159, 187, 0.1);
  color: var(--brand-dark);
  border: 1px solid rgba(14, 159, 187, 0.3);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  margin: 0.8rem 0;
}

h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.13rem;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 60ch;
}

.hero-note {
  color: var(--text-muted);
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
}

.hero-cta-row,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.75rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(145deg, var(--brand), #13b0cf);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(145deg, var(--brand-dark), var(--brand));
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--brand);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--line);
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.trust-list li {
  font-size: 0.84rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: #fff;
}

.phone-frame {
  border-radius: 38px;
  padding: 0.9rem;
  background: linear-gradient(170deg, #09202c, #133847);
  box-shadow: var(--shadow);
}

.phone-notch {
  width: 34%;
  height: 20px;
  border-radius: 0 0 14px 14px;
  background: #081d28;
  margin: 0 auto;
}

.phone-content {
  border-radius: 28px;
  background: linear-gradient(160deg, #0f2a39 0%, #16475a 100%);
  padding: 1rem;
  color: #edf8fd;
  min-height: 410px;
}

.phone-content h2 {
  margin: 0.4rem 0;
  font-size: 1.3rem;
}

.phone-chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
  margin: 0;
}

.phone-cards {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.mock-card {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.9rem;
  font-weight: 700;
}

.section {
  padding: 3.5rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(14, 159, 187, 0.06), rgba(14, 159, 187, 0));
  border-top: 1px solid rgba(216, 228, 236, 0.7);
  border-bottom: 1px solid rgba(216, 228, 236, 0.7);
}

.section-intro {
  color: var(--text-muted);
  max-width: 70ch;
}

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

.card,
.step-card,
.feature-card,
.proof-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.card p,
.step-card p,
.feature-card p,
.proof-card p {
  margin: 0;
  color: var(--text-muted);
}

.card h3,
.step-card h3,
.feature-card h3,
.proof-card h3 {
  margin-bottom: 0.45rem;
}

.proof-key {
  margin-bottom: 0.4rem;
  color: var(--success);
  font-weight: 800;
}

.faq-wrap {
  max-width: 850px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.8rem 0.95rem;
  margin-bottom: 0.7rem;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
}

.faq-item p {
  color: var(--text-muted);
  margin: 0.6rem 0 0;
}

.cta-section {
  padding-top: 1rem;
}

.cta-card {
  text-align: center;
  background: linear-gradient(125deg, #0d2d3d 0%, #104459 52%, #126174 100%);
  color: #ecfbff;
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.cta-card p {
  color: rgba(236, 251, 255, 0.82);
}

.cta-card .btn-secondary {
  color: #0b2d3d;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  background: #f8fcff;
}

.desktop-download-qr {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 80;
}

.qr-card {
  width: 216px;
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  padding: 0.65rem;
}

.qr-title {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  font-weight: 800;
}

.qr-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.qr-caption {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.mobile-sticky-download {
  display: none;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.2rem;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.link-button {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.link-button:hover,
.link-button:focus-visible {
  color: var(--text);
}

.cookie-banner {
  position: fixed;
  bottom: calc(1rem + var(--mobile-download-height));
  left: 1rem;
  right: 1rem;
  z-index: 99;
}

.cookie-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: #0d2230;
  color: #edf9ff;
  border: 1px solid rgba(207, 242, 255, 0.2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.cookie-inner p {
  margin: 0;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  background: rgba(6, 18, 25, 0.6);
  display: grid;
  place-items: center;
  z-index: 120;
  padding: 1rem;
}

.cookie-modal-card {
  width: min(680px, 100%);
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 1.2rem;
}

.cookie-option {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  margin-top: 0.8rem;
}

.cookie-option h3 {
  margin: 0;
  font-size: 1rem;
}

.cookie-option p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  cursor: pointer;
  background-color: #bdceda;
  transition: 0.25s;
}

.slider:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #fff;
  transition: 0.25s;
}

.switch input:checked + .slider {
  background-color: var(--brand);
}

.switch input:checked + .slider:before {
  transform: translateX(22px);
}

.legal-page .legal-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
}

.legal-page .legal-article h1 {
  margin-bottom: 0.25rem;
}

.legal-updated {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-section {
  margin-bottom: 1rem;
}

.legal-section h2 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.legal-section p,
.legal-section li {
  color: var(--text-muted);
}

.root-selector-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.root-selector-main {
  width: min(700px, calc(100% - 2rem));
}

.root-selector-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.3rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.root-language-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.guide-card-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.guide-card-link:hover,
.guide-card-link:focus-visible {
  text-decoration: underline;
}

.article-content {
  max-width: 850px;
}

.steps-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.steps-list li p {
  margin: 0;
  color: var(--text-muted);
}

.related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.related-link {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  background: #fff;
  color: var(--text);
  font-weight: 600;
}

.related-link:hover,
.related-link:focus-visible {
  border-color: var(--brand);
}

@media (max-width: 980px) {
  .hero-grid,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }

  .lang-switch {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  :root {
    --mobile-download-height: 76px;
  }

  .container {
    width: min(1140px, calc(100% - 1.2rem));
  }

  .site-header nav {
    display: none;
  }

  .hero {
    padding-top: 2.6rem;
  }

  .cta-card {
    text-align: left;
  }

  .desktop-download-qr {
    display: none;
  }

  .mobile-sticky-download {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.6rem;
    z-index: 110;
    padding: 0.9rem 1rem;
    box-shadow: var(--shadow);
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
  }

  .root-language-links {
    grid-template-columns: 1fr;
  }

  .related-links {
    grid-template-columns: 1fr;
  }
}
