/* MobileID public website — calm, personal, premium */
:root {
  --bg: #f5f7fb;
  --bg-accent: #eef3fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #5b6577;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --nav: rgba(255, 255, 255, 0.88);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --max: 1100px;
  --font: "DM Sans", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #dbeafe 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #e0e7ff 0%, transparent 45%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--text);
  color: #fff;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  text-decoration: none;
}

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

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 0.55rem;
  object-fit: cover;
}

.logo-text {
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 0.55rem;
  padding: 0.45rem;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.45rem 0.7rem;
  border-radius: 0.55rem;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--text);
  background: var(--bg-accent);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.2rem;
  background: var(--surface);
}

.lang-switch a {
  text-decoration: none;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--text-muted);
}

.lang-switch a[aria-current="true"] {
  background: var(--text);
  color: #fff;
}

.lang-switch span {
  color: #cbd5e1;
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s, border-color 0.15s;
  cursor: pointer;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: #cbd5e1;
}

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

.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
}

.btn-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.7;
  cursor: default;
  transform: none;
  box-shadow: none;
  background: #e2e8f0;
  color: #475569;
}

.btn-disabled:hover,
.btn[aria-disabled="true"]:hover {
  transform: none;
}

/* Hero */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 1rem;
  max-width: 14ch;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

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

.phone-frame {
  width: min(100%, 280px);
  margin-inline: auto;
  background: #0f172a;
  border-radius: 2rem;
  padding: 0.65rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 0.35rem;
  background: #334155;
  border-radius: 999px;
  z-index: 1;
}

.phone-frame picture,
.phone-frame img {
  border-radius: 1.45rem;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background: #fff;
}

.hero-visual {
  position: relative;
}

.hero-visual-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.55);
  border-block: 1px solid rgba(226, 232, 240, 0.8);
}

.section-header {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.section-header.center {
  text-align: center;
  margin-inline: auto;
}

.section-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.section-header h2,
.section h2 {
  font-family: var(--display);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.65rem;
}

.section-header p,
.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

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

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.pillar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.pillar h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.pillar p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.security-card {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.5rem;
}

.security-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.security-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

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

.shot {
  text-align: center;
}

.shot .phone-frame {
  width: 100%;
  max-width: 220px;
}

.shot figcaption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 500;
}

.shot-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.8rem;
  color: #94a3b8;
}

.download-band {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1.2fr auto;
  gap: 1.5rem;
  align-items: center;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 46rem;
  margin-inline: auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1rem 1.15rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  float: right;
  color: var(--text-muted);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.975rem;
}

/* Content pages */
.page-hero {
  padding: 2.75rem 0 1rem;
}

.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 40rem;
}

.prose {
  max-width: 42rem;
  padding-bottom: 3rem;
}

.prose section {
  margin-bottom: 2rem;
}

.prose h2 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}

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

.prose ul {
  padding-left: 1.2rem;
  margin-top: 0.5rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.prose a {
  color: var(--accent);
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 28rem;
}

.footer-attribution {
  margin-top: 0.55rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-attribution a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-attribution a:hover {
  color: var(--text);
}

.footer-col h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 0.65rem;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .hero-grid,
  .download-band,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .download-actions {
    justify-content: flex-start;
  }

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

  .pillars,
  .screenshots {
    grid-template-columns: 1fr 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-cluster {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.85rem 1rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
  }

  .nav-cluster.is-open {
    display: flex;
  }

  .site-header .container {
    position: relative;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    padding: 0.7rem 0.85rem;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .nav-cta {
    width: 100%;
  }

  .pillars,
  .screenshots {
    grid-template-columns: 1fr;
  }

  .phone-frame {
    width: min(100%, 240px);
  }
}
