:root {
  --ink: #0b1f3a;
  --ink-soft: #39506f;
  --muted: #616c7d;
  --line: #d8e0ea;
  --paper: #ffffff;
  --wash: #f4f7fb;
  --blue: #2563eb;
  --blue-deep: #1744ad;
  --green: #16a34a;
  --violet: #7c3aed;
  --amber: #f59e0b;
  --orange: #f97316;
  --shadow: 0 18px 50px rgba(11, 31, 58, 0.12);
  --max: 1180px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    ui-sans-serif, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

/* Korean typography.
   Hangul has no inter-word break opportunities in the default algorithm, so a
   line could break inside a word ("스튜디오" rendered as "스튜디" + "오").
   keep-all restricts breaks to the spaces between eojeol; break-word stays as
   the escape hatch so long emails/URLs still wrap instead of overflowing.
   Korean also needs more leading than Latin at the same size. */
html[lang="ko"] body {
  line-height: 1.68;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* Both blocks below are min-width scoped on purpose: they are more specific
   than the breakpoint overrides further down, so leaving them unscoped would
   pin the narrow-screen sizes to these desktop values.

   ch is measured from the "0" glyph, which is about half the width of a Hangul
   syllable, so a Latin-tuned ch limit squeezes Korean headings into far too few
   characters per line. em tracks the actual glyph width. */
@media (min-width: 701px) {
  html[lang="ko"] .hero h1 {
    max-width: 12em;
  }
}

/* Hangul is full-width, so a 56px Korean heading carries far more visual weight
   than the Latin one it was sized for and only fits ~8 characters in the narrow
   heading columns - enough to strand a single word on its own line. */
@media (min-width: 981px) {
  html[lang="ko"] .section-heading h2,
  html[lang="ko"] .workflow-copy h2,
  html[lang="ko"] .pricing-copy h2,
  html[lang="ko"] .included-layout h2,
  html[lang="ko"] .disclosure h2,
  html[lang="ko"] .final-cta h2,
  html[lang="ko"] .subpage-hero h1,
  html[lang="ko"] .guide-section h2 {
    font-size: 48px;
    line-height: 1.16;
  }
}

img {
  display: block;
  max-width: 100%;
  /* width/height attributes exist on every image so the browser can reserve
     space (no CLS). height:auto keeps them from fixing the rendered height,
     which would otherwise cancel aspect-ratio and the natural ratio. */
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.visually-hidden {
  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: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--ink);
  color: white;
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(216, 224, 234, 0.7);
  backdrop-filter: blur(16px);
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 30px rgba(11, 31, 58, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 8px;
  font-size: 18px;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  padding: 8px 0;
}

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

.site-nav a[aria-current="page"] {
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--blue-deep);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.lang-switch a {
  padding: 6px 9px;
  border-radius: 6px;
  color: var(--ink-soft);
}

.lang-switch a[aria-current="true"] {
  color: white;
  background: var(--blue);
}

.lang-switch a:not([aria-current="true"]):hover,
.lang-switch a:not([aria-current="true"]):focus-visible {
  color: var(--blue);
}

.button.is-disabled,
.nav-cta.is-disabled,
.mobile-cta.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.recommend-callout {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-left: 4px solid var(--blue);
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.06);
}

.recommend-callout p {
  margin: 0;
}

.recommend-callout strong {
  color: var(--blue-deep);
}

.recommend-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: background-color 160ms ease;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  content: "";
  background: currentColor;
  border-radius: 2px;
  transition: transform 180ms ease;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.site-header.nav-open .nav-toggle-bars {
  background: transparent;
}

.site-header.nav-open .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.nav-open .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-cta {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 9;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  color: white;
  background: var(--blue);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.34);
  transform: translateY(140%);
  opacity: 0;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.mobile-cta strong {
  font-size: 16px;
  font-weight: 900;
}

.mobile-cta span:last-child {
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.mobile-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(88svh, 920px);
  padding: 124px clamp(22px, 6vw, 76px) 76px;
  overflow: hidden;
  background: #f8fbff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 1;
  filter: saturate(1.04) contrast(1.02);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(255, 255, 255, 0.58) 46%,
    rgba(255, 255, 255, 0.9) 100%
  );
}

.hero-content {
  width: min(780px, 100%);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto;
  max-width: 18ch;
  font-size: clamp(2.75rem, 6.2vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.hero-lede {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--ink-soft);
  font-size: 21px;
}

.hero-actions,
.final-cta-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.platform-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.price-panel .platform-downloads .button {
  flex: 1 1 180px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
}

.button-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--blue-deep);
}

.button-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}

.hero-actions {
  margin-top: 34px;
}

.launch-note {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(720px, 100%);
  margin: 34px auto 0;
}

.hero-proof div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(216, 224, 234, 0.9);
  border-radius: 8px;
}

.hero-proof dt {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
}

.hero-proof dd {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section {
  padding: clamp(70px, 9vw, 112px) clamp(20px, 5vw, 56px);
}

section[id],
#availability {
  scroll-margin-top: 96px;
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.section-heading {
  max-width: 760px;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.section-heading h2,
.workflow-copy h2,
.pricing-copy h2,
.included-layout h2,
.disclosure h2,
.final-cta h2,
.subpage-hero h1,
.guide-section h2 {
  margin: 0;
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.workflow-copy p,
.pricing-copy p,
.disclosure-copy p,
.subpage-hero p {
  color: var(--ink-soft);
  font-size: 18px;
}

.section-heading .section-note {
  max-width: 640px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.product-video {
  background: var(--wash);
}

.product-video-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.product-video-heading p:not(.eyebrow) {
  max-width: 620px;
  margin: 18px auto 0;
}

.video-shell {
  width: min(960px, 100%);
  margin: 0 auto;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #050b14;
  border: 1px solid rgba(11, 31, 58, 0.18);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.video-poster,
.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* The poster image is served by i.ytimg.com, which ad blockers and some
   corporate networks drop. The gradient makes that failure read as a
   deliberate dark brand panel behind the play label rather than a broken box. */
.video-poster {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(37, 99, 235, 0.34), transparent 62%),
    linear-gradient(155deg, #0b1f3a, #050b14);
}

.video-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.video-poster img.is-unavailable {
  display: none;
}

.video-play-label {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: white;
  background: rgba(11, 31, 58, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(5, 11, 20, 0.3);
  font-size: 15px;
  font-weight: 850;
}

@media (hover: hover) {
  .video-poster:hover img {
    transform: scale(1.015);
  }

  .video-poster:hover .video-play-label {
    background: var(--blue-deep);
  }
}

.video-fallback {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.video-fallback a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.video-fallback a:hover,
.video-fallback a:focus-visible {
  color: var(--blue-deep);
}

.benefits {
  background: var(--paper);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.benefit-card,
.feature-card,
.price-panel,
.fit-card,
.included-card,
.depth-card,
.comparison-card,
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.benefit-card,
.feature-card,
.fit-card,
.included-card,
.depth-card,
.comparison-card,
.requirement-card,
.cost-card,
.support-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

@media (hover: hover) {
  .benefit-card:hover,
  .feature-card:hover,
  .fit-card:hover,
  .included-card:hover,
  .depth-card:hover,
  .comparison-card:hover,
  .requirement-card:hover,
  .cost-card:hover,
  .support-card:hover {
    transform: translateY(-4px);
    border-color: #c4d0df;
    box-shadow: 0 18px 40px rgba(11, 31, 58, 0.1);
  }
}

.benefit-card {
  padding: 26px;
}

.benefit-card:nth-child(1) {
  border-top: 4px solid var(--green);
}

.benefit-card:nth-child(2) {
  border-top: 4px solid var(--amber);
}

.benefit-card:nth-child(3) {
  border-top: 4px solid var(--violet);
}

.benefit-card:nth-child(4) {
  border-top: 4px solid var(--blue);
}

.benefit-card h3,
.fit-card h3,
.included-card h3,
.depth-card h3,
.comparison-card h3,
.feature-copy h3,
.workflow-steps h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.benefit-card p,
.fit-card li,
.included-card li,
.depth-card p,
.comparison-card p,
.comparison-card dd,
.feature-copy p,
.workflow-steps p,
.price-list,
.faq-answer p,
.site-footer p {
  color: var(--ink-soft);
}

.deal-fit {
  background: var(--wash);
}

.fit-layout,
.included-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.fit-layout .section-heading {
  margin-bottom: 0;
}

.fit-grid,
.included-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.fit-card,
.included-card {
  padding: 26px;
}

.fit-card-positive {
  border-top: 4px solid var(--green);
}

.fit-card-caution,
.included-card-muted {
  border-top: 4px solid var(--amber);
}

.fit-card ul,
.included-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.fit-card li,
.included-card li {
  padding-left: 2px;
}

.feature-showcase,
.studio-depth,
.workflow,
.api-costs,
.support,
.faq {
  background: var(--wash);
}

.mode-comparison {
  background: #ffffff;
}

.persona-spotlight {
  background:
    radial-gradient(1100px 420px at 85% -10%, rgba(37, 99, 235, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(37, 99, 235, 0.06), rgba(37, 99, 235, 0.02));
  border-top: 1px solid rgba(37, 99, 235, 0.16);
  border-bottom: 1px solid rgba(37, 99, 235, 0.16);
}

.persona-spotlight .eyebrow {
  color: var(--blue-deep);
}

.mode-spectrum {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 26px;
  padding: 26px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(22, 163, 74, 0.08), rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.08)),
    var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.spectrum-track {
  position: absolute;
  top: 48px;
  right: 13%;
  left: 13%;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--violet));
  border-radius: 999px;
}

.spectrum-point {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.spectrum-point span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: white;
  border: 4px solid var(--blue);
  border-radius: 50%;
  box-shadow: 0 10px 24px rgba(11, 31, 58, 0.12);
}

.spectrum-point span::after {
  width: 14px;
  height: 14px;
  content: "";
  background: currentColor;
  border-radius: 50%;
}

.spectrum-point-manual {
  color: var(--green);
}

.spectrum-point-guided {
  color: var(--blue);
}

.spectrum-point-auto {
  color: var(--violet);
}

.spectrum-point-manual span {
  border-color: var(--green);
}

.spectrum-point-guided span {
  border-color: var(--blue);
}

.spectrum-point-auto span {
  border-color: var(--violet);
}

.spectrum-point strong {
  color: var(--ink);
  font-size: 16px;
}

.spectrum-point small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.comparison-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 26px;
  border-top-width: 4px;
}

.comparison-card-manual {
  border-top-color: var(--green);
}

.comparison-card-guided {
  border-top-color: var(--blue);
}

.comparison-card-auto {
  border-top-color: var(--violet);
}

.comparison-level {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.comparison-card > p:not(.comparison-level) {
  margin: 14px 0 0;
}

.comparison-meter {
  height: 10px;
  margin-top: 16px;
  overflow: hidden;
  background: #e8eef6;
  border-radius: 999px;
}

.comparison-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--blue));
  border-radius: inherit;
}

.meter-high {
  width: 88%;
}

.meter-medium {
  width: 56%;
}

.meter-low {
  width: 26%;
}

.comparison-card-guided .comparison-meter span {
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.comparison-card-auto .comparison-meter span {
  background: linear-gradient(90deg, var(--violet), var(--amber));
}

.comparison-card dl {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}

.comparison-card dl div {
  padding: 14px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-card dt {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.comparison-card dd {
  margin: 5px 0 0;
  font-size: 14px;
}

.studio-depth {
  background:
    linear-gradient(180deg, #ffffff 0%, var(--wash) 100%);
}

.depth-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.depth-card {
  padding: 26px;
  min-height: 100%;
}

.depth-card h3 {
  font-size: 21px;
}

.depth-card p {
  margin-bottom: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.feature-card {
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(11, 31, 58, 0.06);
}

.feature-card-large {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
}

.feature-card-center {
  /* lone card on the last grid row: span the row and center at card width */
  grid-column: 1 / -1;
  width: calc(50% - 11px);
  margin: 0 auto;
}

.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  padding: 12px;
  object-fit: contain;
  object-position: top center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0)),
    #eef3f8;
  border-bottom: 1px solid var(--line);
}

.feature-card-large img {
  height: 100%;
  min-height: 420px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}

.feature-copy {
  padding: 26px;
}

.feature-kicker {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.feature-copy p:last-child {
  margin-bottom: 0;
}

.workflow-layout,
.pricing-layout,
.disclosure-layout,
.redeem-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}

.workflow-copy {
  position: sticky;
  top: 110px;
}

.workflow-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-steps li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow-steps span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 8px;
  font-weight: 900;
}

.workflow-steps li:nth-child(2) span {
  background: var(--blue);
}

.workflow-steps li:nth-child(3) span {
  background: var(--orange);
}

.workflow-steps li:nth-child(4) span {
  background: var(--green);
}

.workflow-steps p {
  margin: 8px 0 0;
}

.requirements {
  background: #ffffff;
}

.requirements-layout {
  display: grid;
  gap: 28px;
}

.requirement-grid,
.cost-grid,
.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* 4 cost cards in a 3-up grid left the fourth orphaned on its own row. A single
   row of 4 still leaves ~230px of text per card. */
.cost-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* 5 support cards across 1180px gave each card ~170px of text width: headings
   broke over three lines and the support email split mid-address. 3 columns
   (3 + 2) keeps every card readable. */
.support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.requirement-card,
.cost-card,
.support-card {
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.requirement-card h3,
.cost-card h3,
.support-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.requirement-card p,
.cost-card p,
.support-card p {
  color: var(--ink-soft);
}

.cost-card a {
  display: inline-flex;
  margin-top: 6px;
  color: var(--blue);
  font-weight: 850;
}

.redeem {
  background: #ffffff;
}

.redeem-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  color: var(--ink-soft);
  counter-reset: redeem;
  list-style: none;
}

.redeem-steps li {
  position: relative;
  min-height: 54px;
  padding: 16px 18px 16px 64px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.redeem-steps li::before {
  position: absolute;
  top: 14px;
  left: 16px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: var(--blue);
  border-radius: 8px;
  counter-increment: redeem;
  content: counter(redeem);
  font-size: 13px;
  font-weight: 900;
}

.section-link-row {
  margin-top: 24px;
}

.text-link {
  display: inline-flex;
  color: var(--blue);
  font-weight: 850;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--blue-deep);
}

.subpage-hero {
  padding: 126px clamp(20px, 5vw, 56px) 72px;
  background: var(--wash);
}

.subpage-hero-layout {
  display: grid;
  /* text-led pages: give the copy at least as much room as the screenshot so
     the h1 does not break into narrow four-line stacks */
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.subpage-hero h1 {
  max-width: 760px;
}

.subpage-hero img {
  width: 100%;
  /* portrait screenshots (e.g. settings.png) would otherwise tower over the
     text column and unbalance the hero */
  max-height: 460px;
  padding: 10px;
  object-fit: contain;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0)),
    #eef3f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-guide {
  background: #ffffff;
}

.guide-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.guide-nav {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 8px;
  padding: 14px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-nav a {
  padding: 10px 12px;
  color: var(--ink-soft);
  border-radius: 7px;
  font-weight: 800;
}

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

.guide-content {
  display: grid;
  /* explicit shrinkable track so wide children (min-width tables) cannot
     stretch the page; their wrapper scrolls instead */
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  min-width: 0;
}

.guide-section {
  min-width: 0;
}

.guide-section {
  padding: clamp(24px, 4vw, 36px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-section h2 {
  font-size: 34px;
}

.guide-section h3 {
  margin: 0;
  font-size: 20px;
}

.guide-section p,
.guide-section li {
  color: var(--ink-soft);
}

.guide-section a {
  color: var(--blue);
  font-weight: 850;
}

.guide-section ol,
.guide-section ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.mode-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.mode-guide-list article {
  padding: 18px;
  background: var(--wash);
  border-radius: 8px;
}

.mode-guide-list p {
  margin-bottom: 0;
}

.cost-table-wrap,
.spec-table-wrap {
  width: 100%;
  margin-top: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cost-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

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

.cost-table th {
  color: var(--ink);
  background: var(--wash);
  font-size: 14px;
}

.cost-table tr:last-child td {
  border-bottom: 0;
}

/* narrower than the 760px cost tables since the label column holds one short
   word; below ~560px it still scrolls inside .spec-table-wrap the same way */
.spec-table {
  min-width: 560px;
}

.spec-table-caption {
  padding: 14px 16px 0;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 850;
  text-align: left;
}

.spec-table tbody th {
  width: 22%;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  text-align: left;
  vertical-align: top;
}

.spec-table tbody tr:last-child th {
  border-bottom: 0;
}

.spec-note {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ── 무료 Basic 플랜과 Pro 플랜 비교 ─────────────────────────────────── */
.plan-tiers {
  background: var(--wash);
}

.plan-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.plan-tier-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.plan-tier-free {
  border-top: 4px solid var(--green);
}

.plan-tier-pro {
  border-top: 4px solid var(--blue);
  box-shadow: var(--shadow);
}

.plan-tier-badge {
  align-self: flex-start;
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.plan-tier-free .plan-tier-badge {
  color: var(--green);
  background: rgba(22, 163, 74, 0.1);
}

.plan-tier-pro .plan-tier-badge {
  color: var(--blue-deep);
  background: rgba(37, 99, 235, 0.1);
}

.plan-tier-card h3 {
  margin: 16px 0 6px;
  font-size: 24px;
  font-weight: 900;
}

.plan-tier-price {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
}

.plan-tier-price small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.plan-tier-lede {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.plan-tier-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.plan-tier-list li {
  padding-left: 2px;
}

.plan-tier-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.plan-tier-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.plan-table-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.plan-table td strong {
  color: var(--blue-deep);
}

.pricing {
  background: #ffffff;
}

.included {
  background: #ffffff;
}

.included-layout > div:first-child p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: 18px;
}

.included-card {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(244, 247, 251, 0.62), rgba(255, 255, 255, 0)),
    var(--paper);
}

.launch-status {
  margin-top: 28px;
  padding: 22px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.launch-status p {
  margin: 0;
}

.launch-status-label {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-status-label + p {
  margin-top: 8px;
}

.launch-status-list {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.launch-status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.launch-status-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.launch-status-list strong {
  color: var(--ink);
  font-size: 14px;
  text-align: right;
}

.price-panel {
  padding: clamp(28px, 5vw, 42px);
  box-shadow: var(--shadow);
}

.price-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.price {
  margin: 12px 0 0;
  font-size: 108px;
  line-height: 0.95;
  font-weight: 950;
}

.price-note {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 850;
}

.price-list {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.price-list li {
  position: relative;
  padding-left: 28px;
}

.price-list li::before {
  position: absolute;
  top: 0.6em;
  left: 0;
  width: 9px;
  height: 9px;
  content: "";
  background: var(--green);
  border-radius: 50%;
}

.deal-terms {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
}

.deal-terms div {
  padding: 14px 16px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.deal-terms dt {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.deal-terms dd {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.price-button {
  width: 100%;
}

.disclosure {
  color: white;
  background: var(--ink);
}

.disclosure .eyebrow,
.disclosure-copy p {
  color: #d9e6ff;
}

.disclosure h2 {
  color: white;
}

.disclosure-copy {
  display: grid;
  gap: 16px;
}

.disclosure-copy p {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(217, 230, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}

.faq-layout .section-heading {
  position: sticky;
  top: 110px;
  margin-bottom: 0;
}

.faq-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.faq-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  color: var(--ink-soft);
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}

.faq-chip:hover,
.faq-chip:focus-visible {
  color: var(--blue);
  border-color: var(--blue);
}

.faq-chip[aria-pressed="true"] {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.faq-item[hidden] {
  display: none;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-question {
  display: flex;
  width: 100%;
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 850;
  text-align: left;
}

.faq-question span {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.faq-question span::before,
.faq-question span::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
  content: "";
  background: var(--blue);
  border-radius: 2px;
}

.faq-question span::after {
  transform: rotate(90deg);
  transition: transform 160ms ease;
}

.faq-question[aria-expanded="true"] span::after {
  transform: rotate(0deg);
}

.faq-answer {
  padding: 0 20px 20px;
}

.faq-answer p {
  margin: 0;
}

.final-cta {
  background: #ffffff;
}

.final-cta-layout {
  justify-content: space-between;
  gap: 26px;
  padding: clamp(28px, 5vw, 48px) 0;
}

.final-cta h2 {
  max-width: 820px;
}

.site-footer {
  padding: 28px clamp(20px, 5vw, 56px);
  background: #08172a;
}

.footer-inner {
  display: flex;
  width: min(var(--max), 100%);
  margin: 0 auto;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.site-footer p {
  margin: 0;
  color: #b6c7df;
  font-size: 14px;
}

.site-footer p:first-child {
  color: white;
  font-weight: 850;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  /* 11 links always wrap onto a second row here; centring left that row
     floating under the middle of the first one. Start-aligned rows read as a
     deliberate two-line list. */
  justify-content: flex-start;
  gap: 14px;
  color: #d9e6ff;
  font-size: 14px;
  font-weight: 750;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: white;
}

.mail-link {
  color: var(--blue);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.mail-link:hover,
.mail-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
  }

  .lang-switch {
    justify-self: start;
    width: fit-content;
  }

  section[id],
  #availability {
    scroll-margin-top: 138px;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    padding-right: 24px;
    scrollbar-width: none;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, #000 86%, transparent);
    mask-image: linear-gradient(to right, #000 86%, transparent);
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .hero {
    min-height: min(86svh, 820px);
    padding-top: 154px;
  }

  .subpage-hero {
    padding-top: 154px;
  }

  .hero-lede {
    font-size: 19px;
  }

  .section-heading h2,
  .workflow-copy h2,
  .pricing-copy h2,
  .included-layout h2,
  .disclosure h2,
  .final-cta h2,
  .subpage-hero h1 {
    font-size: 44px;
  }

  .product-video-heading h2 {
    font-size: 40px;
  }

  .price {
    font-size: 88px;
  }

  .hero::after {
    background: rgba(255, 255, 255, 0.95);
  }

  .hero-media img {
    opacity: 0.28;
    object-position: center;
  }

  .benefit-grid,
  .requirement-grid,
  .cost-grid,
  .support-grid,
  .feature-grid,
  .fit-layout,
  .fit-grid,
  .mode-spectrum,
  .depth-grid,
  .comparison-grid,
  .included-layout,
  .included-grid,
  .plan-tier-grid,
  .feature-card-large,
  .workflow-layout,
  .pricing-layout,
  .disclosure-layout,
  .redeem-layout,
  .faq-layout,
  .subpage-hero-layout,
  .guide-grid,
  .mode-guide-list {
    /* minmax(0, 1fr) so wide children (e.g. min-width tables) scroll inside
       their own wrapper instead of stretching the whole page sideways */
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-card-large img {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-card-center {
    width: 100%;
  }

  .workflow-copy,
  .faq-layout .section-heading,
  .guide-nav {
    position: static;
  }

  .guide-nav {
    /* stacked one-per-row it eats ~230px of height; wrap it into a compact
       chip row now that it sits above the content instead of beside it */
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .guide-nav a {
    padding: 8px 12px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
  }
}

@media (max-width: 700px) {
  .site-header {
    max-width: 100vw;
    /* three columns: brand | language switch | menu toggle, all on one row */
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    padding: 12px 18px;
    column-gap: 10px;
    row-gap: 0;
  }

  .site-header.nav-open {
    background: rgba(255, 255, 255, 0.98);
  }

  section[id],
  #availability {
    scroll-margin-top: 86px;
  }

  .brand {
    flex: 0 1 auto;
  }

  .brand span:last-child {
    max-width: 172px;
    line-height: 1.05;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .brand {
    order: 1;
  }

  .lang-switch {
    order: 2;
    margin-left: auto;
    margin-right: 8px;
    padding: 2px;
    font-size: 12px;
  }

  .lang-switch a {
    padding: 5px 7px;
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
    margin-top: 12px;
    padding: 0;
    overflow: visible;
    white-space: normal;
    font-size: 15px;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .site-header.nav-open .site-nav {
    display: grid;
  }

  .site-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    display: none;
  }

  .site-header.nav-open .nav-cta {
    display: inline-flex;
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 14px;
  }

  .mobile-cta {
    display: flex;
  }

  .site-footer {
    /* clear the fixed bottom CTA bar (49px tall + 12px offset) so the last
       footer line is never hidden behind it */
    padding-bottom: 84px;
  }

  .mode-spectrum {
    padding: 20px;
  }

  .spectrum-track {
    top: 40px;
    right: auto;
    bottom: 38px;
    left: 42px;
    width: 4px;
    height: auto;
    background: linear-gradient(180deg, var(--green), var(--blue), var(--violet));
  }

  .spectrum-point {
    grid-template-columns: 46px minmax(0, 1fr);
    justify-items: start;
    column-gap: 14px;
    text-align: left;
  }

  .spectrum-point span {
    grid-row: 1 / span 2;
  }

  .hero {
    min-height: min(88svh, 760px);
    padding: 106px 20px 54px;
  }

  .hero-media img {
    opacity: 0.16;
  }

  .hero-content,
  .hero-lede,
  .launch-note {
    width: min(100%, 350px);
    max-width: 350px;
    min-width: 0;
    overflow-wrap: break-word;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero-lede {
    font-size: 18px;
  }

  .section-heading h2,
  .workflow-copy h2,
  .pricing-copy h2,
  .included-layout h2,
  .disclosure h2,
  .final-cta h2,
  .subpage-hero h1 {
    font-size: 34px;
  }

  .guide-section h2 {
    font-size: 28px;
  }

  .price {
    font-size: 72px;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    max-width: 350px;
  }

  .section {
    padding: 64px 20px;
  }

  .subpage-hero {
    padding: 106px 20px 54px;
  }

  .benefit-card,
  .fit-card,
  .included-card,
  .depth-card,
  .comparison-card,
  .feature-copy,
  .workflow-steps li,
  .price-panel,
  .guide-section {
    padding: 20px;
  }

  .workflow-steps li {
    grid-template-columns: 1fr;
  }

  .launch-status-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .launch-status-list strong {
    text-align: left;
  }

  .footer-inner,
  .final-cta-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .video-play-label {
    right: 14px;
    bottom: 14px;
    min-height: 44px;
    padding: 10px 14px;
    font-size: 14px;
  }

  .video-fallback {
    margin-top: 14px;
  }
}

@media (max-width: 430px) {
  .brand span:last-child {
    max-width: 132px;
  }
}

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

/* ==========================================================================
   Redeem page (redeem.html / ko/redeem.html)
   ========================================================================== */
.platform-badge {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin: 20px 0 0;
  padding: 10px 16px;
  color: var(--blue-deep);
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.28);
  /* the label wraps to two lines in narrow columns, where a pill radius reads
     as a lozenge - a soft corner stays intentional at every width */
  border-radius: 12px;
  font-size: 14px;
  font-weight: 850;
}

.redeem-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.redeem-meta {
  max-width: 560px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.redeem-meta-link {
  margin-top: 6px;
}

/* amber sibling of .recommend-callout: used for the bring-your-own-key notice
   that buyers must read before they install */
.warn-callout {
  margin: 0 0 4px;
  padding: 16px 18px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
}

/* Korean commerce surfaces are intentionally separate from the public landing
   page until the Railway API and merchant account are configured. */
.commerce-page {
  min-height: 100vh;
  padding: 128px 20px 80px;
  background:
    radial-gradient(circle at 12% 0%, rgba(35, 116, 255, 0.13), transparent 30%),
    #f5f8fc;
}

.commerce-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.commerce-narrow {
  width: min(720px, 100%);
}

.commerce-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.commerce-heading h1,
.result-card h1 {
  margin: 8px 0 12px;
  color: var(--ink, #0b1f3a);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
}

.commerce-heading > p:last-child,
.result-card > p,
.privacy-note {
  color: #53657a;
}

.commerce-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.commerce-card {
  padding: 28px;
  border: 1px solid #dfe7f0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(13, 40, 72, 0.08);
}

.commerce-form {
  display: grid;
  gap: 18px;
}

.commerce-form fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.commerce-form legend,
.commerce-form h2,
.order-summary h2 {
  margin: 0 0 8px;
  color: #0b1f3a;
  font-size: 1.2rem;
  font-weight: 800;
}

.commerce-form label {
  color: #203851;
  font-weight: 700;
}

.commerce-form input:not([type="checkbox"]),
.commerce-form textarea,
.commerce-form select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #b7c6d7;
  border-radius: 10px;
  background: #fff;
  color: #102b47;
  font: inherit;
}

.commerce-form input:focus,
.commerce-form textarea:focus,
.commerce-form select:focus {
  border-color: #1468d4;
  outline: 3px solid rgba(20, 104, 212, 0.16);
}

.field-help,
.privacy-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.consent-list {
  padding-top: 8px !important;
  border-top: 1px solid #e7edf4 !important;
}

.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500 !important;
}

.check-row input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.commerce-submit {
  width: 100%;
}

.commerce-submit:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.commerce-alert {
  padding: 12px 14px;
  border: 1px solid #f0b2ad;
  border-radius: 10px;
  background: #fff2f1;
  color: #8f241d;
}

.commerce-alert[data-type="success"] {
  border-color: #a8d8bd;
  background: #effaf4;
  color: #17623a;
}

.payment-method:empty {
  display: none;
}

.order-summary dl {
  display: grid;
  gap: 14px;
  margin: 20px 0;
}

.order-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.order-summary dt {
  color: #63778d;
}

.order-summary dd {
  margin: 0;
  color: #102b47;
  font-weight: 700;
  text-align: right;
}

.order-summary .summary-total {
  padding-top: 16px;
  border-top: 1px solid #dfe7f0;
  font-size: 1.15rem;
}

.commerce-benefits {
  display: grid;
  gap: 10px;
  margin: 22px 0;
  padding-left: 20px;
  color: #40566e;
}

.result-card {
  text-align: center;
}

.result-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: #eaf3ff;
  color: #1468d4;
  font-size: 2rem;
  font-weight: 900;
}

.license-result {
  display: grid;
  gap: 12px;
  margin: 28px 0;
  padding: 22px;
  border: 1px dashed #85a9d0;
  border-radius: 14px;
  background: #f6faff;
}

.license-result strong,
.recovered-license h2 {
  overflow-wrap: anywhere;
  color: #0b1f3a;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  letter-spacing: 0.06em;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.recovered-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.recovered-license h2,
.recovered-license p {
  margin: 0;
}

.recovered-license p {
  margin-top: 8px;
  color: #63778d;
}

.admin-logout {
  min-height: 40px;
  padding: 8px 16px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  display: grid;
  gap: 4px;
}

.stat-card strong {
  color: #0b1f3a;
  font-size: 2rem;
}

.stat-card span {
  color: #63778d;
}

.admin-tools {
  margin-bottom: 24px;
}

.table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid #e2e9f1;
  color: #203851;
  text-align: left;
}

.admin-table th {
  color: #63778d;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.table-button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 0.85rem;
}

@media (max-width: 780px) {
  .commerce-page {
    padding: 104px 14px 56px;
  }

  .commerce-grid,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .commerce-card {
    padding: 20px;
    border-radius: 16px;
  }

  .result-actions .button {
    width: 100%;
  }
}

.guide-section .warn-callout strong {
  color: var(--ink);
}

.redeem-figure {
  margin: 22px 0 0;
}

.redeem-figure img {
  width: min(360px, 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.redeem-figure figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.redeem-steps strong {
  color: var(--ink);
}

@media (max-width: 700px) {
  .platform-downloads,
  .platform-downloads .button {
    width: 100%;
  }

  .redeem-actions .button {
    width: 100%;
    justify-content: center;
  }
}

/* 테스트 결제 안내 배너 — 토스 테스트 키 또는 mock 결제일 때만 표시됩니다. */
.test-mode-banner {
  margin: 0 0 28px;
  padding: 18px 20px;
  border: 1px solid var(--amber);
  border-left-width: 5px;
  border-radius: 12px;
  background: #fff8e8;
  color: #7a4a06;
}

.test-mode-banner strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.test-mode-banner p {
  margin: 0 0 6px;
  line-height: 1.6;
}

.test-mode-banner p:last-child {
  margin-bottom: 0;
}

.test-mode-banner .field-help {
  color: #8a5c14;
}

/* 결제 화면의 고객문의 안내와 약관 링크 모음 */
.commerce-support {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.commerce-support h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.commerce-support p {
  margin: 0 0 6px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.commerce-legal-links,
.purchase-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 16px;
  font-size: 0.9rem;
}

.commerce-legal-links a,
.purchase-legal-links a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.commerce-legal-links a:hover,
.purchase-legal-links a:hover {
  color: var(--blue);
}

/* 가격 패널의 주 구매 CTA */
.purchase-cta {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 24px;
  font-size: 1.05rem;
}

.purchase-cta-note {
  margin-top: 10px;
  text-align: center;
}

.purchase-legal-links {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* 관리자 화면: 재고 경고와 행 단위 작업 버튼 */
.admin-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 16px;
}

.stock-warning {
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--orange);
  border-left-width: 5px;
  border-radius: 10px;
  background: #fff4ec;
  color: #9a3d06;
  font-weight: 600;
}

.stat-card-warn {
  border-color: var(--orange);
  background: #fff4ec;
}

.stat-card-warn strong {
  color: #9a3d06;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-table td {
  vertical-align: middle;
}

/* 메일이 재시도 한도를 넘긴 주문 = 구매자가 코드를 못 받은 건 */
.admin-row-alert td {
  background: #fff4ec;
  color: #9a3d06;
}

.table-wrap h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

/* 전자상거래법상 표시 의무가 있는 사업자 정보. 눈에 띌 필요는 없지만
   읽을 수 있어야 하므로 대비는 유지한다. */
.business-info {
  margin-top: 18px;
  font-size: 0.76rem;
  line-height: 1.7;
  color: #86868b;
}

.business-info a {
  color: inherit;
  text-decoration: underline;
}

/* 라벨을 화면에서만 숨기고 스크린리더에는 남긴다 */
.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;
}


/* ==========================================================================
   한국어 페이지: 항상 보이는 구매/다운로드 CTA
   Korean page: persistent purchase + download calls to action
   ========================================================================== */

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* 헤더의 강조색은 무료 진입이 가져간다. 구매는 바로 옆에서 계속 보이되
   한 단계 조용한 톤으로 둔다.
   The header's accent goes to the free entry; buying stays next to it in a
   quieter tone. */
.nav-cta-download {
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.26);
}

.nav-cta-download:hover,
.nav-cta-download:focus-visible {
  background: var(--blue-deep);
}

.hero-action-lg {
  font-size: 16px;
}

.mobile-cta-bar {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 9;
  display: none;
  align-items: stretch;
  gap: 8px;
}

.mobile-cta-lead {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 16px;
  color: white;
  background: var(--blue);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.34);
}

.mobile-cta-lead strong {
  font-size: 16px;
  font-weight: 900;
}

.mobile-cta-lead span {
  font-size: 12px;
  font-weight: 750;
  opacity: 0.88;
}

.mobile-cta-alt {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  color: white;
  background: var(--ink);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 14px 34px rgba(11, 31, 58, 0.28);
}

@media (max-width: 980px) {
  .site-header-ko .header-actions {
    justify-self: end;
  }
}

@media (max-width: 700px) {
  .site-header-ko {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }

  .site-header-ko .brand {
    order: 1;
  }

  .site-header-ko .brand span:last-child {
    max-width: 104px;
  }

  .site-header-ko .header-actions {
    order: 2;
    margin-left: auto;
  }

  .site-header-ko .lang-switch {
    order: 3;
    margin-left: 8px;
  }

  .site-header-ko .nav-toggle {
    order: 4;
  }

  .site-header-ko .site-nav {
    order: 5;
  }

  /* 모바일 상단에 상시 노출하는 버튼은 하나만 들어간다. 무료 진입을 앞세우기로
     했으므로 그 자리를 '무료로 시작하기'가 가져간다. 구매는 하단 고정 바와
     메뉴를 펼쳤을 때 계속 보인다.
     One persistent CTA fits the mobile header: the free entry takes it, and
     buying stays in the bottom bar and the opened menu. */
  .site-header-ko .nav-cta-download {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 11px;
    border-radius: 7px;
    font-size: 13px;
  }

  .site-header-ko.nav-open .header-actions {
    order: 6;
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    margin-left: 0;
  }

  .site-header-ko.nav-open .nav-cta {
    grid-column: auto;
    min-height: 46px;
    margin-top: 0;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
  }

  .mobile-cta-bar {
    display: flex;
  }
}

/* ==========================================================================
   관리자 화면: 탭 구성, 할 일 큐, 주문 상세, 확인창
   위쪽의 .admin-* 규칙(재고 경고, 표, 행 버튼)을 그대로 쓰고 여기서 확장한다.
   ========================================================================== */

/* hidden 속성은 display 를 지정한 요소에 먹지 않는다. .commerce-form 처럼
   display: grid 인 폼은 hidden 을 걸어도 화면에 그대로 남아, 로그인 후에도
   토큰 입력창이 관리 화면 위에 붙어 있었다. */
[hidden] {
  display: none !important;
}

/* 마케팅 헤더는 좁은 화면에서 3열 그리드로 바뀌고 order 로 항목을 재배치한다.
   관리 화면 헤더는 로고와 잠금 버튼 둘뿐이라 그 규칙이 순서를 뒤집어,
   휴대폰에서 잠금 버튼이 로고 앞에 나왔다.

   특이도를 한 단계 올려 둔다. 같은 (0,1,0) 이면 파일 순서로만 이기는데,
   아래에 .site-header 규칙을 하나 덧붙이는 순간 조용히 되돌아간다. */
.site-header.site-header-admin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-header.site-header-admin > * {
  order: 0;
}

.admin-page .commerce-shell {
  max-width: 1240px;
}

/* --- 탭 ------------------------------------------------------------------ */

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.admin-tab {
  position: relative;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.admin-tab:hover {
  background: var(--wash);
  color: var(--ink);
}

.admin-tab[aria-selected="true"] {
  border-color: var(--line);
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.08);
  color: var(--blue-deep);
}

.admin-tab:focus-visible,
.admin-row-clickable:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.tab-badge {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  text-align: center;
}

/* 새로고침 버튼은 탭 줄 오른쪽 끝에 붙인다. */
.admin-refresh {
  min-height: 40px;
  margin-left: auto;
  padding: 8px 16px;
}

.admin-section-title {
  margin: 28px 0 14px;
  font-size: 1.05rem;
}

.admin-section-title:first-child {
  margin-top: 0;
}

.count-badge {
  margin-left: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
}

/* --- 할 일 큐 ------------------------------------------------------------ */

.todo-list {
  display: grid;
  gap: 12px;
}

.todo-card {
  display: grid;
  gap: 6px;
  justify-items: start;
  border-left: 5px solid var(--orange);
  background: #fff4ec;
}

.todo-card h3 {
  margin: 0;
  color: #9a3d06;
  font-size: 1rem;
}

.todo-card p {
  margin: 0;
  color: #7c4a1e;
}

.todo-card-empty {
  margin: 0;
  border-left-color: var(--green);
  background: #f0fdf4;
  color: #14532d;
  font-weight: 600;
}

.admin-details {
  margin-bottom: 8px;
  padding: 16px 20px;
}

.admin-details summary {
  color: var(--ink-soft);
  cursor: pointer;
  font-weight: 600;
}

.admin-details .admin-stats {
  margin: 16px 0 0;
}

.admin-stats-compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-stats-compact .stat-card {
  padding: 14px 16px;
}

.admin-stats-compact .stat-card strong {
  font-size: 1.4rem;
}

.admin-stats-compact .stat-card span {
  font-size: 0.85rem;
}

/* --- 매출 그래프 --------------------------------------------------------- */

.revenue-chart {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  align-items: end;
  gap: 10px;
  height: 160px;
  margin-bottom: 18px;
}

/* 막대 자리(1fr)와 날짜 라벨(auto)을 나눈다. 1fr 로 확정된 높이가 있어야
   막대의 height: %가 해석된다. align-content: end 만으로는 행 높이가
   내용에 맞춰져 %가 0으로 계산됐다. */
.revenue-column {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 6px;
  height: 100%;
}

.revenue-bar {
  align-self: end;
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-deep) 100%);
}

.revenue-bar-empty {
  background: var(--line);
}

.revenue-label {
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.revenue-table {
  margin-top: 4px;
}

/* --- 필터 줄 ------------------------------------------------------------- */

.admin-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px 20px;
}

.filter-field {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.filter-grow {
  flex: 1 1 260px;
}

.filter-field label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.filter-field input,
.filter-field select {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.filter-actions .button {
  min-height: 42px;
  padding: 9px 16px;
}

.admin-toolbar-center {
  justify-content: center;
  margin: 14px 0 0;
}

.admin-toolbar-start {
  justify-content: flex-start;
}

/* --- 주문 표와 상세 ------------------------------------------------------ */

.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr);
  align-items: start;
  gap: 20px;
}

/* 상세가 닫혀 있으면 표가 폭을 전부 쓴다. */
.order-layout:has([data-order-detail][hidden]) {
  grid-template-columns: minmax(0, 1fr);
}

.admin-row-clickable {
  cursor: pointer;
}

.admin-row-clickable:hover td {
  background: var(--wash);
}

.admin-row-selected td {
  background: #eef4ff;
  box-shadow: inset 3px 0 0 var(--blue);
}

.order-detail {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
}

.detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.detail-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

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

.detail-section h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.detail-list {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  gap: 6px 14px;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.86rem;
}

.detail-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.detail-table {
  font-size: 0.84rem;
  white-space: normal;
}

.detail-table th,
.detail-table td {
  padding: 8px 10px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* --- 생성된 코드 패널 ----------------------------------------------------- */

/* 이 화면을 벗어나면 다시 볼 수 없는 값이라, 저장 전에 눈에 띄어야 한다. */
.generated-codes {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
  border-color: var(--orange);
}

.generated-codes h2 {
  margin: 0;
  font-size: 1.1rem;
}

.generated-codes textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--wash);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  resize: vertical;
}

.generated-codes .admin-toolbar {
  justify-content: flex-start;
  margin-bottom: 0;
}

/* --- 확인창 -------------------------------------------------------------- */

.admin-dialog {
  width: min(480px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.admin-dialog::backdrop {
  background: rgba(11, 31, 58, 0.45);
}

.admin-dialog-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.admin-dialog h2 {
  margin: 0;
  font-size: 1.15rem;
}

.dialog-body {
  display: grid;
  gap: 8px;
}

.dialog-body p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.dialog-warn {
  padding: 10px 12px;
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  background: #fff4ec;
  color: #9a3d06 !important;
  font-weight: 600;
}

.dialog-link {
  color: var(--blue);
  font-size: 0.9rem;
  justify-self: start;
}

.dialog-check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 14px;
  border: 1px solid var(--orange);
  border-radius: 10px;
  background: #fffaf5;
  color: #9a3d06;
  font-weight: 600;
  line-height: 1.5;
  cursor: pointer;
}

.dialog-check input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: none;
}

.dialog-input {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.86rem;
}

.dialog-input input {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font: inherit;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dialog-actions .button {
  min-height: 42px;
  padding: 9px 20px;
}

.button-danger {
  border-color: #b91c1c;
  background: #dc2626;
}

.button-danger:hover {
  background: #b91c1c;
}

.button-danger[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- 좁은 화면 ----------------------------------------------------------- */

@media (max-width: 1080px) {
  .order-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-detail {
    position: static;
    max-height: none;
  }

  .admin-stats-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  /* 표를 카드로 쌓는다. 가로 스크롤만으로는 휴대폰에서 열이 보이지 않는다. */
  .admin-table,
  .admin-table thead,
  .admin-table tbody,
  .admin-table tr,
  .admin-table td {
    display: block;
    width: 100%;
  }

  .admin-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .admin-table tr {
    margin-bottom: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
  }

  .admin-table td {
    display: grid;
    /* 이름표를 좁게 잡아야 값이 한 줄에 들어간다. 34% 로 두면
       buyer14@example.com 같은 흔한 주소가 중간에서 잘렸다. */
    grid-template-columns: minmax(58px, 26%) minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
    border-bottom: none;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
  }

  /* 관리 버튼 칸은 이름표 없이 버튼만 한 줄로 편다. */
  .admin-table td.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .admin-table td.admin-row-actions::before {
    content: none;
  }

  .admin-table td.admin-row-actions .button {
    flex: 1 1 auto;
  }

  .admin-row-alert td,
  .admin-row-selected td {
    background: none;
    box-shadow: none;
  }

  .admin-row-alert {
    border-color: var(--orange);
    background: #fff4ec;
  }

  .admin-row-selected {
    border-color: var(--blue);
    box-shadow: inset 3px 0 0 var(--blue);
  }

  .admin-stats-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-tabs {
    gap: 4px;
  }

  .admin-tab {
    flex: 1 1 auto;
    padding: 9px 10px;
    font-size: 0.9rem;
  }

  .admin-refresh {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .filter-field,
  .filter-actions {
    flex: 1 1 100%;
    min-width: 0;
  }

  .filter-actions .button {
    flex: 1 1 auto;
  }

  .revenue-chart {
    height: 130px;
    gap: 5px;
  }

  .detail-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px 0;
  }

  .detail-list dd {
    margin-bottom: 8px;
  }
}

/* ============================================================================
 * 2026-09 update: what's new, motion graphics, high-quality mode, TTS providers
 * ========================================================================== */

.whats-new {
  background:
    radial-gradient(900px 380px at 12% -20%, rgba(245, 158, 11, 0.14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--wash) 100%);
  border-bottom: 1px solid var(--line);
}

.update-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.update-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.update-card-motion {
  border-top-color: var(--orange);
}

.update-card-premium {
  border-top-color: var(--violet);
}

.update-card-voice {
  border-top-color: var(--green);
}

@media (hover: hover) {
  .update-card:hover {
    transform: translateY(-4px);
    border-color: #c4d0df;
    box-shadow: 0 18px 40px rgba(11, 31, 58, 0.1);
  }
}

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0;
  padding: 4px 10px;
  color: var(--blue-deep);
  background: rgba(37, 99, 235, 0.1);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.update-card-motion .update-badge {
  color: #9a3412;
  background: rgba(249, 115, 22, 0.12);
}

.update-card-premium .update-badge {
  color: #5b21b6;
  background: rgba(124, 58, 237, 0.12);
}

.update-card-voice .update-badge {
  color: #166534;
  background: rgba(22, 163, 74, 0.12);
}

.update-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.update-card p {
  margin: 0;
  color: var(--ink-soft);
}

.update-card .text-link {
  margin-top: auto;
  padding-top: 6px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-row li {
  padding: 4px 10px;
  color: var(--ink);
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

/* --- motion graphics spotlight --------------------------------------- */

.motion-spotlight {
  background:
    radial-gradient(1100px 420px at 90% -10%, rgba(249, 115, 22, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(249, 115, 22, 0.05), rgba(249, 115, 22, 0.015));
  border-top: 1px solid rgba(249, 115, 22, 0.18);
  border-bottom: 1px solid rgba(249, 115, 22, 0.18);
}

.motion-spotlight .eyebrow {
  color: #c2410c;
}

.style-sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 26px;
}

.style-sheet-card {
  margin: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 32px rgba(11, 31, 58, 0.06);
}

.style-sheet-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.style-sheet-card figcaption {
  display: grid;
  gap: 4px;
  padding: 16px 18px 18px;
}

.style-sheet-card strong {
  font-size: 18px;
}

.style-sheet-card span {
  color: var(--muted);
  font-size: 14px;
}

.motion-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
}

/* --- high-quality spotlight ------------------------------------------- */

.premium-spotlight {
  background:
    radial-gradient(1100px 420px at 10% -10%, rgba(124, 58, 237, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(124, 58, 237, 0.06), rgba(124, 58, 237, 0.02));
  border-top: 1px solid rgba(124, 58, 237, 0.18);
  border-bottom: 1px solid rgba(124, 58, 237, 0.18);
}

.premium-spotlight .eyebrow {
  color: #5b21b6;
}

.premium-steps {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  counter-reset: premium-step;
  list-style: none;
}

.premium-steps li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 14px 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.premium-steps li::before {
  counter-increment: premium-step;
  content: counter(premium-step, decimal-leading-zero);
  display: block;
  color: var(--violet);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.premium-steps li.is-highlight {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.04));
  border-color: rgba(124, 58, 237, 0.4);
}

.premium-callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 26px 0 0;
  padding: 18px 20px;
  background: var(--paper);
  border: 1px solid rgba(245, 158, 11, 0.5);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
}

.premium-callout strong {
  display: block;
  margin-bottom: 4px;
}

.premium-callout p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.premium-callout-icon {
  font-size: 22px;
  line-height: 1;
}

/* --- TTS / provider grid --------------------------------------------- */

.provider-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.provider-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

@media (hover: hover) {
  .provider-card:hover {
    transform: translateY(-4px);
    border-color: #c4d0df;
    box-shadow: 0 18px 40px rgba(11, 31, 58, 0.1);
  }
}

.provider-card h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.provider-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.provider-role {
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.provider-role-required {
  color: #9a3412;
  background: rgba(249, 115, 22, 0.14);
}

.provider-role-optional {
  color: var(--blue-deep);
  background: rgba(37, 99, 235, 0.1);
}

.provider-role-new {
  color: #166534;
  background: rgba(22, 163, 74, 0.12);
}

.provider-card .tag-row li {
  font-size: 12px;
}

/* --- 4-way control spectrum ------------------------------------------ */

.mode-spectrum-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background:
    linear-gradient(90deg, rgba(22, 163, 74, 0.08), rgba(124, 58, 237, 0.08), rgba(37, 99, 235, 0.08), rgba(245, 158, 11, 0.08)),
    var(--paper);
}

.mode-spectrum-4 .spectrum-track {
  right: 11%;
  left: 11%;
  background: linear-gradient(90deg, var(--green), var(--violet), var(--blue), var(--amber));
}

.spectrum-point-premium {
  color: var(--violet);
}

.spectrum-point-premium span {
  border-color: var(--violet);
}

.mode-spectrum-4 .spectrum-point-auto {
  color: var(--amber);
}

.mode-spectrum-4 .spectrum-point-auto span {
  border-color: var(--amber);
}

.comparison-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.comparison-grid-4 .comparison-card {
  padding: 22px;
}

.comparison-card-premium {
  border-top-color: var(--violet);
}

.comparison-card-premium .comparison-meter span {
  background: linear-gradient(90deg, var(--green), var(--violet));
}

.meter-premium {
  width: 74%;
}

.comparison-pro-badge {
  display: inline-flex;
  margin-left: 8px;
  padding: 2px 8px;
  color: #5b21b6;
  background: rgba(124, 58, 237, 0.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  vertical-align: middle;
}

@media (max-width: 1080px) {
  .comparison-grid-4,
  .mode-spectrum-4,
  .provider-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mode-spectrum-4 .spectrum-track {
    display: none;
  }

  .premium-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .update-grid,
  .style-sheet-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 700px) {
  .comparison-grid-4,
  .mode-spectrum-4,
  .provider-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .premium-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .premium-steps li {
    padding: 10px 6px;
    font-size: 12px;
  }

  .premium-callout {
    grid-template-columns: minmax(0, 1fr);
  }
}
