/* 다 루틴 랜딩 — 브랜드 테마 B "맑은 하늘" (docs/design/tokens.json) */
:root {
  --bg: #F3F7FC;
  --card: #FFFFFF;
  --ink: #14243B;
  --sub: #5F6F86;      /* 본문 보조 글자는 대비 확보를 위해 토큰 sub(#7D8DA3)보다 진하게 */
  --sub-light: #7D8DA3;
  --line: #E3EAF3;
  --line2: #CBD6E4;
  --soft: #E4EEFD;
  --primary: #2F6FED;
  --primary-press: #255BD0;
  --accent: #2EC4B6;
  --accent-text: #1FA396;
  --danger: #D64545;
  --radius: 16px;
  --container: 1120px;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-size: 16px; line-height: 1.65; }
h1, h2, h3, p, figure { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 50%, transparent); outline-offset: 2px; border-radius: 6px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--soft); padding: 1px 6px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow, .narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 12px 20px;
  font-weight: 700; cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:not(:disabled):hover { background: var(--primary-press); }
.btn-soft { background: var(--soft); color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- 헤더 ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; }
.brand-icon { border-radius: 22.5%; display: block; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover { background: var(--soft); }
.site-nav a[aria-current=page] { color: var(--primary); }
.site-nav .nav-cta { background: var(--primary); color: #fff; margin-left: 6px; }
.site-nav .nav-cta:hover { background: var(--primary-press); }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; border-radius: 10px; cursor: pointer; }

/* ---------- 히어로 ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px;
  background: radial-gradient(800px 420px at 85% 10%, #DCE8FD 0, transparent 70%), radial-gradient(600px 380px at 0% 100%, #DDF6F3 0, transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent-text); font-weight: 800; font-size: 14px; letter-spacing: .02em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 60px); line-height: 1.18; font-weight: 800; letter-spacing: -.03em; }
.lead { font-size: 18px; color: var(--sub); margin-top: 20px; max-width: 520px; }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.hero-points li { font-size: 14px; font-weight: 600; color: var(--sub); display: flex; align-items: center; gap: 6px; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; }
.hero-art { display: flex; justify-content: center; }
.cup-card { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 24px 24px 18px; width: 100%; max-width: 360px;
  box-shadow: 0 30px 60px -30px #2F6FED55; display: flex; flex-direction: column; align-items: center; }
.cup-card-top { align-self: stretch; }
.cup-date { font-size: 13px; color: var(--sub-light); }
.cup-title { font-size: 22px; font-weight: 800; }
.cup-sub { font-size: 13px; color: var(--sub); }
.cup-wrap { display: flex; justify-content: center; margin: 8px auto 4px; }
.cup-svg { display: block; height: auto; }
.cup-animate .cup-wave { animation: wave 4s ease-in-out infinite alternate; }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@media (prefers-reduced-motion: reduce) { .cup-animate .cup-wave { animation: none; } }
.mini-list { list-style: none; margin: 8px 0 0; padding: 0; align-self: stretch; display: grid; gap: 8px; }
.mini-list li { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 16px; padding: 8px 10px; font-size: 14px; font-weight: 600; }
.mini-list li.done { color: var(--sub-light); text-decoration: line-through; }
.mini-list .emo { width: 32px; height: 32px; border-radius: 11px; background: var(--soft); display: grid; place-items: center; text-decoration: none; }
.mini-list .ck { margin-left: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line2); display: grid; place-items: center; font-style: normal; font-size: 13px; color: #fff; }
.mini-list .ck.on { background: var(--primary); border-color: var(--primary); }

/* ---------- 스토어 배지 ---------- */
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #0B0F17; color: #fff; text-decoration: none; padding: 9px 18px 9px 14px; border-radius: 12px; min-width: 168px; }
.store-badge span { white-space: nowrap; display: flex; flex-direction: column; line-height: 1.15; font-weight: 700; font-size: 18px; }
.store-badge small { font-size: 10px; font-weight: 500; opacity: .85; letter-spacing: .02em; }
.store-badge:hover { background: #1E2533; }
.badge-note { font-size: 13px; color: var(--sub-light); }

/* ---------- 섹션 ---------- */
.section { padding: 88px 0; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.section-lead { color: var(--sub); font-size: 17px; margin-top: 10px; max-width: 640px; }
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--soft); display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.feature h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--sub); }

.section-privacy { background: #0F1E33; color: #E9F0FA; }
.section-privacy .section-lead { color: #A9B8CC; }
.privacy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.p-card { background: #16294A; border: 1px solid #223A61; border-radius: var(--radius); padding: 22px; }
.p-card h3 { font-size: 18px; font-weight: 800; margin: 10px 0 8px; color: #fff; }
.p-card p { font-size: 14.5px; color: #B9C7DA; }
.p-card code { background: #0F1E33; color: #8FE3DA; }
.p-tag { display: inline-block; font-size: 12px; font-weight: 800; color: #0F1E33; background: var(--accent); border-radius: 999px; padding: 2px 10px; }
.server-knows { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 16px; }
.server-knows > div { border: 1px solid #223A61; border-radius: var(--radius); padding: 22px 24px; }
.server-knows h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; color: #fff; }
.server-knows ul { margin: 0; padding-left: 20px; color: #C9D5E5; font-size: 15px; display: grid; gap: 4px; }
.no-list { list-style: none; padding-left: 0 !important; }
.no-list li::before { content: "✕"; color: #FF8F8F; font-weight: 800; margin-right: 8px; }
.privacy-more { margin-top: 24px; color: #A9B8CC; }
.privacy-more a { color: #8FE3DA; font-weight: 700; }

.themes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.theme figcaption { margin-top: 12px; display: flex; flex-direction: column; }
.theme figcaption strong { font-size: 15px; }
.theme figcaption span { font-size: 13px; color: var(--sub); }
.theme-screen { position: relative; background: var(--t-bg); color: var(--t-ink); border: 6px solid #141821; border-radius: 26px; padding: 16px 12px 56px; aspect-ratio: 9 / 13.5; overflow: hidden; }
.ts-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.ts-sub { font-size: 11px; color: var(--t-sub); }
.ts-h { font-size: 20px; font-weight: 800; }
.ts-cup { width: 34px; height: 38px; border: 3px solid var(--t-ink); border-top: 0; border-radius: 0 0 11px 11px; position: relative; overflow: hidden; background: var(--t-card); }
.ts-fill { position: absolute; inset: auto 0 0 0; height: 60%; background: var(--t-fill); }
.ts-item { display: flex; align-items: center; gap: 8px; background: var(--t-card); border: 1px solid var(--t-line); border-radius: 13px; padding: 7px 8px; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.ts-emo { width: 24px; height: 24px; border-radius: 8px; background: var(--t-soft); display: grid; place-items: center; font-size: 12px; flex: none; }
.ts-t.done { color: var(--t-sub); text-decoration: line-through; }
.ts-ck { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--t-line); display: grid; place-items: center; font-size: 10px; color: var(--t-onp); flex: none; }
.ts-ck.on { background: var(--t-primary); border-color: var(--t-primary); }
.ts-fab { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 13px; background: var(--t-accent); color: var(--t-onacc); display: grid; place-items: center; font-size: 22px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; margin-top: 24px; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--sub-light); border-bottom: 2px solid var(--sub-light); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a { padding: 0 20px 18px; color: var(--sub); white-space: pre-line; }
.faq-loading { color: var(--sub-light); padding: 16px 4px; }
.muted-note { color: var(--sub); margin-top: 20px; }

.section-cta { padding: 72px 0 96px; }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; background: linear-gradient(160deg, #2F6FED, #4C8DF6); color: #fff; border-radius: 32px; padding: 56px 24px; }
.cta-icon { border-radius: 22.5%; box-shadow: 0 12px 30px -10px #0004; border: 3px solid #ffffff55; }
.cta-inner h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-top: 20px; }
.cta-inner p { opacity: .9; margin-top: 6px; }
.cta-inner .badges { justify-content: center; }
.cta-inner .badge-note { color: #DCE8FD; flex-basis: 100%; }

/* ---------- 문서(정책) ---------- */
.page { padding: 56px 24px 88px; }
.doc { max-width: 800px; padding-top: 56px; padding-bottom: 88px; }
.doc-head { margin-bottom: 28px; }
.doc-head h1, .page h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.doc-meta { color: var(--sub); margin-top: 8px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 44px 0 12px; padding-top: 4px; }
.doc p { margin: 10px 0; }
.doc ul, .doc ol { padding-left: 22px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc-summary { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 12px; padding: 18px 22px; margin-bottom: 24px; }
.doc-summary ul { margin-bottom: 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 22px; margin-bottom: 24px; font-size: 15px; }
.toc ol { columns: 2; column-gap: 32px; margin: 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--primary); text-decoration: underline; }
.note { color: var(--sub); font-size: 15px; background: var(--soft); border-radius: 12px; padding: 12px 16px; }
.table-scroll { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.doc-table th { text-align: left; background: #F7FAFE; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.doc-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table small { color: var(--sub); }

/* ---------- 고객지원 ---------- */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.sub-title { font-size: 20px; font-weight: 800; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin-top: 24px; }
.form-note { font-size: 14px; color: var(--sub); background: var(--soft); border-radius: 10px; padding: 10px 12px; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; position: relative; }
.field > span { font-size: 13px; font-weight: 700; color: var(--sub); }
.field em { font-style: normal; font-weight: 500; color: var(--sub-light); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line2); border-radius: 12px; padding: 11px 13px; background: #fff; font-size: 15px; }
.field select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237D8DA3' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.field input[aria-invalid=true] { border-color: var(--danger); }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.counter { align-self: flex-end; color: var(--sub-light); font-size: 12px; }
.counter.over { color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--sub); margin-bottom: 16px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex: none; }
.form-error { background: #FDECEC; color: var(--danger); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 16px; }
.form-foot { font-size: 13px; color: var(--sub); text-align: center; margin-top: 14px; }
.form-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 24px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 800; }
.form-done h3 { font-size: 20px; }
.form-done p { color: var(--sub); }

/* ---------- 푸터 ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 36px 0 28px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 10px; align-items: center; }
.footer-brand p { font-size: 13px; color: var(--sub); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14px; }
.footer-links a { color: var(--ink); text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-note { margin-top: 20px; font-size: 13px; color: var(--sub-light); }

/* ---------- 반응형 ---------- */
@media (max-width: 1024px) {
  .features, .privacy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero { padding: 48px 0 64px; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .server-knows, .support-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: grid; }
  .site-nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--card);
    border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; box-shadow: 0 20px 30px -20px #0003; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px; }
  .site-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .toc ol { columns: 1; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .features, .privacy-grid { grid-template-columns: 1fr; }
  .themes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-row { grid-template-columns: 1fr; }
  .store-badge { min-width: 0; flex: 1 1 0; padding: 9px 12px; }
  .store-badge span { font-size: 16px; }
  .badge-note { flex-basis: 100%; }
  .lead { font-size: 17px; }
}
.doc-table td:first-child { white-space: nowrap; font-weight: 700; }
.doc-table td:first-child small { font-weight: 400; }
