/* 랜딩 스타일(P0-16, 2026-10-25 랜딩 A안). 외부 글꼴·외부 주소·@import 없음, 글자 크기는 rem(200% 확대에서 잘리지 않게).
   색은 아래 토큰만 쓴다. 글자 대비 4.5:1, 테두리·초점 3:1 이상은 sitecheck.CONTRAST_PAIRS가 두 테마 모두 시험한다.
   아래 값은 중립 색이다. 시장 팩 색 파일(brand/colors.json)의 landing 칸이 토큰을 덮어쓰면 빌드가 assets/brand.css를
   만들어 이 파일 바로 뒤에 링크하고, 덮어쓴 실제 색으로 두 테마 대비를 확인한다(P1-A12, apps/landing/README.md 12장).
   기본은 밝은 화면이다(Park 2026-10-25). 어두운 화면은 머리글 스위치(#theme-flip)를 켤 때만이고 기기 설정은 따르지 않는다. */
:root {
  color-scheme: light;
  color-scheme: only light;
  --bg: #ffffff;
  --surface: #f3f5f8;
  --fg: #1b2330;
  --muted: #4a5566;
  --link: #0b5394;
  --accent: #0b5394;
  --accent-fg: #ffffff;
  --border: #6b7585;
  --border-subtle: #d3d9e1;
  --focus: #b3400a;
  --emph-bg: #fff0b3;
  --emph-fg: #1b2330;
  --draft-bg: #8a1c1c;
  --draft-fg: #ffffff;
  --ph-bg: #fde2e2;
  --ph-fg: #7a1414;
  --note-bg: #e9f0fa;
  --note-fg: #1b2330;
  --error: #a3121c;
  --success: #17663a;
  /* 랜딩 A안의 판·그림 토큰: 큰 제목 그러데이션 끝색, 차가운 판, 따뜻한 판, 따뜻한 아이콘, 그림자, 휴대폰 틀,
     진한 판과 그 위 글, 가린 자리 표시, 말풍선 */
  --grad-to: #3d6f9e;
  --tint-1: #eef2f6;
  --tint-2: #f6efec;
  --warm: #9a4a32;
  --shadow: #1b2330;
  --bezel: #1b2330;
  --panel-strong: #1b2330;
  --panel-strong-fg: #ffffff;
  --token-bg: #f2c9b8;
  --token-fg: #1b2330;
  --bubble-bg: #c9dcee;
  --bubble-fg: #1b2330;
  --gutter: clamp(16px, 2vw + 8px, 32px);
  --r-xl: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  --r-lg: clamp(1.25rem, 1rem + 1.2vw, 1.75rem);
  --section: clamp(4rem, 3rem + 5vw, 8rem);
}

:root:has(#theme-flip:checked) {
  color-scheme: dark;
  --bg: #11151b;
  --surface: #1a2029;
  --fg: #e7ecf2;
  --muted: #b4bfcc;
  --link: #8cc4ff;
  --accent: #8cc4ff;
  --accent-fg: #0d1b2a;
  --border: #8d97a6;
  --border-subtle: #39424f;
  --focus: #ffbf69;
  --emph-bg: #4d3d00;
  --emph-fg: #fff3c4;
  --draft-bg: #ffb3b3;
  --draft-fg: #3a0909;
  --ph-bg: #5a1717;
  --ph-fg: #ffd9d9;
  --note-bg: #1e2a3a;
  --note-fg: #dbe6f5;
  --error: #ff9e9e;
  --success: #86e0a4;
  --grad-to: #8cc4ff;
  --tint-1: #1a2230;
  --tint-2: #2a2427;
  --warm: #e8a98f;
  --shadow: #000000;
  --bezel: #05080c;
  --panel-strong: #1e2733;
  --panel-strong-fg: #e7ecf2;
  --token-bg: #e8b9a6;
  --token-fg: #1b2330;
  --bubble-bg: #2c4a66;
  --bubble-fg: #ffffff;
}

/* 테마별 그림(로고·아바타·앱 화면): 밝은 그림이 기본, 스위치를 켜면 어두운 그림 */
.only-dark {
  display: none !important;
}

:root:has(#theme-flip:checked) .only-light {
  display: none !important;
}

:root:has(#theme-flip:checked) .only-dark {
  display: block !important;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic",
    "Noto Sans KR", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--link);
  text-underline-offset: 0.2em;
}

h1,
h2,
h3,
h4 {
  line-height: 1.3;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.1875rem;
  border-radius: 0.375rem;
}

main:focus {
  outline: none;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -10rem;
  z-index: 100;
  padding: 0.75rem 1.125rem;
  border-radius: 0.875rem;
  background: var(--fg);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: 100%;
  max-width: calc(72rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap.narrow {
  max-width: calc(48rem + 2 * var(--gutter));
}

.line {
  display: block;
}

.grad {
  background: linear-gradient(90deg, var(--fg) 0%, var(--grad-to) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-bottom: 0.06em;
}

/* 초안 미리보기 띠(preview 빌드에만) */
.draft-band {
  background: var(--draft-bg);
  color: var(--draft-fg);
  font-weight: 700;
  padding: 0.75rem 1rem;
}

.draft-band p {
  max-width: 72rem;
  margin: 0 auto;
}

.preview-note {
  background: var(--note-bg);
  color: var(--note-fg);
  border-left: 0.25rem solid var(--border);
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

mark.ph {
  background: var(--ph-bg);
  color: var(--ph-fg);
  outline: 1px dashed var(--ph-fg);
  padding: 0 0.125rem;
}

/* ---------- 머리글 ---------- */
.site-header {
  position: relative;
  z-index: 30;
  background: var(--bg);
  border-bottom: 1px solid var(--border-subtle);
}

/* 휴대폰: 1줄 로고 + (어두운 화면·언어), 2줄 메뉴. 글자를 키워 1줄에 안 들어가면 오른쪽 묶음이 다음 줄로 내려간다 */
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1rem;
  padding-top: 0.375rem;
  padding-bottom: 0.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  margin-right: auto;
  color: var(--fg);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-logo {
  display: block;
  height: 1.5rem;
  width: auto;
}

.site-nav {
  order: 3;
  flex: 1 0 100%;
}

.site-nav ul,
.lang-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav ul {
  gap: 0 1.375rem;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--fg);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-nav li:last-child {
  margin-left: auto;
}

.site-nav a.nav-cta {
  min-height: 2.5rem;
  padding: 0 1.125rem;
  border-radius: 999px;
  background: var(--fg);
  color: var(--surface);
  font-weight: 600;
}

.site-nav a.nav-cta:hover {
  text-decoration: none;
}

.header-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
}

/* 어두운 화면 스위치: 진짜 체크 상자를 알약 위에 투명하게 겹친다(누르기·초점·낭독 모두 체크 상자가 받음) */
.theme {
  position: relative;
  display: inline-flex;
}

.theme input {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  opacity: 0;
  cursor: pointer;
}

.theme label {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.theme .pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 1.875rem;
  padding: 0 0.75rem 0 0.625rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.theme .pill .icon {
  width: 1rem;
  height: 1rem;
  stroke-width: 2;
}

.theme input:focus-visible + label .pill {
  outline: 0.1875rem solid var(--focus);
  outline-offset: 0.1875rem;
}

.theme input:checked + label .pill {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.theme input:checked + label .pill .icon {
  fill: currentColor;
}

/* :has()를 모르는 브라우저에서는 눌러도 바뀌지 않으므로 스위치를 숨긴다(밝은 화면 그대로) */
@supports not selector(:has(*)) {
  .theme {
    display: none;
  }
}

.lang-nav ul {
  gap: 0.25rem;
}

.lang-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.lang-nav a:hover {
  text-decoration: underline;
}

.lang-nav a[aria-current="page"] {
  color: var(--muted);
  font-weight: 500;
}

/* ---------- 버튼 ---------- */
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 1.5rem;
  border: 0.125rem solid transparent;
  border-radius: 999px;
  background: var(--fg);
  color: var(--surface);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--shadow) 60%, transparent);
}

.button:hover,
button:hover {
  filter: brightness(1.1);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  filter: none;
}

.button-large {
  min-height: 3.375rem;
  padding: 0.75rem 1.875rem;
  font-size: 1.0625rem;
}

/* ---------- 첫 화면 ---------- */
.hero {
  padding-top: clamp(1.5rem, 0.5rem + 4.2vw, 4.25rem);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0.3125rem 0.875rem 0.3125rem 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.eyebrow .dot {
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grad-to), var(--warm));
}

.display {
  margin: 0;
  font-size: clamp(2rem, 0.95rem + 4.6vw, 4.5rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.hero .lead {
  max-width: 36em;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 0.98rem + 0.42vw, 1.3125rem);
  line-height: 1.6;
  text-wrap: balance;
}

.hero-actions {
  display: flex;
  justify-content: center;
  margin: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem) 0 0;
}

.hero-actions .button {
  width: 100%;
  max-width: 22rem;
}

/* 첫 화면 사실 목록(출시 시기·앱): 넓은 화면에서는 점으로 잇고, 좁은 화면에서는 한 줄에 하나씩 */
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
}

.hero-facts li + li::before {
  content: "";
  flex: none;
  width: 3px;
  height: 3px;
  margin: 0 0.75rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

@media (max-width: 40em) {
  .hero-facts li {
    flex-basis: 100%;
    justify-content: center;
  }

  .hero-facts li + li::before {
    display: none;
  }
}

@media (min-width: 40em) {
  .hero-actions .button {
    width: auto;
  }
}

/* 무대: 휴대폰 한 대가 빛 위로 올라온다 */
.stage {
  --pw: clamp(244px, 18vw + 100px, 336px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: clamp(352px, 28vw + 160px, 560px);
  margin-top: clamp(2rem, 1.5rem + 2.2vw, 3.5rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(55% 70% at 50% 100%, color-mix(in srgb, var(--grad-to) 40%, transparent) 0%, transparent 72%),
    radial-gradient(30% 40% at 85% 20%, color-mix(in srgb, var(--warm) 14%, transparent) 0%, transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--tint-1) 100%);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.rings {
  position: absolute;
  left: 50%;
  top: calc(7% + var(--pw) * 0.62);
  z-index: -1;
  width: calc(var(--pw) * 4.4);
  max-width: none;
  height: calc(var(--pw) * 4.4);
  transform: translate(-50%, -50%);
}

.rings circle {
  fill: none;
  stroke: color-mix(in srgb, var(--grad-to) 22%, transparent);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.rings circle.dash {
  stroke-dasharray: 2 7;
  stroke-width: 1.6;
}

/* CSS 휴대폰 틀 */
.phone {
  position: relative;
  width: var(--pw);
  padding: calc(var(--pw) * 0.032);
  border-radius: calc(var(--pw) * 0.155);
  background: linear-gradient(155deg, color-mix(in srgb, var(--bezel) 80%, var(--surface)) 0%, var(--bezel) 36%,
    color-mix(in srgb, var(--bezel) 82%, var(--shadow)) 100%);
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--surface) 14%, transparent),
    0 60px 90px -40px color-mix(in srgb, var(--shadow) 50%, transparent),
    0 24px 40px -24px color-mix(in srgb, var(--shadow) 35%, transparent);
}

:root:has(#theme-flip:checked) .phone {
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--grad-to) 26%, transparent),
    0 0 0 1px color-mix(in srgb, var(--grad-to) 8%, transparent),
    0 60px 90px -40px color-mix(in srgb, var(--shadow) 70%, transparent);
}

.screen {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.125);
  background: var(--surface);
}

.statusbar {
  position: relative;
  height: calc(var(--pw) * 0.118);
  background: var(--surface);
}

.island {
  position: absolute;
  left: 50%;
  top: 32%;
  width: 31%;
  height: 46%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--bezel);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.homebar {
  display: grid;
  place-items: center;
  height: calc(var(--pw) * 0.07);
  background: var(--surface);
}

.homebar::before {
  content: "";
  width: 34%;
  height: 4px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--fg) 30%, transparent);
}

.phone-hero {
  position: absolute;
  left: 50%;
  top: 7%;
  transform: translateX(-50%);
}

/* 떠 있는 이름표(화면 속 이름을 크게 보여 주는 장식, 넓은 화면에서만) */
.chips {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 1.125rem 0.625rem 0.625rem;
  border: 1px solid color-mix(in srgb, var(--surface) 90%, transparent);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 22px 44px -22px color-mix(in srgb, var(--shadow) 45%, transparent);
  text-align: left;
  white-space: nowrap;
  line-height: 1.3;
}

.chip-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.75rem;
  background: var(--tint-1);
  color: var(--fg);
}

.chip-icon .icon {
  width: 1.125rem;
  height: 1.125rem;
}

.chip small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.chip b {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
}

.chip .tok {
  display: inline-block;
  padding: 0 0.375rem;
  border-radius: 0.375rem;
  background: var(--token-bg);
  color: var(--token-fg);
}

/* 화면 속 글자를 가리지 않게 휴대폰 테두리에만 살짝 걸친다 */
.c1 {
  right: calc(50% + var(--pw) * 0.472);
  top: 27%;
}

.c2 {
  right: calc(50% + var(--pw) * 0.5 + 1.75rem);
  top: 57%;
}

.c3 {
  left: calc(50% + var(--pw) * 0.472);
  top: 41%;
}

.c4 {
  left: calc(50% + var(--pw) * 0.5 + 1.75rem);
  top: 69%;
}

@media (min-width: 56em) {
  .chips {
    display: block;
  }
}

/* ---------- 기능 ---------- */
.statement {
  padding-top: var(--section);
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
  text-align: center;
}

.statement .sym {
  display: block;
  width: 3.25rem;
  height: auto;
  margin: 0 auto 1.75rem;
}

.statement h2 {
  margin: 0;
  font-size: clamp(1.625rem, 1.05rem + 2.45vw, 3rem);
  line-height: 1.32;
  letter-spacing: -0.035em;
}

.section-note {
  color: var(--muted);
  font-size: 0.875rem;
}

.statement .section-note {
  margin-top: 1.5rem;
}

.feature-list {
  display: grid;
  gap: clamp(4rem, 3rem + 5vw, 8rem);
  padding-bottom: var(--section);
}

.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.feature .copy,
.feature .visual {
  width: 100%;
  max-width: 37.5rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1.125rem;
  padding: 0.3125rem 0.75rem 0.3125rem 0.5625rem;
  border-radius: 999px;
  background: var(--tint-1);
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.tag .icon {
  width: 1.0625rem;
  height: 1.0625rem;
}

.feature h3 {
  margin: 0;
  font-size: clamp(1.5rem, 1.1rem + 1.55vw, 2.25rem);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.feature .body {
  max-width: 34em;
  margin: 1.125rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
}

.visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 1 / 1.02;
  border-radius: var(--r-xl);
}

.v-level {
  aspect-ratio: 1 / 1.18;
}

.panel-cool {
  background:
    radial-gradient(75% 60% at 25% 15%, color-mix(in srgb, var(--surface) 90%, transparent), transparent 70%),
    var(--tint-1);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.panel-warm {
  background:
    radial-gradient(70% 60% at 75% 10%, color-mix(in srgb, var(--surface) 85%, transparent), transparent 70%),
    var(--tint-2);
  box-shadow: inset 0 0 0 1px var(--border-subtle);
}

.panel-strong {
  background:
    radial-gradient(70% 55% at 85% 0%, color-mix(in srgb, var(--grad-to) 40%, transparent), transparent 70%),
    radial-gradient(55% 50% at 0% 100%, color-mix(in srgb, var(--warm) 22%, transparent), transparent 70%),
    var(--panel-strong);
  color: var(--panel-strong-fg);
}

/* 기능 1: 실제 화면 조각 두 장 */
.ui-card {
  position: absolute;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--border-subtle), 0 34px 60px -34px color-mix(in srgb, var(--shadow) 50%, transparent);
}

.ui-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-digest {
  left: 5%;
  top: 5.5%;
  width: 80%;
  aspect-ratio: 360 / 252;
  border-radius: 1.125rem;
}

.card-digest img {
  object-position: 50% 0;
}

.card-sheet {
  right: 5%;
  bottom: 0;
  width: 84%;
  aspect-ratio: 360 / 255;
  border-radius: 8.4% 8.4% 0 0 / 11.9% 11.9% 0 0;
}

.card-sheet img {
  object-position: 50% 100%;
}

/* 어두운 화면: 밝은 앱 화면 그림을 눈부시지 않게 조금 낮춘다(어두운 그림이 있는 홈 화면은 제외) */
:root:has(#theme-flip:checked) .ui-card,
:root:has(#theme-flip:checked) .screen-room {
  filter: brightness(0.88);
}

/* 기능 2: AI 차단방 화면, 머리 줄과 대화 부분만 */
.v-room {
  container-type: inline-size;
}

.phone-room {
  --pw: min(74cqw, 340px);
  position: absolute;
  left: 50%;
  top: 8%;
  transform: translateX(-50%);
}

.screen-room {
  min-height: calc(var(--pw) * 1.9);
}

.slice {
  overflow: hidden;
}

.slice img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slice-head {
  aspect-ratio: 360 / 64;
}

.slice-head img {
  object-position: 50% 0;
}

.slice-chat {
  aspect-ratio: 360 / 315;
}

.slice-chat img {
  object-position: 50% 46.07%;
}

/* 기능 3: 가림 그림(상대에게는 그대로, AI에는 종류만) */
.v-mask {
  display: grid;
  align-content: center;
  min-height: 22rem;
  overflow: visible;
  aspect-ratio: auto;
  container-type: inline-size;
}

.mask-demo {
  display: grid;
  justify-items: center;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem) clamp(1rem, 0.5rem + 2vw, 2.5rem);
}

.md-cap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.md-cap .avatar {
  display: block;
  width: 1.375rem;
  height: 1.375rem;
}

.md-sent {
  text-align: center;
}

.bubble {
  display: inline-block;
  margin: 0;
  padding: 0.6875rem 1rem;
  border-radius: 1.25rem;
  font-size: clamp(0.9375rem, 0.9rem + 0.25vw, 1.125rem);
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.bubble-sent {
  border-bottom-right-radius: 0.4375rem;
  background: var(--bubble-bg);
  color: var(--bubble-fg);
}

.bubble-sent .secret {
  text-decoration: underline wavy var(--token-bg);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.md-fork {
  position: relative;
  width: 50%;
  height: 2.5rem;
  margin: 0.375rem 0 0.5rem;
}

.md-fork::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: 50%;
  border-left: 1.5px dashed color-mix(in srgb, var(--panel-strong-fg) 50%, transparent);
}

.md-fork::after {
  content: "";
  position: absolute;
  inset: 50% 0 0;
  border: 1.5px dashed color-mix(in srgb, var(--panel-strong-fg) 50%, transparent);
  border-bottom: 0;
  border-radius: 0.875rem 0.875rem 0 0;
}

.md-branches {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.md-branch {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 0.875rem 0.5rem 1rem;
  border: 1px solid color-mix(in srgb, var(--panel-strong-fg) 14%, transparent);
  border-radius: 1.25rem;
  background: color-mix(in srgb, var(--panel-strong-fg) 6%, transparent);
  text-align: center;
}

.bubble-recv {
  border-bottom-left-radius: 0.4375rem;
  background: var(--panel-strong-fg);
  color: var(--panel-strong);
}

.bubble-ai {
  border: 1px solid color-mix(in srgb, var(--panel-strong-fg) 24%, transparent);
  border-bottom-left-radius: 0.4375rem;
  background: color-mix(in srgb, var(--panel-strong-fg) 10%, transparent);
  color: var(--panel-strong-fg);
}

.token {
  display: inline-block;
  padding: 0 0.4375rem;
  border-radius: 0.4375rem;
  background: var(--token-bg);
  color: var(--token-fg);
  font-weight: 700;
}

@container (max-width: 26em) {
  .md-fork {
    width: 0;
    height: 1.75rem;
  }

  .md-fork::before {
    height: 100%;
  }

  .md-fork::after {
    display: none;
  }

  .md-branches {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.625rem;
  }
}

@media (min-width: 56em) {
  .feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    gap: clamp(3rem, 1rem + 4.5vw, 6rem);
    justify-items: stretch;
  }

  .feature .copy,
  .feature .visual {
    max-width: none;
  }

  .feature.flip {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  }

  .feature.flip .visual {
    order: -1;
  }

  .feature-text {
    grid-template-columns: minmax(0, 1fr);
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
  }

  .feature-text .body {
    margin-left: auto;
    margin-right: auto;
  }

  .visual,
  .v-level {
    aspect-ratio: 1 / 0.92;
  }

  .v-mask {
    aspect-ratio: auto;
  }

  .card-digest {
    left: 7%;
    top: 7%;
    width: 60%;
  }

  .card-sheet {
    right: 7%;
    width: 66%;
  }

  .phone-room {
    --pw: min(60cqw, 340px);
  }
}

/* ---------- 개인정보(볼 수 없는 것, 예외와 한계, 하지 않는 것). 예외와 한계는 접지 않고 펼친 채로 둔다 ---------- */
.trust {
  padding-bottom: var(--section);
}

.trust-panel {
  position: relative;
  padding: clamp(3.25rem, 2.25rem + 3vw, 4.75rem) clamp(1rem, 0.25rem + 3.5vw, 4rem) clamp(2rem, 1.5rem + 2vw, 3.25rem);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, var(--tint-1) 0%, var(--bg) 70%);
  text-align: center;
}

.lock-badge {
  position: absolute;
  left: 50%;
  top: 0;
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  transform: translate(-50%, -50%);
  border: 1px solid var(--border-subtle);
  border-radius: 1.125rem;
  background: var(--surface);
  color: var(--fg);
  box-shadow: 0 12px 26px -14px color-mix(in srgb, var(--shadow) 40%, transparent);
}

.lock-badge .icon {
  width: 1.5rem;
  height: 1.5rem;
}

.kicker {
  margin: 0 0 0.875rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.trust h2,
.faq h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem);
  line-height: 1.22;
  letter-spacing: -0.035em;
}

.claim {
  max-width: 42rem;
  margin: 1.25rem auto 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 600;
  line-height: 1.6;
  text-wrap: balance;
}

.trust-list {
  display: grid;
  gap: 0.75rem;
  max-width: 64rem;
  margin: clamp(2rem, 1.5rem + 2vw, 3rem) auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.tile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 0.875rem;
  align-items: start;
  padding: 1.125rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: 0 10px 24px -18px color-mix(in srgb, var(--shadow) 22%, transparent);
}

.tile-warm {
  background: var(--tint-2);
}

.tile-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.875rem;
  background: var(--tint-1);
  color: var(--fg);
}

.tile-warm .tile-icon {
  background: var(--surface);
  color: var(--warm);
}

.tile h3 {
  margin: 0.375rem 0;
  font-size: 1.0625rem;
}

.tile p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.tile-warm p {
  color: var(--fg);
}

.promise-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  max-width: 64rem;
  margin: 1.75rem auto 0;
  padding: 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.promise-list li {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  text-align: left;
}

.promise-list li::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.875rem;
  margin: 0.25rem 0.25rem 0 0.125rem;
  border-right: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(45deg);
}

.trust .section-note {
  margin: 1.75rem auto 0;
  max-width: 42rem;
}

@media (min-width: 60em) {
  .trust-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tile {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.25rem;
  }

  .tile-icon {
    grid-row: auto;
    margin-bottom: 0.5rem;
  }
}

/* ---------- 자주 묻는 질문: details·summary(스크립트 없음). summary는 높이를 고정하지 않는다(확대해도 잘리지 않게) ---------- */
.faq {
  padding-bottom: var(--section);
}

.faq h2 {
  text-align: center;
}

.faq-list {
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  border-top: 1px solid var(--border-subtle);
}

.faq details {
  border-bottom: 1px solid var(--border-subtle);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 1rem 0.25rem;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  display: grid;
  place-items: center;
  flex: none;
  width: 1.75rem;
  aspect-ratio: 1;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  font-weight: 500;
  line-height: 1;
}

.faq details[open] > summary::after {
  content: "−";
}

.faq details p {
  max-width: 42em;
  margin: 0 0 1.5rem;
  padding: 0 0.25rem;
  color: var(--muted);
}

/* ---------- 폼(대기자·제휴) ---------- */
.form-section {
  padding: 2.5rem 0;
}

.waitlist {
  padding-top: clamp(3rem, 2rem + 4vw, 6rem);
  padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  background:
    radial-gradient(45% 50% at 50% 30%, color-mix(in srgb, var(--grad-to) 22%, transparent), transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, var(--tint-1) 45%, var(--bg) 100%);
}

.partner {
  padding-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}

.form-card {
  max-width: 50rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 0.9rem + 3vw, 2.75rem);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 50px 90px -50px color-mix(in srgb, var(--shadow) 45%, transparent);
}

.form-card-quiet {
  box-shadow: none;
}

.form-card h2 {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.form-head {
  text-align: center;
}

.form-head .mark {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 14px 28px -14px color-mix(in srgb, var(--shadow) 45%, transparent);
}

.form-head p,
.form-card > p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.landing-form {
  margin-top: 2rem;
}

.landing-form fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field {
  margin: 0 0 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.marker {
  color: var(--muted);
  font-weight: 400;
}

input[type="email"],
input[type="text"],
input[type="tel"],
select,
textarea {
  display: block;
  width: 100%;
  min-height: 3.125rem;
  padding: 0.65rem 0.95rem;
  border: 1.5px solid var(--border);
  border-radius: 0.875rem;
  background: var(--bg);
  color: var(--fg);
  font: inherit;
}

textarea {
  resize: vertical;
}

.consents {
  margin-top: 1.75rem !important;
}

.consents > legend {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.hint {
  color: var(--muted);
}

.consent-section {
  margin: 1rem 0;
  padding: 0.25rem 1rem 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  background: var(--bg);
}

.consent-section h3,
.consent-section h4 {
  font-size: 1rem;
}

.consent-check {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0.75rem 0;
  padding: 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
}

.consent-check:has(input:checked) {
  border-color: var(--accent);
}

.consent-check input,
.choice input {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.125rem 0 0;
  accent-color: var(--accent);
}

.consent-check label {
  font-weight: 600;
}

.survey {
  margin-top: 1rem !important;
  padding: 0.75rem !important;
  border: 1px solid var(--border) !important;
  border-radius: 0.75rem;
}

.survey:disabled {
  color: var(--muted);
}

.survey > legend {
  padding: 0 0.25rem;
  font-weight: 700;
}

.survey-question > legend {
  font-weight: 600;
}

.choice {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.25rem 0;
}

.form-unavailable,
.legal-note {
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--note-bg);
  color: var(--note-fg);
}

/* 처리방침 이전 판 쪽(P0-24)의 안내: 지금 시행하는 판이 아니라는 것을 본문보다 먼저 보이게 */
.version-note {
  border-inline-start: 0.25rem solid var(--border);
  font-weight: 600;
}

.form-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 1.25rem;
  margin: 1.25rem 0;
}

.form-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 700;
}

.landing-form button[type="submit"] {
  width: 100%;
  min-height: 3.375rem;
  font-size: 1.0625rem;
}

.confirm-note {
  margin: 0.875rem 0 0;
  font-size: 0.875rem;
  text-align: center;
}

.form-status {
  min-height: 1.6em;
  font-weight: 700;
}

.form-status[data-kind="error"],
.form-status[data-kind="busy"] {
  color: var(--error);
}

.form-status[data-kind="success"] {
  color: var(--success);
}

/* ---------- 법적 문서·결과 쪽 ---------- */
/* 굵게 쓴 중요한 내용(홍보 연락 사실, 보유·이용 기간 등)은 화면에서도 따로 강조(REVIEW_NOTES K-20) */
.legal strong {
  padding: 0 0.125rem;
  background: var(--emph-bg);
  color: var(--emph-fg);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.15em;
}

.legal blockquote {
  margin: 1rem 0;
  padding: 0.25rem 1rem;
  border-left: 0.25rem solid var(--border);
}

.legal-page,
.result {
  padding-top: 2rem;
}

.legal-page h1,
.result h1 {
  font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  letter-spacing: -0.03em;
}

.legal-page h2 {
  margin-top: 2rem;
  font-size: 1.25rem;
}

.lead {
  color: var(--muted);
  font-size: 1.125rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap th,
.table-wrap td {
  min-width: 6rem;
  padding: 0.5rem;
  border: 1px solid var(--border-subtle);
  text-align: start;
  vertical-align: top;
}

.table-wrap th {
  background: var(--surface);
}

/* 칸이 셋 이상인 표(markdown._table)는 좁은 곳에서 행을 카드로 쌓는다. 머리 줄은 화면에서만 숨기고(읽기 프로그램은
   ARIA 역할로 표 그대로 읽음), 칸마다 머리 글(data-label)을 위에 단다. 대기자 폼 카드 폭에서는 늘 쌓이고, 법적
   문서 쪽은 휴대폰·태블릿 세로 폭에서 쌓인다. */
.table-stack {
  container: legal-table / inline-size;
}

@container legal-table (max-width: 46rem) {
  .table-stack table,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td {
    display: block;
  }

  .table-stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .table-stack tr {
    border: 1px solid var(--border-subtle);
    border-radius: 0.75rem;
    background: var(--surface);
  }

  .table-stack tr + tr {
    margin-top: 0.75rem;
  }

  .table-stack td {
    min-width: 0;
    padding: 0.625rem 0.875rem;
    border: 0;
  }

  .table-stack td + td {
    border-top: 1px solid var(--border-subtle);
  }

  /* 읽기 프로그램은 머리 칸을 이미 읽으므로 대체 글을 비운다(그 꼴을 모르는 브라우저는 앞 줄을 씀) */
  .table-stack td::before {
    content: attr(data-label);
    content: attr(data-label) / "";
    display: block;
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.875rem;
    font-weight: 700;
  }
}

.back-link {
  margin: 2rem 0 3rem;
}

/* 앱 링크 안내 쪽(README 17장): 가운데 메뉴가 없어 넓은 화면에서도 언어 메뉴를 오른쪽에 두고, 스토어 링크는 단추 꼴로 */
.app-link-header .brand {
  margin-right: auto;
}

.app-link-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.app-link-manual {
  margin-bottom: 3rem;
}

.root {
  padding-top: 3rem;
}

/* ---------- 바닥글 ---------- */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  align-items: baseline;
}

.footer-inner a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--fg);
  font-weight: 700;
}

.publisher,
.contact,
.footer-app {
  margin: 0;
}

.publisher {
  flex-basis: 100%;
}

/* 앱 법적 문서 묶음(P1-A12): '<서비스> 앱'과 문서 셋의 링크가 각각 한 덩어리로 줄을 바꾼다 */
.footer-app {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  align-items: baseline;
}

/* ---------- 넓은 화면 ---------- */
@media (min-width: 48em) {
  .header-inner {
    flex-wrap: nowrap;
    column-gap: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
  }

  .header-tools {
    flex-wrap: nowrap;
  }

  .brand {
    margin-right: 0;
  }

  .site-nav {
    order: 0;
    flex: 1 1 auto;
  }

  .site-nav ul {
    justify-content: flex-end;
  }

  .site-nav li:last-child {
    margin-left: 0.25rem;
  }

  .brand-logo {
    height: 1.625rem;
  }
}

@media (min-width: 64em) {
  .site-header {
    position: sticky;
    top: 0;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    backdrop-filter: saturate(1.6) blur(18px);
  }

  main [id] {
    scroll-margin-top: 5.5rem;
  }
}

/* ---------- 좁은 화면·큰 글씨(em 기준이라 글자를 200%로 키우면 더 넓은 화면에서도 켜진다) ---------- */
@media (max-width: 30em) {
  .trust-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .tile {
    padding: 1rem 12px;
  }

  .form-card {
    padding: 1.5rem 16px;
  }

  .consent-section {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 22em) {
  .site-nav li:last-child {
    margin-left: 0;
  }

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

  .tile-icon {
    display: none;
  }
}

/* ---------- 강제 색(고대비) ---------- */
@media (forced-colors: active) {
  .grad {
    background: none;
    color: CanvasText;
  }

  .theme input:checked + label .pill {
    forced-color-adjust: none;
    background: Highlight;
    border-color: Highlight;
    color: HighlightText;
  }
}

/* ---------- 움직임(줄이기를 고르지 않았을 때만) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .chip {
    animation: drift 8s ease-in-out infinite;
  }

  .c2 {
    animation-delay: -2s;
  }

  .c3 {
    animation-delay: -4s;
  }

  .c4 {
    animation-delay: -6s;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}
