/* KIWY 홈페이지 — 1차 정적 페이지 공통 스타일
 *
 * 색은 CLAUDE.md 브랜드 토큰을 그대로 옮긴다. 여기 한 곳에서만 정의한다.
 * 웹폰트를 쓰지 않는다 — 주 사용자가 환자·고령자라 느린 회선에서도 글자가
 * 바로 보여야 한다. 시스템 글꼴이 한글도 가장 잘 읽힌다.
 *
 * 접근성(설계서 15.5): 글꼴 200% 확대에서도 레이아웃이 버텨야 하므로
 * 고정 px 폭을 쓰지 않고 max-width + 여백으로 잡는다.
 */

:root {
  --kiwi-green: #A9D36B;
  --green-dark: #5E8F2B;
  --coral: #FF8A7A;
  --soft-blue: #8EC5EB;
  --navy: #21384A;
  --beige: #F5EFE7;
  --brown: #9B6A45;

  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --line: #E7E1D8;
  --muted: #6B7A85;

  --radius: 20px;
  --page: 1080px;
}

* { box-sizing: border-box; }

/* 숨긴 것은 어떤 규칙보다 먼저 숨어 있어야 한다.
   서랍이 이것 하나로 감춰지므로 여기서 물러서면 본문 위에 펼쳐진다. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;      /* 한글은 단어 단위로 줄바꿈해야 읽기 쉽다 */
}

img { max-width: 100%; height: auto; }

a { color: var(--green-dark); }

.wrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------------------------------- 상단 */

/* 머리글 — 두 줄.
   윗줄: ☰ · 로고 · 로그인
   아랫줄: 메뉴를 가로로. **줄을 바꾸지 않고 옆으로 민다** —
   좁은 화면에서 줄바꿈시키면 머리글이 화면 절반을 먹는다. */

header.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

header.top .bar .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
}

header.top .brand { display: inline-flex; align-items: center; }
header.top .brand img { height: 28px; width: auto; }

.icon-btn {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
}
.icon-btn:hover { background: var(--beige); }

/* ☰ — 그림 파일 없이 선 세 개로 */
.bars, .bars::before, .bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after  { top: 6px; }

.login-btn {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--green-dark);
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
}
.login-btn:hover { background: #4F7A23; }

/* 가로 메뉴 */
.tabs { border-top: 1px solid var(--line); }
.tabs .wrap {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scrollbar-width: none;           /* 막대는 숨기되 스크롤은 된다 */
  -webkit-overflow-scrolling: touch;
}
.tabs .wrap::-webkit-scrollbar { display: none; }

.tabs a {
  flex: none;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  border-bottom: 3px solid transparent;
}
.tabs a:hover { color: var(--navy); }

/* 지금 보고 있는 곳. 색만으로 구분하지 않도록 밑줄도 함께 둔다(15.5). */
.tabs a[aria-current="page"] {
  color: var(--green-dark);
  border-bottom-color: var(--green-dark);
}

/* 2단 메뉴 — 지금 묶음의 쪽들(2026-10-03). 1단보다 작고 옅게, 알약 모양 */
.subtabs { border-top: 1px solid var(--line); background: var(--beige); }
.subtabs .wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 8px;
  padding-bottom: 8px;
}
.subtabs .wrap::-webkit-scrollbar { display: none; }
.subtabs a {
  flex: none;
  white-space: nowrap;
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
}
.subtabs a:hover { color: var(--navy); background: #fff; }
/* 지금 쪽 — 색만으로 말하지 않게 흰 바탕+굵게 */
.subtabs a[aria-current="page"] {
  color: var(--green-dark);
  background: #fff;
  font-weight: 800;
  box-shadow: 0 1px 4px rgba(33, 56, 74, .08);
}

/* 서랍의 묶음 — 이름 아래 쪽들을 한 단 들여 쓴다 */
.drawer-group { padding: 6px 0 4px; border-top: 1px solid var(--line); }
.drawer-group-title {
  margin: 8px 20px 2px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .02em;
}
.drawer-group a { min-height: 46px; font-size: 16px; font-weight: 600; padding-left: 32px; }

footer.bottom .foot-group { width: 100%; display: flex; flex-wrap: wrap; gap: 6px 14px; }
footer.bottom .foot-group strong { color: var(--muted); font-weight: 700; min-width: 76px; }

/* ☰ 로 여는 서랍 — 왼쪽에서 밀려 들어온다 */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
}

/* 뒤를 덮는 면. 눌러도 닫힌다. */
.drawer-dim {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  padding: 0;
  background: rgba(33, 56, 74, .45);
  opacity: 0;
  transition: opacity .22s ease;
  cursor: pointer;
}
.drawer.open .drawer-dim { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 84%;
  max-width: 360px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .24s ease;
  box-shadow: 0 0 40px rgba(33, 56, 74, .18);
}
.drawer.open .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px 10px 20px;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}
.drawer-head img { height: 26px; width: auto; }
.drawer-close { margin-left: auto; }

/* × — 그림 파일 없이 선 두 개로 */
.x {
  position: relative;
  display: block;
  width: 18px;
  height: 18px;
}
.x::before, .x::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
}
.x::before { transform: rotate(45deg); }
.x::after  { transform: rotate(-45deg); }

.drawer-login {
  display: block;
  padding: 18px 20px;
  background: rgba(169, 211, 107, .22);
  color: var(--navy);
  text-decoration: none;
  font-size: 15.5px;
  border-bottom: 1px solid var(--line);
}
.drawer-login strong { color: var(--green-dark); }

.drawer-nav { display: flex; flex-direction: column; padding: 6px 0; }
.drawer-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.drawer-nav a:hover { background: var(--beige); }
.drawer-nav a[aria-current="page"] { color: var(--green-dark); }

.drawer-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 18px 20px 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.drawer-foot a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
}
.drawer-foot a:hover { text-decoration: underline; }

/* 동작 줄이기를 켠 사용자에게는 밀려 들어오지 않고 그냥 나타난다 */
@media (prefers-reduced-motion: reduce) {
  .drawer-panel, .drawer-dim { transition: none; }
}

/* 포커스가 어디 있는지 늘 보이게 (설계서 15.5) */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------- 버튼 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary { background: var(--green-dark); color: #fff; }
.btn-primary:hover { background: #4F7A23; }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--muted); }

/* ---------------------------------------------------------- 첫 화면 */

.hero { padding: 56px 0 40px; }

/* 메인 슬라이드 — 그림 위에 글. 왼쪽을 밝게 덮어 글이 어느 그림에서도 읽히게 */
.hero.slides {
  position: relative;
  padding: 0;
  min-height: clamp(520px, 52vw, 720px);
  overflow: hidden;
  background: var(--beige, #F5EFE7);
}
.hero.slides .slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s ease;
}
.hero.slides .slide.is-on { opacity: 1; }
.hero.slides picture, .hero.slides .slide img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% center;
}
.hero.slides .slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.75) 32%, rgba(255,255,255,0) 58%);
}
.hero.slides .wrap { display: block; position: relative; z-index: 1; }
.hero.slides .copy { padding-top: clamp(56px, 8vw, 120px); max-width: 1100px; }
.hero.slides .copy h1, .hero.slides .copy .h1 {
  font-size: clamp(30px, 4.4vw, 50px); line-height: 1.3; font-weight: 800;
  margin: 0 0 16px; letter-spacing: -0.5px; color: var(--navy); max-width: 700px;
}
.hero.slides .copy .lead { color: #3d4b57; max-width: 560px; }
.hero.slides .slide-ui {
  position: absolute; left: 0; right: 0; bottom: clamp(28px, 5vw, 64px); z-index: 2;
}
.hero.slides .slide-ui .hint { color: #3d4b57; margin-top: 14px; max-width: 560px; }
.hero.slides .dots { display: flex; gap: 10px; align-items: center; margin-top: 22px; }
.hero.slides .dot {
  width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(33,56,74,.28); cursor: pointer;
}
.hero.slides .dot.is-on { background: var(--navy); width: 28px; border-radius: 6px; }
.hero.slides .pause {
  margin-left: 6px; border: 0; background: transparent; color: var(--navy);
  font-size: 13px; cursor: pointer; min-width: 32px; min-height: 32px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.3;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------- 단락 */

section { padding: 44px 0; }

section h2 {
  font-size: clamp(22px, 3.4vw, 28px);
  margin: 0 0 8px;
}

section p.sub {
  color: var(--muted);
  margin: 0 0 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 { margin: 0 0 8px; font-size: 18.5px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* 단계 — ① ② ③ */
.steps { counter-reset: step; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--kiwi-green);
  color: var(--navy);
  font-weight: 800;
}

.cond {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

/* 알리는 것 / 알림이 가지 않을 수 있는 것 — 감추지 않는 자리 */
.limits { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.limits .yes { background: rgba(169, 211, 107, .22); }
.limits .no  { background: rgba(142, 197, 235, .22); }

.limits ul { margin: 10px 0 0; padding-left: 20px; }
.limits li { margin: 6px 0; }

/* 요금 */
.price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price .amount { font-size: 30px; font-weight: 800; margin: 6px 0 2px; }
.price .per { color: var(--muted); font-size: 15px; }
.price .tag {
  display: inline-block;
  background: var(--kiwi-green);
  color: var(--navy);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

/* ---------------------------------------------------------- 고지 */

.notice {
  background: var(--beige);
  border-radius: var(--radius);
  padding: 22px 24px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.75;
}

.notice strong { color: var(--navy); }

/* ---------------------------------------------------------- 본문 글 */

.doc { max-width: 760px; }
.doc h1 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 6px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; }
.doc h3 { font-size: 17.5px; margin: 24px 0 8px; }
.doc p, .doc li { color: #2F4658; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc table { border-collapse: collapse; width: 100%; margin: 14px 0; }
.doc th, .doc td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  font-size: 15.5px;
}
.doc th { background: var(--beige); }

.draft {
  background: #FFF0DC;
  border: 1px solid rgba(155, 106, 69, .4);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 28px;
  font-size: 15px;
}

/* ---------------------------------------------------------- 푸터 */

footer.bottom {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 32px 0 56px;
  font-size: 14.5px;
  color: var(--muted);
}

footer.bottom nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

footer.bottom nav a { color: var(--navy); text-decoration: none; font-weight: 600; }
footer.bottom nav a:hover { text-decoration: underline; }

footer.bottom .biz { line-height: 1.9; }

/* 영문 병기 — 애플·구글이 조직 확인 때 이 페이지를 본다.
   법정 표시는 한글이 정본이므로 영문은 한 단계 낮춰 둔다. */
footer.bottom .biz-en {
  display: block;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line, #E7E1D8);
  font-size: .92em;
  color: var(--muted, #6B7A85);
  line-height: 1.75;
}

/* 아직 정해지지 않은 값. 비어 있다는 것이 보이게 둔다 —
   "곧 넣겠지" 하고 잊으면 그대로 출시된다. */
.pending {
  color: var(--brown);
  background: #FFF0DC;
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 13.5px;
}

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

@media (max-width: 760px) {
  .hero { padding: 32px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero .art { order: -1; text-align: center; }
  .hero .art img { max-width: 260px; }
  .limits, .price { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .hero .actions { flex-direction: column; }
  /* 휴대폰: 세로 그림, 위쪽 하늘·빛에 글을 얹는다 */
  .hero.slides { min-height: max(680px, 86svh); }
  .hero.slides .actions { flex-direction: row; }
  .hero.slides .actions .btn { width: auto; flex: 1; }
  .hero.slides .slide img { object-position: center; }
  .hero.slides .slide::after {
    background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.7) 34%, rgba(255,255,255,0) 52%, rgba(255,255,255,0) 62%, rgba(255,255,255,.85) 100%);
  }
  .hero.slides .copy { padding-top: 36px; }
  .hero.slides .slide-ui { bottom: 20px; }
  .hero.slides .slide-ui .hint { display: none; }
}

/* 동작 줄이기를 켠 사용자에게는 움직임을 주지 않는다 */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================
   2차 구성에서 더해진 것들
   ========================================================== */

/* 누를 수 있는 카드 */
.card.link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease;
}
.card.link:hover { transform: translateY(-2px); }
.card .go {
  display: inline-block;
  margin-top: 12px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 15px;
}
.card .go::after { content: " →"; }

/* 보조 설명 한 줄 */
.hint {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* 체크 목록 — 색으로만 구분하지 않도록 기호를 함께 둔다 */
.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
}
.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: 800;
}

/* 질문과 답 */
.qa {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 10px;
  overflow: hidden;
}
.qa summary {
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 700;
  font-size: 17px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before {
  content: "＋";
  color: var(--green-dark);
  font-weight: 800;
  flex: none;
}
.qa[open] summary::before { content: "－"; }
.qa p {
  margin: 0;
  padding: 0 24px 22px 56px;
  color: var(--muted);
}

/* 아직 아무것도 없는 목록 */
.empty {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 44px 28px;
  text-align: center;
}
.empty p:first-child {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}
.empty .hint { max-width: 520px; margin: 0 auto; }

/* 캘리그라피로 맺는 자리 */
.closing { padding: 56px 0 24px; }
.closing .wrap { text-align: center; }
.closing img { max-width: 360px; margin-bottom: 24px; }
.closing-slogan { font-size: clamp(26px, 5vw, 36px); font-weight: 800; color: var(--navy, #21384A); margin: 0; letter-spacing: -0.5px; }
.closing-sub { font-size: 15px; color: var(--muted, #6B7A86); margin: 6px 0 24px; }

@media (max-width: 760px) {
  .closing img { max-width: 260px; }
  .qa p { padding-left: 24px; }
}

/* ---------------------------------------------------------- 지원 기기 */
.device-pairs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.card.device { text-align: center; }
.device-art { background: var(--beige); border-radius: 18px; padding: 18px; margin-bottom: 16px; }
.device-art svg { width: 100%; max-width: 260px; height: auto; display: block; margin: 0 auto; }
.card.device .spec { list-style: none; padding: 0; margin: 10px 0 0; text-align: left; display: inline-block; }
.card.device .spec li { margin: 6px 0; color: var(--muted); font-size: 15.5px; }
.card.device .spec b { color: var(--navy); margin-right: 8px; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table.compare { border-collapse: collapse; width: 100%; min-width: 520px; background: #fff; border-radius: 14px; overflow: hidden; }
table.compare th, table.compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; vertical-align: top; }
table.compare thead th { background: var(--navy); color: #fff; }
table.compare tbody th { color: var(--navy); font-weight: 700; width: 30%; }
@media (max-width: 760px) {
  .device-pairs { grid-template-columns: 1fr; }
}


/* ---------------------------------------------------------- 페이지 넘김
   여러 장짜리 사이트지만 넘어갈 때 하얗게 깜빡이지 않게(2026-10-02).
   브라우저의 「문서 사이 전환」을 쓴다 — 지원하지 않으면 예전처럼 넘어갈 뿐이다.
   머리글은 이름을 붙여 **제자리에 남기고** 본문만 겹쳐 바뀐다. */
@view-transition { navigation: auto; }
header.top { view-transition-name: site-header; }
::view-transition-old(root) { animation: 180ms ease-out both kiwy-fade-out; }
::view-transition-new(root) { animation: 260ms ease-out both kiwy-fade-in; }
@keyframes kiwy-fade-out { to { opacity: 0; } }
@keyframes kiwy-fade-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* 알림이 가는 경우 — 목록 */
ul.rules { margin: 6px 0 0; padding-left: 20px; }
ul.rules li { margin: 6px 0; color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.card ul.rules li { font-size: 15px; }
/* 알림 기준 카드 — 핵심 한 줄 + 접은 예외(2026-11-02 「너무 길어 보기 힘듦」) */
details.rules-more { margin-top: 10px; }
details.rules-more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--soft, rgba(33,56,74,.06));
  color: var(--ink, #21384A); font-size: 14.5px; font-weight: 600; white-space: nowrap; }
details.rules-more > summary::-webkit-details-marker { display: none; }
details.rules-more > summary::after { content: "▾"; font-size: 12px; transition: transform .2s; }
details.rules-more[open] > summary::after { transform: rotate(180deg); }
details.rules-more > summary:focus-visible { outline: 2px solid var(--ink, #21384A); outline-offset: 2px; }

/* ---------------------------------------------------------- 작동 방식(/how, 2026-10-07) */
.how-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--green-dark); }
.how-photo img, .how-round { width: 100%; height: auto; border-radius: var(--radius); display: block; object-fit: cover; }
.how-center { text-align: center; }
.how-intro { color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.how-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.how-split > div { min-width: 0; }
.how-split p { color: var(--muted); }
.how-split-art { text-align: center; }
.how-split-art img { max-width: 360px; width: 100%; height: auto; }
.how-split-art .how-round { max-width: none; }
.how-band { background: linear-gradient(90deg, var(--green-dark), #3f8fb8); color: #fff; padding: 34px 0; text-align: center; }
.how-band p { margin: 0; font-size: clamp(19px, 2.8vw, 25px); font-weight: 800; text-wrap: balance; }
.how-band-col { display: grid; gap: 6px; }
.how-band span { opacity: .92; font-size: 15.5px; }
.how-band a { color: #fff; text-decoration: underline; }
.how-soft { background: var(--beige); }
.how-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.how-flow li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; text-align: center; position: relative; }
.how-flow li:not(:last-child)::after { content: "→"; position: absolute; right: -16px; top: 50px; color: var(--green-dark); font-weight: 800; font-size: 20px; }
.how-flow h3 { margin: 12px 0 6px; font-size: 17px; }
.how-flow p { margin: 0; color: var(--muted); font-size: 15px; }
.how-icon, .how-need-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--beige); color: var(--green-dark); }
.how-icon svg, .how-need-icon svg { width: 34px; height: 34px; }
.how-needs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; margin-bottom: 18px; }
.how-needs > div { text-align: center; }
.how-needs .how-need-icon { background: var(--surface); }
.how-needs h3 { margin: 10px 0 6px; font-size: 17px; }
.how-needs p { margin: 0; color: var(--muted); font-size: 15px; }
.how-photo-band img { width: 100%; height: clamp(220px, 34vw, 420px); object-fit: cover; display: block; }
.how-timeline { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; counter-reset: t; }
.how-timeline li { counter-increment: t; display: grid; grid-template-columns: 34px 1fr; gap: 4px 12px; }
.how-timeline li::before { content: counter(t); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.how-timeline b { font-size: 16.5px; }
.how-timeline span { color: var(--muted); font-size: 15px; }
.how-list { padding-left: 0; list-style: none; display: grid; gap: 12px; color: var(--muted); }
.how-list b { color: var(--navy); margin-right: 6px; }
.how-badge { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--kiwi-green); color: var(--navy); vertical-align: middle; }
.how-badge.soon { background: var(--soft-blue); }
.card.how-pick { border-color: var(--kiwi-green); box-shadow: 0 0 0 2px var(--kiwi-green) inset; }
.how-more { margin-top: 18px; }
.how-faq { max-width: 760px; }
@media (max-width: 860px) {
  .how-split { grid-template-columns: 1fr; gap: 24px; }
  .how-split-art { order: -1; }
  .how-flow, .how-needs { grid-template-columns: 1fr 1fr; }
  .how-flow li:not(:last-child)::after { display: none; }
}
@media (max-width: 520px) {
  .how-flow, .how-needs { grid-template-columns: 1fr; }
}
.how-hero .art.how-photo { width: 100%; max-width: 620px; justify-self: end; }
@media (max-width: 860px) { .how-hero .art.how-photo { max-width: none; justify-self: stretch; } }
@media (max-width: 860px) { .how-hero .art.how-photo img { max-width: 100%; width: 100%; } }

/* ---------------------------------------------------------- 사진 구성 (2026-10-08, Empatica·Embrace2 흐름)
   사진 속 휴대폰·워치 화면은 임시 예시 — 실제 캡처로 바꾼다. 아래 .ph-note 로 밝힌다 */
.ph-hero { position: relative; min-height: clamp(460px, 44vw, 640px); overflow: hidden; background: var(--beige); padding: 0; }
.ph-hero picture, .ph-hero > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% center; }
.ph-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,.94) 0%, rgba(255,255,255,.78) 34%, rgba(255,255,255,0) 60%); }
.ph-hero .wrap { position: relative; z-index: 1; padding-top: clamp(56px, 8vw, 110px); padding-bottom: 48px; }
.ph-hero h1 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.3; margin: 0 0 16px; letter-spacing: -0.5px; max-width: 620px; }
.ph-hero .lead { font-size: 18px; color: #3d4b57; max-width: 520px; margin: 0 0 28px; }
.ph-hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ph-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.ph-split.rev > :first-child { order: 2; }
.ph-split > div { min-width: 0; }
.ph-split p { color: var(--muted); }
.ph-img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.ph-plain { width: 100%; height: auto; display: block; }
.ph-note { font-size: 12.5px; color: var(--muted); margin: 8px 0 0; }
.ph-seq { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.ph-seq li { counter-increment: s; }
.ph-seq img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); display: block; }
.ph-seq h3 { margin: 14px 0 4px; font-size: 17px; }
.ph-seq h3::before { content: counter(s); display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; margin-right: 8px; vertical-align: 1px; }
.ph-seq p { margin: 0; color: var(--muted); font-size: 15px; }
.ph-facts { background: var(--navy); color: #fff; padding: 40px 0; }
.ph-facts ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; text-align: center; }
.ph-facts b { display: block; font-size: clamp(24px, 3.2vw, 34px); color: var(--kiwi-green); letter-spacing: -0.5px; }
.ph-facts span { font-size: 14.5px; opacity: .9; }
.ph-promise { background: var(--beige); padding: 22px 0; text-align: center; }
.ph-promise p { margin: 0; font-weight: 800; font-size: clamp(17px, 2.4vw, 21px); color: var(--navy); }
.ph-promise span { display: block; font-weight: 500; font-size: 15px; color: var(--muted); margin-top: 4px; }
.ph-illust { position: relative; background: #EEF6E2; overflow: hidden; }
.ph-illust img { width: 100%; height: auto; display: block; }
.ph-illust .wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end; }
.ph-illust .box { max-width: 420px; }
.ph-illust h2 { margin: 0 0 8px; }
.ph-illust p { margin: 0; color: #3d4b57; }
.ph-apps { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ph-apps figure { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ph-apps img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--beige); }
.ph-apps figcaption { padding: 18px 20px 22px; }
.ph-apps h3 { margin: 0 0 6px; }
.ph-apps p { margin: 0; color: var(--muted); font-size: 15px; }
.ph-closing { position: relative; min-height: clamp(420px, 42vw, 600px); overflow: hidden; display: flex; }
.ph-closing picture, .ph-closing img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 70%; }
.ph-closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.82) 0%, rgba(255,255,255,.35) 38%, rgba(255,255,255,0) 60%); }
.ph-closing .wrap { position: relative; z-index: 1; text-align: center; padding-top: clamp(36px, 5vw, 64px); width: 100%; }
.ph-closing .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 860px) {
  .ph-split { grid-template-columns: 1fr; gap: 22px; }
  .ph-split.rev > :first-child { order: 0; }
  .ph-facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ph-seq { grid-template-columns: 1fr; }
  .ph-seq img { aspect-ratio: 4 / 3; }
  .ph-apps { grid-template-columns: 1fr; }
  .ph-illust .wrap { position: static; display: block; padding: 22px 16px 30px; }
}
@media (max-width: 760px) {
  .ph-hero { min-height: 0; padding-top: 0; }
  .ph-hero picture, .ph-hero > picture img { position: static; height: auto; aspect-ratio: 3 / 4; object-position: center; }
  .ph-hero::after { display: none; }
  .ph-hero .wrap { padding-top: 22px; }
  .ph-closing { min-height: 560px; }
}
.hero.ph-hero .wrap { display: block; }
.ph-closing .btn-ghost, .ph-hero .btn-ghost { background: rgba(255,255,255,.88); }
/* 첫 슬라이드(곁의 사람과 가족) — PC 는 오른쪽 가족 사진이, 휴대폰은 양쪽 그림이 잘리지 않게 */
.hero.slides .slide img.pos-story { object-position: 85% center; }
@media (max-width: 760px) { .hero.slides .slide img.pos-story { object-position: 70% center; } }
/* 휴대폰 — 사람이 버튼에 가리지 않게 사진을 버튼 위에서 끝낸다(2026-10-08 대표님 「사람이 잘려 보인다」) */
@media (max-width: 760px) {
  .hero.slides .slide.story picture,
  .hero.slides .slide.story img { height: auto; bottom: 130px; }
  .hero.slides .slide.story img.pos-story { object-position: center bottom; }
}


/* ---------------------------------------------------------- 신청서 (파트너사, 2026-10-29) */

.form { display: grid; gap: 16px; max-width: 640px; margin-top: 20px; }
.form-row { display: grid; gap: 6px; min-width: 0; }
.form-row label { font-weight: 700; font-size: 15px; }
.form input:not([type=checkbox]), .form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--navy);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-height: 48px;
}
.form input:focus, .form textarea:focus { outline: 3px solid var(--soft-blue); outline-offset: 1px; }
.form textarea { resize: vertical; }
.form input[type=file] { padding: 10px 12px; cursor: pointer; }
.form-help { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.form-agree { background: var(--beige); border-radius: 14px; padding: 16px 18px; }
.form-agree label { display: flex; gap: 10px; align-items: center; font-weight: 700; min-height: 48px; }
.form-agree input { width: 22px; height: 22px; flex: none; }
.form-agree p { margin: 6px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.form .btn { justify-self: start; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.form-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #FFE9E5; color: var(--navy); margin-top: 12px; }
#apply-done { margin-top: 12px; }

/* 바로가기(#…)로 내려가면 위 메뉴 막대에 제목이 가리지 않게 (2026-11-04) */
section[id] { scroll-margin-top: 88px; }
/* 설치 방법 카드 안 순서 목록 (2026-11-04) */
.card ol { margin: 8px 0 0; padding-left: 1.3em; display: grid; gap: 8px; }
.card ol li { line-height: 1.6; }
.card h3 small { font-weight: 500; color: var(--dim, #6b7b86); font-size: .8em; }
