/*
 * Pocket web — shared styles.
 * Layout: one centred 1120px column; black "night street" ground, warm paper
 * menus as the only light objects, a single yellow ink for "chosen".
 * Deliberately dark-only: the app's first screen is this same black.
 */
/*
 * 글꼴: 사이트에 쓰인 글자만 남긴 woff2를 직접 냄 (scripts/fonts.py — Google Fonts를 부르지 않음).
 * 빠진 글자는 --f-ui 뒤의 시스템 글꼴로 보임. 새 글자가 생기면 시험이 알려 줌 → python3 apps/web/scripts/fonts.py
 */
@font-face {
  font-family: "IBM Plex Sans KR";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/font-plex-400.06f51366f7.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans KR";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/font-plex-500.c45ab5aa54.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans KR";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/font-plex-600.cc708e4891.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans KR";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/font-plex-700.7f55c25df5.woff2") format("woff2");
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/font-zenkaku-500.3f006df433.woff2") format("woff2");
}
@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/font-zenkaku-700.6d83d544af.woff2") format("woff2");
}
@font-face {
  font-family: "Klee One";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/font-klee-600.7b7589133c.woff2") format("woff2");
}
@font-face {
  font-family: "Dela Gothic One";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/font-dela-400.f00fde6bb4.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --ink: #0e0c0a; /* page ground, warm black from the app's start screen */
  --ink-2: #171411; /* raised surfaces */
  --ink-3: #23211e; /* translation chips, app ink */
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.24);
  --fg: #ffffff;
  --fg-2: #b9bfcc; /* secondary text, BeReal-style cool grey */
  --fg-3: #7e8491;
  --fg-body: #d1d6de; /* body copy on black (BeReal) */
  --paper: #f5f0e2; /* menu paper */
  --paper-ink: #2b2620;
  --paper-rule: #8a8175;
  --app-light: #f7f5f0; /* the app's light screens */
  --mark: #f2c94c; /* the one accent: picked / popular */
  --mark-ink: #23211e;
  --ok: #57c27e;

  /* Our face, the app's (design/system.md §2): IBM Plex Sans KR for Korean and Latin alike. Sizes, weights and line
     heights follow BeReal (bereal.com, measured 2026-11-05 — docs/engineering/web.md §4). Plex KR stops at 700. */
  --f-ui: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --f-mark: "Dela Gothic One", "IBM Plex Sans KR", system-ui, sans-serif;
  --f-hand: "Klee One", "Zen Kaku Gothic New", "Hiragino Mincho ProN", serif;
  --f-jp: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;

  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-md: 1rem;
  --t-lg: 1.375rem;
  /* BeReal scale: display 32/40, 48/56 from 768px (hero and section titles alike), body 18/28, label 16/24, small 14/20 */
  --t-display: 2rem;
  --lh-display: 2.5rem;
  --t-body: 1.125rem;
  --lh-body: 1.75rem;
  --t-label: 1rem;
  --lh-label: 1.5rem;
  --t-small: 0.875rem;
  --lh-small: 1.25rem;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --wrap: 1120px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); /* expo-out: fast start, long settle */
  --ease-spring: cubic-bezier(0.34, 1.36, 0.64, 1);
}

@media (min-width: 768px) {
  :root {
    --t-display: 3rem;
    --lh-display: 3.5rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--f-ui);
  font-size: var(--t-label);
  font-weight: 400;
  /* unitless so children at other sizes keep 1.5× (16px → 24px, BeReal's label line) */
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--ink);
}
img,
svg {
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
  letter-spacing: normal;
  line-height: 1.15;
  font-weight: 700;
}
p {
  margin: 0;
}
:focus-visible {
  outline: 2px solid var(--mark);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 48px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.wordmark {
  font-family: var(--f-mark);
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  line-height: 1;
  text-decoration: none;
  color: var(--fg);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  font-family: var(--f-ui);
  /* BeReal is 16px, but its Latin caps stand 11px tall where Hangul at 16px fills 15px: 14px brings the ink to ~13px.
     Line height stays 24 so the pill is BeReal's 40px */
  font-size: 0.875rem;
  line-height: var(--lh-label);
  font-weight: 500;
  color: var(--fg-2);
  padding: 8px 12px;
  border-radius: 999px;
  transition: color 0.15s;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
}
.nav .nav-cta {
  background: var(--fg);
  color: var(--ink);
  font-family: var(--f-ui);
  font-weight: 700;
  margin-left: 6px;
}
.nav .nav-cta:hover {
  color: var(--ink);
}
@media (max-width: 480px) {
  .nav .nav-hide-sm {
    display: none;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  /* 큰 버튼 글자 16/500 · 한 줄 (앱 Pill — design/system.md §9). 누른 느낌 · 처리 중은 tap.js */
  font: 500 var(--t-label) / var(--lh-label) var(--f-ui);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.btn-light {
  background: var(--fg);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-ghost:hover {
  box-shadow: inset 0 0 0 1px var(--fg-2);
}
.btn[aria-disabled="true"] {
  cursor: default;
}
.store-btn {
  height: 56px;
  padding: 0 20px 0 18px;
  gap: 12px;
}
.store-btn svg {
  flex-shrink: 0;
}
.store-btn .store-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  line-height: 1;
}
.store-btn small {
  font-size: 0.6875rem;
  font-weight: 500;
  opacity: 0.7;
}
.store-btn span span {
  font-size: var(--t-md);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(40px, 7vw, 88px) 0;
  text-align: center;
  overflow: hidden;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: var(--t-xs);
  font-weight: 600;
  color: var(--fg-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.hero h1 {
  color: var(--fg);
  font-size: var(--t-display);
  line-height: var(--lh-display);
  font-weight: 700;
  letter-spacing: normal;
  margin-top: 22px;
}
.hero h1 .soft {
  color: var(--fg);
} /* the second line is the message */
.hero-lede {
  margin: 22px auto 0;
  max-width: 34ch;
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--fg-body);
}
.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.hero-note {
  margin-top: 14px;
  font-size: var(--t-xs);
  color: var(--fg-3);
}

/* Stage: phone + notification */
.stage {
  position: relative;
  isolation: isolate;
  margin: 56px auto 0;
  width: min(100%, 400px);
  padding-bottom: 0;
}
.notif {
  position: relative;
  z-index: 3;
  width: min(100%, 360px);
  margin: 0 auto -38px;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 12px 14px;
  border-radius: 22px;
  background: rgba(60, 54, 48, 0.72);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.5);
  animation: notifIn 0.7s 0.9s var(--ease) both;
}
.app-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}
.notif-body {
  min-width: 0;
  flex: 1;
  font-size: var(--t-xs);
  line-height: 1.4;
}
.notif-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.notif-top b {
  font-size: var(--t-sm);
}
.notif-top time {
  color: var(--fg-3);
}
.notif-body p {
  color: var(--fg);
}

/* ---------- iPhone vessel (shared by hero and flow) ---------- */
.iphone {
  --frame: #2a2826;
  position: relative;
  width: min(100%, 320px);
  max-width: 100%;
  aspect-ratio: 71.5 / 149.6;
  margin-inline: auto; /* iPhone 16 Pro body, mm */
  border-radius: 18% / 8.6%;
  padding: 1.8%;
  background: #000;
  /* thin titanium band + a hairline highlight, as on a real device */
  box-shadow:
    0 0 0 1.5px var(--frame),
    0 0 0 2px rgba(255, 255, 255, 0.07),
    0 30px 80px rgba(0, 0, 0, 0.55);
}
.iphone::before,
.iphone::after {
  content: "";
  position: absolute;
  width: 2px;
  background: var(--frame);
}
.iphone::before {
  left: -3.5px;
  top: 21%;
  height: 4.2%;
  border-radius: 1px 0 0 1px;
  box-shadow:
    0 46px 0 var(--frame),
    0 88px 0 var(--frame);
}
.iphone::after {
  right: -3.5px;
  top: 29%;
  height: 9%;
  border-radius: 0 1px 1px 0;
}
.iphone-screen {
  position: relative;
  height: 100%;
  border-radius: 16.5% / 7.7%;
  overflow: hidden;
  color: var(--fg);
}
.iphone-screen.light {
  background: var(--app-light);
  color: var(--ink-3);
}
.island {
  position: absolute;
  z-index: 9;
  top: 1.3%;
  left: 50%;
  width: 32%;
  height: 4.3%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.sb {
  position: absolute;
  z-index: 8;
  inset: 0 0 auto;
  height: 7%;
  padding: 0 8% 0 12%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 600 0.82rem / 1 var(--f-ui);
}
.sb svg {
  display: block;
}
.home-ind {
  position: absolute;
  z-index: 9;
  bottom: 0.9%;
  left: 50%;
  width: 35%;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 3px;
  background: currentColor;
  opacity: 0.85;
}
.app-wm {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: 8.4%;
  text-align: center;
  font: 1.05rem / 1 var(--f-mark);
  letter-spacing: -0.03em;
}

/* Hero device */
/* Cropped 24px under the 「주문서 보기」 bar (its bottom is at 66.8% of the phone): 70% shows, the hero clips the rest
   (2026-11-05 사용자: mock이 살짝 길다 — 버튼 가까이까지). The phone is 2.09× as tall as wide, so 30% of its height is
   0.625 × its width; margin % and the width's 100% both resolve against the stage width. The fade starts a little above the bar
   (the bar may fade too — 사용자 OK) and ends at the cut so there's no hard edge. */
.hero-phone {
  width: min(100%, 340px);
  margin-bottom: calc(-0.625 * min(100%, 340px));
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent 70.2%);
  mask-image: linear-gradient(180deg, #000 58%, transparent 70.2%);
}
.counter {
  background: radial-gradient(120% 80% at 40% 30%, #6a563f 0%, #3e3125 50%, #1a140f 100%);
}
.counter::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(94deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 11px);
}

/* Menu paper, shared by hero and features */

/* Translation chips (the product's core visual): each sits on its own source line */

/* Original-photo inset: the "second camera" */
.scan {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  height: 120px;
  top: -120px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(242, 201, 76, 0.18) 85%,
    rgba(242, 201, 76, 0.55) 100%
  );
  animation: scan 1.2s 1s cubic-bezier(0.5, 0, 0.75, 0) both;
}
.screen-bar {
  position: absolute;
  z-index: 4;
  left: 16px;
  right: 16px;
  bottom: 33%;
  height: calc(var(--u) * 56);
  border-radius: calc(var(--u) * 28);
  background: var(--fg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 500 calc(var(--u) * 16) / 1 var(--f-ui);
}
.screen-bar b {
  background: var(--mark);
  border-radius: 999px;
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
}

@keyframes chipIn {
  from {
    opacity: 0;
    translate: 0 5px;
    scale: 0.95;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes notifIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes scan {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(900px);
  }
}

/* ---------- Sections ---------- */
.section {
  padding-block: clamp(72px, 10vw, 128px);
}
.section-head {
  max-width: 640px;
  display: grid;
  gap: 14px;
}
.section-head h2 {
  font-size: var(--t-display);
  line-height: var(--lh-display);
  font-weight: 700;
  letter-spacing: normal;
}
.section-head p {
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--fg-body);
}

/* ---------- Flow: one section per step ---------- */
.intro {
  padding-block: clamp(72px, 10vw, 128px) 0;
}
.intro .wrap {
  max-width: 1000px;
}
.flow {
  padding-block: clamp(56px, 8vw, 112px);
  overflow-x: clip;
}
.flow .wrap {
  max-width: 1000px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.flow-copy {
  display: grid;
  gap: 16px;
  max-width: 30rem;
  min-width: 0;
}
.flow-copy h2 {
  font-size: var(--t-display);
  line-height: var(--lh-display);
  font-weight: 700;
  letter-spacing: normal;
}
.flow-copy p {
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--fg-body);
}
.flow.rev .flow-copy {
  order: 2;
  justify-self: end;
}
.flow-device {
  position: relative;
  isolation: isolate;
  min-width: 0;
}
/* Warm glow behind the phones (Pencil H3 「Glow」: 1000×700 ellipse, #3A2A1C → transparent, for a 290px phone, centred
   0.45 phone-widths below its top). Hero: the same proportions for our 340px phone — 1172×820, centred 152px below the
   phone top (43px into the stage), so it rises behind the buttons like H3. 75% of H3's strength and 80% of its reach (940×656) — 2026-11-05 사용자: 「살짝 센 것 같아」 · 「범위도 같이 줄이면」 */
.stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 195px;
  width: 940px;
  height: 656px;
  translate: -50% -50%;
  background: radial-gradient(ellipse closest-side, rgba(58, 42, 28, 0.75), rgba(14, 12, 10, 0));
  pointer-events: none;
}
/* The glow rises behind the buttons: keep the copy above the stage that paints after it */
.hero-tag,
.hero h1,
.hero-lede,
.hero-actions,
.hero-note {
  position: relative;
  z-index: 1;
}
.flow-device::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 180%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(150, 96, 52, 0.42), rgba(90, 58, 32, 0.2) 45%, transparent);
  filter: blur(24px);
  pointer-events: none;
}
.flow-device::before {
  width: min(150%, 760px);
}
@media (max-width: 860px) {
  .flow .wrap {
    grid-template-columns: 1fr;
  }
  .flow.rev .flow-copy {
    order: 0;
    justify-self: start;
  }
}
/* Step screens: drawn from the app's own code (apps/mobile/src/screens/scan — Camera.tsx · Photo.tsx · chrome.tsx ·
   Order.tsx, ui/tokens.ts · ui/Icon.tsx), in the app's 390-wide design units: 1 unit = --u (the screen's width / 390).
   The app's safe-area insets are taken as 58 (status bar, = .sb) and 34 (home indicator). Elements that blur the point
   of each step are left out (2026-11-05 사용자): the free-quota chip, the album tray, 「사진에서 메뉴 위치 보기」. The
   finder corners on the camera are kept although the app has none (사용자). */
.iphone-screen {
  container-type: inline-size;
  --u: calc(100cqw / 390);
}
.cam {
  background: #211a14;
}
.a-shade-top,
.a-shade-bot {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  pointer-events: none;
}
.a-shade-top {
  top: 0;
  height: calc(var(--u) * 172);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0));
}
.a-shade-bot {
  bottom: 0;
  height: calc(var(--u) * 224);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.18) 35%, rgba(0, 0, 0, 0.42) 100%);
}
/* DarkHeader: 44 buttons at 20 under the inset, 12 from the sides */
.a-head,
.a-nav {
  position: absolute;
  z-index: 6;
  top: calc(var(--u) * 78);
  left: calc(var(--u) * 12);
  right: calc(var(--u) * 12);
  height: calc(var(--u) * 44);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.a-side {
  display: flex;
  gap: calc(var(--u) * 4);
}
.a-ib {
  width: calc(var(--u) * 44);
  height: calc(var(--u) * 44);
  display: grid;
  place-items: center;
  color: #fff;
}
.a-head .a-ib {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.a-ib svg {
  width: calc(var(--u) * 24);
  height: calc(var(--u) * 24);
}
.a-title {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  height: calc(var(--u) * 36);
  padding: 0 calc(var(--u) * 14);
  border-radius: calc(var(--u) * 18);
  background: rgba(22, 20, 17, 0.52);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  display: grid;
  place-items: center;
  white-space: nowrap;
  font: 500 calc(var(--u) * 14) / 1 var(--f-ui);
  color: #fff;
}

/* 찍기: the camera preview fills the screen, behind the status bar */
.s-shoot .scene {
  inset: 0;
}
.s-shoot .scene img {
  height: 100%;
  object-fit: cover;
}
.finder {
  position: absolute;
  z-index: 4;
  inset: 18% 7% 33%;
  pointer-events: none;
}
.finder i {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 3px solid var(--fg);
}
.finder i:nth-child(1) {
  left: 0;
  top: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 10px 0 0 0;
}
.finder i:nth-child(2) {
  right: 0;
  top: 0;
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 10px 0 0;
}
.finder i:nth-child(3) {
  left: 0;
  bottom: 0;
  border-right: 0;
  border-top: 0;
  border-radius: 0 0 0 10px;
}
.finder i:nth-child(4) {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 10px 0;
}
/* ShutterRow: 40 above the inset, 36 from the sides — gallery (left) · shutter · last translated photo (right) */
.a-shutter-row {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: calc(var(--u) * 74);
  padding: 0 calc(var(--u) * 36);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.a-gal,
.a-album {
  width: calc(var(--u) * 44);
  height: calc(var(--u) * 44);
  margin: calc(var(--u) * 4);
}
.a-gal {
  border-radius: 50%;
  background: rgba(35, 33, 30, 0.7);
  display: grid;
  place-items: center;
  color: #fff;
}
.a-gal svg {
  width: calc(var(--u) * 24);
  height: calc(var(--u) * 24);
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.a-album {
  border-radius: calc(var(--u) * 11);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: #3a2e24;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.3),
    0 4px 10px rgba(0, 0, 0, 0.28);
}
.a-album img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.a-shutter {
  width: calc(var(--u) * 76);
  height: calc(var(--u) * 76);
  border-radius: 50%;
  border: calc(var(--u) * 3) solid #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
}
.a-shutter::after {
  content: "";
  width: calc(var(--u) * 62);
  height: calc(var(--u) * 62);
  border-radius: 50%;
  background: #fff;
}

/* 훑기: the photo is contained, centred on the app's dark brown; tapping a line opens the floating menu card */
.s-read .scene {
  top: 50%;
  translate: 0 -50%;
}
/* The card sits by its box, placed by the app's rule (domain/pop-place.ts via scripts/scene.ts: --x · --y · --ax in app
   units, data-side = which side of the box) */
.a-pop {
  position: absolute;
  z-index: 7;
  left: calc(var(--u) * var(--x, 20));
  top: calc(var(--u) * var(--y, 500));
  width: calc(var(--u) * 272);
  padding: calc(var(--u) * 16) calc(var(--u) * 16) calc(var(--u) * 14);
  border-radius: calc(var(--u) * 18);
  background: #fff;
  color: #23211e;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: calc(var(--u) * 8);
  font-weight: 400;
  transform-origin: calc(var(--u) * var(--ax, 29)) 100%;
}
.a-pop::after {
  content: "";
  position: absolute;
  left: calc(var(--u) * (var(--ax, 29) - 9));
  bottom: calc(var(--u) * -9);
  border-left: calc(var(--u) * 9) solid transparent;
  border-right: calc(var(--u) * 9) solid transparent;
  border-top: calc(var(--u) * 10) solid #fff;
}
.a-pop[data-side="below"] {
  transform-origin: calc(var(--u) * var(--ax, 29)) 0;
}
.a-pop[data-side="below"]::after {
  bottom: auto;
  top: calc(var(--u) * -9);
  border-top: 0;
  border-bottom: calc(var(--u) * 10) solid #fff;
}
.a-pop[data-side="right"]::after,
.a-pop[data-side="left"]::after {
  left: auto;
  bottom: auto;
  top: calc(var(--u) * (var(--ax) - 9));
  border: calc(var(--u) * 9) solid transparent;
}
.a-pop[data-side="right"]::after {
  left: calc(var(--u) * -18);
  border-right: calc(var(--u) * 10) solid #fff;
}
.a-pop[data-side="left"]::after {
  right: calc(var(--u) * -18);
  border-left: calc(var(--u) * 10) solid #fff;
}
.a-pop[data-side="none"]::after {
  display: none;
}
/* Opened: everything else steps back under ink 28%; the opened box is redrawn above it (design/system.md §3-6) */
.scene-dim {
  position: absolute;
  inset: -100vh 0;
  background: rgba(35, 33, 30, 0.28);
}
.a-pop-jp {
  font: 700 calc(var(--u) * 24) / 1.1 var(--f-jp);
}
.a-pop-kr {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
}
.a-pop-kr b {
  font: 500 calc(var(--u) * 14) / 1.3 var(--f-ui);
}
.a-pop-kr small {
  font-size: calc(var(--u) * 13);
  color: #6b665e;
}
.a-dot {
  width: calc(var(--u) * 8);
  height: calc(var(--u) * 8);
  border-radius: 50%;
  background: #c2362b;
  flex-shrink: 0;
}
.a-pop p {
  margin: 0;
  font-size: calc(var(--u) * 14);
  line-height: 1.5;
  color: #4a463f;
}
.a-pop-warn {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
  font: 500 calc(var(--u) * 13) / 1.4 var(--f-ui);
  color: #c2362b;
}
.a-pop-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: calc(var(--u) * 2);
}
.a-add {
  height: calc(var(--u) * 40);
  padding: 0 calc(var(--u) * 16);
  border-radius: calc(var(--u) * 20);
  background: #23211e;
  color: #fff;
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 6);
  font: 500 calc(var(--u) * 14) / 1 var(--f-ui);
}
.a-add svg {
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
}
/* PhotoSheet, collapsed: 92 tall over the inset */
.a-peek {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--u) * 126);
  padding: calc(var(--u) * 21) calc(var(--u) * 20) 0;
  border-radius: calc(var(--u) * 28) calc(var(--u) * 28) 0 0;
  background: #fff;
  color: #23211e;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.18);
  display: grid;
  align-content: start;
  gap: calc(var(--u) * 3);
}
.a-peek::before {
  content: "";
  position: absolute;
  top: calc(var(--u) * 10);
  left: 50%;
  translate: -50% 0;
  width: calc(var(--u) * 40);
  height: calc(var(--u) * 5);
  border-radius: calc(var(--u) * 2.5);
  background: #d6d0c4;
}
.a-peek b {
  margin-top: calc(var(--u) * 4);
  font: 700 calc(var(--u) * 17) / 1.3 var(--f-ui);
}
.a-peek small {
  font: 400 calc(var(--u) * 13) / 1.4 var(--f-ui);
  color: #6b665e;
}

/* 보여 주기: Order.tsx on the app's light surface */
.s-show {
  background: #f7f5f0;
  color: #23211e;
}
.a-nav .a-ib {
  color: #23211e;
}
.a-nav b {
  font: 500 calc(var(--u) * 14) / 1 var(--f-ui);
}
.a-lead {
  position: absolute;
  top: calc(var(--u) * 138);
  left: calc(var(--u) * 20);
  margin: 0;
  font: 400 calc(var(--u) * 13) / 1.4 var(--f-ui);
  color: #6b665e;
}
.order {
  position: absolute;
  left: calc(var(--u) * 16);
  right: calc(var(--u) * 16);
  top: calc(var(--u) * 168);
  padding: calc(var(--u) * 22) calc(var(--u) * 24) calc(var(--u) * 16);
  border-radius: calc(var(--u) * 24);
  background: #fff;
  box-shadow: 0 8px 24px rgba(35, 33, 30, 0.06);
}
.order .jp {
  display: block;
  font: 700 calc(var(--u) * 30) / 1.15 var(--f-jp);
  white-space: nowrap;
}
.order .jp-s {
  font-size: calc(var(--u) * 26);
}
.order small {
  display: block;
  font: 400 calc(var(--u) * 13) / 1.4 var(--f-ui);
  color: #6b665e;
}
.order-head {
  padding-bottom: calc(var(--u) * 6);
  font: 700 calc(var(--u) * 15) / 1.3 var(--f-jp);
  letter-spacing: 0.12em;
  color: #6b665e;
}
.order ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.order li {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 12);
  padding: calc(var(--u) * 12) 0;
}
.order li > span:first-child {
  flex: 1;
  min-width: 0;
}
.order .qty {
  min-width: calc(var(--u) * 52);
  text-align: right;
  font: 700 calc(var(--u) * 30) / 1 var(--f-jp);
  font-variant-numeric: tabular-nums;
}
.order .qty i {
  font: 500 calc(var(--u) * 20) / 1 var(--f-jp);
  font-style: normal;
  color: #6b665e;
}
.order-foot {
  margin-top: calc(var(--u) * 8);
  padding: calc(var(--u) * 18) 0 calc(var(--u) * 6);
  border-top: 1px solid #efeae0;
}
.order-foot .jp {
  line-height: 1.25;
}
.a-orderbar {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  bottom: 0;
  padding: calc(var(--u) * 16) calc(var(--u) * 20) calc(var(--u) * 62);
  display: grid;
  gap: calc(var(--u) * 10);
  background: linear-gradient(180deg, rgba(247, 245, 240, 0) 0, #f7f5f0 calc(var(--u) * 18));
}
.a-phrase {
  padding: calc(var(--u) * 14) calc(var(--u) * 16);
  border-radius: calc(var(--u) * 14);
  border: 1px solid #e4dfd5;
  background: #fbf8f1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6b665e;
}
.a-phrase small {
  display: block;
  font: 700 calc(var(--u) * 12) / 1.4 var(--f-ui);
}
.a-phrase b {
  display: block;
  font: 500 calc(var(--u) * 14) / 1.4 var(--f-ui);
  color: #23211e;
}
.a-phrase svg {
  width: calc(var(--u) * 16);
  height: calc(var(--u) * 16);
}
.show-btn {
  height: calc(var(--u) * 56);
  border-radius: calc(var(--u) * 28);
  background: #23211e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(var(--u) * 8);
  font: 500 calc(var(--u) * 16) / 1 var(--f-ui);
}
.show-btn svg {
  width: calc(var(--u) * 18);
  height: calc(var(--u) * 18);
}

/* CTA band */
.cta {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 18px;
}
.cta h2 {
  font-size: var(--t-display);
  line-height: var(--lh-display);
  font-weight: 700;
  letter-spacing: normal;
}
.cta p {
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--fg-body);
}
.cta .hero-actions {
  margin-top: 10px;
}
.cta-link {
  font-size: var(--t-sm);
  color: var(--fg-2);
  text-decoration: none;
}
.cta-link:hover {
  color: var(--fg);
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: clamp(56px, 8vw, 96px) 40px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px 64px;
}
.footer-logo {
  font-size: 1.375rem;
}
.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px clamp(40px, 6vw, 96px);
}
.footer-cols nav {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}
.footer-cols h3 {
  font-size: var(--t-label);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: normal;
  line-height: var(--lh-label);
  margin-bottom: 4px;
}
.footer-cols a {
  text-decoration: none;
  color: var(--fg-2);
  font-size: var(--t-small);
  font-weight: 400;
  line-height: var(--lh-small);
}
.footer-cols a:hover {
  color: var(--fg);
}
.footer-brand {
  display: grid;
  gap: 10px;
  justify-items: start;
}
.footer-copy {
  font-family: var(--f-ui);
  font-size: var(--t-label);
  line-height: var(--lh-label);
  font-weight: 500;
  color: var(--fg-body);
}

/* ---------- Pricing page ---------- */
.p-hero {
  padding-block: clamp(48px, 7vw, 88px) 0;
  display: grid;
  gap: 16px;
  justify-items: center;
  text-align: center;
}
.p-hero h1 {
  font-size: var(--t-display);
  line-height: var(--lh-display);
  font-weight: 700;
  letter-spacing: normal;
}
.p-hero p {
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--fg-body);
  max-width: 40ch;
}

.seg {
  display: inline-flex;
  padding: 4px;
  border-radius: 16px;
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  margin-top: 14px;
}
.seg button {
  height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--fg-2);
  font: 700 var(--t-sm) / 1 var(--f-ui);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.seg button[aria-selected="true"] {
  background: var(--fg);
  color: var(--ink);
}
/* 고른 칸 표시가 미끄러져 옮겨 감 (site.js) — 표시 하나가 두 버튼 사이를 오가고, 글자색은 같은 시간에 바뀜 */
.seg.has-ind {
  position: relative;
  isolation: isolate;
}
.seg-ind {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  z-index: -1;
  border-radius: 12px;
  background: var(--fg);
  transition:
    translate 0.42s var(--c-ez),
    width 0.42s var(--c-ez);
}
.seg.has-ind button {
  transition: color 0.28s var(--c-ez);
}
.seg.has-ind button[aria-selected="true"] {
  background: transparent;
}

.plans {
  margin-top: 44px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 860px) {
  .plans {
    grid-template-columns: 1fr;
  }
}
/* Desktop: both cards share row tracks, so title, price and list start on the same line. */
@media (min-width: 861px) {
  .plans {
    row-gap: 22px;
  }
  .plans .plan {
    grid-row: span 5;
    grid-template-rows: subgrid;
  }
  .plan-free > .btn {
    grid-row: 5;
    align-self: start;
  } /* same row as the pass purchase button */
}
.plan-lede {
  font-size: var(--t-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-top: 6px;
}
.plan {
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  gap: 22px;
  align-content: start;
  min-width: 0;
}
.plan-free {
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan-paid {
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.plan-name {
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--fg-2);
}
.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.plan-price strong {
  font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan-price span {
  font-size: var(--t-sm);
  color: var(--fg-2);
}
.checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: var(--t-sm);
}
.checks li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.checks svg {
  margin-top: 2px;
}

.options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
  border: 0;
}
.options[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 460px) {
  .options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.options legend {
  padding: 0;
  margin-bottom: 14px;
  font-size: var(--t-sm);
  font-weight: 700;
}
.opt {
  position: relative;
}
.opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.opt label {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 16px 6px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
  text-align: center;
  /* 고른 테두리 · 바탕이 번지듯 바뀜 (앱 surface 곡선) — 크기 튐은 tap.js pop */
  transition:
    box-shadow 0.26s var(--c-surface),
    background-color 0.26s var(--c-surface);
}
.opt input:checked + label {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 2px var(--fg);
}
.opt input:focus-visible + label {
  outline: 2px solid var(--mark);
  outline-offset: 2px;
}
.opt .o-label {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--fg-2);
}
.opt .o-price {
  font-size: var(--t-md);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.opt .o-day {
  font-size: 0.72rem;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.opt .o-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  pointer-events: none;
  background: var(--mark);
  color: var(--mark-ink);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.buy {
  display: grid;
  gap: 10px;
}
.buy .btn {
  width: 100%;
  background: var(--fg);
  color: var(--ink);
}
.buy-note {
  font-size: var(--t-xs);
  color: var(--fg-3);
  text-align: center;
}
.buy-note a {
  color: inherit;
}
.buy-status {
  font-size: var(--t-xs);
  text-align: center;
  color: var(--fg-2);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
}

/* Comparison: sits in the same dark card language as the plans above.
   The paid column is a faint raised band; marks are bare glyphs, not chips. */
.compare-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border-radius: var(--r-lg);
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 8px clamp(4px, 1.5vw, 12px);
}
.compare {
  width: 100%;
  min-width: 320px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--t-sm);
  table-layout: fixed;
}
.compare col.c-free,
.compare col.c-paid {
  width: clamp(92px, 24%, 220px);
}
.compare th,
.compare td {
  padding: 20px clamp(10px, 2.5vw, 24px);
  text-align: left;
  vertical-align: middle;
}
.compare td,
.compare thead th:not(:first-child) {
  text-align: center;
}
.compare tbody tr + tr > * {
  border-top: 1px solid var(--line);
}
.compare tbody tr + tr > .paid {
  border-top-color: rgba(255, 255, 255, 0.07);
}
.compare .paid {
  background: rgba(255, 255, 255, 0.045);
}
.compare thead .paid {
  border-radius: var(--r-md) var(--r-md) 0 0;
}
.compare tbody tr:last-child .paid {
  border-radius: 0 0 var(--r-md) var(--r-md);
}
.compare thead th {
  padding-block: 22px 14px;
}
.compare thead b {
  display: block;
  font-size: var(--t-md);
  font-weight: 700;
  color: var(--fg);
}
.compare thead small {
  display: block;
  margin-top: 2px;
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.compare thead .paid small {
  color: var(--fg-2);
}
.compare tbody th b {
  display: block;
  font-weight: 600;
  color: var(--fg);
}
.compare tbody th small {
  display: block;
  margin-top: 3px;
  font-size: var(--t-xs);
  color: var(--fg-3);
  font-weight: 500;
}
.compare .val {
  font-weight: 500;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}
.compare .val.strong {
  font-weight: 700;
  color: var(--fg);
}
.ic {
  display: inline-flex;
  vertical-align: middle;
}
.ic-yes {
  color: var(--ok);
}
.ic-no {
  color: rgba(255, 255, 255, 0.28);
}

.faq {
  margin-top: 28px;
  display: grid;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font: 400 1.5rem / 1 var(--f-ui);
  color: var(--fg-3);
  transition: transform 0.44s var(--c-ez);
}
/* 닫히는 동안(is-closing)은 이미 + 로 돌아감 — 판이 접히는 것과 같은 때에 */
.faq details[open]:not(.is-closing) summary::after {
  transform: rotate(45deg);
}
.faq details.is-moving {
  overflow: hidden;
}
.faq details p {
  padding-bottom: 22px;
  color: var(--fg-2);
  max-width: 62ch;
  font-size: var(--t-sm);
}

/* ---------- Legal documents ---------- */
.legal {
  padding-block: 32px 96px;
}
.legal-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 4px;
  border-radius: 16px;
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
  width: max-content;
  max-width: 100%;
}
.legal-tabs::-webkit-scrollbar {
  display: none;
}
.legal-tabs a {
  flex-shrink: 0;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: var(--t-sm);
  font-weight: 700;
  color: var(--fg-2);
  white-space: nowrap;
}
.legal-tabs a:hover {
  color: var(--fg);
}
.legal-tabs a[aria-current="page"] {
  background: var(--fg);
  color: var(--ink);
}
.draft {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgba(242, 201, 76, 0.1);
  box-shadow: inset 0 0 0 1px rgba(242, 201, 76, 0.32);
  font-size: var(--t-xs);
  color: var(--fg-2);
}
.draft b {
  color: var(--mark);
}
.legal-head {
  margin-top: 40px;
  display: grid;
  gap: 12px;
  padding-bottom: 8px;
}
.legal-head h1 {
  font-size: var(--t-display);
  line-height: var(--lh-display);
  font-weight: 700;
  letter-spacing: normal;
}
.legal-head p {
  font-size: var(--t-body);
  line-height: var(--lh-body);
  font-weight: 400;
  color: var(--fg-body);
}
.legal-meta {
  margin: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: var(--t-xs);
}
.legal-meta div {
  display: flex;
  gap: 8px;
}
.legal-meta dt {
  color: var(--fg-3);
}
.legal-meta dd {
  margin: 0;
  font-weight: 700;
}
.legal-body {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 860px) {
  .legal-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.legal-toc {
  position: sticky;
  top: calc(env(safe-area-inset-top, 0px) + 88px);
}
@media (max-width: 860px) {
  .legal-toc {
    position: static;
    padding: 16px 18px;
    border-radius: var(--r-md);
    background: var(--ink-2);
  }
}
.toc-title {
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--fg-3);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.legal-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.legal-toc a {
  display: flex;
  gap: 8px;
  text-decoration: none;
  padding: 6px 10px;
  margin-left: -10px;
  border-radius: 8px;
  font-size: var(--t-xs);
  color: var(--fg-2);
  line-height: 1.45;
}
.legal-toc a span {
  color: var(--fg-3);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.legal-toc a:hover {
  color: var(--fg);
}
.legal-toc a[aria-current="true"] {
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}
.legal-doc {
  display: grid;
  gap: 40px;
  max-width: 68ch;
}
.article {
  display: grid;
  gap: 12px;
  scroll-margin-top: calc(env(safe-area-inset-top, 0px) + 84px);
}
.article h2 {
  font-size: var(--t-lg);
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.art-no {
  font-size: var(--t-sm);
  color: var(--mark);
  font-variant-numeric: tabular-nums;
}
.article p,
.article li {
  color: var(--fg-2);
  font-size: var(--t-sm);
  line-height: 1.8;
}
.article ol {
  margin: 0;
  padding-left: 1.3em;
  display: grid;
  gap: 6px;
}
.legal-table {
  overflow-x: auto;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line);
}
.legal-table table {
  width: 100%;
  min-width: 320px;
  border-collapse: collapse;
  font-size: var(--t-xs);
}
.legal-table th,
.legal-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.legal-table tr:last-child td {
  border-bottom: 0;
}
.legal-table th {
  color: var(--fg-3);
  font-weight: 700;
  background: var(--ink-2);
}
.legal-table td {
  color: var(--fg-2);
}
mark.ph {
  background: rgba(242, 201, 76, 0.16);
  color: var(--mark);
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(242, 201, 76, 0.4);
}
.legal-end {
  padding-top: 8px;
  font-size: var(--t-xs);
  color: var(--fg-3);
}

/* ================= Motion =================
 * One orchestrated moment per section, played once:
 *   hero   — type rises out of blur, then the phone lands and the menu gets read
 *   flow   — copy and device rise together, then the screen acts out its step
 *   CTA    — quiet rise
 * Hidden start states only exist under html.motion (set by site.js when motion is
 * allowed and IntersectionObserver exists), so without JS everything is visible.
 */
.btn {
  will-change: transform;
}

/* Hero load */
.hero .in {
  animation: riseBlur 0.9s var(--ease-out) both;
  animation-delay: var(--d, 0ms);
}
.hero .soft.in {
  display: inline-block;
}
.stage {
  animation: land 1.2s 0.45s var(--ease-out) both;
  translate: 0 var(--py, 0px);
}
.notif {
  animation: notifIn 0.8s 1.5s var(--ease-spring) both;
}
.hero .screen-bar {
  animation: barIn 0.6s 2.1s var(--ease-spring) both;
}
@keyframes riseBlur {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}
@keyframes land {
  from {
    opacity: 0;
    transform: translateY(90px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes barIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Scroll reveal (one time) — 하나하나 화면에 들어올 때(site.js initMotion). 글은 앱의 글 바꾸기와 같은 말투로 흐림에서
 * 올라오고(투명도 450ms RN ease · 24px 700ms ez), 폰은 더 멀리서 크기와 함께 내려앉음(72px · 0.96배 850ms ez).
 * 화면 위로 이미 지나간 것(뒤로 가기로 돌아온 경우 등)은 움직이지 않고 그대로 보임 */
html.motion [data-r] {
  opacity: 0;
  translate: 0 24px;
  filter: blur(4px);
  transition:
    opacity 0.45s var(--c-rn-ease),
    translate 0.7s var(--c-ez),
    filter 0.45s var(--c-rn-ease);
  transition-delay: var(--d, 0ms);
}
html.motion [data-r-device] {
  translate: 0 72px;
  scale: 0.96;
  filter: none;
  transition:
    opacity 0.55s var(--c-rn-ease),
    translate 0.85s var(--c-ez),
    scale 0.85s var(--c-ez);
  transition-delay: var(--d, 0ms);
}
html.motion [data-r].is-in {
  opacity: 1;
  translate: none;
  scale: none;
  filter: none;
}
html.motion [data-r].is-now {
  transition: none;
}

/* Screen stories: paused until the section is in, then run once */

/* 찍기: viewfinder locks on, shutter press, flash */
html.motion .s-shoot .scene {
  animation: menuDrift 1.6s 0.5s var(--ease-out) both;
}
html.motion .s-shoot .finder {
  animation: finderLock 0.8s 1.3s var(--ease-out) both;
}
html.motion .s-shoot .a-shutter {
  animation: press 0.45s 2.1s var(--ease) both;
}
.flash {
  position: absolute;
  z-index: 7;
  inset: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
}
html.motion .s-shoot .flash {
  animation: flash 0.7s 2.25s ease-out both;
}
@keyframes menuDrift {
  from {
    transform: translate(10px, -8px) scale(1.05);
    filter: blur(2px);
  }
  to {
    transform: none;
    filter: blur(0);
  }
}
@keyframes finderLock {
  from {
    opacity: 0.35;
    transform: scale(1.14);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes press {
  40% {
    transform: scale(0.86);
  }
  100% {
    transform: none;
  }
}
@keyframes flash {
  0% {
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  100% {
    opacity: 0;
  }
}

/* 훑기: translations land line by line, one gets tapped, sheet slides up */
html.motion .s-read .a-peek {
  animation: sheetUp 0.75s 0.5s var(--ease-out) both;
}
/* the card pops from its pointer, as in the app (220ms, scale .92 → 1, up 8) — slowed a little to be seen */
/* tap: the rest dims and the box rises with its card, as the app does (dim 0.2s) */
html.motion .s-read .scene-dim,
html.motion .s-read .scene-dim + .scene-ovl {
  animation: dimIn 0.2s 2.1s ease both;
}
@keyframes dimIn {
  from {
    opacity: 0;
  }
}
html.motion .s-read .a-pop {
  animation: popIn 0.35s 2.2s var(--ease-out) both;
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes sheetUp {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}

/* 보여 주기: the order sheet builds itself */
html.motion .s-show .order {
  animation: orderIn 0.9s 0.7s var(--ease-out) both;
}
html.motion .s-show .order li {
  animation: itemIn 0.5s var(--ease-out) both;
  animation-delay: calc(1.15s + var(--i, 0) * 0.13s);
}
html.motion .s-show .order-foot {
  animation: itemIn 0.6s 1.65s var(--ease-out) both;
}
html.motion .s-show .a-orderbar {
  animation: barIn 0.6s 1.9s var(--ease-spring) both;
}
@keyframes orderIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes itemIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Hold every screen story until its section is revealed. !important because the
   per-screen `animation` shorthands above reset play-state to running. */
html.motion [data-reveal]:not(.is-in) .flow-device * {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  .scan {
    display: none;
  }
}

/* ---------- Added when the site moved into the repo (apps/web) ----------
 * Moved here from each page's inline <style> so the CSP can forbid inline <style> blocks. */
:root {
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
[hidden] {
  display: none !important;
}

/* Business disclosure (전자상거래법): one quiet line under the footer columns */
.footer-biz {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-style: normal;
  font-size: var(--t-xs);
  line-height: 1.6;
  color: var(--fg-3);
}
.footer-biz a {
  color: inherit;
}

/* Legal documents rendered from docs/business/legal: the source uses more than articles and tables */
.legal-intro {
  display: grid;
  gap: 12px;
}
.legal-intro p,
.article blockquote p {
  color: var(--fg-2);
  font-size: var(--t-sm);
  line-height: 1.8;
}
.article h3 {
  font-size: var(--t-md);
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: -0.01em;
}
.article h4 {
  font-size: var(--t-sm);
  font-weight: 700;
  margin-top: 4px;
}
.article ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 6px;
}
.article li > ol,
.article li > ul {
  margin-top: 6px;
}
.article strong {
  color: var(--fg);
  font-weight: 700;
}
.article a,
.legal-intro a {
  color: var(--fg);
  text-underline-offset: 3px;
}
.article blockquote,
.legal-intro blockquote {
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--ink-2);
  display: grid;
  gap: 8px;
}
.article pre {
  margin: 0;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--ink-2);
  overflow-x: auto;
  font-size: var(--t-xs);
  line-height: 1.6;
  color: var(--fg-2);
}
.article code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
}
.legal-meta a {
  color: var(--fg-2);
}
.legal-old {
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  font-size: var(--t-sm);
  color: var(--fg-2);
}
.legal-old a {
  color: var(--fg);
}

/* The phone mock-ups draw the app, not the site: keep the app's inherited weight there when the site body went to 400 */
.stage,
.flow-device {
  font-weight: 500;
}

/* Example photo + translation overlay: the app tutorial's menu wall and its real translation (scripts/scene.ts →
   src/generated/menu-wall.json, drawn by @tt/core planOverlay like the app). The SVG is in photo pixels, so it scales
   with the photo. Sits just under the status bar, like the app's tutorial screen. */
.scene {
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  top: 7%;
}
.scene img {
  display: block;
  width: 100%;
  height: auto;
}
.scene-ovl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ovl-i {
  transform-box: fill-box;
  transform-origin: center;
}
.hero .ovl-i {
  animation: chipIn 0.5s var(--ease-spring) both;
  animation-delay: calc(1.25s + var(--i, 0) * 0.09s);
}
html.motion .s-read .ovl-i {
  animation: chipIn 0.5s var(--ease-spring) both;
  animation-delay: calc(0.8s + var(--i, 0) * 0.09s);
}

/* ---------- Billing: /checkout · /account (checkout.js) ----------
   앱 구매 · 구매 완료 화면과 같은 밝은 종이 판 (design/system.md §1 색 · §9 글자 · 버튼).
   소개 페이지(어두운 사이트)와 따로: Paddle 결제 칸이 흰 판이라 같은 밝은 바탕에 놓아야 하나로 보입니다. */
body.billing {
  color-scheme: light;
  --b-bg: #f7f5f0;
  --b-card: #ffffff;
  --b-line: #e4dfd5;
  --b-info: #ece7dd;
  --b-paper: #fbf8f1;
  --b-ink: #23211e;
  --b-body: #4a463f;
  --b-sub: #6b665e;
  --b-ok: #2a8f50;
  --b-danger: #e5473a;
  --b-danger-bg: #fce9e6;
  background: var(--b-bg);
  color: var(--b-ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.billing::before {
  background: var(--b-bg);
}
.b-wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}
.b-header {
  border-bottom: 1px solid var(--b-line);
}
.b-header .b-wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.b-header .wordmark {
  color: var(--b-ink);
}
.b-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--b-body);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.b-back:hover {
  color: var(--b-ink);
}
.b-main {
  flex: 1;
  padding: 32px 0 72px;
}
.b-grid {
  display: grid;
  gap: 20px;
  align-items: start;
}
@media (min-width: 900px) {
  .b-main {
    padding-top: 56px;
  }
  .b-grid {
    grid-template-columns: minmax(0, 380px) minmax(0, 480px);
    justify-content: center;
    gap: 56px;
  }
  .b-summary {
    position: sticky;
    top: 32px;
    order: 0;
  }
}
.b-narrow {
  max-width: 520px;
}

/* 주문 요약: 휴대폰은 접힌 줄 하나(「3일 이용권 · 4,900원 ⌄」), 넓은 화면은 늘 펼침 */
.b-sum {
  background: var(--b-card);
  border: 1px solid var(--b-line);
  border-radius: 20px;
}
.b-sum-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 18px;
  cursor: pointer;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}
.b-sum-bar::-webkit-details-marker {
  display: none;
}
.b-sum-bar-name {
  flex: 1;
}
.b-sum-bar-total {
  font-weight: 700;
}
.b-chev {
  color: var(--b-sub);
  transition: transform 0.2s var(--ease);
}
.b-sum[open] .b-chev {
  transform: rotate(180deg);
}
.b-sum-body {
  padding: 4px 18px 20px;
}
@media (min-width: 900px) {
  .b-sum-bar {
    display: none;
  }
  .b-sum-body {
    padding: 24px;
  }
}
.b-rows,
.b-receipt {
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.b-rows div,
.b-receipt div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 15px;
}
.b-rows dt,
.b-receipt dt {
  color: var(--b-sub);
}
.b-rows dd,
.b-receipt dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
}
.b-row-sub {
  font-size: 13px !important;
}
.b-row-sub dd {
  color: var(--b-sub);
  font-weight: 400 !important;
}
.b-row-total {
  padding-top: 12px;
  border-top: 1px solid var(--b-line);
}
.b-row-total dt {
  color: var(--b-ink) !important;
  font-weight: 500;
}
.b-row-total dd {
  font-size: 20px;
  font-weight: 700 !important;
}
.b-notes {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.b-notes li {
  position: relative;
  padding-left: 26px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--b-body);
}
.b-notes li::before {
  /* 받는 것 체크: 초록 선, 원 없이 (§1) */
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 14px;
  height: 8px;
  border-left: 2.4px solid var(--b-ok);
  border-bottom: 2.4px solid var(--b-ok);
  transform: rotate(-45deg);
}
.b-notes-wide {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--b-line);
}
.b-notes-wide li::before {
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 50%;
  background: var(--b-sub);
  transform: none;
  top: 8px;
  left: 8px;
}
.b-notes a,
.b-legal a,
.b-fine a {
  color: inherit;
}
.b-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--b-body);
}

/* 오른쪽 한 칸: 로그인 → 결제 → 완료 */
.b-panel {
  min-width: 0;
}
.b-view.b-in {
  animation: b-rise 0.32s var(--ease-out) both;
}
@keyframes b-rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.b-title {
  font-size: 22px;
  line-height: 1.36;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--b-ink);
}
.b-title-lg {
  font-size: 26px;
  line-height: 1.32;
  letter-spacing: -0.02em;
}
.b-lede {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--b-body);
}
.b-social {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.b-social-btn {
  position: relative;
  overflow: hidden;
  height: 54px;
  border-radius: 999px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 500 16px / 1 var(--f-ui);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.b-social-kakao {
  background: #fee500;
  color: #191919;
}
.b-social-apple {
  background: #000;
  color: #fff;
}
.b-social-google {
  background: #fff;
  color: #1f1f1f;
  box-shadow: inset 0 0 0 1px var(--b-line);
}
.b-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 6px;
  font-size: 13px;
  color: var(--b-sub);
}
.b-or::before,
.b-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--b-line);
}
.b-email {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.b-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--b-body);
}
.b-input {
  height: 54px;
  width: 100%;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid var(--b-line);
  background: var(--b-card);
  color: var(--b-ink);
  font: 400 16px var(--f-ui);
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.b-input::placeholder {
  color: #a9a397;
}
.b-input:focus {
  outline: none;
  border-color: var(--b-ink);
  box-shadow: 0 0 0 3px rgba(35, 33, 30, 0.08);
}
.b-code {
  font-size: 22px;
  letter-spacing: 0.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.b-error {
  font-size: 13px;
  color: var(--b-danger);
}
.b-btn {
  position: relative;
  overflow: hidden;
  height: 56px;
  width: 100%;
  border-radius: 999px;
  border: 0;
  background: var(--b-ink);
  color: #fff;
  font: 500 16px / 1 var(--f-ui);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  margin-top: 4px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  user-select: none;
}
.b-btn:disabled {
  opacity: 0.5;
  cursor: progress;
}
.b-btn-quiet {
  background: var(--b-card);
  color: var(--b-ink);
  box-shadow: inset 0 0 0 1px var(--b-line);
}

.b-code-more {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.b-inline-btn {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  font: 500 15px var(--f-ui);
  color: var(--b-body);
  cursor: pointer;
}
.b-inline-btn:disabled {
  color: var(--b-sub);
  cursor: default;
}
.b-account .b-inline-btn {
  min-height: 0;
  font-size: 13px;
  text-decoration: underline;
}
.b-fine {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--b-sub);
}
.b-pay-head {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}
.b-account {
  font-size: 13px;
  color: var(--b-sub);
}
.pk-paddle {
  min-height: 420px;
}
.b-legal {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--b-sub);
}
.b-skeleton {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.b-skeleton span {
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(90deg, var(--b-info), #f3efe7, var(--b-info));
  background-size: 200% 100%;
  animation: b-shimmer 1.4s linear infinite;
}
.b-skeleton span:nth-child(3) {
  height: 56px;
  border-radius: 999px;
}
@keyframes b-shimmer {
  to {
    background-position: -200% 0;
  }
}

/* 결제 수단: 앱의 고르기 상자와 같은 모양 (고른 칸 = 흰 판 + 먹 2px, 나머지 = 흰 판 + 선) */
.b-methods {
  border: 0;
  margin: 0 0 18px;
  padding: 0;
  min-width: 0;
}
.b-methods legend {
  padding: 0;
  margin-bottom: 8px;
}
.b-method-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.b-method-grid[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.b-method {
  position: relative;
  min-height: 60px;
  padding: 8px 6px;
  border-radius: 14px;
  background: var(--b-card);
  box-shadow: inset 0 0 0 1px var(--b-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  cursor: pointer;
  transition:
    box-shadow 0.15s,
    transform 0.12s var(--ease);
}

.b-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.b-method-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--b-body);
}
.b-method-sub {
  font-size: 11px;
  color: var(--b-sub);
}
.b-method:has(input:checked) {
  box-shadow: inset 0 0 0 2px var(--b-ink);
}
.b-method:has(input:checked) .b-method-name {
  color: var(--b-ink);
}
.b-method:has(input:focus-visible) {
  outline: 2px solid var(--b-ink);
  outline-offset: 2px;
}
.b-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--b-sub);
  text-align: center;
}
.b-note a {
  color: inherit;
}
.b-legal {
  text-align: center;
}

/* 로그인: 소셜 단추 아래 「이메일로 계속하기」 글자 버튼 (앱 로그인 시트와 같음) */
.b-email-open {
  width: 100%;
  margin-top: 6px;
}
.b-email .b-title {
  margin-bottom: -4px;
}
.b-email .b-lede {
  margin: 0 0 8px;
}
.b-center {
  text-align: center;
  margin-top: 4px;
}
.b-hint-error {
  color: var(--b-danger);
}

/* 완료 표시: 먹색 선 원을 긋고 체크를 그음 (앱 결과 시트 「끝남」, design/system.md §8) */
.b-check {
  color: var(--b-ink);
  margin: 4px 0 20px;
}
.b-check-ring {
  stroke-dasharray: 164;
  stroke-dashoffset: 164;
  animation: b-draw 0.6s var(--ease-out) forwards;
}
.b-check-mark {
  stroke-dasharray: 32;
  stroke-dashoffset: 32;
  animation: b-draw 0.4s 0.45s var(--ease-out) forwards;
}
@keyframes b-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.b-eyebrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--b-sub);
  margin-bottom: 14px;
}
@media (max-width: 899px) {
  .b-eyebrow {
    display: none;
  }
}

.b-rows div:first-child dt {
  color: var(--b-ink);
  font-weight: 500;
}
.b-steps {
  display: flex;
  gap: 18px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--b-sub);
}
.b-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.b-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--b-info);
  color: var(--b-sub);
}
.b-steps li.is-on {
  color: var(--b-ink);
}
.b-steps li.is-on .b-step-dot {
  background: var(--b-ink);
  color: #fff;
}
.b-steps li.is-done .b-step-dot {
  background: var(--b-ink);
  color: transparent;
  position: relative;
}
.b-steps li.is-done .b-step-dot::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}

.b-note-left {
  text-align: left;
  margin-top: 14px;
}
.b-cta {
  margin-top: 4px;
}
.b-cta[hidden],
.pk-paddle[hidden] {
  display: none;
}
.b-acc-open {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

/* 결제 수단 칸: 공식 로고(변형 없이) + 한글 이름 */
.b-method.has-mark {
  gap: 4px;
}
.b-method-logo {
  display: block;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
/* 로고 · 아이콘은 같은 24px 칸 가운데 — 이름 줄이 칸마다 같은 높이에. 크기는 잉크 높이 13px로 맞춤(METHODS h) */
.b-method-icon {
  display: grid;
  place-items: center;
  height: 24px;
  color: var(--b-ink);
}
.b-method.has-mark .b-method-name {
  font-size: 12px;
  font-weight: 400;
}
.b-method {
  min-height: 72px;
}

/* ---------- 시트 (로그인 · 가입 · 약관 — 앱 overlays/Sheet.tsx · SHEET 토큰) ----------
   휴대폰은 아래 판(앱 시트: 모서리 28 · 안쪽 10 20 30 · 손잡이 40×5 · 막 rgba(22,20,17,.45)).
   넓은 화면은 앱의 가운데 창(sheets/Skip.tsx · SHEET.scrim.dialog): 폭 390(앱 시안 폭) · 모서리 24 · 그림자 0 24 60 .35 · 막 rgba(14,12,10,.62) */
html.pk-lock,
html.pk-lock body {
  overflow: hidden;
}
.pk-sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}
.pk-sheet[hidden] {
  display: none;
}
.pk-scrim {
  position: absolute;
  inset: 0;
  background: rgba(14, 12, 10, 0.62);
}
.pk-panel {
  position: relative;
  width: min(390px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #fff;
  color: var(--b-ink, #23211e);
  border-radius: 24px;
  padding: 28px 20px 30px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  outline: none;
  /* 어두운 이용권 페이지에서도 뜨는 판 — 밝은 결제 화면의 토큰을 판 안에 다시 둠 */
  color-scheme: light;
  --b-bg: #f7f5f0;
  --b-card: #ffffff;
  --b-line: #e4dfd5;
  --b-info: #ece7dd;
  --b-paper: #fbf8f1;
  --b-ink: #23211e;
  --b-body: #4a463f;
  --b-sub: #6b665e;
  --b-ok: #2a8f50;
  --b-danger: #e5473a;
  --b-danger-bg: #fce9e6;
}
.pk-grabber {
  display: none;
}
@media (max-width: 599px) {
  .pk-sheet {
    place-items: end stretch;
    padding: 0;
  }
  .pk-scrim {
    background: rgba(22, 20, 17, 0.45);
  }
  .pk-panel {
    width: 100%;
    box-shadow: none;
    max-height: calc(100vh - 24px);
    border-radius: 28px 28px 0 0;
    padding: 10px 20px calc(30px + env(safe-area-inset-bottom, 0px));
  }
  .pk-grabber {
    display: block;
    width: 40px;
    height: 5px;
    border-radius: 3px;
    background: #d6d0c4;
    margin: 0 auto 14px;
  }
}
.pk-body {
  display: grid;
  gap: 20px;
  overflow: hidden;
}
.pk-ghost {
  position: absolute;
  left: 20px;
  right: 20px;
  pointer-events: none;
}
.pk-head {
  display: grid;
  gap: 8px;
  padding: 4px 4px 0;
}
.pk-title {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0;
}
.pk-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--b-sub);
}
.pk-social {
  display: grid;
  gap: 10px;
}
.pk-form {
  display: grid;
  gap: 10px;
}
.pk-form .b-btn {
  margin-top: 0;
}
.pk-fine {
  font-size: 13px;
  color: var(--b-sub);
  text-align: center;
}
.pk-foot {
  justify-self: center;
  min-height: 44px;
}
.pk-row {
  display: flex;
  justify-content: center;
  gap: 24px;
}
.pk-outcome {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 0 4px;
}
.pk-outcome .b-check {
  margin: 0 0 10px;
}

/* 약관 동의 (앱 sheets/Terms.tsx): 「모두 동의」 칸 + 줄마다 체크 동그라미 24 · 필수/선택 13/700 · 이름 15 · › 원문 */
.pk-all {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--b-line);
  background: var(--b-bg);
  color: var(--b-ink);
  font: 700 17px / 1.3 var(--f-ui);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
}
.pk-all.is-on {
  background: var(--b-ink);
  border-color: var(--b-ink);
  color: #fff;
}
.pk-ring {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1.5px #cfc8ba;
  color: transparent;
  transition:
    background 0.18s,
    box-shadow 0.18s,
    color 0.18s;
}
.pk-pick.is-on .pk-ring {
  background: var(--b-ink);
  box-shadow: none;
  color: #fff;
}
.pk-all.is-on .pk-ring {
  background: #fff;
  box-shadow: none;
  color: var(--b-ink);
}
.pk-terms {
  list-style: none;
  margin: -8px 0 0;
  padding: 0 16px;
}
.pk-terms li {
  display: flex;
  align-items: center;
  height: 44px;
}
.pk-pick {
  flex: 1;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--b-ink);
  font: 400 15px var(--f-ui);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pk-pick b {
  font-size: 13px;
  font-weight: 700;
  margin-right: -6px;
}
.pk-pick b.is-opt {
  color: var(--b-sub);
}
.pk-pick span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pk-more {
  width: 40px;
  height: 44px;
  display: grid;
  place-items: center end;
  color: #a8a194;
}
.pk-agree.is-off {
  opacity: 0.35;
}

/* /account: 소개 아래 로그인 · 구독 관리 열기 */
.b-main[data-account] [data-view="signin"],
.b-main[data-account] [data-view="open"],
.b-main[data-account] [data-view="loading"] {
  margin-top: 28px;
}
.b-main[data-account] [data-view="open"] {
  display: grid;
  gap: 10px;
}
.b-main[data-account] [data-view="open"][hidden] {
  display: none;
}
.b-main[data-account] [data-view="signin"] .b-lede {
  margin-top: 0;
}

/* 완료하면 요약 칸을 치우고 한 칸으로 (요약은 완료 화면의 표 · 결제 내역이 대신함) */
.b-main.is-done .b-summary {
  display: none;
}
.b-main.is-done .b-grid {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}

/* 완료: 앱 구매 완료 화면(screens/passes/Done.tsx)과 같은 순서 — 표 · 제목 · 한 줄 · 결제 내역 · 버튼 */
.b-receipt {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--b-line);
}
.b-receipt div {
  font-size: 14px;
}
.b-actions {
  display: grid;
  gap: 2px;
  margin-top: 28px;
}
.b-text-btn {
  border: 0;
  background: none;
  padding: 0;
  font-family: var(--f-ui);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--b-body);
  text-decoration: none;
}
.b-done .b-fine {
  text-align: center;
}
.b-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.b-mark-fail {
  background: var(--b-danger);
  animation: b-pop 0.4s var(--ease-spring) both;
}
.b-mark-info {
  background: var(--b-info);
  color: var(--b-ink);
}
@keyframes b-pop {
  from {
    transform: scale(0.5);
    opacity: 0;
  }
}
.b-notice .b-actions {
  margin-top: 24px;
}

.b-footer {
  border-top: 1px solid var(--b-line);
  padding: 22px 0 28px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--b-sub);
}
.b-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-bottom: 8px;
}
.b-footer a {
  color: var(--b-body);
  text-decoration: none;
}
.b-footer address {
  font-style: normal;
}
@media (prefers-reduced-motion: reduce) {
  .b-check-ring,
  .b-check-mark {
    animation: none;
    stroke-dashoffset: 0;
  }
  .b-view.b-in,
  .b-mark-fail {
    animation: none;
  }
  .b-skeleton span {
    animation: none;
  }
}

/* ---------- 처리 중 (tap.js loading — 앱 Pill loading: 같은 색 막 + 도는 고리) ---------- */
.tap-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  border-radius: inherit;
  pointer-events: none;
}
.tap-ring {
  display: grid;
  place-items: center;
}
[aria-busy="true"] {
  cursor: progress;
}
.b-text-btn,
.b-inline-btn,
.link-btn {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* 간편결제 로고: 칸은 흰 칸 그대로, 로고 뒤에만 그 회사 색 알약(카카오페이 결제수단 로고와 같은 모양 — 높이 23 · 좌우 7, 잉크 13).
   네이버페이 그린 #00DE5A + 블랙 로고 · 페이코 레드 #FF2233 + 화이트 워드마크. 카카오페이는 파일 자체가 옐로우 알약, 삼성페이는 바탕 없이 블랙 로고 */
.b-method-pill {
  display: inline-flex;
  align-items: center;
  height: 23px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--pill);
}

/* ---------- 움직임 곡선 (앱 ui/tokens.ts CURVE와 같은 이름 · 값) ---------- */
:root {
  --c-ez: cubic-bezier(0.32, 0.72, 0, 1);
  --c-surface: cubic-bezier(0.2, 0.8, 0.3, 1);
  --c-accel: cubic-bezier(0.4, 0, 1, 1);
  --c-sheet-close: cubic-bezier(0.4, 0, 0.6, 1);
  --c-rn-ease: cubic-bezier(0.42, 0, 1, 1);
}

/* ---------- 페이지 사이 이동 (같은 사이트 안, View Transitions — vt.js가 방향을 정함) ----------
   앱 화면 전환(nav/Navigator.tsx: 500ms ez, 투명도 350ms)을 웹 크기로: 떠나는 화면은 180ms에 살짝 물러나며 사라지고,
   새 화면은 이동 방향에서 28px 밀려 들어오며(500ms ez) 나타남(350ms). 머리(메뉴)는 움직이지 않고 그대로 */
@view-transition {
  navigation: auto;
}
.site-header {
  view-transition-name: site-header;
}
::view-transition-group(site-header) {
  animation: none;
  z-index: 2;
}
::view-transition-old(site-header) {
  animation: none;
  opacity: 0;
}
::view-transition-new(site-header) {
  animation: none;
}
:root {
  --vt-dir: 1;
}
:root:active-view-transition-type(backwards) {
  --vt-dir: -1;
}
::view-transition-old(root) {
  animation: vt-out 0.18s var(--c-accel) both;
}
::view-transition-new(root) {
  animation:
    vt-fade-in 0.35s var(--c-rn-ease) both,
    vt-slide-in 0.5s var(--c-ez) both;
}
@keyframes vt-out {
  to {
    opacity: 0;
    translate: calc(var(--vt-dir) * -10px) 0;
  }
}
@keyframes vt-fade-in {
  from {
    opacity: 0;
  }
}
@keyframes vt-slide-in {
  from {
    translate: calc(var(--vt-dir) * 28px) 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
  .seg-ind,
  .seg.has-ind button,
  .opt label,
  .faq summary::after {
    transition: none;
  }
}
