:root {
  --bg: #faf6ee;
  --ink: #000;
  --muted: rgba(0, 0, 0, 0.62);
  --yellow: #ffd166;
  --mint: #c6ffc7;
  --pink: #ffc6ff;
  --sky: #a0c4ff;
  --coral: #ffadad;
  --hotpink: #ff90e8;
  --white: #fff;
  --max: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Fredoka", "Pretendard", "Apple SD Gothic Neo", sans-serif;
  font-weight: 500;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  background-image: radial-gradient(#d9d2c5 1.1px, transparent 1.1px);
  background-size: 18px 18px;
}

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

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 4px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
}
.brand img {
  width: 40px;
  height: 40px;
  border: 2.5px solid var(--ink);
  object-fit: cover;
}
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 12px;
}
.nav a.active { text-decoration: underline; text-underline-offset: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 12px 18px;
  font-weight: 600;
  text-decoration: none;
  background: var(--mint);
  cursor: pointer;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn-pink { background: var(--pink); }
.btn-yellow { background: var(--yellow); }
.btn-white { background: var(--white); }

.hero {
  padding: 56px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: start;
}
.hero-grid > * {
  min-width: 0;
}
.badge {
  display: inline-block;
  background: var(--yellow);
  border: 2px solid var(--ink);
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
}
.badge-pink { background: var(--hotpink); }
.badge-mint { background: var(--mint); }
.brand-tag {
  background-color: var(--hotpink);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 8px;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  margin-left: 2px;
}
.step-label {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  padding: 3px 8px;
  font-weight: 500;
  font-size: 0.72rem;
  border-radius: 4px;
}
.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(1.9rem, 4.2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}
.app-store-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}
.app-store-badge img {
  height: 48px;
  width: auto;
  display: block;
}
.hero-card {
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  position: relative;
  /* Hero video has baked-in side bars; square + cover crops them.
     Cap size so the <video> intrinsic dimensions cannot blow out the page
     on wide desktops (which pushed everything below the fold). */
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: min(520px, 48vw);
  max-height: min(520px, 70vh);
  justify-self: end;
}
.hero-card img,
.hero-card video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.section { padding: 48px 0; }
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section .sub {
  color: var(--muted);
  font-weight: 500;
  max-width: 40rem;
  margin-bottom: 28px;
}

.layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.layer {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 20px;
}
.layer strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.02rem;
  font-weight: 600;
}
.layer p { margin: 0; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.layer:nth-child(1) { background: var(--mint); }
.layer:nth-child(2) { background: var(--sky); }
.layer:nth-child(3) { background: var(--pink); }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.cards.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}
.card {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 22px;
}
.card h3 { margin: 0 0 10px; font-size: 1.1rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-weight: 500; }

/* Illustration feature rows (from previous Flutter landing) */
.feature-row {
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
  margin-bottom: 40px;
}
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: stretch;
  min-height: 320px;
}
.feature-grid.reverse { grid-template-columns: 1.15fr 1fr; }
.feature-media {
  border-right: 4px solid var(--ink);
  background: #f3efe6;
  min-height: 260px;
}
.feature-grid.reverse .feature-media {
  border-right: 0;
  border-left: 4px solid var(--ink);
  order: 2;
}
.feature-grid.reverse .feature-copy { order: 1; }
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 260px;
}
.feature-copy {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature-copy h3 {
  margin: 14px 0 12px;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.5;
}

.band {
  border-top: 4px solid var(--ink);
  border-bottom: 4px solid var(--ink);
  background: var(--yellow);
  padding: 40px 0;
}
.band .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.band h2 { margin: 0 0 8px; font-weight: 600; }
.band p { margin: 0; font-weight: 500; max-width: 36rem; }

.prose {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  padding: 28px;
  white-space: pre-wrap;
  font-weight: 500;
  line-height: 1.65;
}
.prose h1 { margin-top: 0; font-weight: 600; }

.site-footer {
  background: var(--ink);
  color: #fff;
  margin-top: 64px;
  padding: 36px 0;
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer a { color: #fff; font-weight: 500; margin-right: 14px; text-decoration: none; }
.site-footer p { margin: 0; opacity: 0.75; font-weight: 500; }

.lang-toggle {
  border: 2px solid var(--ink);
  background: var(--yellow);
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
}

.faq-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 10px;
}
.faq-list details {
  background: var(--white);
  border: 3px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  padding: 14px 18px;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  float: right;
  font-weight: 700;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p {
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 500;
}

.guide {
  max-width: 42rem;
}
.guide h1 {
  margin: 12px 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.2;
}
.guide h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 600;
}
.guide p,
.guide li {
  color: var(--ink);
  font-weight: 500;
  line-height: 1.7;
}
.guide ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}
.guide .lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.guide .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2rem;
}

@media (max-width: 860px) {
  .hero-grid,
  .layers,
  .cards,
  .cards.cards-3,
  .feature-grid,
  .feature-grid.reverse { grid-template-columns: 1fr; }
  .feature-media,
  .feature-grid.reverse .feature-media {
    border-right: 0;
    border-left: 0;
    border-bottom: 4px solid var(--ink);
  }
  .feature-grid.reverse .feature-media { order: 0; }
  .feature-grid.reverse .feature-copy { order: 0; }
  .feature-copy { padding: 28px 22px; }
  .hero { padding-top: 36px; }
  .hero-card {
    max-width: 100%;
    max-height: none;
    justify-self: stretch;
  }
}
