@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/PlusJakartaSans-latin.woff2") format("woff2");
}

:root {
  --ink: #162032;
  --muted: #5c6677;
  --soft: #f7fbff;
  --paper: #ffffff;
  --line: #dce9f7;
  --sky: #dff1ff;
  --blue: #2388ff;
  --cyan: #18c6d8;
  --mint: #3cd58f;
  --sun: #ffd35a;
  --coral: #ff6b7a;
  --violet: #8664ff;
  --shadow: 0 22px 70px rgba(48, 98, 168, 0.16);
  --shadow-soft: 0 16px 42px rgba(48, 98, 168, 0.11);
  --radius: 22px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7fbff 0%, #eef8ff 44%, #fffaf0 100%);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 9% 20%, rgba(255, 211, 90, 0.34), transparent 25rem),
    radial-gradient(circle at 88% 16%, rgba(24, 198, 216, 0.24), transparent 26rem),
    radial-gradient(circle at 78% 72%, rgba(255, 107, 122, 0.18), transparent 24rem);
}

a {
  color: inherit;
}

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

.site-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 251, 255, 0.82);
  border-bottom: 1px solid rgba(220, 233, 247, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 28px rgba(35, 136, 255, 0.26);
  color: #fff;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--blue);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #162032, #243555);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(22, 32, 50, 0.18);
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #203251, #2b456f);
  box-shadow: 0 18px 38px rgba(22, 32, 50, 0.22);
}

.button.secondary {
  background: linear-gradient(135deg, #eff9ff, #dff1ff);
  color: #17466d;
  border-color: #a8d2f3;
  box-shadow: 0 10px 24px rgba(35, 136, 255, 0.11);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: linear-gradient(135deg, #e8f6ff, #d3ebff);
  border-color: #82bee9;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  align-items: center;
  gap: 64px;
  padding: 78px 0 44px;
}

.hero-copy {
  max-width: 650px;
}

.kicker {
  margin: 0 0 18px;
  color: #2471a8;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 24px;
  font-size: clamp(3.1rem, 7vw, 6.85rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.title-wide {
  max-width: 14ch;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.23rem);
}

.hero-actions,
.card-actions,
.policy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.detail-copy .hero-actions .button {
  min-width: 194px;
}

.hero-art {
  position: relative;
  min-height: 500px;
  border-radius: 34px;
  overflow: hidden;
  background: #dbeeff url("/assets/images/kids-sky-background.png") center / cover no-repeat;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.72));
  z-index: 0;
}

.app-icon-float {
  position: relative;
  z-index: 1;
  width: min(62%, 320px);
  margin: 18px auto 0;
  border-radius: 32px;
  filter: drop-shadow(0 26px 38px rgba(25, 73, 125, 0.26));
}

.paint-panel {
  position: absolute;
  z-index: 1;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 24px;
  background: rgba(255,255,255,0.8);
  box-shadow: 0 18px 45px rgba(49, 88, 132, 0.14);
  backdrop-filter: blur(16px);
}

.paint-panel strong {
  display: block;
  font-size: 1.05rem;
}

.paint-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.swatches {
  display: flex;
  gap: 8px;
}

.swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 3px 12px rgba(25, 57, 92, 0.18);
}

.swatch:nth-child(1) { background: var(--coral); }
.swatch:nth-child(2) { background: var(--sun); }
.swatch:nth-child(3) { background: var(--mint); }
.swatch:nth-child(4) { background: var(--blue); }
.swatch:nth-child(5) { background: var(--violet); }

.section {
  padding: 72px 0;
}

.section.compact {
  padding-top: 36px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

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

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.05rem;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.app-card {
  grid-column: span 12;
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  overflow: hidden;
  border: 1px solid rgba(220, 233, 247, 0.9);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.app-card-media {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 380px;
  background:
    radial-gradient(circle at 46% 43%, rgba(255,255,255,0.74), transparent 10rem),
    linear-gradient(145deg, #dff4ff, #fff2c9);
  overflow: hidden;
}

.app-card-media::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.6);
  pointer-events: none;
}

.app-card-media img {
  position: absolute;
  object-fit: contain;
}

.media-icon {
  width: min(70%, 330px);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 30px;
  filter: drop-shadow(0 22px 30px rgba(25, 73, 125, 0.2));
}

.app-card-body {
  padding: clamp(28px, 5vw, 52px);
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #eef7ff;
  color: #22618d;
  font-size: 0.78rem;
  font-weight: 850;
}

.tag.green {
  background: #eafff4;
  color: #0d7b4c;
}

.tag.warm {
  background: #fff6d9;
  color: #936907;
}

.app-card h2,
.detail-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.app-card p,
.detail-copy p,
.legal-note p {
  color: var(--muted);
}

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

.feature {
  padding: 20px;
  border: 1px solid rgba(220, 233, 247, 0.92);
  border-radius: 20px;
  background: rgba(255,255,255,0.82);
  box-shadow: var(--shadow-soft);
}

.feature svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.feature img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(220, 233, 247, 0.8);
}

.feature h3 {
  margin: 14px 0 8px;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 56px;
  align-items: center;
  padding: 76px 0 48px;
}

.detail-phone {
  position: relative;
  min-height: 620px;
  border-radius: 44px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-phone::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,0.74);
  pointer-events: none;
}

.detail-phone::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 34px;
  background: url("/assets/images/kids-sky-background.png") center / cover no-repeat;
}

.detail-phone .phone-icon {
  position: absolute;
  width: 54%;
  left: 23%;
  top: 56px;
  border-radius: 26px;
  filter: drop-shadow(0 20px 30px rgba(35, 136, 255, 0.2));
}

.mode-strip {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 34px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  z-index: 1;
}

.mode-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(54, 88, 125, 0.14);
}

.safety-band {
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,0.72);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.safety-item {
  min-height: 150px;
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(48, 98, 168, 0.07);
}

.safety-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
}

.safety-item span {
  color: var(--muted);
  font-size: 0.94rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 42px;
  align-items: start;
  padding: 58px 0 76px;
}

.policy {
  padding: clamp(24px, 5vw, 54px);
  border-radius: 28px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.policy h1 {
  max-width: none;
  margin-bottom: 10px;
  font-size: clamp(2.45rem, 5vw, 4.8rem);
}

.policy h2 {
  margin-top: 38px;
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.2;
}

.policy p,
.policy li,
.policy td,
.policy th {
  color: #344256;
}

.policy table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  overflow: hidden;
  border-radius: 16px;
  font-size: 0.94rem;
}

.policy th,
.policy td {
  padding: 14px;
  border: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.policy th {
  background: #eef7ff;
  color: var(--ink);
}

.policy ul {
  padding-left: 1.25rem;
}

.notice {
  padding: 18px 20px;
  border-radius: 18px;
  background: #eafff4;
  border: 1px solid #b9f1d4;
  color: #145f41;
  font-weight: 720;
}

.warning {
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff7df;
  border: 1px solid #ffe4a2;
  color: #71500d;
}

.disclaimer {
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff2f2;
  border: 1px solid #ffcaca;
  color: #7c2727;
}

.policy a {
  color: var(--blue);
  font-weight: 760;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.side-card {
  position: sticky;
  top: 100px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(49, 88, 132, 0.1);
}

.side-card img {
  width: 92px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.side-card a {
  display: block;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.footer {
  padding: 38px 0;
  background: #162032;
  color: #c7d4e5;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer a {
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media (max-width: 920px) {
  .hero,
  .detail-hero,
  .app-card,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 48px;
  }

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

  h1 {
    max-width: 11ch;
  }

  .hero-art {
    min-height: 440px;
  }

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

  .side-card {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 22px, 1160px);
  }

  .nav {
    min-height: 68px;
  }

  .brand small,
  .nav-links a:not(.button) {
    display: none;
  }

  .nav-links {
    gap: 8px;
  }

  .button {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 0.92rem;
  }

  .hero-actions .button,
  .card-actions .button,
  .detail-copy .hero-actions .button {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }

  .hero,
  .detail-hero {
    gap: 34px;
  }

  h1 {
    font-size: clamp(2.75rem, 15vw, 4.2rem);
  }

  .hero-art {
    min-height: 430px;
    border-radius: 24px;
  }

  .app-icon-float {
    width: min(64%, 236px);
    margin-top: 16px;
  }

  .paint-panel {
    left: 14px;
    right: 14px;
    bottom: 14px;
    grid-template-columns: 1fr;
  }

  .app-card-media {
    min-height: 300px;
  }

  .app-card {
    border-radius: 22px;
  }

  .feature-list,
  .safety-grid {
    grid-template-columns: 1fr;
  }

  .detail-phone {
    min-height: 560px;
    border-radius: 30px;
  }

  .detail-phone .phone-icon {
    width: 64%;
    left: 18%;
  }

  .mode-strip {
    left: 18px;
    right: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .mode-strip img {
    border-radius: 14px;
  }

  .policy {
    border-radius: 22px;
  }

  .policy table,
  .policy thead,
  .policy tbody,
  .policy th,
  .policy td,
  .policy tr {
    display: block;
  }

  .policy tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
  }

  .policy th,
  .policy td {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
