/* 매니저 랜딩(templates/landing.html, layout/landing.html)과 같은 틀을 쓰는 키워드 페이지(templates/keyword/page.html) 전용.
   시안: .superpowers/sdd/manager-landing/landing-v8.html (2026-11-19 대표 컨펌). 라이트 테마만 — 다크 모드 대응은 하지 않는다.
   Layout: 1120px 기둥. 무료 홍보로 문을 열고(히어로·등록한 체육관 로고 줄·①) → 관리 기능 여섯 장면(섹션마다 기기 하나, 좌우 번갈아, 같은 위아래 여백) → 비교 → 시작 → 요금 → FAQ → 문의.
   기기: 휴대폰은 모두 같은 틀·같은 크기(데스크톱 290px, 좁은 폭 230px), 태블릿은 키오스크 하나. */
:root {
  --bg: #ffffff;
  --band: #f4f5fa;
  --card: #ffffff;
  --ink: #12142a;
  --sub: #5b6078;
  --faint: #62677e;
  --line: #e4e6ee;
  --brand: #2b33c4;
  --brand-text: #2b33c4;
  --brand-soft: #eceefd;
  --on-brand: #ffffff;
  --free: #0e7442;
  --free-soft: #e3f5ea;
  --tile: #f1f2f7;
  --bezel: #15171f;
  --device-shadow: 0 18px 36px -24px rgba(18, 20, 42, .45);
  --kakao-bg: #b2c7d9;
  --kakao-yellow: #fee500;
  --kakao-ink: #191919;
  --kakao-card: #ffffff;
  --kakao-sub: #434c56;
  --kakao-chip: rgba(0, 0, 0, .42);
  --box-r: 20px; --box-line: #e2e4ee; --box-shadow: 0 1px 2px rgba(18,20,42,.05), 0 8px 20px -14px rgba(18,20,42,.22);
  --ac-green: #11804a;  --acs-green: #e6f5ec;
  --ac-indigo: #2b33c4; --acs-indigo: #eceefd;
  --ac-orange: #b2470f; --acs-orange: #fdeee4;
  --ac-teal: #0b7a75;   --acs-teal: #e2f4f2;
  --ac-blue: #1f63c9;   --acs-blue: #e7effe;
  --ac-violet: #6b3fc4; --acs-violet: #f1ebfe;
  --ac-gold: #8a5a12;   --acs-gold: #f8f0de;
  --font-display: "Gothic A1", "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-body: "IBM Plex Sans KR", "Pretendard", -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --section: clamp(72px, 10vw, 120px);
  --pw: 290px;   /* 휴대폰 폭 */
  --k: 0.69744;  /* HTML 화면(390 기준) 축소 비율 = (휴대폰 폭 - 베젤 18) / 390 */
}
@media (max-width: 600px) { :root { --pw: 230px; --k: 0.54359; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; word-break: keep-all; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--brand-text); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--brand-text); letter-spacing: .04em; }
.h2 { font-size: clamp(28px, 3.8vw, 40px); line-height: 1.25; font-weight: 800; }
.head { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(32px, 4.5vw, 48px); }
.sec { padding-block: var(--section); }
.band { background: var(--band); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 54px; padding: 0 24px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, filter .15s ease; }
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { background: var(--tile); color: #12142a; }
.btn--sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
/* 문의 버튼: 말풍선 아이콘 + 글자, 카카오 노랑 알약(시안 「문의 버튼 — 아이콘 버튼 · 랜딩 문의」 2026-12-02 대표 컨펌). 웹 앱의 문의 버튼(web/src/ui/KakaoAsk.tsx)과 같은 모양 */
.btn--kakao { background: var(--kakao-yellow); color: var(--kakao-ink); border-radius: 999px; padding: 0 24px 0 20px; }
.btn--kakao:hover { filter: brightness(.96); }
.btn--kakao.btn--sm { height: 44px; padding: 0 18px 0 14px; font-size: 15px; gap: 6px; }
.ask-ic { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.btn--sm .ask-ic { width: 20px; height: 20px; }
/* 떠 있는 문의(layout/landing.html): 스크롤해도 오른쪽 아래에 남는다. 메뉴(z 20)보다 위 */
.ask-fab { position: fixed; z-index: 30; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); height: 52px; padding: 0 22px 0 18px; font-size: 17px; box-shadow: 0 10px 24px -10px rgba(18, 20, 42, .45), 0 2px 6px rgba(18, 20, 42, .12); }
@media (min-width: 720px) { .ask-fab { right: 24px; bottom: 24px; } }
@media print { .ask-fab { display: none; } }

/* NAV */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.logo img { width: 28px; height: 28px; border-radius: 8px; }
.logo small { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--sub); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links .link { padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 400; color: var(--sub); text-decoration: none; }
.nav-links .link:hover { background: var(--band); color: var(--ink); }
/* 휴대폰: 메뉴는 접되 「로그인」은 남긴다 — 이미 쓰는 관장님이 들어갈 길이 첫 화면에 있어야 한다 */
@media (max-width: 760px) { .nav-links .link { display: none; } .nav-links .link--keep { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 10px; white-space: nowrap; } .nav .btn { white-space: nowrap; } .logo { white-space: nowrap; } }
@media (max-width: 389px) { .logo small { display: none; } }

/* HERO */
.hero { padding-block: clamp(56px, 8vw, 96px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.2fr 0.8fr; gap: 48px; } }
.hero-copy { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 54px); line-height: 1.2; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand-text); }
@media (min-width: 900px) { .hero h1 em { white-space: nowrap; } }
.hero .sub { font-size: clamp(17px, 1.8vw, 20px); color: var(--sub); max-width: 26em; }
.hero .sub b { color: var(--ink); font-weight: 600; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero .fine { font-size: 15px; color: var(--sub); }
.hero .fine b { color: var(--free); font-weight: 700; }
.nb { white-space: nowrap; }
.hero-phone { display: flex; justify-content: center; }

.sports { margin-top: clamp(56px, 7vw, 88px); padding-block: 28px; border-top: 1px solid var(--line); }
.sports ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px 8px; }
@media (max-width: 640px) { .sports ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sports li { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.3; }
.sport-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--tile); display: grid; place-items: center; transition: transform .2s ease; }
.sport-ic img { width: 44px; height: 44px; }
.sports li:hover .sport-ic { transform: translateY(-3px); }
.sport-ic--more { background: transparent; border: 1.5px dashed var(--faint); color: var(--sub); font-size: 22px; font-weight: 700; }
.sports p { margin-top: 20px; text-align: center; font-size: 15px; color: var(--sub); }

/* 등록한 체육관 로고 줄 — 히어로 바로 아래(시안 「등록 도장 로고 마키」 2026-12-04 대표 컨펌). 이름 없이 로고만, 두 줄이 서로 반대로 흐른다.
   줄(.lg-track)은 같은 묶음(ul) 둘을 이어 붙인 것이라 -50% 만큼 밀면 처음과 똑같이 보인다. 서버는 로고 수만 준다:
   --lg-fit(더 짧은 줄의 로고 수)으로 줄을 그리는 폭을 묶음 하나까지로 묶고 — 더 넓으면 같은 로고가 한 줄에 두 번 보이고 줄 끝에 빈 곳이 지나간다 —
   --lg-n(그 줄의 로고 수)으로 시간을 정해 줄이 길든 짧든 로고 하나가 3.2초에 지나가게 한다(넓은 화면에서 초당 46px).
   로고는 흰 바탕 정사각 그림이라 테두리 없이 섹션 바탕에 섞인다. 마우스를 올리면 멈추고, 키보드로는 줄 앞의 체크박스(.lg-pause)로 멈춘다.
   움직임을 줄이는 설정에서는 서서 옆으로 넘겨 본다. */
.gyms { position: relative; border-top: 1px solid var(--line); padding-block: clamp(52px, 6vw, 72px) clamp(60px, 7vw, 84px); }
.gyms h2 { text-align: center; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.3; font-weight: 800; }
.lg-view { --lg-size: 104px; --lg-gap: 44px; --lg-fade: clamp(56px, 9%, 148px);
  max-width: calc(var(--lg-fit) * (var(--lg-size) + var(--lg-gap)));
  margin: clamp(28px, 3.4vw, 36px) auto 0; display: flex; flex-direction: column; gap: 22px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--lg-fade), #000 calc(100% - var(--lg-fade)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--lg-fade), #000 calc(100% - var(--lg-fade)), transparent 100%); }
@media (max-width: 600px) {
  /* 휴대폰 폭에서도 제목이 한 줄에 들어가게 */
  .gyms h2 { font-size: clamp(19px, 5.4vw, 22px); }
  .lg-view { --lg-size: 76px; --lg-gap: 26px; gap: 14px; }
}
.lg-track { display: flex; width: max-content; animation: lg-flow calc(var(--lg-n) * 3.2s) linear infinite; }
.lg-track--rev { animation-direction: reverse; }
/* 손가락으로 누른 뒤에는 hover 가 남아 줄이 멈춘 채로 있다 — 마우스가 있는 기기에서만 */
@media (hover: hover) { .lg-view:hover .lg-track { animation-play-state: paused; } }
.lg-pause:checked ~ .lg-view .lg-track { animation-play-state: paused; }
.lg-pause-label { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #ffffff; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; opacity: 0; pointer-events: none; }
.lg-pause:focus-visible + .lg-pause-label { opacity: 1; pointer-events: auto; outline: 3px solid var(--brand-text); outline-offset: 3px; }
.lg-pause:checked + .lg-pause-label::before { content: "✓ "; }
.lg-track ul { flex-shrink: 0; list-style: none; margin: 0; padding: 0 var(--lg-gap) 0 0; display: flex; align-items: center; gap: var(--lg-gap); }
.lg-track img { width: var(--lg-size); height: var(--lg-size); border-radius: 26%; object-fit: cover; background: #ffffff; }
@keyframes lg-flow { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .lg-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  /* 선 줄은 가운데에 놓는다. 화면보다 길면 왼쪽부터 넘겨 본다 */
  .lg-track { margin-inline: auto; }
  .lg-track ul { padding-inline: calc(var(--lg-gap) / 2); }
  .lg-track ul[aria-hidden], .lg-pause, .lg-pause-label { display: none; }
}

/* DEVICES — 휴대폰 하나의 틀. 화면은 390×844 비율 그대로, 자르지 않는다. */
.phone { flex-shrink: 0; width: var(--pw); padding: 9px; border-radius: 42px; background: var(--bezel); box-shadow: var(--device-shadow); }
.phone .scr { position: relative; aspect-ratio: 390 / 844; border-radius: 33px; overflow: hidden; background: #f1f2f7; }
.phone .scr > img { width: 100%; height: 100%; }
.tablet { width: min(540px, 100%); padding: 14px; border-radius: 30px; background: var(--bezel); box-shadow: var(--device-shadow); }
.tablet img { width: 100%; height: auto; aspect-ratio: 900 / 626; border-radius: 16px; }

/* FEATURE SECTIONS */
.fx .wrap { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) {
  .fx .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .fx--flip .fx-copy { order: 2; }
}
.fx-copy { min-width: 0; display: flex; flex-direction: column; gap: 18px; max-width: 30em; }
.fx--flip .fx-copy { justify-self: start; }
.fx-copy h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.28; font-weight: 800; }
.fx-copy .body { font-size: 18px; color: var(--sub); }
.fx-copy .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.fx-visual { min-width: 0; display: flex; justify-content: center; align-items: center; }

.t-green  { --ac: var(--ac-green);  --acs: var(--acs-green); }
.t-indigo { --ac: var(--ac-indigo); --acs: var(--acs-indigo); }
.t-orange { --ac: var(--ac-orange); --acs: var(--acs-orange); }
.t-teal   { --ac: var(--ac-teal);   --acs: var(--acs-teal); }
.t-blue   { --ac: var(--ac-blue);   --acs: var(--acs-blue); }
.t-violet { --ac: var(--ac-violet); --acs: var(--acs-violet); }
.t-gold   { --ac: var(--ac-gold);   --acs: var(--acs-gold); }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sec-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.chip { width: 44px; height: 44px; border-radius: 13px; background: var(--acs); color: var(--ac); display: grid; place-items: center; }
.sec-tag > .name { font-size: 15px; font-weight: 700; color: var(--ac); }
.free-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--free); background: var(--free-soft); padding: 6px 12px; border-radius: 999px; }
.free-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.points li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; color: var(--ink); }
.points li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--ac); box-shadow: 0 0 0 6px var(--acs); margin: 0 6px; }

/* ① 두 휴대폰: 넓은 화면은 나란히, 좁으면 위아래 */
.duo { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.duo figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.duo figcaption { font-size: 14px; font-weight: 600; color: var(--sub); }
.arrow { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; transform: rotate(90deg); }
.arrow svg.i { width: 18px; height: 18px; stroke-width: 2.2; }
@media (min-width: 1100px) {
  .fx--duo .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; }
  .duo { flex-direction: row; gap: 12px; }
  .duo .arrow { transform: none; margin-bottom: 34px; }
}

/* ② 카카오톡 대화창 — 회원이 받는 알림톡. 390×844 화면을 그대로 그린 뒤 휴대폰 폭에 맞춰 줄인다. */
.scr--kakao { background: var(--kakao-bg); }
.kk { position: absolute; top: 0; left: 0; width: 390px; height: 844px; transform: scale(var(--k)); transform-origin: 0 0; background: var(--kakao-bg); color: var(--kakao-ink); font-family: -apple-system, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", sans-serif; display: flex; flex-direction: column; letter-spacing: -0.01em; line-height: 1.45; }
.kk-status { height: 47px; flex-shrink: 0; display: flex; align-items: flex-end; justify-content: space-between; padding: 0 30px 6px 34px; font-size: 16px; font-weight: 600; }
.kk-status i { font-style: normal; display: flex; gap: 6px; align-items: center; }
.kk-status i b { display: block; width: 25px; height: 12px; border: 1.5px solid var(--kakao-ink); border-radius: 4px; position: relative; }
.kk-status i b::after { content: ""; position: absolute; inset: 1.5px 6px 1.5px 1.5px; background: var(--kakao-ink); border-radius: 1.5px; }
.kk-head { height: 54px; flex-shrink: 0; display: flex; align-items: center; gap: 10px; padding: 0 16px; font-size: 18px; font-weight: 600; }
.kk-head svg { width: 24px; height: 24px; fill: none; stroke: var(--kakao-ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.kk-head .sp { flex: 1; }
.kk-body { flex: 1; padding: 6px 14px 0; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }
.kk-date { align-self: center; font-size: 13px; color: #ffffff; background: var(--kakao-chip); border-radius: 999px; padding: 4px 12px; }
.kk-msg { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 8px; }
.kk-msg > img { width: 40px; height: 40px; border-radius: 15px; }
.kk-from, .feat .kk-from { font-size: 13px; color: var(--kakao-sub); margin-bottom: 5px; }
.kk-row { display: flex; align-items: flex-end; gap: 6px; }
.kk-bub { position: relative; width: 262px; background: var(--kakao-card); border-radius: 4px 16px 16px 16px; overflow: hidden; }
.kk-bub .bar { background: var(--kakao-yellow); height: 40px; display: flex; align-items: center; padding: 0 16px; font-size: 15px; font-weight: 500; }
.kk-bub .in { padding: 16px 16px 18px; }
.kk-bub .ttl { font-size: 19px; font-weight: 700; line-height: 1.35; padding-bottom: 13px; border-bottom: 1px solid #e6e6e6; }
.kk-bub .txt { margin-top: 13px; font-size: 15px; line-height: 1.6; }
.kk-time { font-size: 11.5px; color: var(--kakao-sub); white-space: nowrap; }
.kk-input { flex-shrink: 0; height: 90px; background: var(--kakao-card); display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px 0; }
.kk-input span { flex: 1; height: 38px; border-radius: 19px; background: #f2f2f2; display: flex; align-items: center; padding: 0 14px; font-size: 14px; color: #8a8a8a; }
.kk-input svg { width: 26px; height: 38px; fill: none; stroke: #5a5a5a; stroke-width: 2; stroke-linecap: round; }

/* COMPARE */
.cmp-wrap { overflow-x: auto; border-radius: var(--box-r); border: 1px solid var(--box-line); box-shadow: var(--box-shadow); background: var(--card); max-width: 880px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
@media (max-width: 560px) { .cmp { font-size: 13.5px; } .cmp th, .cmp td { padding: 12px 10px; } }
.cmp th:first-child, .cmp td:first-child { text-align: left; color: var(--sub); }
.cmp thead th { font-size: 14px; font-weight: 700; vertical-align: bottom; }
.cmp thead small { display: block; font-weight: 400; font-size: 12px; color: var(--faint); }
.cmp .us { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.cmp thead .us { color: var(--brand-text); }
.cmp .no { color: var(--faint); }
.cmp tbody th { font-weight: 400; }
.cmp tr:last-child td, .cmp tr:last-child th { border-bottom: 0; font-weight: 700; }
.cmp tr:last-child td { color: var(--ink); }
.cmp td small { display: block; font-size: 12px; font-weight: 400; color: var(--faint); }

/* START */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; counter-reset: step; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: step; padding: 26px; border-radius: var(--box-r); border: 1px solid var(--box-line); box-shadow: var(--box-shadow); background: var(--card); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.steps .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.steps .top::before { content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.steps .time { font-size: 13px; font-weight: 600; color: var(--sub); }
.steps b { font-size: 19px; font-family: var(--font-display); font-weight: 800; }
.steps span.d { color: var(--sub); font-size: 17px; }
.platforms { margin-top: 24px; font-size: 17px; color: var(--sub); }
.platforms b { color: var(--ink); }
.platforms + .platforms { margin-top: 8px; }
.platforms a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* PRICING */
.plans { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 880px; }
@media (min-width: 820px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { min-width: 0; border-radius: var(--box-r); box-shadow: var(--box-shadow); padding: 30px; background: var(--card); display: flex; flex-direction: column; gap: 16px; }
.plan--free { border: 2px solid var(--free); }
.plan--paid { border: 2px solid var(--brand-text); }
.plan .label { font-size: 15px; font-weight: 700; }
.plan--free .label { color: var(--free); }
.plan--paid .label { color: var(--brand-text); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; font-variant-numeric: tabular-nums; }
.price strong { font-family: var(--font-display); font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; }
.price span { color: var(--sub); font-size: 15px; }
.plan .when { font-size: 15px; color: var(--sub); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.plan li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; }
.plan li::before { content: ""; width: 10px; height: 6px; margin-top: 9px; border-left: 2px solid var(--sub); border-bottom: 2px solid var(--sub); transform: rotate(-45deg); }
.plan .foot { margin-top: auto; padding-top: 4px; font-size: 14px; color: var(--faint); }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.faq-grid .head { margin-bottom: 0; }
.faq-grid .head p a { font-weight: 600; text-underline-offset: 4px; }
.faq-grid .head .btn { align-self: flex-start; margin-top: 6px; }
.faq-grid .head p { color: var(--sub); }
.faq-list { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
details { border: 1px solid var(--box-line); border-radius: 14px; background: var(--card); box-shadow: var(--box-shadow); padding: 0 20px; }
summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--faint); transition: transform .2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: 18px; color: var(--sub); font-size: 17px; max-width: 40em; }

/* CLOSING */
.closing { padding-block: var(--section); }
.closing-box { border-radius: 28px; background: var(--brand); color: var(--on-brand); padding: clamp(36px, 6vw, 72px); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.closing-box h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.25; font-weight: 800; }
.closing-box p { opacity: .85; }
.closing-box .btn { background: #ffffff; color: #1d2390; margin-top: 10px; }
/* 가입 전 문의 — 마무리 상자 아래. 왼쪽 글, 오른쪽 문의 버튼·메일(좁으면 위아래) */
.ask { margin-top: 20px; padding: 26px clamp(22px, 3vw, 32px); border-radius: var(--box-r); border: 1px solid var(--box-line); box-shadow: var(--box-shadow); background: var(--card); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.ask-copy { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ask h3 { font-size: 22px; line-height: 1.3; font-weight: 800; }
.ask p { color: var(--sub); }
.ask-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.ask-mail { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 16px; font-weight: 600; text-decoration: none; }
.ask-mail:hover { text-decoration: underline; text-underline-offset: 4px; }
.ask-mail svg.i { width: 22px; height: 22px; }

/* FOOTER — 랜딩·키워드 페이지 공용(templates/fragments/site-footer.html). 종목별·기능별 링크 묶음 위에 사업자 정보 */
/* 아래 여백은 떠 있는 문의 버튼(.ask-fab)이 마지막 줄을 가리지 않을 만큼 */
footer { border-top: 1px solid var(--line); padding-block: 40px calc(96px + env(safe-area-inset-bottom, 0px)); font-size: 13px; color: var(--faint); }
footer .wrap { display: flex; flex-direction: column; gap: 14px; }
.f-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; padding-bottom: 28px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .f-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.f-cols h2 { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0; margin-bottom: 12px; }
.f-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; align-items: center; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
footer a { color: var(--sub); text-decoration: none; }
footer a:hover { color: var(--ink); }
/* 손가락으로 누르는 화면에서는 링크 한 줄의 눌리는 높이를 44px 로 맞춘다. 줄 사이 간격은 그 높이 안으로 들어간다 */
@media (max-width: 759px), (pointer: coarse) {
  footer .f-cols a, footer .links a { display: inline-flex; align-items: center; min-height: 44px; }
  .f-cols ul { gap: 0; }
  .f-cols h2 { margin-bottom: 4px; }
  footer .links { gap: 0 16px; }
}
footer .biz { line-height: 1.7; }
footer strong { color: var(--sub); font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ── 키워드 페이지(templates/keyword/page.html, main.kw) ──
   시안: .superpowers/sdd/seo/kw-artifact.html (2026-11-23 대표 컨펌). 랜딩과 같은 토큰·기기 틀에 이동 경로, 종목 링크 줄,
   기능 카드(앱 화면 위쪽만), 한 줄 요금 상자, 함께 읽을 글을 더한다. */
.kw { --section: clamp(64px, 9vw, 104px); }
.kw .h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: clamp(28px, 4vw, 40px); }
.kw .hero { padding-block: clamp(28px, 4vw, 40px) 0; }
.kw .hero h1 { font-size: clamp(34px, 5vw, 52px); }
.kw .hero .sub { max-width: 24em; }
@media (min-width: 900px) { .kw .hero-grid--solo { grid-template-columns: 1fr; } }
/* 기능 페이지 히어로는 바로 아래 색 띠(깊게 보는 묶음)와 붙지 않게 아래 여백을 둔다 */
.kw .hero--gap { padding-bottom: clamp(48px, 7vw, 88px); }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); margin-bottom: clamp(28px, 5vw, 56px); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ink); }
.crumb svg.i { width: 14px; height: 14px; }

/* 종목 줄 — 종목 페이지로 가는 링크. 지금 종목은 aria-current */
.kw .sports { margin-top: clamp(48px, 6vw, 80px); padding-block: 28px 8px; }
.kw .sports h2 { font-size: 15px; font-weight: 700; color: var(--sub); text-align: center; letter-spacing: 0; margin-bottom: 20px; font-family: var(--font-body); }
.kw .sports ul { margin: 0 auto; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 16px 8px; max-width: 840px; }
@media (max-width: 640px) { .kw .sports ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kw .sports li { display: block; }
.kw .sports a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; padding: 8px 0; border-radius: 14px; }
.kw .sports a:hover .sport-ic, .kw .sports a[aria-current] .sport-ic { transform: translateY(-3px); background: var(--brand-soft); }
.kw .sports a:hover, .kw .sports a[aria-current] { color: var(--brand-text); }

/* 깊게 보는 묶음: 두 번째 화면이 없으면 포인트를 두 줄로 */
.fx--solo .wrap { grid-template-columns: 1fr; }
.fx--solo .fx-copy { max-width: none; }
@media (min-width: 720px) { .fx--solo .points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; } }

/* 기능 카드 — 아이콘, 이름, 한 문장, 앱 화면 위쪽. 카드 전체가 기능 페이지 링크 */
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 680px) { .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feat { position: relative; min-width: 0; display: flex; flex-direction: column; border-radius: var(--box-r); border: 1px solid var(--box-line); background: var(--card); box-shadow: var(--box-shadow); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.feat:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(18,20,42,.05), 0 16px 32px -18px rgba(18,20,42,.32); }
.feat-copy { padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 8px; }
.feat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.feat-top .go { color: var(--faint); transition: transform .2s ease, color .2s ease; }
.feat:hover .go { color: var(--ac); transform: translateX(3px); }
.feat h3 { font-size: 21px; font-weight: 800; line-height: 1.3; }
.feat h3 a { text-decoration: none; }
.feat h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--box-r); }
.feat p { color: var(--sub); font-size: 16px; }
.feat-vis { margin-top: auto; height: 300px; background: var(--acs); display: flex; justify-content: center; align-items: flex-start; padding-top: 28px; overflow: hidden; }
.feat-vis--tablet { align-items: center; padding: 0 24px; }
.feat .phone { --pw: 230px; --k: 0.54359; }
.feat .tablet { width: min(360px, 100%); padding: 10px; border-radius: 24px; }
.feat .tablet img { border-radius: 14px; }
@media (max-width: 600px) { .feat-vis { height: 260px; } }

/* 함께 읽을 글 */
/* 이렇게 써요: 번호 붙은 순서. 번호 색은 기능 색(t-*) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
.steps li { counter-increment: step; display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px; border-radius: var(--box-r); border: 1px solid var(--box-line); background: var(--card); font-size: 17px; font-weight: 600; line-height: 1.5; }
.steps li::before { content: counter(step); flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--acs); color: var(--ac); display: grid; place-items: center; font-size: 15px; font-weight: 700; }
/* 한눈에 보기: 문단 + 표 */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; } }
.about-body { font-size: 18px; line-height: 1.75; color: var(--ink); }
.facts { margin: 0; border-radius: var(--box-r); border: 1px solid var(--box-line); background: var(--card); box-shadow: var(--box-shadow); overflow: hidden; }
.facts > div { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 22px; }
.facts > div + div { border-top: 1px solid var(--line); }
@media (min-width: 600px) { .facts > div { grid-template-columns: 7em minmax(0, 1fr); gap: 16px; } }
.facts dt { font-size: 14px; font-weight: 700; color: var(--sub); padding-top: 2px; }
.facts dd { margin: 0; font-size: 16px; line-height: 1.65; }
.facts a { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 4px; }
.facts a:hover { color: var(--brand-text); text-decoration-color: currentColor; }
.reads { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 820px) { .reads { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reads a { height: 100%; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: var(--box-r); border: 1px solid var(--box-line); background: var(--card); box-shadow: var(--box-shadow); text-decoration: none; transition: transform .2s ease; }
.reads a:hover { transform: translateY(-3px); }
.reads .cat { font-size: 13px; font-weight: 700; color: var(--brand-text); }
.reads b { font-size: 17px; line-height: 1.45; }
.reads svg.i { margin-top: auto; width: 20px; height: 20px; color: var(--faint); }

/* 한 줄 요금 상자 */
.price-box { display: grid; grid-template-columns: 1fr; border-radius: var(--box-r); border: 1px solid var(--box-line); background: var(--card); box-shadow: var(--box-shadow); overflow: hidden; max-width: 880px; }
@media (min-width: 760px) { .price-box { grid-template-columns: 1fr 1.3fr; } }
.pr { padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; }
.pr + .pr { border-top: 1px solid var(--line); }
@media (min-width: 760px) { .pr + .pr { border-top: 0; border-left: 1px solid var(--line); } }
.pr .label { font-size: 15px; font-weight: 700; }
.pr--free .label { color: var(--free); }
.pr--paid .label { color: var(--brand-text); }
.pr .price strong { font-size: 40px; }
.pr .when { font-size: 15px; color: var(--sub); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 15px; font-weight: 600; color: var(--brand-text); text-decoration: none; }
.more svg.i { width: 18px; height: 18px; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }
.kw .faq-grid .h2 { margin-bottom: 0; }
