:root {
  color-scheme: dark;
  --night: #101e28;
  --deep: #0c1720;
  --panel: #182b36;
  --line: #31444c;
  --ink: #fff8ec;
  --muted: #bdcbd0;
  --amber: #ffcf85;
  --teal: #83cfc3;
  --max: 1360px;
  --header-height: 80px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y mandatory; scroll-padding-top: var(--header-height); }
body { margin: 0; background: var(--night); color: var(--ink); font: 16px/1.65 "Pretendard","Malgun Gothic","Apple SD Gothic Neo",sans-serif; word-break: keep-all; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }
.shell { width: min(calc(100% - 80px),var(--max)); margin-inline: auto; }
.skip { position: fixed; left: 16px; top: 8px; background: var(--amber); color: var(--deep); padding: 8px 16px; transform: translateY(-160%); z-index: 30; }
.skip:focus { transform: none; }
.nav { position: sticky; top: 0; z-index: 20; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--night); border-bottom: 1px solid var(--line); width: 100%; padding-inline: max(40px,calc((100% - var(--max)) / 2)); }
.nav nav, .footer nav { display: flex; flex-wrap: wrap; gap: 24px; color: var(--muted); font-size: 14px; }
.nav nav a:hover, .footer nav a:hover { color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 800; white-space: nowrap; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .19em; }
.mark { display: grid; place-items: center; width: 32px; aspect-ratio: 1; border-radius: 50%; background: var(--amber); color: var(--deep); font-size: 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 750; border: 1px solid transparent; border-radius: 7px; padding: 12px 17px; white-space: nowrap; }
.primary { background: var(--amber); color: var(--deep); }
.primary:hover { background: var(--ink); }
.outline { border-color: var(--line); }
.outline:hover, .plain:hover { border-color: var(--amber); }
.plain { color: var(--muted); }
main > section { min-height: calc(100svh - var(--header-height)); scroll-snap-align: start; scroll-snap-stop: always; display: flex; flex-direction: column; justify-content: center; padding-block: clamp(24px,4svh,48px); }
.hero { overflow: hidden; padding-block: 0; }
.hero-layout { position: relative; min-height: calc(100svh - var(--header-height)); display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.hero-copy { padding: 40px 0; z-index: 1; }
.kicker { color: var(--amber); font-size: 13px; font-weight: 750; letter-spacing: .08em; margin: 0 0 12px; }
.kicker span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); margin-right: 6px; }
.hero h1 { font-size: clamp(47px,6.05vw,84px); line-height: 1.14; letter-spacing: -.07em; margin: 0 0 27px; }
.hero h1 em { font-style: normal; color: var(--amber); }
.lead { color: var(--muted); font-size: 19px; max-width: 440px; margin: 0 0 28px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.platform, .note { font-size: 13px; color: var(--muted); }
.hero-art { height: 100%; min-height: 460px; position: relative; display: grid; place-items: center; isolation: isolate; }
.halo { position: absolute; z-index: -1; width: min(95%,540px); aspect-ratio: 1; border: 1px solid var(--line); border-radius: 50%; background: radial-gradient(circle at 48% 30%,var(--amber),var(--panel) 47%,transparent 70%); opacity: .55; }
.water { position: absolute; z-index: -1; inset: 18% -12% 0; width: 124%; height: 82%; color: var(--teal); opacity: .25; }
.phone { margin: 0; overflow: hidden; border: 6px solid var(--line); border-radius: 28px; background: var(--deep); box-shadow: 0 16px 36px var(--deep); }
.phone img { display: block; width: 100%; height: auto; }
.hero-phone { width: min(50%,calc((100svh - 210px) * .47),280px); transform: rotate(-7deg); border-width: 7px; border-radius: 31px; }
.art-tag { position: absolute; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; display: grid; grid-template-columns: 30px 1fr; gap: 0 7px; font-size: 13px; }
.art-tag span { grid-row: span 2; color: var(--teal); font-size: 21px; }
.art-tag small { color: var(--muted); }
.tag-top { right: 0; top: 26%; }
.tag-bottom { left: 2%; bottom: 20%; }
.feature-section { background: var(--deep); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-head p:not(.kicker) { color: var(--muted); margin: 0; font-size: 14px; }
.section-head h2, .faq-section h2, .final-cta h2 { font-size: clamp(30px,3.4vw,46px); line-height: 1.22; letter-spacing: -.06em; margin: 0; }
.feature-grid { display: grid; grid-template-columns: 232px minmax(0,1fr); gap: 24px; align-items: center; }
.feature-categories { align-self: center; }
.category-prompt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; margin: 0 0 14px; }
.category-prompt > span, .preview-step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--panel); color: var(--amber); font-size: 12px; flex-shrink: 0; }
.feature-options { display: grid; gap: 8px; }
.feature-options button { border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 16px 14px; text-align: left; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 2px 8px; min-height: 64px; }
.feature-options button[aria-pressed=true] { border-color: var(--amber); background: var(--amber); color: var(--deep); box-shadow: 0 6px 18px color-mix(in srgb,var(--amber) 12%,transparent); }
.feature-options button[aria-pressed=true] :is(span,small) { color: var(--deep); }
.feature-options button:hover { border-color: var(--amber); }
.feature-options span { color: var(--amber); font-size: 11px; }
.feature-options b { font-size: 20px; }
.feature-options small { grid-column: 2; color: var(--muted); font-size: 11px; }
.feature-options i { display: none; }
.feature-preview { min-width: 0; display: grid; grid-template-columns: minmax(220px,1fr) minmax(240px,.95fr); gap: clamp(24px,4vw,64px); align-items: center; padding: 0 24px; }
.phone-stage { position: relative; display: grid; place-items: center; min-width: 0; }
.feature-preview .phone { width: min(100%,calc((100svh - 260px) * .46),340px); min-width: 0; }
.feature-preview .phone img { max-height: calc(100svh - 272px); min-height: 0; object-fit: contain; }
.feature-detail { max-width: 390px; }
.feature-detail h3 { font-size: clamp(24px,2.1vw,30px); line-height: 1.3; margin: 0; letter-spacing: -.05em; }
#feature-copy { color: var(--muted); font-size: 16px; margin: 12px 0 18px; }
.preview-prompt { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--muted); font-size: 13px; margin: 0 0 10px; }
.preview-prompt .preview-step { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.screen-switch { display: grid; gap: 8px; }
.screen-switch button { min-height: 56px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: transparent; text-align: left; transition: border-color .18s,transform .18s; }
.screen-switch button:hover { border-color: var(--amber); transform: translateX(2px); }
.screen-switch button[aria-pressed=true] { border-color: var(--teal); background: var(--panel); color: var(--ink); box-shadow: inset 3px 0 var(--teal); }
.screen-switch strong { font-size: 14px; font-weight: 650; }
.screen-switch small { grid-column: 1; font-size: 12px; opacity: .8; }
.screen-switch .screen-arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 20px; }
.screen-current { font-size: 12px; color: var(--teal); min-height: 20px; margin: 10px 0 0; }
.screen-status:empty { display: none; }
.screen-status { position: absolute; bottom: 8px; margin: 0 8px; padding: 8px; font-size: 13px; background: var(--deep); }
.closing-section { gap: 24px; padding-bottom: 0; }
.faq-section { display: grid; grid-template-columns: .75fr 1fr; gap: 32px; }
.faq-section > div > a { display: inline-block; color: var(--teal); margin-top: 14px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 12px 0; cursor: pointer; font-weight: 700; }
.faq-list details p { color: var(--muted); margin: 0 0 12px; font-size: 14px; }
.faq-list details a { color: var(--teal); text-decoration: underline; }
.final-cta { padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.final-cta h2 { font-size: clamp(24px,3vw,34px); }
.footer { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding: 16px 0 24px; color: var(--muted); font-size: 12px; }
.footer nav { margin-left: auto; gap: 14px; font-size: 12px; }
@media(max-width:1050px) {
  .shell { width: calc(100% - 48px); }
  .nav { padding-inline: 24px; }
  .feature-grid { grid-template-columns: 200px minmax(0,1fr); gap: 16px; }
  .feature-preview { grid-template-columns: minmax(196px,1fr) minmax(200px,1fr); padding: 0; gap: 24px; }
  .feature-options button { padding: 12px 8px; }
  .feature-options b { font-size: 17px; }
  .feature-detail h3 { font-size: 25px; }
}
@media(max-width:760px) {
  :root { --header-height: 112px; }
  html { scroll-snap-type: y proximity; }
  .shell { width: calc(100% - 32px); }
  .nav { flex-wrap: wrap; padding: 12px 16px; gap: 8px; }
  .nav nav { order: 3; width: 100%; gap: 20px; font-size: 13px; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-copy { padding: 32px 0 0; }
  .hero h1 { font-size: clamp(40px,10vw,64px); }
  .lead { font-size: 16px; max-width: 100%; }
  .hero-art { min-height: 380px; }
  .hero-phone { width: 160px; }
  .art-tag { font-size: 11px; }
  .tag-top { top: 20%; }
  .tag-bottom { bottom: 15%; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .feature-grid { grid-template-columns: 1fr; gap: 24px; }
  .feature-options { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; }
  .feature-options button { display: flex; flex-direction: column; justify-content: center; padding: 8px 2px; gap: 4px; }
  .feature-options b { font-size: 12px; }
  .feature-options small { display: none; }
  .feature-preview { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
  .feature-preview .phone { min-width: 0; width: min(100%,260px); }
  .feature-preview .phone img { min-height: 0; max-height: none; }
  .feature-detail h3 { font-size: 24px; }
  .feature-detail .kicker { font-size: 11px; }
  #feature-copy { font-size: 14px; margin: 12px 0 18px; }
  .screen-switch button { padding: 10px; }
  .screen-switch strong { font-size: 13px; }
  .screen-switch small { font-size: 11px; }
  .faq-section { grid-template-columns: 1fr; gap: 20px; }
  .final-cta { align-items: flex-start; flex-direction: column; }
  .footer nav { margin-left: 0; }
}
@media(max-width:420px) {
  .feature-preview { grid-template-columns: 1fr; }
  .feature-preview .phone { width: 230px; }
  .feature-detail { max-width: none; }
}
@media(max-height:560px) and (min-width:761px) {
  html { scroll-snap-type: y proximity; }
  .hero-art { min-height: 420px; }
  .hero-phone { width: 190px; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  .screen-switch button { transition: none; }
}


.story-section { background: var(--night); border-bottom: 1px solid var(--line); }
.story-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,6vw,88px); align-items: center; }
.story-copy { max-width: 520px; }
.story-copy h2 { margin: 0; font-size: clamp(32px,3.7vw,52px); line-height: 1.2; letter-spacing: -.06em; }
.story-intro { margin: 12px 0 18px; color: var(--muted); }
.story-choices { display: grid; gap: 12px; }
.story-choice { border: 1px solid var(--line); border-radius: 12px; background: var(--deep); overflow: hidden; }
.story-choice h3 { margin: 0; }
.story-choice button { display: grid; grid-template-columns: 24px 1fr 24px; align-items: center; gap: 12px; width: 100%; min-height: 80px; padding: 16px 20px; border: 0; background: transparent; text-align: left; font-weight: 750; font-size: 17px; line-height: 1.5; }
.story-choice button[aria-expanded=true] { color: var(--amber); background: var(--panel); }
.story-choice button:hover { color: var(--amber); }
.story-choice button:focus-visible { outline-offset: -4px; }
.story-number { font-size: 12px; color: var(--teal); }
.story-arrow { font-size: 20px; text-align: right; }
.story-description { padding: 0 20px 16px 56px; background: var(--panel); }
.story-description p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.story-hint { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.story-comic { margin: 0; width: min(100%,calc((100svh - 160px) * .8),560px); justify-self: center; }
.story-comic img { display: block; width: 100%; height: auto; border-radius: 16px; }
.story-comic img[hidden], .story-description[hidden] { display: none; }
@media(max-width:1050px) {
  .story-layout { gap: 32px; }
  .story-copy h2 { font-size: 36px; }
  .story-choice button { font-size: 15px; padding: 12px 16px; gap: 8px; }
  .story-description { padding-left: 48px; padding-right: 16px; font-size: 13px; }
}
@media(max-width:760px) {
  .story-layout { grid-template-columns: 1fr; gap: 24px; }
  .story-copy { max-width: none; }
  .story-copy h2 { font-size: 34px; }
  .story-comic { width: min(100%,480px); }
  .story-intro { margin-bottom: 20px; }
}

.screen-switch[data-count="4"] { grid-template-columns: repeat(2,minmax(0,1fr)); }
.screen-switch[data-count="4"] button { padding: 10px; }
.screen-switch[data-count="4"] small { line-height: 1.45; }
@media(min-width:421px) and (max-width:760px) {
  .screen-switch[data-count="4"] { grid-template-columns: 1fr; }
}
@media(max-width:480px) {
  .nav nav { gap: 12px; font-size: 12px; }
}


/* The original site's app lineup, sized for each viewport. */
.apps-strip {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--teal) transparent;
  padding: 32px 4px 24px;
  margin: 8px 0 20px;
  border-block: 1px solid var(--line);
}
.apps-strip:focus-visible { outline: 2px solid var(--amber); outline-offset: 6px; }
.apps-strip ul {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px,1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.apps-strip li { text-align: center; scroll-snap-align: start; }
.apps-tile-icon {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  border: 1px solid color-mix(in srgb,var(--teal) 28%,var(--line));
  border-radius: 22px;
  background: color-mix(in srgb,var(--teal) 14%,var(--panel));
  color: var(--teal);
}
.apps-tile-icon svg { width: 36px; height: 36px; }
.apps-tone-1 { background: color-mix(in srgb,var(--amber) 12%,var(--panel)); color: var(--amber); }
.apps-tone-2 { background: color-mix(in srgb,var(--muted) 12%,var(--panel)); color: var(--ink); }
.apps-tone-3 { background: color-mix(in srgb,var(--teal) 22%,var(--panel)); }
.apps-tone-4 { background: color-mix(in srgb,var(--amber) 20%,var(--panel)); color: var(--amber); }
.apps-strip h3 { margin: 0 0 5px; font-size: 15px; font-weight: 750; letter-spacing: -.04em; }
.apps-strip p { margin: 0; color: var(--muted); font-size: 12px; white-space: nowrap; }
@media(max-width:760px) {
  .apps-strip { padding-block: 28px 24px; }
  .apps-strip ul { grid-auto-columns: 112px; gap: 16px; }
  .apps-tile-icon { width: 72px; height: 72px; border-radius: 20px; }
  .apps-tile-icon svg { width: 32px; height: 32px; }
}
