:root {
  --blue: #24435f;
  --blue-deep: #18354d;
  --coral: #ee7662;
  --gold: #ffc552;
  --mint: #b9eee3;
  --plum: #3b2c50;
  --cream: #fff7ec;
  --cloud: #f3f7f9;
  --ink: #223344;
  --white: #ffffff;
  --line: rgba(36, 67, 95, 0.13);
  --shadow: 0 22px 60px rgba(24, 53, 77, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, "Segoe UI", sans-serif; line-height: 1.55; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
p, h1, h2, h3 { margin-top: 0; }

.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; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 10px 14px; color: var(--white); background: var(--blue); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 76px;
  padding: 12px max(28px, calc((100vw - 1240px) / 2));
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: flex; width: 140px; }
.brand img { width: 100%; height: auto; }
.nav-links { display: flex; justify-content: center; gap: 28px; color: var(--blue); font-size: 15px; font-weight: 800; }
.nav-links a { padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a:focus-visible { border-color: var(--gold); outline: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.language-switch { display: flex; gap: 3px; padding: 3px; background: var(--cloud); border: 1px solid var(--line); border-radius: 7px; }
.lang-button { width: 38px; height: 36px; padding: 0; color: var(--blue); background: transparent; border: 0; border-radius: 5px; font-size: 13px; font-weight: 900; cursor: pointer; }
.lang-button.active { color: var(--white); background: var(--blue); }
.nav-cta, .button, .signup-form > button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 0; border-radius: 7px; font-weight: 900; cursor: pointer; }
.nav-cta { color: var(--white); background: var(--blue); }
.menu-button { display: none; width: 44px; height: 44px; padding: 0; background: transparent; border: 1px solid var(--line); border-radius: 7px; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 20px; height: 2px; margin: auto; content: ""; background: var(--blue); transition: transform 160ms ease; }
.menu-icon::before { transform: translateY(-6px); }
.menu-icon::after { transform: translateY(4px); }

.hero { display: grid; grid-template-columns: minmax(420px, 0.88fr) minmax(540px, 1.12fr); min-height: 760px; padding-top: 76px; background: var(--cream); }
.hero-panel { display: flex; align-items: center; order: 1; padding: 72px 52px max(72px, 7vw) max(32px, calc((100vw - 1240px) / 2)); }
.hero-media { order: 2; min-height: 684px; background: url("assets/leomia-family-mission.png") center / cover no-repeat; }
.hero-content { max-width: 610px; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; max-width: 100%; padding: 8px 12px; margin-bottom: 24px; color: var(--blue); background: var(--white); border: 1px solid var(--line); border-radius: 7px; font-size: 13px; font-weight: 800; }
.status-pill > span:first-child, .review-dot { flex: 0 0 auto; width: 9px; height: 9px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255, 197, 82, 0.2); }
.eyebrow { margin-bottom: 12px; color: var(--coral); font-size: 13px; font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
h1 { max-width: 620px; margin-bottom: 24px; color: var(--blue-deep); font-size: 60px; line-height: 1.03; letter-spacing: 0; }
h2 { margin-bottom: 20px; color: var(--blue); font-size: 42px; line-height: 1.13; letter-spacing: 0; }
.hero-copy { max-width: 580px; margin-bottom: 30px; color: rgba(34, 51, 68, 0.82); font-size: 21px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-width: 180px; }
.button.primary { color: var(--blue-deep); background: var(--gold); }
.button.secondary { color: var(--blue); background: var(--white); border: 1px solid var(--line); }
.hero-meta { margin: 22px 0 0; color: rgba(34, 51, 68, 0.62); font-size: 14px; font-weight: 700; }

.promise-band { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1240px; margin: 0 auto; padding: 32px max(32px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line); }
.promise-band > div { padding: 8px 28px; border-right: 1px solid var(--line); }
.promise-band > div:first-child { padding-left: 0; }
.promise-band > div:last-child { padding-right: 0; border-right: 0; }
.promise-band strong, .promise-band span { display: block; }
.promise-band strong { color: var(--blue); font-size: 17px; }
.promise-band span { margin-top: 3px; color: rgba(34, 51, 68, 0.65); font-size: 15px; }

.section-shell, .app-section, .faq-section, .signup-section { max-width: 1240px; margin: 0 auto; padding: 100px 32px; }
.book-section { display: grid; grid-template-columns: minmax(320px, 460px) minmax(0, 1fr); align-items: center; gap: 88px; }
.book-cover { width: min(460px, 100%); margin: 0; }
.book-cover img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.book-cover figcaption { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 16px; color: rgba(34, 51, 68, 0.67); font-size: 14px; font-weight: 700; }
.section-copy { max-width: 650px; }
.section-copy > p:not(.eyebrow), .section-heading + p { color: rgba(34, 51, 68, 0.76); font-size: 18px; }
.book-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 30px 0 28px; border-block: 1px solid var(--line); }
.book-facts > div { padding: 18px; border-right: 1px solid var(--line); text-align: center; }
.book-facts > div:first-child { padding-left: 0; }
.book-facts > div:last-child { border-right: 0; }
.book-facts strong, .book-facts span { display: block; }
.book-facts strong { color: var(--blue); font-size: 22px; }
.book-facts span { color: rgba(34, 51, 68, 0.62); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.clean-list { display: grid; gap: 10px; padding: 0; margin: 0 0 28px; list-style: none; }
.clean-list li { position: relative; padding-left: 27px; color: var(--plum); font-weight: 700; }
.clean-list li::before { position: absolute; top: 8px; left: 0; width: 13px; height: 13px; content: ""; background: var(--gold); clip-path: polygon(50% 0%, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%); }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); font-weight: 900; border-bottom: 2px solid var(--gold); }

.mission-section { background: var(--blue); }
.mission-inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1.2fr); align-items: center; gap: 70px; max-width: 1240px; padding: 72px 32px; margin: 0 auto; }
.mission-section h2 { margin: 0; color: var(--white); }
.mission-section .eyebrow { color: var(--gold); }
.mission-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mission-list span { padding: 15px 18px; color: var(--white); background: rgba(255, 255, 255, 0.1); border-left: 4px solid var(--gold); border-radius: 4px; font-weight: 800; }

.app-section { display: grid; grid-template-columns: 440px minmax(0, 1fr); align-items: center; gap: 88px; max-width: none; padding-inline: max(32px, calc((100vw - 1240px) / 2)); background: var(--cloud); }
.app-visual { display: flex; justify-content: center; }
.phone-shell { width: 330px; height: 650px; padding: 16px; background: var(--blue-deep); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 34px; box-shadow: var(--shadow); }
.phone-top { width: 82px; height: 6px; margin: 7px auto 15px; background: rgba(255, 255, 255, 0.38); border-radius: 10px; }
.phone-screen { position: relative; height: 588px; padding: 22px; overflow: hidden; background: var(--cream); border-radius: 23px; }
.app-brand { display: flex; align-items: center; gap: 8px; color: var(--blue); }
.app-brand img { width: 28px; height: 28px; }
.app-greeting { margin: 26px 0 14px; color: var(--blue); font-size: 25px; font-weight: 900; }
.app-progress { padding: 18px; color: var(--white); background: var(--blue); border-radius: 7px; }
.app-progress > span, .app-progress > strong { display: block; }
.app-progress > span { color: rgba(255,255,255,.72); font-size: 13px; }
.app-progress > strong { margin: 4px 0 12px; font-size: 24px; }
.app-progress > div { height: 7px; background: rgba(255,255,255,.18); border-radius: 5px; }
.app-progress > div span { display: block; width: 58%; height: 100%; background: var(--gold); border-radius: 5px; }
.mission-row { display: flex; align-items: center; gap: 13px; padding: 14px; margin-top: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; }
.mission-icon { display: grid; flex: 0 0 40px; height: 40px; place-items: center; color: var(--blue); background: var(--gold); border-radius: 50%; font-weight: 900; }
.coral-bg { color: var(--white); background: var(--coral); }
.mission-row strong { display: block; color: var(--plum); font-size: 14px; }
.mission-row p { margin: 1px 0 0; color: rgba(59, 44, 80, 0.6); font-size: 12px; }
.phone-nav { position: absolute; right: 0; bottom: 0; left: 0; display: flex; justify-content: space-around; padding: 18px; color: var(--blue); background: var(--white); border-top: 1px solid var(--line); font-weight: 900; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 26px 0; }
.trust-row span { padding: 9px 12px; color: var(--blue); background: var(--white); border: 1px solid var(--line); border-radius: 6px; font-size: 14px; font-weight: 800; }

.characters { display: grid; grid-template-columns: minmax(420px, 1fr) minmax(0, 1fr); align-items: center; gap: 78px; }
.characters-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; box-shadow: var(--shadow); }
.character-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.character-grid article { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.character-grid strong { color: var(--blue); font-size: 20px; }
.character-grid p { margin: 0; color: rgba(34, 51, 68, 0.72); }

.faq-section { max-width: 900px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 48px 22px 0; color: var(--blue); font-size: 18px; font-weight: 900; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 20px; right: 4px; content: "+"; color: var(--coral); font-size: 26px; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 740px; margin: -6px 0 22px; color: rgba(34, 51, 68, 0.72); }

.signup-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(400px, 520px); align-items: center; gap: 80px; max-width: none; padding-inline: max(32px, calc((100vw - 1240px) / 2)); background: var(--cream); }
.signup-copy { max-width: 590px; }
.signup-copy > p:not(.eyebrow) { color: rgba(34, 51, 68, 0.75); font-size: 18px; }
.signup-form { padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.signup-form > label:first-child, .signup-form legend { color: var(--blue); font-weight: 900; }
.signup-form > label:first-child { display: block; margin-bottom: 8px; }
.signup-form > input { width: 100%; min-height: 52px; padding: 0 14px; color: var(--ink); border: 2px solid var(--line); border-radius: 7px; }
.signup-form > input:focus { border-color: var(--coral); outline: 2px solid rgba(238, 118, 98, 0.16); }
.signup-form fieldset { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 20px 0; border: 0; }
.signup-form legend { width: 100%; margin-bottom: 8px; }
.check-option, .consent { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; }
.check-option input, .consent input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); }
.check-option { color: var(--plum); font-weight: 800; }
.consent { margin-bottom: 20px; color: rgba(34, 51, 68, 0.7); font-size: 13px; }
.signup-form > button { width: 100%; color: var(--blue-deep); background: var(--gold); }
.signup-form > button:disabled { cursor: wait; opacity: .65; }
.form-note { margin: 12px 0 0; color: rgba(34, 51, 68, 0.6); font-size: 13px; }
.form-note.success { color: #287257; font-weight: 800; }
.form-note.error { color: #a13d35; font-weight: 800; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 42px max(32px, calc((100vw - 1240px) / 2)); color: rgba(255, 255, 255, 0.75); background: var(--plum); }
.footer-brand img { width: 130px; filter: brightness(0) invert(1); }
.footer-brand p { margin: 10px 0 0; font-size: 14px; }
.footer-links { display: flex; gap: 22px; color: var(--white); font-weight: 800; }
.copyright { grid-column: 1 / -1; padding-top: 22px; margin: 0; border-top: 1px solid rgba(255,255,255,.14); font-size: 13px; }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: 140px 1fr auto; padding-inline: 22px; }
  .nav-links { gap: 18px; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-panel { padding-inline: 28px; }
  h1 { font-size: 48px; }
  h2 { font-size: 36px; }
  .book-section, .app-section, .characters { gap: 52px; }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .menu-button { display: block; order: 2; }
  .header-actions { order: 3; }
  .nav-links { position: fixed; top: 76px; right: 0; left: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 22px 24px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(24,53,77,.12); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-panel { order: 2; padding: 52px 24px 64px; }
  .hero-media { order: 1; min-height: 56vw; background-position: center 58%; }
  .hero-content { max-width: 680px; margin: 0 auto; }
  .promise-band { grid-template-columns: 1fr; padding-inline: 24px; }
  .promise-band > div { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .promise-band > div:last-child { border-bottom: 0; }
  .book-section, .app-section, .characters, .signup-section, .mission-inner { grid-template-columns: 1fr; }
  .section-shell, .app-section, .faq-section, .signup-section { padding: 76px 24px; }
  .book-cover { width: min(460px, 86vw); margin: 0 auto; }
  .mission-inner { gap: 30px; padding: 60px 24px; }
  .mission-list { grid-template-columns: repeat(2, 1fr); }
  .app-visual { order: 2; }
  .characters-photo { order: 2; }
}

@media (max-width: 560px) {
  .site-header { min-height: 68px; padding: 10px 16px; }
  .brand { width: 112px; }
  .menu-button { width: 42px; height: 42px; }
  .nav-links { top: 68px; }
  .language-switch { gap: 2px; }
  .lang-button { width: 34px; height: 38px; }
  .hero { padding-top: 68px; }
  .hero-media { min-height: 72vw; }
  .hero-panel { padding: 38px 18px 54px; }
  .status-pill { align-items: flex-start; font-size: 12px; }
  h1 { font-size: 39px; overflow-wrap: anywhere; }
  h2 { font-size: 31px; overflow-wrap: anywhere; }
  .hero-copy { font-size: 18px; }
  .hero-actions { display: grid; }
  .button { width: 100%; min-width: 0; }
  .promise-band { padding-inline: 18px; }
  .section-shell, .app-section, .faq-section, .signup-section { padding: 62px 18px; }
  .book-facts > div { padding: 14px 8px; }
  .book-facts strong { font-size: 18px; }
  .book-facts span { font-size: 11px; }
  .mission-inner { padding-inline: 18px; }
  .mission-list { grid-template-columns: 1fr; }
  .phone-shell { width: min(330px, 92vw); height: 620px; }
  .phone-screen { height: 558px; }
  .characters { gap: 34px; }
  .character-grid article { grid-template-columns: 1fr; gap: 4px; }
  .signup-form { padding: 22px; }
  .site-footer { grid-template-columns: 1fr; align-items: start; padding-inline: 20px; }
  .footer-links { flex-wrap: wrap; }
  .copyright { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
