/* Footprint 웹사이트 — 디자인 토큰은 SPEC §4-7(확장과 같은 값을 각자 복사) · 시스템 글꼴만(외부 글꼴 · CDN 없음) · 밝은/어두운 모드
   그리드는 minmax(0,1fr) + min-width:0(긴 언어 · 긴 낱말이 칸을 밀어 모바일 오른쪽이 잘리지 않게) · 포커스 링 · prefers-reduced-motion 존중 */
:root {
  --bg: #f6f7f9; --surface: #ffffff; --ink: #14171c; --muted: #5b6472; --line: #e3e6eb;
  --accent: #0e7c66; --on-accent: #ffffff; --yes: #b45309; --no: #15803d; --unknown: #5b6472; --danger: #c0262d; --prem: #a16207;
  --accent-soft: rgba(14, 124, 102, .09); --shadow: 0 1px 2px rgba(20, 23, 28, .05), 0 8px 24px rgba(20, 23, 28, .06);
  --radius: 14px; --wrap: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216; --surface: #171b21; --ink: #e8ebf0; --muted: #9aa4b2; --line: #2a3038;
    --accent: #34c3a2; --on-accent: #062a22; --yes: #f59e0b; --no: #4ade80; --unknown: #9aa4b2; --danger: #f87171; --prem: #facc15;
    --accent-soft: rgba(52, 195, 162, .12); --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: anywhere;
}
/* CJK · 태국어는 그 언어 글꼴을 먼저(system-ui 를 앞에 두면 OS 언어의 글꼴 — 예: 한국어 Windows 의 Malgun Gothic — 로 가나 · 한자가 그려져 자간이 벌어진다) · SPEC §4-7 순서 */
:lang(ja) body, body:lang(ja) { font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif; }
:lang(ko) body, body:lang(ko) { font-family: "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }
:lang(zh-Hans) body, body:lang(zh-Hans) { font-family: "PingFang SC", "Microsoft YaHei", sans-serif; }
:lang(zh-Hant) body, body:lang(zh-Hant) { font-family: "PingFang TC", "Microsoft JhengHei", sans-serif; }
:lang(th) body, body:lang(th) { font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, sans-serif; line-height: 1.8; }
/* 일본어 · 중국어 제목은 구절 단위로 줄바꿈(Chrome 119+ — 모르는 브라우저는 무시) */
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ja) .hero .sub { word-break: auto-phrase; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.55rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }
/* 앵커(#install · #activate · #manage · #plans)로 들어왔을 때 고정 머리말에 제목이 가리지 않게 — 휴대폰은 머리말이 두 줄 */
[id] { scroll-margin-top: 76px; }
@media (max-width: 720px) { [id] { scroll-margin-top: 124px; } }

/* ── 머리말 ── */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { width: 32px; height: 32px; flex: none; border-radius: 8px; }
.brand b { font-size: 1.12rem; letter-spacing: .01em; }
.brand .sub { display: block; font-size: .74rem; color: var(--muted); line-height: 1.25; }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { padding: 6px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }
.lang { display: inline-flex; align-items: center; gap: 6px; }
.lang select { font: inherit; font-size: .9rem; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); max-width: 9.5rem; }
@media (max-width: 720px) {
  .top .wrap { gap: 8px; padding-top: 8px; padding-bottom: 8px; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
  .lang { margin-left: auto; }
}

/* ── 버튼 · 배지 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn[disabled], .btn[aria-disabled="true"] { cursor: not-allowed; opacity: .62; filter: none; }
.btn .ico { width: 18px; height: 18px; flex: none; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); vertical-align: middle; }
.badge.soon { background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--muted); }
.badge.prem { background: color-mix(in srgb, var(--prem) 16%, transparent); color: var(--prem); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0 8px; }

/* ── 히어로 ── */
.hero { padding: 48px 0 40px; background: radial-gradient(1200px 400px at 10% -10%, var(--accent-soft), transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero .sub { font-size: 1.12rem; font-weight: 600; color: var(--ink); margin-bottom: .8em; }
.hero .lead { color: var(--muted); }
.hero .note { font-size: .9rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* 화면 예시(목업 — 실제 스크린샷 자리) */
.shot { margin: 0; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.mock-bar b { margin-left: 8px; font-size: .86rem; }
.mock-bar span { margin-left: auto; font-size: .78rem; color: var(--muted); border: 1px solid var(--line); padding: 1px 8px; border-radius: 999px; }
.mock table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.mock th, .mock td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.mock th { font-size: .74rem; color: var(--muted); font-weight: 600; }
.mock td.n { text-align: right; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; font-size: .72rem; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin: 1px 2px 1px 0; white-space: nowrap; }
.mock .del { font-size: .74rem; color: var(--danger); border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent); border-radius: 8px; padding: 2px 8px; white-space: nowrap; }
.mock .verdict { padding: 10px 12px; font-size: .84rem; }
.mock .verdict b { color: var(--yes); }
.shot figcaption { font-size: .8rem; color: var(--muted); margin-top: 8px; text-align: center; }

/* ── 구역 ── */
.sec { padding: 52px 0; }
.sec.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec .lead { color: var(--muted); max-width: 46em; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 > *, .grid3 > * { min-width: 0; }
@media (max-width: 860px) { .grid3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.sec.alt .card { box-shadow: none; background: var(--bg); }
.card h3 { display: flex; gap: 10px; align-items: flex-start; }
.card .num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.read { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; margin-bottom: .6em; font-size: .92rem; }
.read .ans { font-weight: 700; }
.read .ans.yes { color: var(--yes); }
.read .ans.no { color: var(--no); }
.card .fp { margin: 0; padding-top: .7em; border-top: 1px dashed var(--line); font-size: .92rem; }
ul.checks, ul.stars, ul.plain { list-style: none; padding: 0; margin: 0 0 1em; }
ul.checks li, ul.stars li { position: relative; padding-left: 30px; margin: 0 0 .65em; }
ul.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
ul.stars li::before { content: "★"; position: absolute; left: 4px; top: 0; color: var(--prem); }
ul.plain li { margin: 0 0 .5em; }
.price-line { font-weight: 700; font-size: 1.06rem; }
.callout { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 14px 16px; border-radius: 0 12px 12px 0; }
.perm-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.perm-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.sec.alt .perm-list li { background: var(--bg); }

/* ── FAQ ── */
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 0 0 10px; }
.sec.alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; padding: 14px 44px 14px 16px; font-weight: 700; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 16px 14px; margin: 0; color: var(--ink); }

/* ── 요금 ── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.plans > * { min-width: 0; }
@media (max-width: 860px) { .plans { grid-template-columns: minmax(0, 1fr); } }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow); }
.plan.best { border: 2px solid var(--accent); }
.plan.picked { box-shadow: 0 0 0 3px var(--accent), var(--shadow); }   /* ?plan= 으로 들어온 카드(확장의 「今すぐ購入」) */
.plan .ribbon { position: absolute; top: -12px; left: 20px; background: var(--accent); color: var(--on-accent); font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 1.1rem; }
.plan .amount { font-size: 2rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; }
.plan .amount small { font-size: .9rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan .tax { font-size: .82rem; color: var(--muted); }
.plan .val { font-size: .9rem; font-weight: 700; color: var(--accent); }
.plan .notes { font-size: .88rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.plan .notes li { margin: 0 0 .3em; }
.plan .buy { margin-top: auto; padding-top: 10px; }
.plan .buy .btn { width: 100%; }
/* position: relative — 안의 .sr(position:absolute)이 표 밖의 기준 상자에 붙어 문서 폭을 늘리지 않게(휴대폰 폭 /premium 가로 넘침) */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 520px; }
table.cmp th, table.cmp td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.cmp thead th { font-size: .86rem; color: var(--muted); }
table.cmp td.mark { text-align: center; width: 7.5em; font-weight: 800; }
table.cmp td.mark.on { color: var(--accent); }
table.cmp td.mark.off { color: var(--muted); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
ol.steps { padding-left: 0; list-style: none; margin: 0 0 1em; }
ol.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0 0 10px; }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 260px; min-width: 0; }
.field span { font-size: .88rem; color: var(--muted); }
.field input { font: inherit; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-height: 44px; width: 100%; }
.msg { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); }
.msg.err { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--ink); }

/* ── 대응 사이트 표 ── */
.sites-group { margin: 0 0 30px; }
.sites-group h2 { font-size: 1.2rem; display: flex; gap: 10px; align-items: baseline; }
.sites-group h2 small { font-size: .85rem; color: var(--muted); font-weight: 600; }
table.sites { width: 100%; border-collapse: collapse; min-width: 640px; }
table.sites th, table.sites td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .94rem; }
table.sites thead th { font-size: .82rem; color: var(--muted); }
table.sites tbody tr:last-child td { border-bottom: 0; }
table.sites td.name b { display: block; }
table.sites td:nth-child(2) { white-space: nowrap; }   /* 종류(「ショッピング」 등)가 글자 단위로 쪼개지지 않게 — 표는 .table-wrap 안에서만 가로 스크롤 */
table.sites td.name .dom { font-size: .8rem; color: var(--muted); }
table.sites td.srv a { display: inline-block; margin: 0 8px 4px 0; }
table.sites td.srv .none { color: var(--muted); font-size: .88rem; }

/* ── 꼬리말 ── */
footer.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
footer.foot a { color: var(--muted); }
footer.foot a:hover { color: var(--ink); }

/* ── 404 ── */
.nf { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 48px 20px; }
.nf .code { font-size: 4rem; font-weight: 800; color: var(--accent); line-height: 1; }
.nf p { max-width: 32em; color: var(--muted); }

/* 정적 SEO 본문(사실만 · 보이는 글자) */
section.seo { padding: 28px 0 8px; }
section.seo h2 { font-size: 1.05rem; color: var(--muted); }
section.seo p { color: var(--muted); font-size: .92rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .top, .btn-row, footer.foot nav { display: none; } }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero.single .wrap { grid-template-columns: minmax(0, 1fr); }
