:root {
  --navy: #10203b;
  --navy-end: #1d4170;
  --bg: #f6f3ed;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.72);
  --text: #111111;
  --secondary-text: #445168;
  --dim-text: #687486;
  --border: rgba(16, 32, 59, 0.1);
  --accent: #21b69f;
  --accent-dark: #129481;
  --gold: #ffcf74;
  --shadow: rgba(16, 32, 59, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "SF Pro Text", "SF Pro Display", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 207, 116, 0.2), transparent 30%),
    radial-gradient(circle at top right, rgba(33, 182, 159, 0.18), transparent 28%),
    linear-gradient(180deg, #e8edf5 0%, #f2efe9 42%, var(--bg) 100%);
}

a {
  color: inherit;
}

.app-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(16, 32, 59, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(16, 32, 59, 0.22);
}

.nav-shell {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.app-banner {
  display: block;
  width: min(320px, 100%);
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: #ffffff;
}

.page {
  width: min(1100px, calc(100% - 24px));
  margin: 0 auto;
  padding: 26px 0 44px;
}

.hero {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(16, 32, 59, 0.1);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% auto;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33, 182, 159, 0.16), transparent 70%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  border-radius: 24px 0 0 24px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
}

.badge {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 12ch;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.22rem;
  line-height: 1.2;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.subtitle {
  margin: 0;
  max-width: 46rem;
  color: var(--secondary-text);
  line-height: 1.58;
  font-size: 1.04rem;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #34cab4);
  color: #072a22;
  box-shadow: 0 12px 24px rgba(33, 182, 159, 0.22);
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

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

.btn-disabled {
  opacity: 0.7;
  pointer-events: none;
  box-shadow: none;
}

.card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  margin: 0 0 12px;
  box-shadow: 0 12px 26px rgba(16, 32, 59, 0.06);
}

.muted {
  color: var(--secondary-text);
  background: #fbfcfd;
}

.landing-view,
#share-view {
  animation: fade-up 280ms ease both;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.92fr);
  gap: 18px;
  padding: 24px;
  margin-bottom: 22px;
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero-note {
  margin: 14px 0 0;
  max-width: 44rem;
  color: var(--secondary-text);
  line-height: 1.56;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(16, 32, 59, 0.05);
  border: 1px solid rgba(16, 32, 59, 0.08);
  color: var(--navy-end);
  font-size: 0.84rem;
  font-weight: 700;
}

.hero-panel {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(16, 32, 59, 0.98), rgba(29, 65, 112, 0.96));
  color: #ffffff;
}

.hero-panel::before {
  display: none;
}

.hero-panel::after {
  display: none;
}

.panel-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-list {
  margin: 0;
  padding-left: 22px;
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.65;
}

.hero-panel .panel-list li {
  color: #ffffff;
}

.panel-list li + li {
  margin-top: 10px;
}

.panel-list li::marker {
  color: var(--gold);
}

.preview-frame {
  margin-top: auto;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.preview-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.section-block {
  margin-bottom: 22px;
}

.section-heading {
  margin-bottom: 14px;
}

.section-lead {
  margin: 0;
  max-width: 52rem;
  color: var(--secondary-text);
  line-height: 1.58;
}

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

.feature-card {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 12px 26px rgba(16, 32, 59, 0.06);
}

.feature-card p,
.step-card p,
.secondary-cta p {
  margin: 0;
  color: var(--secondary-text);
  line-height: 1.58;
}

.feature-band {
  padding: 20px;
}

.step-card {
  padding: 16px;
  border-radius: 16px;
  background: rgba(16, 32, 59, 0.03);
  border: 1px solid rgba(16, 32, 59, 0.08);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--navy);
  color: #ffffff;
  font-weight: 700;
}

.secondary-cta {
  padding: 22px;
  background: linear-gradient(135deg, rgba(16, 32, 59, 0.98), rgba(29, 65, 112, 0.96));
  color: #ffffff;
}

.secondary-cta .badge {
  color: var(--gold);
}

.secondary-cta p {
  color: rgba(255, 255, 255, 0.82);
}

.secondary-cta .btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
}

.share-hero {
  padding: 20px 18px;
}

.share-hero h1 {
  max-width: none;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.08;
}

.share-mode-note {
  margin: 14px 0 0;
  color: var(--secondary-text);
}

.inline-link {
  color: var(--navy-end);
  font-weight: 700;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

.locked-card {
  position: relative;
  overflow: hidden;
  min-height: 140px;
}

.locked-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/share-preview.png");
  background-size: cover;
  background-position: center;
  filter: blur(10px) saturate(0.85);
  transform: scale(1.08);
  opacity: 0.34;
}

.locked-content {
  position: relative;
  z-index: 1;
}

.lock-note {
  margin: 8px 0 0;
  color: var(--dim-text);
  font-weight: 600;
}

.stats-preview {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  overflow: hidden;
  min-height: 96px;
  background-image: url("/assets/share-preview.png");
  background-size: cover;
  background-position: center;
  filter: blur(0.2px);
  position: relative;
}

.stats-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(8px);
  background: linear-gradient(180deg, rgba(11, 29, 58, 0.2), rgba(11, 29, 58, 0.42));
}

.stats-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 8px;
}

.status {
  margin: 0 0 6px;
  color: var(--navy-end);
  font-weight: 600;
}

ul,
dl {
  margin: 0;
  padding-left: 18px;
}

dl {
  padding-left: 0;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fact-item {
  padding: 12px;
  border-radius: 14px;
  background: rgba(16, 32, 59, 0.03);
  border: 1px solid rgba(16, 32, 59, 0.06);
}

.fact-item dt,
dt {
  margin-top: 8px;
  font-weight: 700;
}

.fact-item dt {
  margin-top: 0;
  margin-bottom: 4px;
}

.fact-item dd,
dd {
  margin: 2px 0 0;
  color: var(--secondary-text);
}

li {
  margin-bottom: 8px;
  color: var(--secondary-text);
}

small {
  color: var(--dim-text);
}

.hidden {
  display: none;
}

.site-footer {
  margin-top: 18px;
  padding: 8px 0 10px;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--navy-end);
  font-weight: 600;
  text-decoration: none;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 10px 0 0;
  color: var(--dim-text);
  line-height: 1.5;
}

.policy {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 18px;
}

.policy h1 {
  margin-top: 4px;
}

.policy h2 {
  margin-top: 18px;
  margin-bottom: 8px;
}

.policy p {
  line-height: 1.56;
}

.policy ul {
  line-height: 1.5;
}

.policy-back-link {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.policy a {
  color: var(--navy-end);
}

.policy .subtitle {
  font-size: 1rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .info-grid,
  .step-grid,
  .facts-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page {
    padding-top: 18px;
  }

  .app-nav {
    position: static;
  }

  .nav-shell {
    padding: 10px 0 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links {
    justify-content: flex-start;
    gap: 12px;
  }

  h1 {
    font-size: 1.85rem;
    max-width: none;
  }

  .hero,
  .card,
  .feature-card {
    border-radius: 18px;
  }

  .landing-hero,
  .feature-band,
  .secondary-cta,
  .share-hero {
    padding: 18px 16px;
  }

  .policy {
    padding: 16px 14px;
  }
}
