/* 그림카드 웹사이트 — 앱과 같은 색 토큰, 시스템 글꼴만 사용 (외부 폰트·스크립트 없음) */
:root {
  color-scheme: light;
  --ground: #f5f2ec;
  --paper: #ffffff;
  --shade: #efe9df;
  --shade-2: #f0ebe2;
  --ink: #25221e;
  --ink-2: #5c574f;
  --hair: #e6e0d6;
  --hair-2: #d4ccbf;
  --primary: #c8402f;
  --primary-press: #ab3424;
  --brick: #a8321f;
  --brick-tint: #fbece8;
  --identity: #de533e;
  --teal: #3b8384;
  --amber: #b47722;
  --green: #70903d;
  --purple: #904474;
  --wrap: 1120px;
  --read: 720px;
  --radius: 18px;
  --shadow-phone: 0 28px 56px -26px rgba(66, 40, 20, .42), 0 0 0 1px rgba(37, 34, 30, .08);
  --font: "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1rem/1.75 var(--font);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 900px) { body { font-size: 1.0625rem; } }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: -.025em; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--primary-press); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
strong, b { font-weight: 700; }
address { font-style: normal; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 64px, var(--wrap)); } }

.skip {
  position: absolute; left: 16px; top: -120px; z-index: 10;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: #fff; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* 머리글 */
.site-header { border-bottom: 1px solid var(--hair); }
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 6px 24px; padding-block: 12px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1875rem; letter-spacing: -.02em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 14px;
  border-radius: 999px; color: var(--ink-2); font-size: .9375rem; font-weight: 600; text-decoration: none;
}
.site-nav a:hover { background: var(--shade); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-2); }
@media (max-width: 599px) {
  .site-nav { width: 100%; justify-content: space-between; }
  .site-nav a { flex: 1 1 auto; padding: 0 10px; }
}
@media (max-width: 359px) { .site-nav a { padding: 0 6px; font-size: .875rem; } }

/* 공통 */
.eyebrow { color: var(--brick); font-size: .875rem; font-weight: 800; letter-spacing: .02em; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tint { background: var(--shade); }
.section-paper { background: var(--paper); border-block: 1px solid var(--hair); }
.section-head { max-width: 640px; }
.section-head h2, .feature-copy h2, .closing-card h2 {
  margin-top: 8px; font-size: clamp(1.625rem, 1.2rem + 1.7vw, 2.375rem); font-weight: 800; letter-spacing: -.035em;
}
.section-head p { margin-top: 14px; color: var(--ink-2); }
.section-foot { margin-top: 28px; color: var(--ink-2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px;
  border-radius: 14px; font-size: 1rem; font-weight: 700; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 20px -12px rgba(168, 50, 31, .8); }
.btn-primary:hover { background: var(--primary-press); color: #fff; }
.btn-line { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-2); }
.btn-line:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* 앱 화면 틀 */
.phone { margin: 0; padding: 7px; border-radius: 30px; background: var(--paper); box-shadow: var(--shadow-phone); }
.phone img { width: 100%; border-radius: 23px; }

/* 첫 화면 */
.hero { padding-block: clamp(28px, 6vw, 72px) clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; } }
.status {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2); font-size: .875rem; font-weight: 700;
}
.status::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber); box-shadow: 0 0 0 4px rgba(180, 119, 34, .18);
}
.hero h1 { margin-top: 18px; font-size: clamp(2rem, 1.1rem + 3.8vw, 3.5rem); font-weight: 800; line-height: 1.22; letter-spacing: -.04em; }
.lead { margin-top: 18px; max-width: 34em; color: var(--ink-2); font-size: clamp(1.0625rem, .98rem + .4vw, 1.25rem); }
.facts { display: grid; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.facts svg { flex: none; width: 22px; height: 22px; margin-top: .2em; color: var(--primary); }
.release-note { margin-top: 18px; max-width: 36em; color: var(--ink-2); font-size: .9375rem; }

.hero-figure { width: min(100%, 470px); margin-inline: auto; }
.hero-visual { position: relative; aspect-ratio: 470 / 640; }
.hero-visual::before {
  content: ""; position: absolute; inset: 10% 1% 2% 6%; border-radius: 44px;
  background: linear-gradient(155deg, #f4ddd2 0%, #f1e7dc 55%, #ebe3d6 100%);
}
.hero-visual .phone { position: absolute; }
.phone-front { left: 3%; top: 9%; z-index: 1; width: 56%; }
.phone-back { right: 2%; top: 1%; width: 47%; transform: rotate(4deg); }
@media (max-width: 899px) {
  .hero-visual { aspect-ratio: 470 / 690; }
  .phone-front { top: 8%; width: 61%; }
  .phone-back { width: 46%; }
}
.hero-figure figcaption, .feature-media figcaption, .doc-shot figcaption {
  margin-top: 14px; color: var(--ink-2); font-size: .8125rem; text-align: center;
}

/* 사용 흐름 */
.flow-steps { display: grid; gap: 16px; margin-top: 36px; padding: 0; list-style: none; }
@media (min-width: 820px) { .flow-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.flow-step, .info-card {
  position: relative; padding: 26px 22px 24px; border-radius: var(--radius);
  background: var(--ground); box-shadow: inset 0 0 0 1px var(--hair);
}
.flow-step::before, .info-card::before {
  content: ""; position: absolute; top: -1px; left: 22px; width: 40px; height: 6px; border-radius: 0 0 4px 4px;
  background: var(--tab, var(--primary));
}
.tab-teal { --tab: var(--teal); }
.tab-amber { --tab: var(--amber); }
.tab-green { --tab: var(--green); }
.tab-purple { --tab: var(--purple); }
.tab-red { --tab: var(--primary); }
.flow-top { display: flex; align-items: center; justify-content: space-between; }
.flow-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); color: var(--ink);
}
.flow-icon svg { width: 26px; height: 26px; }
.flow-num { color: var(--ink-2); font-size: .875rem; font-weight: 800; letter-spacing: .04em; }
.flow-step h3, .info-card h3 { margin-top: 18px; font-size: 1.1875rem; font-weight: 800; }
.info-card h3 { margin-top: 6px; }
.flow-step p, .info-card p { margin-top: 8px; color: var(--ink-2); }

/* 기능 소개 */
.feature { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 72px; }
  .feature-media-first { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .feature-media-first .feature-media { order: -1; }
}
.feature-copy > p { margin-top: 14px; color: var(--ink-2); }
.feature-media { display: flex; flex-direction: column; align-items: center; }
.stage { display: flex; justify-content: center; width: min(100%, 420px); padding: clamp(24px, 5vw, 44px); border-radius: 36px; }
.stage-warm { background: linear-gradient(160deg, #f4ddd2, #efe6da); }
.stage-cool { background: linear-gradient(160deg, #dfe9e6, #ece6da); }
.stage .phone { width: min(100%, 290px); }
.checks { display: grid; gap: 12px; margin-top: 22px; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 22px; height: 22px; border-radius: 7px;
  background: var(--brick-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8321f' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4 4 9-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.table-wrap { margin-top: 24px; overflow: hidden; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table-wrap caption { padding: 14px 16px 0; color: var(--ink-2); font-size: .8125rem; font-weight: 700; text-align: left; }
.table-wrap th, .table-wrap td { padding: 12px 16px; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.table-wrap thead th { color: var(--ink-2); font-size: .8125rem; font-weight: 700; }
.table-wrap tbody th { font-weight: 800; }
.table-defs tbody th { width: 40%; }
.table-wrap tbody tr:last-child > * { border-bottom: 0; }

.ways { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 560px) { .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.way { padding: 16px 18px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.way h3 { font-size: 1rem; font-weight: 800; }
.way p { margin-top: 4px; color: var(--ink-2); font-size: .9375rem; }
.more { margin-top: 20px; font-weight: 700; }

/* 카드 묶음 */
.cards-4, .cards-3 { display: grid; gap: 16px; margin-top: 36px; padding: 0; list-style: none; }
@media (min-width: 640px) { .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 820px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.info-card { background: var(--paper); }
.section-tint .info-card { background: var(--paper); box-shadow: none; }

.closing-card {
  display: grid; justify-items: center; gap: 0; padding: clamp(32px, 6vw, 56px) clamp(20px, 5vw, 48px);
  border-radius: 28px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); text-align: center;
}
.closing-card img { width: 64px; height: 64px; }
.closing-card h2 { margin-top: 18px; }
.closing-card p { margin-top: 12px; max-width: 38em; color: var(--ink-2); text-wrap: balance; }
.closing-card .actions { justify-content: center; }

/* 바닥글 */
.site-footer { padding-block: 40px 44px; border-top: 1px solid var(--hair-2); background: var(--shade); color: var(--ink-2); font-size: .9375rem; }
.footer-top { display: grid; gap: 20px; }
@media (min-width: 820px) { .footer-top { grid-template-columns: minmax(0, 1fr) auto; align-items: start; } }
.footer-brand .brand { font-size: 1.0625rem; }
.footer-brand .brand img { width: 30px; height: 30px; }
.footer-brand p { margin-top: 4px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-nav a:hover { color: var(--brick); text-decoration: underline; }
.footer-legal { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--hair-2); font-size: .875rem; }
.footer-legal p { margin-top: 8px; }

/* 도움말·방침 문서 */
.page-head { padding-block: clamp(32px, 6vw, 64px) 8px; max-width: 760px; }
.page-head h1 { margin-top: 8px; font-size: clamp(1.875rem, 1.25rem + 2.4vw, 2.75rem); font-weight: 800; letter-spacing: -.035em; }
.page-head .lead { margin-top: 14px; }
.page-meta { margin-top: 14px; color: var(--ink-2); font-size: .875rem; }
.doc { display: grid; gap: 28px; padding-block: 24px clamp(64px, 9vw, 104px); }
@media (min-width: 1000px) {
  .doc { grid-template-columns: 232px minmax(0, 1fr); gap: 64px; align-items: start; }
  .toc { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
}
.toc { padding: 18px; border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); font-size: .9375rem; }
.toc h2 { color: var(--ink-2); font-size: .8125rem; font-weight: 800; letter-spacing: .02em; }
.toc ol { display: grid; gap: 2px; margin-top: 8px; padding: 0; list-style: none; }
@media (min-width: 560px) and (max-width: 999px) { .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; } }
.toc a { display: block; padding: 7px 10px; border-radius: 9px; color: var(--ink); line-height: 1.45; text-decoration: none; }
.toc a:hover { background: var(--shade); color: var(--ink); }
.toc .toc-sub { color: var(--ink-2); }

.article { min-width: 0; max-width: var(--read); }
.article > section { margin-top: 48px; scroll-margin-top: 20px; }
.article > section:first-child { margin-top: 0; }
.article > .callout:first-child, .article > .summary:first-child { margin-top: 0; }
.article > .callout + section, .article > .summary + section { margin-top: 36px; }
.article h2 { font-size: clamp(1.375rem, 1.15rem + .8vw, 1.625rem); font-weight: 800; letter-spacing: -.03em; }
.article h3 { margin-top: 26px; font-size: 1.125rem; font-weight: 800; }
.article p, .article > section > ul, .article > section > ol { margin-top: 12px; }
.article ul:not([class]) { padding-left: 1.25em; }
.article ul:not([class]) > li + li { margin-top: 8px; }
.article ul:not([class]) > li::marker { color: var(--hair-2); }
.article .table-wrap { margin-top: 16px; }
.ui {
  padding: 0 .3em; border-radius: 6px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair-2);
  font-weight: 700; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.steps { display: grid; gap: 10px; margin-top: 16px; padding: 0; list-style: none; counter-reset: step; }
.steps > li {
  position: relative; padding: 14px 16px 14px 58px; border-radius: 14px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); counter-increment: step;
}
.steps > li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .875rem; font-weight: 800; line-height: 1;
}
.with-shot { display: grid; gap: 24px; margin-top: 16px; align-items: start; }
.with-shot .steps { margin-top: 0; }
@media (min-width: 760px) { .with-shot { grid-template-columns: minmax(0, 1fr) 200px; } }
.doc-shot { justify-self: center; width: min(100%, 220px); }

.callout { margin-top: 16px; padding: 16px 18px; border-radius: 14px; background: var(--shade-2); }
.callout-strong { background: var(--brick-tint); }
.hint { margin-top: 14px; padding-left: 14px; border-left: 3px solid var(--hair-2); color: var(--ink-2); font-size: .9375rem; }

.contact-card {
  display: grid; gap: 12px; justify-items: start; margin-top: 16px; padding: 22px;
  border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair);
}
.contact-card p { margin: 0; }
.contact-mail { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.625rem); font-weight: 800; letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact-mail a { color: var(--ink); text-decoration-color: var(--hair-2); }
.contact-label { color: var(--ink-2); font-size: .875rem; font-weight: 700; }
.two-col { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 640px) { .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.box { padding: 18px 20px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.box h3 { margin-top: 0; font-size: 1rem; }
.box ul { margin-top: 10px; padding-left: 1.2em; }
.box li + li { margin-top: 6px; }
.box p { margin-top: 10px; color: var(--ink-2); font-size: .9375rem; }
.box-skip { background: var(--shade-2); box-shadow: none; }

/* 개인정보처리방침 */
.summary { display: grid; gap: 12px; margin-top: 16px; padding: 0; list-style: none; }
@media (min-width: 640px) { .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.summary li { padding: 18px 20px; border-radius: 16px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.summary h3 { margin-top: 0; font-size: 1rem; }
.summary p { margin-top: 4px; color: var(--ink-2); font-size: .9375rem; }
.data-card { margin-top: 16px; padding: 20px 22px; border-radius: var(--radius); background: var(--paper); box-shadow: inset 0 0 0 1px var(--hair); }
.data-card h3 { margin-top: 0; font-size: 1.0625rem; }
.data-card dl { margin-top: 12px; }
.data-card dl > div { display: grid; gap: 2px; padding-block: 10px; border-top: 1px solid var(--hair); }
@media (min-width: 640px) { .data-card dl > div { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; } }
.data-card dt { color: var(--ink-2); font-size: .875rem; font-weight: 700; }
.data-card dd { font-size: .9375rem; }
.small-list { margin-top: 16px; padding-left: 1.25em; color: var(--ink-2); font-size: .9375rem; }
.small-list li + li { margin-top: 6px; }
.contact-dl { margin-top: 16px; }
.contact-dl > div { display: grid; gap: 2px; padding-block: 10px; border-top: 1px solid var(--hair); }
@media (min-width: 560px) { .contact-dl > div { grid-template-columns: 150px minmax(0, 1fr); gap: 16px; } }
.contact-dl dt { color: var(--ink-2); font-weight: 700; font-size: .9375rem; }
.appendix { padding: 22px; border-radius: var(--radius); background: var(--shade-2); }
.appendix h2 { font-size: 1.25rem; }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  body { background: #fff; font-size: 11pt; }
  .skip, .site-nav, .toc, .footer-nav, .hero-figure, .feature-media, .doc-shot { display: none !important; }
  .site-footer, .section-tint, .section-paper { background: #fff; }
  .article { max-width: none; }
  a { color: inherit; }
}
