@font-face {
  font-family: "HD Harmony";
  src: url("/assets/fonts/HDHarmony-L.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "HD Harmony";
  src: url("/assets/fonts/HDHarmony-M.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "HD Harmony";
  src: url("/assets/fonts/HDHarmony-B.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --brand: #d6001c;
  --brand-soft: #fdf0f0;
  --ink: #1a1a1a;
  --muted: #6f6f73;
  --line: #e4e4e7;
  --panel: #f5f5f5;
  --page-width: 375px;
}

* { box-sizing: border-box; }

html {
  background: #eceff1;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #eceff1;
  font-family: "HD Harmony", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
.is-hidden { display: none !important; }

.mobile-page {
  width: min(100%, var(--page-width));
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 0 32px rgb(15 23 42 / 8%);
}

.topbar {
  min-height: 52px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
}

.language-picker {
  position: relative;
  flex: 0 0 auto;
}

.breadcrumb {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-toggle {
  width: 68px;
  height: 28px;
  padding: 0 11px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d9d9d9;
  border-radius: 999px;
  color: #787878;
  background: #ffffff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.language-menu {
  position: absolute;
  z-index: 20;
  top: 34px;
  right: 0;
  width: 68px;
  padding: 4px;
  overflow: hidden;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgb(0 0 0 / 12%);
}

.language-menu button {
  width: 100%;
  height: 30px;
  border: 0;
  border-radius: 8px;
  color: #787878;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.language-menu button:hover,
.language-menu button:focus-visible,
.language-menu button[aria-checked="true"] {
  color: #1a1a1a;
  background: #f5f5f5;
  outline: none;
}

.chevron {
  width: 5px;
  height: 5px;
  border-right: 1px solid currentcolor;
  border-bottom: 1px solid currentcolor;
  transform: rotate(45deg) translateY(-2px);
}

.hero {
  padding: 48px 30px 40px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: #d6001c;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: normal;
  white-space: pre-line;
}

.hero-rule {
  width: 60px;
  height: 1px;
  margin: 20px auto;
  display: block;
  background: #d6001c;
}

.hero p {
  margin: 0;
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: normal;
  white-space: pre-line;
}

.section {
  padding: 40px 17px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 30px;
  text-align: center;
}

.section-heading img {
  width: 60px;
  height: 60px;
  display: block;
  margin: 0 auto 20px;
}

.section-heading h2 {
  margin: 0;
  color: #000000;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: normal;
}

.panel {
  padding: 50px 20px;
  border-radius: 20px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: normal;
}

.panel p { margin: 0; white-space: pre-line; }
.panel p + p, .panel .media-frame + p, .panel p + .media-frame { margin-top: 30px; }
.panel--tint { background: var(--brand-soft); }
.panel--neutral { background: var(--panel); }

.section--overview .section-heading { margin-bottom: 20px; }

.panel--overview {
  min-height: 242px;
  display: flex;
  align-items: center;
  color: #000000;
  font-size: 16px;
}

.panel--core,
.panel--features {
  padding-inline: 13px;
}

.panel--core p + .media-frame { margin-top: 14px; }
.panel--core .media-frame + p { margin-top: 30px; }

.panel--features {
  min-height: 460px;
}

.panel--features p + p { margin-top: 20px; }
.panel--features p + .media-frame { margin-top: 30px; }

.panel--benefits {
  min-height: 270px;
}

.media-frame {
  min-height: 188px;
  padding: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d0d0d0;
  border-radius: 18px;
  color: var(--muted);
  background: #ffffff;
  text-align: center;
}

.media-frame img {
  width: 100%;
  height: auto;
  max-height: 300px;
  display: block;
  object-fit: contain;
}

.media-frame--export {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: transparent;
}

.media-frame--export img {
  max-height: none;
}

.media-placeholder {
  padding: 42px 16px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
}

.standalone-media {
  padding: 40px 18px;
  border-top: 1px solid var(--line);
}

.standalone-media img {
  width: 100%;
  height: auto;
  min-height: 207px;
  max-height: 207px;
  display: block;
  object-fit: contain;
}

.video-card {
  border-top: 1px solid var(--line);
  padding: 40px 18px;
}

.video-viewport {
  position: relative;
  overflow: hidden;
  background: #111111;
  width: 338px;
  max-width: 100%;
  height: 207px;
  aspect-ratio: auto;
}

.video-viewport video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 1;
  transition: opacity 180ms ease, transform 180ms ease;
}

.video-play img {
  width: 54px;
  height: 54px;
  display: block;
}

.video-play.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(.92);
}

.video-caption {
  min-height: 36px;
  margin: 0;
  padding: 8px 6px 0;
  border: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
}

.benefit-list {
  margin: 0;
  padding-left: 18px;
}

.benefit-list li + li { margin-top: 14px; }

.footer {
  padding: 54px 0 calc(46px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
}

.footer-logo {
  width: 106px;
  height: 36px;
  display: block;
  object-fit: contain;
}

.error-state { padding: 80px 30px; text-align: center; }

.scroll-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 680ms cubic-bezier(.22, 1, .36, 1),
    transform 680ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (max-width: 340px) {
  .topbar { padding-inline: 20px; }
  .hero { padding-inline: 22px; }
  .section-heading h2 { font-size: 28px; }
  .panel { padding-inline: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .video-play { transition: none; }
}
