/* ==========================================================================
   주사랑웹 — 진열장.
   교회 홈페이지 제작사가 늘 쓰는 배열(기능 아이콘 카드 열두 장, 번호 붙은 4단계,
   가격표)을 거부한다. 우리가 실제로 만든 화면이 페이지의 구조가 된다.

   반경 규칙은 두 단계뿐이다: 표면·이미지·입력은 12px, 누르는 것은 알약.
   액센트는 남색 하나. 페이지가 색으로 잠기는 곳은 맨 끝 한 번뿐이다.
   ========================================================================== */

/* ── 서체 ─────────────────────────────────────────────────
   본문 Pretendard: x-높이가 커서 확대해 보는 분에게 유리하다.
   제목 SUIT: 한글 속공간이 넓어 68px 에서도 획이 뭉치지 않는다.
   둘 다 이 사이트에 쓰인 글자만 남기고 잘라서 자체 호스팅한다. */
@font-face {
  font-family: "Pretendard";
  src: url("fonts/pretendard-subset.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "SUIT";
  src: url("fonts/suit-subset.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

/* ── 토큰 ─────────────────────────────────────────────────── */
:root {
  --paper: #fcfcfd;
  --paper-2: #f1f4f9;
  --ink: #10141f;
  --ink-2: #454c5e;
  --ink-3: #6b7386;
  --line: #dfe4ec;
  --line-2: #c7d0de;
  /* 만지는 것의 테두리. 배경 대비 3:1 이상이어야 한다 (WCAG 1.4.11) */
  --line-strong: #79839a;

  --navy: #1f4fa8;
  --navy-hover: #17408d;
  --navy-deep: #16376f;
  --navy-soft: #e9f0fc;
  --on-navy: #ffffff;
  /* .close 의 남색 필드 위에서만 쓰는 글자색. 필드가 두 모드 모두 남색이라 여기도 고정이다 */
  --on-field: #ffffff;
  --on-field-2: #c3d3ee;
  --on-field-3: #93a9cc;
  /* 폼 오류. 액센트가 아니라 상태색이라 남색 규칙 밖에 따로 둔다 */
  --danger-line: #c0392b;
  --danger-text: #a5281a;

  --field-bg: #ffffff;

  --r: 12px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(16, 20, 31, 0.05), 0 5px 12px -7px rgba(22, 55, 111, 0.20);
  --sh-2: 0 2px 4px rgba(16, 20, 31, 0.06), 0 12px 26px -14px rgba(22, 55, 111, 0.30);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gap: clamp(20px, 3vw, 34px);
  --pad-y: clamp(72px, 9vw, 136px);
  --measure: 34rem;
  /* 문장마다 줄을 새로 시작하므로, 읽는 폭이 아니라 <b>한 문장이 접히지 않는</b>
     폭이 기준이 된다. 34rem 은 문장 끝을 자꾸 다음 줄로 흘려보냈다 */
  --measure-sent: 52rem;
  /* .wrap 오른쪽 끝에서 화면 끝까지의 거리. 히어로 그림이 여기까지 흘러 나간다 */
  --bleed: max(20px, calc((100vw - 1180px) / 2));

  color-scheme: light;
}

/*
 * 어두운 판.
 *
 * <p>두 벌로 나뉜 이유 — 기본은 <b>기기 설정을 따르되</b>, 방문자가 직접 고르면 그것이
 * 이긴다. 교회 사무실 PC 는 대개 밝은 설정인데 개인 폰은 어두운 경우가 많아서,
 * 둘 중 하나만 고르게 하면 어느 한쪽이 불편해진다.
 *
 * <p>값이 두 곳에 적혀 있는 것은 CSS 에 변수 묶음을 재사용하는 문법이 없어서다.
 * 고칠 때 <b>반드시 두 곳을 같이</b> 고쳐야 한다.
 */

/* ① 기기가 어두움. 단 방문자가 「밝게」로 못 박았으면 적용하지 않는다 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1119;
    --paper-2: #161b26;
    --ink: #edf0f6;
    --ink-2: #b4bccc;
    --ink-3: #8a93a6;
    --line: #262e3d;
    --line-2: #384254;
    --line-strong: #6b7488;

    --navy: #7ba5ee;
    --navy-hover: #9cbcf4;
    --navy-deep: #12294f;
    --navy-soft: #182335;
    --on-navy: #0b1120;

    --field-bg: #131822;
    /* 필드는 다크에서도 남색이므로 위의 글자색은 그대로 두고 오류색만 밝힌다 */
    --danger-line: #ff8a7a;
    --danger-text: #ff9d8f;

    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.42), 0 5px 12px -7px rgba(0, 0, 0, 0.55);
    --sh-2: 0 2px 4px rgba(0, 0, 0, 0.46), 0 12px 26px -14px rgba(0, 0, 0, 0.68);

    color-scheme: dark;
  }
}

/* ② 방문자가 직접 「어둡게」를 골랐다. 기기 설정과 무관하게 이긴다 */
:root[data-theme="dark"] {
    --paper: #0e1119;
    --paper-2: #161b26;
    --ink: #edf0f6;
    --ink-2: #b4bccc;
    --ink-3: #8a93a6;
    --line: #262e3d;
    --line-2: #384254;
    --line-strong: #6b7488;

    --navy: #7ba5ee;
    --navy-hover: #9cbcf4;
    --navy-deep: #12294f;
    --navy-soft: #182335;
    --on-navy: #0b1120;

    --field-bg: #131822;
    /* 필드는 다크에서도 남색이므로 위의 글자색은 그대로 두고 오류색만 밝힌다 */
    --danger-line: #ff8a7a;
    --danger-text: #ff9d8f;

    --sh-1: 0 1px 2px rgba(0, 0, 0, 0.42), 0 5px 12px -7px rgba(0, 0, 0, 0.55);
    --sh-2: 0 2px 4px rgba(0, 0, 0, 0.46), 0 12px 26px -14px rgba(0, 0, 0, 0.68);

    color-scheme: dark;
  }

/* ── 바탕 ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

/* clip 이라야 body 가 스크롤 컨테이너가 되지 않는다 — sticky 가 살아 있어야 한다 */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.72;
  font-feature-settings: "tnum" 0;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

/* height:auto 가 없으면 HTML 의 height 속성이 살아남아 그림이 늘어난다 */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
svg { display: block; }
:where(h1, h2, h3) { font-family: "SUIT", "Pretendard", sans-serif; text-wrap: balance; }

.wrap { width: min(100% - 40px, 1180px); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* 우리가 그리지 않은 표면도 우리 색을 입는다 */
::selection { background: var(--navy); color: var(--on-navy); }
:root { scrollbar-color: var(--line-2) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: var(--r-pill); border: 3px solid var(--paper); }
::-webkit-scrollbar-track { background: transparent; }
input, textarea { caret-color: var(--navy); }

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── 타입 스케일 ──────────────────────────────────────────── */
h1 {
  font-size: clamp(2.25rem, 1.15rem + 4.3vw, 4.25rem);
  font-weight: 800; letter-spacing: -0.038em; line-height: 1.14;
}
h2 {
  font-size: clamp(1.6rem, 1.05rem + 2.3vw, 2.6rem);
  font-weight: 800; letter-spacing: -0.032em; line-height: 1.25;
}
h3 {
  font-size: clamp(1.3rem, 1.1rem + 0.7vw, 1.65rem);
  font-weight: 700; letter-spacing: -0.024em; line-height: 1.4;
}
.lede { font-size: clamp(1.125rem, 1rem + 0.3vw, 1.4375rem); color: var(--ink-2); max-width: var(--measure-sent); }
.body { color: var(--ink-2); max-width: 32rem; }
.fine { font-size: 0.875rem; color: var(--ink-3); }

/* ── 버튼 ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 28px; border: 1px solid transparent;
  border-radius: var(--r-pill); white-space: nowrap;
  font-family: "SUIT", "Pretendard", sans-serif;
  font-size: 1.125rem; font-weight: 700; letter-spacing: -0.02em;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--navy); color: var(--on-navy); box-shadow: var(--sh-1); }
.btn-primary:hover { background: var(--navy-hover); transform: translateY(-2px); box-shadow: var(--sh-1); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--paper-2); border-color: var(--ink-3); transform: translateY(-2px); }
/* .close 는 두 모드 모두 남색 필드다. 버튼 색을 토큰에 맡기면 다크에서 남색 위 남색이 된다 */
.btn-onfield { background: #ffffff; color: #16376f; }
.btn-onfield:hover { background: #eaf0fa; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }
.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 0.875rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; color: var(--navy);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px;
  text-decoration-color: color-mix(in srgb, var(--navy) 35%, transparent);
  transition: text-decoration-color 0.2s var(--ease);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.link-arrow:hover { text-decoration-color: var(--navy); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ── 밝게 · 어둡게 전환 ───────────────────────────────────────
   머리띠 오른쪽에 산다. 바닥에 두었더니 화면이 눈부신 사람에게 「먼저 끝까지
   내려가세요」를 시키는 꼴이었다. 글자 없이 아이콘 하나 - 다섯 칸 메뉴 옆에
   「어둡게」까지 붙이면 좁은 화면에서 메뉴가 두 줄이 된다 */
.theme {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0; margin-left: 6px; flex: 0 0 auto;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: transparent; color: var(--ink-2); cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.theme:hover { border-color: var(--navy); color: var(--navy); }
.theme svg { width: 17px; height: 17px; }
/* 지금 켜져 있는 판의 아이콘은 숨기고, 넘어갈 판의 아이콘을 보여 준다 */
.theme .to-dark { display: inline-flex; }
.theme .to-light { display: none; }
:root[data-theme="dark"] .theme .to-dark,
:root[data-theme="dark"] .theme .to-light { display: none; }
:root[data-theme="dark"] .theme .to-light { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .to-dark { display: none; }
  :root:not([data-theme="light"]) .theme .to-light { display: inline-flex; }
}

/* ── 머리띠 ───────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.top.past { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand {
  font-family: "SUIT", sans-serif; font-size: 1.4375rem; font-weight: 800;
  letter-spacing: -0.04em;
}
.brand em { font-style: normal; color: var(--navy); }
.menu { display: flex; align-items: center; gap: 2px; }
/* :not(.btn) 이라야 버튼의 흰 글자를 잡아먹지 않는다 */
.menu a:not(.btn) {
  padding: 9px 15px; border-radius: var(--r-pill);
  font-size: 0.875rem; font-weight: 600; color: var(--ink-2);
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.menu a:not(.btn):hover { background: var(--paper-2); color: var(--ink); }
.menu a:not(.btn)[aria-current="page"] { color: var(--navy); background: var(--navy-soft); }
.top-cta { margin-left: 6px; }

/* 그림자를 켤 시점을 알려 주는 감시자. 스크롤 이벤트를 듣지 않는다 */
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* ══ 히어로 ═══════════════════════════════════════════════ */
.hero { position: relative; padding-block: clamp(48px, 6vw, 92px) clamp(56px, 7vw, 104px); }
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-copy { max-width: 41rem; }
/* 한글 제목은 두 줄을 넘기면 안 된다. 폭에 맞춰 크기를 낮춰 둔 값이다 */
.hero h1 { font-size: clamp(2rem, 1.05rem + 2.9vw, 2.875rem); margin-bottom: 22px; text-wrap: initial; }
.hero .lede { margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* 오른쪽 그림은 화면 끝으로 흘러 나간다 — 잘린 화면이 더 있음을 눈이 먼저 안다 */
.hero-art { position: relative; margin-right: calc(var(--bleed) * -1); min-width: 0; }
.shot {
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: var(--field-bg);
}
.shot-bar {
  display: flex; align-items: center; gap: 6px; height: 32px; padding-inline: 14px;
  background: var(--paper-2); border-bottom: 1px solid var(--line);
}
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.shot img { width: 100%; }

.hero-desk img { width: 100%; height: auto; }
.hero-frame { position: relative; margin-bottom: 46px; }
.hero-mob {
  position: absolute; left: -20px; bottom: -30px; width: clamp(116px, 17%, 168px);
  border-radius: var(--r); overflow: hidden; background: var(--field-bg);
  box-shadow: 0 0 0 4px var(--paper), var(--sh-2);
}
.hero-cap { font-size: 0.875rem; color: var(--ink-3); }

/* ══ 증거 띠: 열일곱 개가 실제로 흐른다 ═══════════════════ */
.proof { padding-block: clamp(28px, 4vw, 52px) var(--pad-y); }
.proof-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; margin-bottom: 26px;
}
.proof-head h2 { font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem); }
.proof-head-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rail-pause {
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2);
  border-radius: var(--r-pill); padding: 7px 15px; font-size: 0.875rem; font-weight: 600;
  cursor: pointer; transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.rail-pause:hover { border-color: var(--navy); color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .rail-pause { display: none; } }
/* 왼쪽 페이드를 넉넉히 잡아야 잘린 첫 장이 고장처럼 보이지 않는다 */
.rail { overflow-x: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-track { display: flex; gap: 20px; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .rail:not([data-paused]) {
    overflow-x: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 95%, transparent);
  }
  .rail-track { animation: rail 96s linear infinite; }
  .rail[data-paused] .rail-track { animation-play-state: paused; }
  .rail:hover .rail-track, .rail:focus-within .rail-track { animation-play-state: paused; }
}
@keyframes rail { to { transform: translateX(-50%); } }
.rail-item { display: block; width: 268px; flex: none; }
.rail-item img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top;
  border: 1px solid var(--line); border-radius: var(--r);
  transition: transform 0.35s var(--ease), border-color 0.25s var(--ease);
}
.rail-item:hover img, .rail-item:focus-visible img { transform: translateY(-6px); border-color: var(--ink-3); }
.rail-cap { margin-top: 10px; font-size: 1.125rem; color: var(--ink-3); }
.rail-cap b { color: var(--ink-2); font-weight: 600; }

/* ══ 세 가지 주장 — 비대칭. 큰 칸에는 증거가 들어간다 ═════ */
.claims { padding-block: var(--pad-y); background: var(--paper-2); }
.claims-grid {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: var(--gap); align-items: start; margin-top: clamp(30px, 4vw, 48px);
}
.claim-lead { grid-row: span 2; align-self: start; }
.claim-lead h3 { font-size: clamp(1.5rem, 1.12rem + 1.6vw, 2.15rem); letter-spacing: -0.03em; }
.claim-lead p { font-size: clamp(1.125rem, 1rem + 0.3vw, 1.4375rem); max-width: 27rem; }
.claim h3 { margin-bottom: 12px; }
.claim p { color: var(--ink-2); max-width: 30rem; }
.claim:not(.claim-lead) + .claim { border-top: 1px solid var(--line); padding-top: 26px; }

/* ══ 스크롤 스토리 ════════════════════════════════════════ */
.story { padding-block: var(--pad-y); }
.story-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 72px); margin-top: clamp(30px, 4vw, 52px); }
.story-step {
  min-height: 56vh; display: flex; flex-direction: column; justify-content: center;
  transition: opacity 0.45s var(--ease);
}
@media (prefers-reduced-motion: no-preference) { .story-step:not(.on) { opacity: 0.34; } }
.story-step h3 { margin-bottom: 12px; }
.story-step p { color: var(--ink-2); max-width: 26rem; }
.story-list { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.story-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 1.125rem; color: var(--ink-2); }
.story-list svg { width: 17px; height: 17px; flex: none; margin-top: 5px; color: var(--navy); }

.story-visual { position: sticky; top: 96px; height: min(74dvh, 620px); }
.story-vis {
  position: absolute; inset: 0; display: flex; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.story-vis.on { opacity: 1; visibility: visible; }
.story-vis .shot { width: 100%; }
.story-vis .shot img { width: 100%; height: auto; }

/* 앱 차례에는 그림이 없다. 아직 아무도 그리지 않았기 때문이다 */
.slate {
  width: 100%; min-height: 300px; border-radius: var(--r);
  border: 1px dashed var(--line-2); background: var(--paper-2);
  padding: clamp(22px, 3vw, 34px);
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.slate-note { font-size: 1.125rem; color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  border: 1px solid var(--line-strong); background: var(--field-bg); color: var(--ink-2);
  border-radius: var(--r-pill); padding: 9px 17px;
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.chip:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
/* 고른 것은 옅은 남색. 짙은 남색은 이 페이지에서 '누르는 행동' 하나에만 쓴다 */
.chip[aria-pressed="true"] { background: var(--navy-soft); border-color: var(--navy); color: var(--navy); }

/* ══ 기본으로 들어 있는 것 — 세 묶음, 카드 없음 ═══════════ */
.kit { padding-block: var(--pad-y); background: var(--paper-2); }
.kit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--gap) clamp(28px, 4vw, 56px); margin-top: clamp(30px, 4vw, 48px);
}
.kit-group { border-top: 2px solid var(--ink); padding-top: 18px; }
.kit-group h3 { font-size: 1.4375rem; margin-bottom: 16px; }
.kit-group ul { list-style: none; display: grid; gap: 12px; }
.kit-group li { font-size: 1.125rem; color: var(--ink-2); line-height: 1.5; }
.kit-group li b { display: block; font-size: 1.125rem; font-weight: 600; color: var(--ink); }

/* ══ 앱 실물 화면 ═════════════════════════════════════════ */
.appshots { padding-block: var(--pad-y); }
.appshots .lede { margin-top: 20px; }
.phones {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(18px, 2.5vw, 32px); margin-top: clamp(32px, 4vw, 52px);
}
.phone { margin: 0; }
/* 액자는 선에 건다 — 시안 화면과 같은 규칙이라 한 페이지로 읽힌다 */
.phone img {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--field-bg);
}
.phone figcaption {
  margin-top: 14px; font-size: 0.875rem; color: var(--ink-2); line-height: 1.6;
}

/* ══ 유튜브 — 한 문장짜리 전폭 진술 ═══════════════════════ */
.oneline { padding-block: var(--pad-y); }
.oneline h2 { max-width: 22em; }
.oneline p { margin-top: 20px; }

/* ══ 진행 — 번호 대신 동사 ════════════════════════════════ */
.flow { padding-block: var(--pad-y); background: var(--paper-2); }
.flow-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px); margin-top: clamp(30px, 4vw, 48px);
}
.flow-item { border-top: 1px solid var(--line-2); padding-top: 18px; }
.flow-item h3 { font-size: 1.4375rem; margin-bottom: 8px; }
.flow-item p { font-size: 1.125rem; color: var(--ink-2); }

/* ══ 맺음 — 페이지가 색으로 잠기는 유일한 자리 ════════════ */
.close {
  background: var(--navy-deep); color: var(--on-field);
  padding-block: clamp(84px, 11vw, 152px);
}
.close h2 { color: var(--on-field); max-width: 16em; }
.close p { margin: 20px 0 34px; color: var(--on-field-2); max-width: 30rem; font-size: 1.125rem; }
.close .fine { color: var(--on-field-3); margin-top: 22px; }

/* ══ 바닥 ═════════════════════════════════════════════════ */
footer { border-top: 1px solid var(--line); padding-block: 34px 46px; }
.foot-note { font-size: 0.875rem; color: var(--ink-3); margin-bottom: 18px; max-width: 48rem; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 0.875rem; color: var(--ink-3); }
.foot-end { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot-in b { color: var(--ink-2); font-weight: 600; }

/* ══ 페이지 머리 (시안·문의) ══════════════════════════════ */
.phead { padding-block: clamp(56px, 7vw, 104px) clamp(28px, 4vw, 48px); }
.phead h1 { max-width: 15em; }
.phead .lede { margin-top: 20px; }

/* ══ 시안 갤러리 — 액자 없이, 화면 자체가 구조 ════════════ */
.gallery {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px) var(--gap); padding-bottom: var(--pad-y);
}
.sian { display: block; text-align: left; background: none; border: 0; padding: 0; cursor: zoom-in; width: 100%; }
.sian img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top;
  border: 1px solid var(--line); border-radius: var(--r);
  transition: transform 0.4s var(--ease), border-color 0.25s var(--ease);
}
.sian:hover img, .sian:focus-visible img { transform: translateY(-6px); border-color: var(--ink-3); }
.sian-meta { margin-top: 14px; }
/* 제목이 번호뿐이라 크게 세울 이유가 없다. 무게와 색으로만 설명글과 가른다 */
.sian-name {
  font-family: "SUIT", sans-serif; font-size: 1.125rem; font-weight: 700;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums;
}

/* ══ 기능 페이지 ══════════════════════════════════════════ */
/* 세 구역의 배치를 일부러 다르게 짰다 — 같은 배치를 세 번 반복하면 안 읽힌다 */

.feat-a { padding-block: clamp(28px, 4vw, 48px) var(--pad-y); }
.feat-a-in {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.feat-shot .shot img { width: 100%; height: auto; }
.shot-cap { margin-top: 14px; }
.feat-list h2 { margin-bottom: 22px; }
.feat-list ul { list-style: none; display: grid; gap: 18px; }
.feat-list li { font-size: 0.875rem; color: var(--ink-2); line-height: 1.6; }
.feat-list li b { display: block; font-size: 1.125rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; }

.feat-b { padding-block: var(--pad-y); background: var(--paper-2); }
.feat-b .lede { margin-top: 18px; }
.feat-b-shot { margin-top: clamp(28px, 4vw, 44px); }
.feat-b-shot img { width: 100%; height: auto; }
.feat-b-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--gap); margin-top: clamp(28px, 4vw, 44px);
}
.feat-b-grid > div { border-top: 1px solid var(--line-2); padding-top: 16px; }
.feat-b-grid b { display: block; font-size: 1.125rem; font-weight: 600; margin-bottom: 6px; }
.feat-b-grid p { font-size: 0.875rem; color: var(--ink-2); line-height: 1.6; }

.feat-c { padding-block: var(--pad-y); }
.feat-c-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px); margin-top: clamp(30px, 4vw, 48px);
}
.feat-c-grid > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.feat-c-grid h3 { margin-bottom: 12px; }
.feat-c-grid p { font-size: 1.125rem; color: var(--ink-2); }

/* ── 반응형 증명: 세 기기를 바닥에 맞춰 세운다 ── */
.rwd { padding-block: var(--pad-y); }
.rwd .lede { margin-top: 16px; }
.rwd-row {
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(14px, 2.5vw, 34px); margin-top: clamp(32px, 4vw, 52px);
}
.rwd-row figure { margin: 0; }
.rwd-row img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--field-bg);
}
.rwd-row figcaption {
  margin-top: 12px; text-align: center;
  font-size: 0.875rem; color: var(--ink-3);
}
/* 실제 기기 비율대로. 높이를 맞추면 PC 가 손톱만 해지므로 폭으로 잡는다 */
.rwd-desk { flex: 0 1 58%; }
.rwd-tab  { flex: 0 1 25%; }
.rwd-mob  { flex: 0 1 14%; }
.rwd-note { margin-top: clamp(26px, 3vw, 40px); }

/* ── 누가 만드는가 ──────────────────────────────────────── */
/* 사람 이야기라 사진도 아이콘도 없이 글만 세운다. 얼굴 사진을 넣으면 프로필이 되고,
   프로필이 되는 순간 「실적은 어디 있나」를 묻게 된다. 여기서 할 말은 그게 아니다 */


/* ── 문답 ───────────────────────────────────────────────── */
/* <details> 를 그대로 쓴다. 손으로 만든 아코디언은 브라우저의 페이지 내 검색이
   닫힌 항목 안을 못 찾는다 - 목사님이 Ctrl+F 로 「용량」을 찾으면 안 나온다.

   카드로 감싸지 않고 규칙선으로만 나눈다. 이 사이트에서 테두리 상자는 화면을
   감쌀 때만 쓴다 */

.qa { padding-bottom: var(--pad-y); }
/* 폭은 항목에 건다. wrap 에 걸면 가운데로 밀려 위 제목과 왼쪽이 어긋난다 */
.q { border-top: 1px solid var(--line-2); max-width: 52rem; }
.q:last-of-type { border-bottom: 1px solid var(--line-2); }
.q summary {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 600; color: var(--ink); line-height: 1.5;
}
.q summary::-webkit-details-marker { display: none; }
/* 표시는 선 두 개로 만든다. 아이콘 폰트도 이미지도 쓰지 않는다 */
.q summary::after {
  content: ""; flex: none; margin-left: auto; margin-top: 0.45em;
  width: 11px; height: 11px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg); transform-origin: 60% 60%;
}
.q[open] summary::after { transform: rotate(225deg); }
@media (prefers-reduced-motion: no-preference) {
  .q summary::after { transition: transform .18s ease; }
}
.q summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.q summary:hover { color: var(--navy); }
.a { padding-bottom: 24px; max-width: var(--measure-sent); }
.a p { font-size: 1.125rem; color: var(--ink-2); line-height: 1.8; }
.a p + p { margin-top: 12px; }
.a .link-arrow { font-size: 0.875rem; }

/* ── 무엇으로 올려도 ────────────────────────────────────── */
/* 화면 석 장을 나란히 세운다. 반응형 구역과 같은 방식이지만 폭이 셋 다 같다 —
   같은 앱의 같은 화면이고 다른 것은 「무엇을 올렸는가」뿐이라는 말을 배열이 대신한다 */

.fmt { padding-block: var(--pad-y); background: var(--paper-2); }
.fmt .lede { margin-top: 16px; }
.fmt-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px); margin-top: clamp(32px, 4vw, 52px);
}
.fmt-row figure { margin: 0; }
.fmt-row img {
  width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--field-bg);
}
.fmt-row figcaption { margin-top: 16px; }
.fmt-row figcaption > b {
  display: block; font-size: 1.125rem; font-weight: 600;
  color: var(--ink); margin-bottom: 6px;
}
.fmt-row figcaption span {
  display: block; font-size: 0.875rem; color: var(--ink-2); line-height: 1.7;
}
.fmt-note {
  margin-top: clamp(28px, 3.5vw, 44px); padding-top: 20px;
  border-top: 1px solid var(--line-2);
  font-size: 0.875rem; color: var(--ink-2); line-height: 1.7;
  max-width: var(--measure);
}

/* 좁아지면 한 줄에 셋은 못 세운다. 화면이 손톱만 해지면 증거가 아니라 장식이 된다 */
@media (max-width: 860px) {
  .fmt-row { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 44px); }
  .fmt-row figure {
    display: grid; grid-template-columns: minmax(0, 200px) 1fr;
    gap: clamp(16px, 3vw, 28px); align-items: start;
  }
  .fmt-row figcaption { margin-top: 0; }
}
@media (max-width: 620px) {
  .fmt-row figure { grid-template-columns: minmax(0, 148px) 1fr; gap: 16px; }
}

.phead-note {
  margin-top: 18px; font-size: 0.875rem; color: var(--ink-2);
  max-width: 42rem; line-height: 1.7;
}
.ex-lead { display: block; font-weight: 700; color: var(--ink); margin-bottom: 2px; }

/* ══ 요금 페이지 ══════════════════════════════════════════ */
/* 3열 카드에 체크표시를 다는 흔한 요금표를 쓰지 않는다. 상품이 둘뿐이라 카드가 필요 없고,
   교회가 알고 싶은 것은 기능 목록이 아니라 「첫해에 얼마 나가는가」다 */

.plans {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 44px);
  width: min(100% - 40px, 1180px); margin: 0 auto;
  padding-bottom: var(--pad-y);
}
.plan { border-top: 2px solid var(--line-2); padding-top: 26px; }
/* 주력 상품만 잉크선을 진하게. 카드로 감싸거나 색을 칠하지 않는다 */
.plan-lead { border-top-color: var(--navy); }
.plan h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); }
.plan-for { margin-top: 8px; font-size: 0.875rem; color: var(--ink-3); }
.plan-figure { margin-top: 26px; display: grid; gap: 6px; }
.plan-first { font-size: 1.125rem; color: var(--ink-2); }
.plan-first b {
  display: block; margin-top: 4px;
  font-family: "SUIT", sans-serif;
  font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.035em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan-then { font-size: 0.875rem; color: var(--ink-3); }
.plan-break { margin-top: 26px; display: grid; gap: 0; }
.plan-break > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.plan-break dt { font-size: 0.875rem; color: var(--ink-2); }
.plan-break dd { font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.founding { padding-bottom: var(--pad-y); }
.founding-in {
  width: min(100% - 40px, 1180px); margin: 0 auto;
  border: 1px solid var(--navy); border-radius: var(--r);
  padding: clamp(26px, 4vw, 44px);
  background: var(--navy-soft);
}
.founding-in h2 { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.8rem); color: var(--ink); }
.founding-in p { margin-top: 16px; font-size: 1.125rem; color: var(--ink-2); max-width: 46rem; }
.founding-terms { font-size: 0.875rem !important; }

.extras { padding-block: var(--pad-y); background: var(--paper-2); }
.extras .lede { margin-top: 16px; }
.extras-table { margin-top: clamp(26px, 4vw, 40px); }
.ex-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 20px; padding: 18px 0; border-top: 1px solid var(--line-2);
}
.ex-row:last-child { border-bottom: 1px solid var(--line-2); }
.ex-row span { font-size: 1.125rem; color: var(--ink-2); }
.ex-row b { font-size: 1.125rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.extras-note { margin-top: 18px; }

.church-pays { padding-block: var(--pad-y); }
.church-pays .lede { margin-top: 16px; }
.pays-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px); margin-top: clamp(28px, 4vw, 44px);
}
.pays-grid > div { border-top: 2px solid var(--ink); padding-top: 20px; }
.pays-grid h3 { margin-bottom: 12px; }
.pays-grid p { font-size: 1.125rem; color: var(--ink-2); }
.mono { font-variant-numeric: tabular-nums; }

.scope { padding-block: var(--pad-y); background: var(--paper-2); }
.scope-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 48px); margin-top: clamp(28px, 4vw, 40px);
}
.scope-grid ul { list-style: none; display: grid; gap: 14px; }
.scope-grid li {
  font-size: 1.125rem; color: var(--ink-2); line-height: 1.6;
  padding-left: 18px; position: relative;
}
.scope-grid li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--navy);
}
.scope-note { margin-top: 22px; }

/* ══ 라이트박스 ═══════════════════════════════════════════ */
.lb { position: fixed; inset: 0; z-index: 90; display: none; background: rgba(9, 12, 20, 0.68); backdrop-filter: blur(8px); }
.lb.open { display: flex; align-items: center; justify-content: center; }
.lb-panel {
  width: min(1080px, 94vw); height: min(92dvh, 1000px);
  background: var(--paper); border-radius: var(--r);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
  overflow: hidden; display: flex; flex-direction: column;
}
@media (prefers-reduced-motion: no-preference) {
  .lb.open .lb-panel { animation: pop 0.4s var(--ease) both; }
}
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
.lb-head { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); }
/* 「시안」은 안내말, 번호가 알맹이다 */
.lb-title { font-family: "SUIT", sans-serif; font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-3); }
.lb-title b { color: var(--ink-1); font-weight: 700; font-size: 1.4375rem; font-variant-numeric: tabular-nums; }
.lb-dev { display: flex; gap: 4px; margin-left: auto; padding: 3px; background: var(--paper-2); border-radius: var(--r-pill); }
.lb-dev button {
  width: 42px; height: 34px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: transparent; color: var(--ink-3);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.lb-dev button:hover { color: var(--ink); }
.lb-dev button[aria-pressed="true"] { background: var(--navy-soft); color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.lb-dev svg { width: 19px; height: 19px; }
.lb-x {
  width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: transparent; color: var(--ink-2); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.lb-x:hover { background: var(--paper-2); border-color: var(--line-2); }
.lb-x svg { width: 18px; height: 18px; }
.lb-scroll { flex: 1; overflow-y: auto; background: var(--paper-2); overscroll-behavior: contain; }
.lb-scroll img { width: 100%; }
.lb-scroll[data-dev="tab"] img { width: min(720px, 92%); margin: 26px auto; border-radius: var(--r); border: 1px solid var(--line-2); }
.lb-scroll[data-dev="mob"] img { width: min(390px, 90%); margin: 26px auto; border-radius: var(--r); border: 1px solid var(--line-2); }
.lb-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 13px 18px; border-top: 1px solid var(--line); }
.lb-foot .lb-note { font-size: 0.875rem; color: var(--ink-3); }
.lb-foot .fine { margin-left: auto; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  background: var(--paper); color: var(--ink); box-shadow: var(--sh-2);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s var(--ease);
}
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
.lb-nav svg { width: 21px; height: 21px; }
.lb-prev { left: max(12px, calc(50% - 578px)); }
.lb-next { right: max(12px, calc(50% - 578px)); }
.lb-foot-nav { display: none; gap: 6px; }
.lb-foot-nav button {
  width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  background: transparent; color: var(--ink); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-foot-nav svg { width: 20px; height: 20px; }
/* 그림이 도착할 때까지 자리를 잡아 둔다. 낡은 화면이 남아 있지 않게 */
.lb-scroll[data-loading] { opacity: 0.35; }
.lb-scroll img { transition: opacity 0.2s var(--ease); }
@media (max-width: 720px) {
  .lb-nav { display: none; }
  .lb-foot-nav { display: flex; }
  .lb-foot .fine { display: none; }
  .lb-foot .lb-note { width: 100%; order: 3; }
}

/* ══ 문의 ═════════════════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(28px, 4vw, 56px); align-items: start; padding-bottom: var(--pad-y);
}
.reach { display: grid; gap: 4px; position: sticky; top: 100px; }
.reach-row { display: flex; align-items: flex-start; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.reach-row:last-child { border-bottom: 1px solid var(--line); }
.reach-row svg { width: 22px; height: 22px; flex: none; margin-top: 4px; color: var(--navy); }
.reach-row b { display: block; font-weight: 600; font-size: 1.125rem; }
.reach-row span { display: block; font-size: 0.875rem; color: var(--ink-3); }
.reach-row a:hover b { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }

.form h2 { margin-bottom: 8px; }
.form > p { color: var(--ink-2); margin-bottom: 30px; }
.field { margin-bottom: 22px; }
.field > label, .field > .label { display: block; font-size: 1.125rem; font-weight: 600; margin-bottom: 8px; }
.field .opt { color: var(--ink-3); font-weight: 400; font-size: 0.875rem; }
.field .req { color: var(--navy); font-weight: 600; font-size: 0.875rem; margin-left: 4px; }
.field input[type="text"], .field textarea {
  width: 100%; background: var(--field-bg); color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 13px 15px; font-size: 1.125rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 22%, transparent);
}
.field textarea { min-height: 132px; resize: vertical; line-height: 1.65; }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: var(--danger-line); }
.err { display: none; margin-top: 7px; font-size: 0.875rem; color: var(--danger-text); }
.field[data-invalid] .err { display: block; }

.choice { display: flex; flex-wrap: wrap; gap: 9px; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice label {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-pill);
  background: var(--field-bg); border: 1px solid var(--line-strong);
  font-size: 1.125rem; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.choice label:hover { border-color: var(--navy); color: var(--navy); transform: translateY(-2px); }
.choice input:checked + label { background: var(--navy-soft); border-color: var(--navy); color: var(--navy); }
.choice input:focus-visible + label { outline: 2px solid var(--navy); outline-offset: 3px; }

.subfield { display: none; margin-top: 12px; }
.subfield.show { display: block; }
@media (prefers-reduced-motion: no-preference) { .subfield.show { animation: pop 0.35s var(--ease) both; } }

/* 봇 거르개. display:none 은 영리한 봇이 알아채므로 화면 밖으로 밀어 둔다 */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.form-status[data-state="fail"] { color: var(--danger-text); font-weight: 600; }
.fallback {
  margin-top: 20px; padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--r);
  background: var(--field-bg);
}
.fallback p { font-size: 0.875rem; color: var(--ink-2); margin-bottom: 14px; }
.fallback .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.form-status { font-size: 1.125rem; color: var(--ink-2); }
.form-status[data-state="sent"] { color: var(--navy); font-weight: 600; }

/* ══ 등장 — 스크롤 이벤트 없이, 브라우저 타임라인으로 ═════ */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rise { animation: rise-in linear both; animation-timeline: view(); animation-range: entry 4% cover 24%; }
  }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise-in 0.75s var(--ease) both; }
  .hero-copy > :nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > :nth-child(2) { animation-delay: 0.13s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.21s; }
  .hero-art { animation: rise-in 0.9s var(--ease) 0.16s both; }
}

/* ══ 반응형 ═══════════════════════════════════════════════ */
@media (max-width: 1040px) {
  .hero-in { grid-template-columns: 1fr; gap: clamp(44px, 7vw, 72px); }
  .hero-copy { max-width: none; }
  .hero-art { margin-right: 0; }
  .hero-mob { width: clamp(96px, 18%, 140px); left: 0; bottom: -26px; }
  .hero-frame { margin-bottom: 42px; }
  .claims-grid { grid-template-columns: 1fr; }
  .reach { position: static; }
  .claim-lead { grid-row: auto; }
  .kit-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .phones { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .feat-a-in { grid-template-columns: 1fr; gap: clamp(28px, 5vw, 48px); }
  .feat-b-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-c-grid { grid-template-columns: 1fr; gap: 28px; }
  .plans { grid-template-columns: 1fr; }
  /* 좁아지면 태블릿을 빼고 PC 와 휴대폰만 — 셋을 다 세우면 전부 손톱만 해진다 */
  .rwd-tab { display: none; }
  .rwd-desk { flex: 0 1 68%; }
  .rwd-mob { flex: 0 1 22%; }
  .pays-grid { grid-template-columns: 1fr; gap: 28px; }
  .scope-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  /* 좁은 화면에서는 그림이 머리띠 밑에 붙어 따라오고, 단이 그 아래로 흐른다 */
  .story-visual {
    position: sticky; top: 76px; z-index: 2; order: -1; height: auto;
    background: var(--paper); padding-bottom: 14px; margin-bottom: 6px;
  }
  .story-vis { position: relative; inset: auto; opacity: 1; visibility: visible; display: none; }
  .story-vis.on { display: flex; }
  .story-vis .shot { max-height: 30dvh; }
  .slate { min-height: 0; }
  .story-step { min-height: 0; padding-block: 30px; opacity: 1 !important; }
  .story-step + .story-step { border-top: 1px solid var(--line); }
}

@media (max-width: 620px) {
  .kit-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .feat-b-grid { grid-template-columns: 1fr; }
  .ex-row { flex-direction: column; gap: 4px; align-items: flex-start; }
  /* 폰 넉 장을 한 줄에 세우면 손톱만 해진다. 옆으로 미는 줄로 바꾼다 */
  .phones {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; margin-inline: calc(var(--bleed) * -1);
    padding-inline: var(--bleed);
  }
  .phones::-webkit-scrollbar { display: none; }
  .phone { flex: 0 0 62%; scroll-snap-align: start; }
  .gallery { grid-template-columns: 1fr; }
  .rail-item { width: 214px; }
  /* 머리띠에 밝게·어둡게 단추가 하나 더 산다. 좁은 화면에서는 자리를 40px 남짓
     더 내주어야 「제작 문의」가 잘리지 않는다 — html 이 overflow-x:clip 이라
     넘치면 스크롤이 아니라 <b>잘려 나간다</b> */
  .top-in { gap: 8px; }
  .brand { font-size: 1.25rem; }
  .menu { gap: 0; }
  .menu a:not(.btn) { padding: 8px 7px; font-size: 0.875rem; }
  .theme { width: 34px; height: 34px; margin-left: 2px; }
  .theme svg { width: 16px; height: 16px; }
  .top-cta { padding: 0 12px; margin-left: 2px; }
  .hero-cta .btn { flex: 1 1 auto; }
}

/*
 * 문장마다 줄을 새로 시작하는 것은 <b>줄이 문장 하나를 담을 때만</b> 이득이다.
 * 폰 화면(350px 남짓)에서는 한국어 문장이 한 줄에 들어가는 일이 없어서, 끊어 두면
 * 「…있습니다.」 같은 꼬리만 매 문장 뒤에 혼자 남는다. 그래서 좁은 화면에서는
 * 끊지 않고 그냥 흐르게 둔다. 제목의 <br> 은 일부러 넣은 것이라 건드리지 않는다.
 *
 * <b>&lt;br&gt; 뒤에 공백이 하나 붙어 있는 것이 여기서 값을 한다</b> — 그게 없으면
 * 끄는 순간 「있습니다.여기」로 붙어 버린다. 넓은 화면에서는 줄 첫머리 공백이라
 * 브라우저가 알아서 지운다.
 */
@media (max-width: 760px) {
  :is(p, li, figcaption, span, dd) br { display: none; }
}

/* 한국에서 가장 흔한 안드로이드 화면이 360px 다. 여기서 「제작 문의」가
   잘리면 그 폰을 쓰는 분은 머리띠에서 문의로 갈 길이 없어진다 */
@media (max-width: 400px) {
  .brand { font-size: 1.125rem; }
  .menu a:not(.btn) { padding: 8px 5px; }
  .top-cta { padding: 0 10px; }
}
/* 아이폰 SE 1세대급. 여기까지는 전부 들어가되 서로 바짝 붙는다 */
@media (max-width: 345px) {
  .brand { font-size: 1rem; }
  .menu a:not(.btn) { padding: 8px 3px; }
  .theme { width: 30px; height: 30px; }
  .top-cta { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important;
  }
}
