:root {
  --bg-sky: #dceeff;
  --panel: rgba(255, 255, 255, 0.72);
  --text: #1e3a5f;
  --muted: #4a6288;
  --text-on-glass: #0f2744;
  --text-soft-glass: #2d4a6e;
  --brand: #5eb8ff;
  --brand2: #ff9ecf;
  --brand3: #ffe066;
  --good: #7ee8a8;
  --bad: #ff8fa3;
  --shadow: 0 16px 48px rgba(15, 39, 68, 0.18);
  --shadow-soft: 0 8px 24px rgba(15, 39, 68, 0.12);
  --glass: rgba(255, 255, 255, 0.28);
  --glass-strong: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-blur: 18px;
  --radius: 24px;
  --radius2: 32px;
  --bubble: 999px;
  --font: "Nunito", ui-sans-serif, system-ui, sans-serif;
  --font-play: "Fredoka", "Nunito", ui-sans-serif, sans-serif;
}

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

html, body {
  min-height: 100%;
  min-height: 100dvh;
  margin: 0;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: #5a9fd4 url("/assets/home-hero.jpg") center top / cover no-repeat fixed;
}

.bg-scene,
.bg-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-scene {
  background: url("/assets/home-hero.jpg") center top / cover no-repeat fixed;
}

.bg-overlay {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.08) 35%, rgba(15, 39, 68, 0.12) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

a { color: #2563eb; font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; color: #db2777; }

.app {
  min-height: 100dvh;
  width: 100%;
  display: grid;
  place-items: start center;
  padding:
    max(0px, env(safe-area-inset-top))
    max(0px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(0px, env(safe-area-inset-left));
  position: relative;
  z-index: 1;
}

.shell {
  width: min(1100px, calc(100% - 24px));
  margin-top: 12px;
  border-radius: var(--radius2);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.42);
  overflow: hidden;
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background:
    radial-gradient(14px 14px at 30% 30%, #fff9c4, transparent 70%),
    radial-gradient(16px 16px at 70% 40%, #ffc8e8, transparent 70%),
    radial-gradient(18px 18px at 50% 80%, #a8e6cf, transparent 70%),
    linear-gradient(135deg, #5eb8ff, #ff9ecf);
  border: 3px solid #fff;
  box-shadow: 0 6px 20px rgba(94, 184, 255, 0.35);
}

.brand h1 {
  margin: 0;
  font-family: var(--font-play);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  background: linear-gradient(90deg, #3d8fd9 0%, #e86aab 55%, #e6b800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand p {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #5a6b94;
}

.chip {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--bubble);
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--text-on-glass);
  box-shadow: 0 4px 14px rgba(15, 39, 68, 0.08);
  backdrop-filter: blur(10px);
}

.content {
  padding: 20px;
  background: transparent;
}

.grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 18px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

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

.card {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.title {
  margin: 0 0 8px;
  font-family: var(--font-play);
  font-size: 20px;
  font-weight: 700;
  color: #1565a8;
}

.subtitle {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.note {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.45);
  color: var(--text-soft-glass);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.note.good {
  border-color: rgba(126, 232, 168, 0.55);
  background: rgba(240, 255, 245, 0.55);
  color: #1f6b42;
}

.note.danger {
  border-color: rgba(255, 143, 163, 0.55);
  background: rgba(255, 240, 243, 0.55);
  color: #9b3a4a;
}

.note.warn {
  border-color: rgba(255, 217, 102, 0.65);
  background: rgba(255, 251, 232, 0.55);
  color: #7a5a00;
}

.mini {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.5;
  font-weight: 600;
}

.btn-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 16px 32px;
  border: none;
  border-radius: var(--bubble);
  background: linear-gradient(180deg, #7ecfff 0%, #5eb8ff 100%);
  color: #fff;
  font-family: var(--font-play);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 2px rgba(0, 80, 160, 0.25);
  box-shadow: 0 4px 0 #3a9ad9, 0 8px 20px rgba(94, 184, 255, 0.4);
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #3a9ad9, 0 12px 24px rgba(94, 184, 255, 0.45);
  text-decoration: none;
  color: #fff;
}

.btn-start:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #3a9ad9;
}

.tier-card {
  text-align: center;
  padding: 18px 14px;
}

.tier-card .emoji {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.tier-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-play);
  font-size: 16px;
  color: #4a9fd4;
}

.tier-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.5;
}

.section-gap { height: 18px; }

.site-footer {
  padding: 28px 24px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.24);
  color: var(--text-soft-glass);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  align-items: start;
  padding-bottom: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(184, 228, 255, 0.55);
}

@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr; gap: 20px; }
}

.footer-brand img {
  display: block;
  width: min(240px, 100%);
  height: auto;
  margin-bottom: 8px;
}

.footer-brand p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
}

.footer-company {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
}

.footer-company strong {
  display: block;
  font-family: var(--font-play);
  font-size: 13px;
  color: #4a9fd4;
  margin-bottom: 6px;
}

.footer-company a {
  color: #4a9fd4;
}

.brand-logo {
  width: auto;
  height: 48px;
  display: block;
  object-fit: contain;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

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

.site-footer h3 {
  margin: 0 0 8px;
  font-family: var(--font-play);
  font-size: 14px;
  color: #4a9fd4;
}

.site-footer ul {
  margin: 0;
  padding-left: 18px;
}

.site-footer li { margin-bottom: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid rgba(184, 228, 255, 0.5);
  font-size: 11px;
}

.hero-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  background: #7eb8e8 url("/assets/home-hero.jpg") center top / cover no-repeat;
}

.hero-banner img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center top;
  background: transparent;
}

.hero-cta {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(100%, 320px);
  padding: 0 12px;
}

.hero-cta .btn-start {
  margin-top: 0;
  width: 100%;
  max-width: 280px;
}

.btn-continue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: none;
  border-radius: var(--bubble);
  background: linear-gradient(180deg, #ffe08a 0%, #ffb347 100%);
  color: #5a3a00;
  font-family: var(--font-play);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 0 #d4922a, 0 10px 22px rgba(0, 0, 0, 0.2);
}

.btn-continue:hover {
  color: #5a3a00;
  text-decoration: none;
  transform: translateY(-1px);
}

.is-hidden { display: none !important; }

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 14px;
}

@media (max-width: 780px) {
  .steps { grid-template-columns: 1fr; }
  .shell { width: calc(100% - 16px); margin-top: 8px; }
}

.step-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px dashed rgba(255, 255, 255, 0.55);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft-glass);
  line-height: 1.5;
  backdrop-filter: blur(10px);
}

.step-item strong {
  display: block;
  font-family: var(--font-play);
  color: #4a9fd4;
  font-size: 14px;
  margin-bottom: 4px;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.legal-nav a {
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--bubble);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #dce8f8;
  text-decoration: none;
  color: #4a9fd4;
}

.legal-nav a:hover {
  border-color: #5eb8ff;
  color: #e86aab;
  text-decoration: none;
}

.legal-section {
  scroll-margin-top: 24px;
}

.legal-section .card {
  margin-bottom: 16px;
}

.legal-section h2.title {
  font-size: 22px;
}

.legal-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #dce8f8;
}

.legal-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-block h4 {
  margin: 0 0 6px;
  font-family: var(--font-play);
  font-size: 14px;
  color: #3d8fd9;
  font-weight: 700;
}

.legal-block p,
.legal-block li {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 600;
}

.legal-block ul {
  margin: 0;
  padding-left: 18px;
}

.legal-meta {
  font-size: 11px;
  color: #8a9bb8;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-links {
  display: block;
  padding: 0;
  margin: 0;
  border: none;
}

.footer-links h3 {
  margin: 0 0 10px;
  font-family: var(--font-play);
  font-size: 14px;
  color: #4a9fd4;
}

.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  font-size: 12px;
  font-weight: 700;
  color: #4a9fd4;
  text-decoration: none;
}

.footer-links a:hover {
  color: #e86aab;
  text-decoration: underline;
}

.topbar .brand p {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-on-glass);
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.topbar .brand {
  align-items: center;
}

.brand-logo {
  filter: drop-shadow(0 2px 6px rgba(15, 39, 68, 0.12));
}


.footer-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 900px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
}

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

@media (max-width: 780px) {
  .hero-cta {
    bottom: max(12px, env(safe-area-inset-bottom));
  }

  .hero-cta .btn-start {
    padding: 14px 28px;
    font-size: 17px;
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .shell {
    margin-top: 4px;
  }

  .hero-banner img {
    max-height: min(52vh, 320px);
    width: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .topbar {
    padding: 8px 14px;
  }

  .brand-logo {
    height: 36px;
  }
}

@media (min-width: 1200px) {
  .shell {
    width: min(1180px, calc(100% - 32px));
  }
}

