:root {
  --ink: #20243a;
  --paper: #fffdf8;
  --paper-deep: #f4f0e8;
  --red: #ef476f;
  --yellow: #ffd166;
  --green: #06d6a0;
  --blue: #118ab2;
  --violet: #7657e8;
  --white: #fff;
  --muted: #62677d;
  --line: rgba(32, 36, 58, 0.12);
  --shadow: 0 8px 24px rgba(39, 47, 82, 0.08);
  --radius: .8rem;
  --content: 68rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: .22rem solid var(--blue); outline-offset: .25rem; }
.skip-link { position: fixed; top: .5rem; left: .5rem; z-index: 100; padding: .7rem 1rem; background: var(--ink); color: white; border-radius: .7rem; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.shell { width: min(calc(100% - 2rem), var(--content)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255, 253, 248, .92); backdrop-filter: blur(18px); }
.nav-row { min-height: 4.8rem; display: flex; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 900; letter-spacing: -.03em; white-space: nowrap; }
.brand img { width: 2.65rem; height: 2.65rem; border-radius: .8rem; box-shadow: 0 .25rem .8rem rgba(32,36,58,.16); }
.site-nav { display: flex; align-items: center; justify-content: center; gap: .2rem; margin-left: auto; }
.site-nav a { padding: .6rem .75rem; border-radius: 999px; color: var(--muted); font-size: .92rem; font-weight: 800; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); background: var(--paper-deep); }
.guide-menu { position: relative; }
.guide-menu summary { display: flex; align-items: center; gap: .35rem; min-height: 2.8rem; padding: .6rem .75rem; border-radius: 999px; color: var(--muted); cursor: pointer; font-size: .92rem; font-weight: 800; list-style: none; white-space: nowrap; }
.guide-menu summary::-webkit-details-marker { display: none; }
.guide-menu summary::after { content: "⌄"; font-size: 1.1rem; line-height: 1; }
.guide-menu summary:hover, .guide-menu summary.active, .guide-menu[open] summary { color: var(--ink); background: var(--paper-deep); }
.guide-menu-panel { position: absolute; right: 0; top: calc(100% + .6rem); min-width: 13rem; max-width: min(18rem, calc(100vw - 2rem)); display: grid; gap: .25rem; padding: .6rem; background: white; border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.site-nav .guide-menu-panel a { display: block; border-radius: .55rem; white-space: normal; overflow-wrap: anywhere; }
.lang-menu { position: relative; }
.lang-menu summary { cursor: pointer; list-style: none; padding: .58rem .8rem; border: 1px solid var(--line); border-radius: 999px; font-size: .88rem; font-weight: 900; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-grid { position: absolute; right: 0; top: calc(100% + .6rem); min-width: 12rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .25rem; padding: .6rem; background: white; border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.lang-grid a { padding: .55rem; text-align: center; border-radius: .55rem; text-decoration: none; font-weight: 800; }
.lang-grid a:hover, .lang-grid a[aria-current="true"] { background: var(--paper-deep); color: var(--red); }
.mobile-menu { position: relative; display: none; }
.mobile-menu summary { display: grid; width: 2.65rem; height: 2.65rem; place-items: center; cursor: pointer; list-style: none; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 1.25rem; line-height: 1; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu[open] summary { color: white; background: var(--ink); }
.mobile-menu-panel { position: absolute; right: 0; top: calc(100% + .65rem); width: min(18rem, calc(100vw - 1.25rem)); max-height: min(75vh, 40rem); overflow-y: auto; display: grid; gap: .25rem; padding: .7rem; background: white; border: 1px solid var(--line); border-radius: 1rem; box-shadow: var(--shadow); }
.mobile-menu-group { display: grid; gap: .25rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.mobile-menu-label { padding: .25rem .8rem; color: var(--muted); font-size: .8rem; font-weight: 900; }
.mobile-menu-panel a { min-height: 2.8rem; display: flex; align-items: center; padding: .65rem .8rem; border-radius: .7rem; color: var(--ink); font-weight: 900; line-height: 1.25; text-decoration: none; overflow-wrap: anywhere; hyphens: auto; }
.mobile-menu-panel a:hover, .mobile-menu-panel a[aria-current="page"] { background: var(--paper-deep); color: var(--red); }

.hero { padding: clamp(2rem, 5vw, 4rem) 0 2.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 1.1fr); gap: clamp(2rem, 4vw, 3rem); align-items: center; }
.eyebrow { margin: 0 0 .75rem; color: var(--muted); font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
h1, h2, h3 { margin-top: 0; line-height: 1.2; letter-spacing: -.03em; }
h1, h2, h3 { overflow-wrap: normal; hyphens: none; word-break: normal; }
:lang(ko) h1, :lang(ko) h2, :lang(ko) h3 { word-break: keep-all; overflow-wrap: break-word; }
.button, .site-nav a, .footer-links a, .trust-list li { overflow-wrap: anywhere; hyphens: auto; }
h1 { max-width: 20ch; margin-bottom: 1rem; font-size: clamp(2rem, 3vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2vw, 1.9rem); }
h3 { font-size: 1.3rem; }
.accent-text { color: var(--red); }
.lead { max-width: 38rem; margin: 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.hero-description { max-width: 42ch; margin: 1rem 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 1.25rem; margin-top: 1.6rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .7rem 1.1rem; border: 1px solid transparent; border-radius: .5rem; background: var(--ink); color: white; font-weight: 600; text-decoration: none; }
.button:hover { background: #343a55; }
.text-link { display: inline-flex; align-items: center; min-height: 3rem; color: var(--ink); font-weight: 600; text-underline-offset: .2em; overflow-wrap: anywhere; }
.app-store-cta { display: grid; justify-items: start; gap: .35rem; min-width: 0; max-width: 100%; }
.app-store-badge { display: inline-flex; align-items: center; min-height: 3.2rem; }
.app-store-badge img { width: auto; height: 3.2rem; }
.app-store-platform-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.app-store-platform-links a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--muted); font-size: .9rem; font-weight: 500; text-underline-offset: .2em; }
.app-store-legal { grid-column: 1 / -1; max-width: 85ch; color: #adb4ce; font-size: .75rem; line-height: 1.6; }
.availability-note { margin: 0; color: var(--muted); font-size: .85rem; overflow-wrap: anywhere; }
.button.secondary { color: var(--ink); background: white; border-color: var(--line); box-shadow: none; }
.hero-art { width: 100%; max-width: 42rem; }
.hero-shot { display: block; width: 100%; height: auto; border-radius: var(--radius); }

.trust-strip { padding: 0 0 2rem; }
.trust-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; list-style: none; margin-block: 0; margin-inline: auto; padding: 0; }
.trust-list li { display: flex; align-items: center; justify-content: center; gap: .65rem; min-height: 3rem; padding: .65rem .5rem; border-block: 1px solid var(--line); font-weight: 600; text-align: center; }
.trust-list li::before { content: "✓"; color: #28705d; font-weight: 700; }

.section { padding: clamp(2rem, 5vw, 4rem) 0; }
.section.tint { background: var(--paper-deep); }
.section.sunny { background: var(--paper-deep); }
.section-heading { max-width: 48rem; margin-bottom: 2.2rem; }
.section-heading p { color: var(--muted); font-size: 1.1rem; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { position: relative; min-width: 0; padding: 0; overflow-wrap: break-word; }
.card h2 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.25; letter-spacing: -.025em; }
.card p { margin: 0; color: var(--muted); }
.copy-stack { display: grid; gap: 1rem; }
.copy-block { min-width: 0; max-width: 68ch; padding: 0; overflow-wrap: break-word; }
.copy-block h2, .copy-block h3 { margin-bottom: .55rem; }
.copy-block h2 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); line-height: 1.25; letter-spacing: -.025em; }
.copy-block p { margin: 0; color: var(--muted); white-space: pre-line; }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: stretch; }
.gallery figure { display: flex; flex-direction: column; margin: 0; }
.gallery img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; background: #11999c; border-radius: 1rem; box-shadow: var(--shadow); }
.gallery figcaption { margin-top: auto; padding: .65rem .65rem .3rem; color: var(--muted); font-size: .9rem; font-weight: 800; }

.page-hero { padding: clamp(2rem, 5vw, 4rem) 0 2rem; }
.page-hero .shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, .58fr); gap: 2.5rem; align-items: center; }
.page-hero .shell > *, .hero-grid > * { min-width: 0; }
.page-hero h1 { font-size: clamp(2rem, 2.8vw, 2.75rem); }
.page-hero img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.content-main { padding: 0 0 3rem; }
.content-page .content-main > .shell { max-width: 48rem; }
.content-page .page-hero .shell { grid-template-columns: 1fr; }
.features-page .card-grid, .parents-page .card-grid { grid-template-columns: 1fr; gap: 1.25rem; }
.features-page .card, .parents-page .card { max-width: 68ch; }
.level-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; align-items: start; }
.level-examples > .content-block, .level-examples > .content-gallery, .level-examples > .content-video, .level-examples > .content-cta { grid-column: 1 / -1; }
.level-examples > * { min-width: 0; margin: 0; }
.article { max-width: 48rem; margin-inline: auto; }
.article .copy-block { margin-bottom: 1rem; }
.privacy-page .page-hero { padding: clamp(2rem, 4vw, 3.5rem) 0 1rem; }
.privacy-page .page-hero .shell { grid-template-columns: minmax(0, 1fr) 9rem; gap: 2rem; }
.privacy-page .page-hero h1 { font-size: clamp(1.7rem, 2.8vw, 2.5rem); overflow-wrap: anywhere; }
.privacy-page .page-hero img { aspect-ratio: 1; }
.privacy-page .content-main { padding-top: 1rem; }
.policy-updated { margin: 0 0 .65rem; color: var(--muted); font-size: .9rem; font-weight: 700; }
.policy-intro { margin: 0 0 1.5rem; font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.6; overflow-wrap: anywhere; }
.contact-panel { max-width: 48rem; margin-inline: auto; padding: 1.5rem; text-align: center; }
.email-link { display: inline-block; margin: 1rem 0; color: var(--blue); font-size: clamp(1.15rem, 3vw, 1.65rem); font-weight: 1000; overflow-wrap: anywhere; }

/* edo/infrastructure#225: additional content blocks, appended after a
   page's existing fixed sections. .content-block/.content-image/.content-cta
   only add spacing between stacked blocks; the Gallery block reuses .gallery
   and .gallery img above unchanged, per the layout contract. */
.content-block, .content-image, .content-gallery, .content-video, .content-cta { margin-top: 2rem; }
.content-image img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.content-image figcaption { margin-top: .65rem; color: var(--muted); font-size: .9rem; font-weight: 800; }
/* Pipe tables and same-site links in Text blocks (#234). A wide table scrolls
   sideways inside its own frame instead of squeezing cells or widening the page. */
.content-block a { color: var(--blue); font-weight: 800; }
.content-table { overflow-x: auto; margin: 1rem 0; border-radius: 1rem; background: var(--white); box-shadow: var(--shadow); }
.content-table table { width: 100%; min-width: 32rem; border-collapse: collapse; }
.content-table th, .content-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.content-table thead th { background: var(--paper-deep); font-weight: 1000; }
.content-table tbody th { font-weight: 800; }
.content-table tbody tr:last-child > * { border-bottom: 0; }

.site-footer { padding: 3.5rem 0; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: .8rem; font-size: 1.15rem; font-weight: 1000; }
.footer-brand img { width: 3rem; border-radius: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
.footer-links a { color: #dfe3f4; font-weight: 800; text-decoration: none; }
.footer-links a:hover { color: var(--yellow); }
.footer-note { grid-column: 1 / -1; margin: 0; color: #adb4ce; font-size: .9rem; }

@media (max-width: 900px) {
  .nav-row { padding-block: .65rem; gap: .65rem; }
  .site-nav { display: none; }
  .lang-menu { margin-left: auto; }
  .mobile-menu { display: block; }
  .hero-grid, .page-hero .shell { grid-template-columns: 1fr; }
  .hero-copy { text-align: start; }
  .hero-art { width: min(44rem, 100%); margin-inline: auto; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .shell { width: min(calc(100% - 1.25rem), var(--content)); }
  .brand span { font-size: .96rem; }
  .brand { min-width: 0; }
  .brand span { overflow: hidden; text-overflow: ellipsis; }
  .trust-list, .card-grid { grid-template-columns: 1fr; }
  .trust-list li { justify-content: center; }
  .gallery { grid-template-columns: 1fr; }
  .level-examples { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-note { grid-column: auto; }
  .privacy-page .page-hero .shell { grid-template-columns: 1fr; }
  .privacy-page .page-hero img { display: none; }
}

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

/* Home animation and balanced parent sections */
.rocket-section { background: var(--paper); }
.rocket-copy { display: block; max-width: 50rem; margin: 0 auto 1.6rem; text-align: center; }
.rocket-copy .eyebrow { margin: 0 0 .6rem; color: #a63f5b; font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.rocket-copy h2 { margin: 0; }
.rocket-copy > p:last-child { margin: .5rem 0 0; color: var(--muted); }
.scene-card { max-width: 66rem; margin: auto; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #f5ead6; box-shadow: var(--shadow); }
#scene { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 19rem; overflow: hidden; }
#scene canvas { display: block; width: 100%; height: 100%; }
.rocket-section .fallback { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(5rem,20vw,13rem); background: radial-gradient(circle,#e0f2ff,#fff4de); }
.scene-ui { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-top: 1px solid var(--line); background: var(--paper); }
#scene-status { min-height: 1.5rem; color: var(--muted); font-size: .88rem; font-weight: 800; }
.scene-actions { display: flex; flex-shrink: 0; gap: .5rem; }
.scene-actions button { min-height: 2.4rem; padding: .35rem .9rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: .84rem; font-weight: 900; cursor: pointer; }
.scene-actions button:hover { background: #ffebf1; border-color: var(--red); }
.scene-actions button:focus-visible { outline: .22rem solid var(--blue); outline-offset: .15rem; }
.home-promise .card-grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
.home-promise .card { max-width: none; }
@media (min-width: 901px) {
  .home-promise .shell { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); column-gap: clamp(2rem, 6vw, 6rem); row-gap: 1.5rem; align-items: center; }
  .home-promise .section-heading { grid-column: 1; grid-row: 1; margin: 0; }
  .home-promise .section-heading h2 { max-width: 23ch; }
  .home-promise .card-grid { grid-column: 2; grid-row: 1 / span 2; }
  .home-promise .actions { grid-column: 1; grid-row: 2; margin: 0; }
}
@media (max-width: 640px) { #scene { aspect-ratio: 4 / 5; min-height: 25rem; } .scene-ui { align-items: flex-start; } }
@media (max-width: 640px) and (orientation: landscape) { #scene { aspect-ratio: 16 / 9; min-height: 0; } }
