:root {
  --ink: #16112A;
  --ink-soft: #2B2346;
  --mist: #F4F3F8;
  --paper: #FFFFFF;
  --sticker: #FFE14D;
  --sticker-hover: #FFD21A;
  --pop: #E0306A;
  --line: #DCD9E6;
  --grid: #E9E7F0;
  --muted: #5E5A72;
  --danger: #B42318;
  --display: "Black Han Sans", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
}

html[lang="ko"] [data-l="en"],
html[lang="en"] [data-l="ko"],
[hidden] {
  display: none !important;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  line-height: 1.55;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 24px;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--pop);
  outline-offset: 3px;
}

h2 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.14;
  text-wrap: balance;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: min(94vh, 880px);
  overflow: hidden;
  background: var(--ink) url("/media/hero.jpg") center / cover no-repeat;
  color: var(--paper);
}

.hero-video,
.closer-video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(22, 17, 42, 0.94) 0%, rgba(22, 17, 42, 0.78) 38%, rgba(22, 17, 42, 0.2) 72%, rgba(22, 17, 42, 0.05) 100%),
    linear-gradient(0deg, rgba(22, 17, 42, 0.55) 0%, rgba(22, 17, 42, 0) 30%);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}

.wordmark {
  font-family: var(--display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(22, 17, 42, 0.35);
  backdrop-filter: blur(6px);
}

.lang-switch button {
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--paper);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--paper);
  color: var(--ink);
}

.hero-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 32px 96px;
}

h1 {
  max-width: 11em;
  margin: 0 0 24px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(46px, 7.6vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.012em;
}

h1 .line {
  display: block;
}

html[lang="ko"] h1 {
  font-size: clamp(38px, 5.6vw, 76px);
}

html[lang="en"] h1 {
  max-width: 13em;
  font-size: clamp(38px, 5.4vw, 72px);
  text-wrap: balance;
}

.lede {
  max-width: 34em;
  margin: 0;
  font-size: 19px;
  color: rgba(255, 255, 255, 0.88);
}

.search {
  display: flex;
  gap: 6px;
  max-width: 640px;
  margin-top: 34px;
  padding: 6px;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 18px 50px rgba(8, 5, 20, 0.35);
}

.search:focus-within {
  outline: 3px solid var(--sticker);
  outline-offset: 3px;
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 14px;
  font: 500 19px var(--body);
  color: var(--ink);
}

.search input:focus {
  outline: none;
}

.search input::placeholder {
  color: #8B87A0;
}

.find {
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 11px;
  background: var(--sticker);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.find:hover {
  background: var(--sticker-hover);
}

.find:focus-visible {
  outline-color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 600;
}

.motion-toggle {
  position: absolute;
  right: 24px;
  bottom: 22px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(22, 17, 42, 0.45);
  color: var(--paper);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.motion-toggle .when-paused,
.motion-toggle[aria-pressed="true"] .when-playing {
  display: none;
}

.motion-toggle[aria-pressed="true"] .when-paused {
  display: inline;
}

.rates {
  padding-block: 104px 88px;
  background: var(--mist);
}

.section-lede {
  max-width: 38em;
  margin: 0 0 48px;
  color: var(--muted);
}

.phones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.phone-card h3 {
  margin: 22px 0 6px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.phone-card > p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.phone {
  position: relative;
  aspect-ratio: 9 / 16;
  border: 7px solid var(--ink);
  border-radius: 30px;
  background: var(--ink);
  box-shadow: 0 22px 40px -18px rgba(22, 17, 42, 0.55);
}

.phone video {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 23px;
  object-fit: cover;
}

.phone-blog {
  background: var(--paper);
}

.blog {
  height: 100%;
  padding: 64px 14px 0;
  overflow: hidden;
  border-radius: 23px;
  background: var(--paper);
  color: var(--ink);
}

.blog p {
  margin: 0;
}

.phone-card .blog-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.phone-card .blog-date {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 11px;
}

.blog img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 6px;
}

.phone-card .blog-text {
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 1.6;
}

.blog-line {
  display: block;
  height: 8px;
  margin-bottom: 9px;
  border-radius: 4px;
  background: var(--grid);
}

.blog-line.short {
  width: 60%;
}

.phone::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  width: 34%;
  height: 16px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.phone-platform {
  position: absolute;
  top: 34px;
  left: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.sticker {
  position: absolute;
  left: -16px;
  bottom: 26px;
  margin: 0;
  padding: 10px 14px 9px;
  border-radius: 8px;
  background: var(--sticker);
  color: var(--ink);
  box-shadow: 0 6px 14px rgba(22, 17, 42, 0.28);
  transform: rotate(-4deg);
  font-family: var(--display);
  font-size: clamp(24px, 2.3vw, 31px);
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.phone-card:nth-child(even) .sticker {
  transform: rotate(3deg);
}

.sticker small {
  display: block;
  margin-top: 3px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.spread {
  padding-block: 104px;
  background: var(--ink);
  color: var(--paper);
}

.spread-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.spread-copy p {
  max-width: 30em;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.82);
}

.spread-copy .survey {
  margin-top: 24px;
  padding-left: 14px;
  border-left: 3px solid var(--sticker);
  color: var(--paper);
}

.chart {
  position: relative;
  margin: 0;
  padding: 24px 24px 18px;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
}

.chart-title {
  margin-bottom: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.chart-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 56px;
  border-radius: 8px;
  cursor: default;
}

.chart-row:hover .chart-track,
.chart-row:focus-visible .chart-track {
  background: var(--mist);
}

.chart-row:focus-visible {
  outline-offset: 1px;
}

.chart-label {
  font-size: 13px;
  line-height: 1.35;
}

.chart-label b {
  display: block;
  font-size: 14px;
}

.chart-track {
  position: relative;
  height: 44px;
  border-radius: 6px;
}

.chart-gridline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--grid);
}

.chart-bar {
  position: absolute;
  top: 50%;
  height: 16px;
  border-radius: 4px;
  background: var(--pop);
  transform: translateY(-50%);
}

.chart-dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--pop);
  transform: translate(-50%, -50%);
}

.chart-value {
  position: absolute;
  top: 50%;
  padding-left: 8px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transform: translateY(-50%);
}

.chart-value.flip {
  padding-left: 0;
  padding-right: 8px;
  transform: translate(-100%, -50%);
}

.chart-axis {
  position: relative;
  height: 22px;
  margin-left: 184px;
  border-top: 1px solid var(--line);
}

.chart-tick {
  position: absolute;
  top: 4px;
  font-size: 12px;
  color: var(--muted);
  transform: translateX(-50%);
}

.chart-tip {
  position: absolute;
  z-index: 3;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.45;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(22, 17, 42, 0.3);
}

.chart-tip strong {
  display: block;
  font-size: 16px;
}

.steps-section {
  padding-block: 104px 96px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin: 36px 0 72px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding-top: 18px;
  border-top: 2px solid var(--ink);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--sticker);
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
}

.steps h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
}

.steps p {
  max-width: 24em;
  margin: 0;
}

.est-list {
  margin: 0;
  border-top: 2px solid var(--ink);
}

.est-list div {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.est-list dt {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.3;
}

.est-list dd {
  max-width: 40em;
  margin: 0;
}

.closer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink) url("/media/studio.jpg") center / cover no-repeat;
  color: var(--paper);
}

.closer-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(22, 17, 42, 0.92) 0%, rgba(22, 17, 42, 0.7) 50%, rgba(22, 17, 42, 0.35) 100%);
}

.closer-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  padding-block: 120px;
}

.closer h2 {
  margin: 0;
  max-width: 12em;
}

.foot {
  padding-block: 56px 64px;
  color: var(--muted);
  font-size: 14px;
}

.foot .wordmark {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 80px rgba(8, 5, 20, 0.45);
}

dialog[open] {
  animation: rise 220ms ease-out;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

dialog::backdrop {
  background: rgba(22, 17, 42, 0.6);
}

.dialog-body {
  position: relative;
  padding: 30px 28px 24px;
}

.close {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.door-title {
  margin: 0 0 12px;
  padding-right: 72px;
  font-size: 30px;
}

.step p {
  margin: 0 0 10px;
}

.echo,
.done-email {
  font-weight: 600;
  word-break: break-all;
}

#signup {
  margin-top: 20px;
}

.field-label {
  display: block;
  margin: 18px 0 6px;
  padding: 0;
  font-size: 15px;
  font-weight: 600;
}

#signup > .field-label:first-child {
  margin-top: 0;
}

#email,
#signup-topic,
#creators {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font: 400 17px var(--body);
  color: var(--ink);
  background: var(--paper);
}

#creators {
  resize: vertical;
  line-height: 1.5;
}

#email:focus-visible,
#signup-topic:focus-visible,
#creators:focus-visible {
  border-color: var(--pop);
  outline-offset: 1px;
}

.field-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.step .field-hint {
  margin-bottom: 0;
}

.roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  border: 0;
}

.roles legend {
  margin: 0 0 8px;
}

.roles input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.roles label {
  padding: 7px 14px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
}

.roles input:checked + label {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.roles input:focus-visible + label {
  outline: 3px solid var(--pop);
  outline-offset: 2px;
}

.consent {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--mist);
  font-size: 14px;
  line-height: 1.55;
}

.step .consent-title {
  margin: 0 0 8px;
  font-weight: 600;
}

.consent dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 14px;
  margin: 0;
}

.consent dt {
  color: var(--muted);
}

.consent dd {
  margin: 0;
}

.agree {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 600;
  cursor: pointer;
}

.agree input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--ink);
}

.step .form-msg {
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 15px;
  font-weight: 600;
}

.submit {
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border: 0;
  border-radius: 11px;
  background: var(--sticker);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
}

.submit:hover {
  background: var(--sticker-hover);
}

.submit:disabled {
  opacity: 0.6;
  cursor: progress;
}

@media (min-width: 981px) {
  html[lang="en"] .phones {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 900px;
    margin-inline: auto;
  }
}

@media (max-width: 980px) {
  .phones {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 44%);
    gap: 24px;
    margin-inline: -24px;
    padding: 4px 24px 16px 40px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 40px;
  }

  .phone-card {
    scroll-snap-align: start;
  }

  .spread-grid {
    grid-template-columns: none;
    gap: 40px;
  }

  .steps {
    grid-template-columns: none;
    gap: 28px;
  }

  .est-list div {
    grid-template-columns: none;
    gap: 6px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 18px;
  }

  .hero {
    min-height: 0;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgba(22, 17, 42, 0.55) 0%, rgba(22, 17, 42, 0.86) 45%, rgba(22, 17, 42, 0.95) 100%);
  }

  .hero-body {
    padding-block: 40px 88px;
  }

  .lede {
    font-size: 17px;
  }

  .search {
    flex-direction: column;
  }

  .search input {
    padding: 12px 10px;
    font-size: 18px;
  }

  .phones {
    grid-auto-columns: 68%;
    margin-inline: -18px;
    padding-inline: 34px 18px;
    scroll-padding-left: 34px;
  }

  .rates,
  .spread,
  .steps-section {
    padding-block: 72px;
  }

  .chart {
    padding: 18px 14px 14px;
  }

  .chart-row {
    grid-template-columns: none;
    gap: 2px;
    min-height: 0;
    padding-bottom: 6px;
  }

  .chart-axis {
    margin-left: 0;
  }

  .closer-body {
    padding-block: 88px;
  }

  .dialog-body {
    padding: 24px 18px 18px;
  }

  .door-title {
    font-size: 26px;
  }

  .consent dl {
    grid-template-columns: none;
    gap: 0;
  }

  .consent dd {
    margin-bottom: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog[open] {
    animation: none;
  }
}
