/* Daling 소개 사이트 (홈·개인정보처리방침·약관).
   앱 화면(web/styles.css)과 같은 크림 바탕·코랄 포인트·명조 제목을 쓴다.
   Google OAuth 브랜딩 심사가 이 페이지를 읽으므로 앱 이름(Daling)·목적·개인정보처리방침 링크는 늘 보이게 둔다. */
:root {
  --bg: #faf9f5;
  --bg-deep: #f2efe6;
  --surface: #ffffff;
  --surface-soft: #f6f4ee;
  --line: #e6e1d5;
  --line-strong: #d6cfbf;
  --ink: #1f1e1d;
  --muted: #5d5a52;
  --faint: #8b877c;
  --accent: #c0674a;
  --accent-ink: #9c4e33;
  --accent-soft: #f6e9e3;
  --green: #4f7a55;
  --blue: #4d7192;
  --amber: #a37413;
  --violet: #7651c2;
  --mark-bg: #f7f3e8;
  --shadow-lg: 0 1px 2px rgba(31,30,29,.05), 0 24px 60px -24px rgba(31,30,29,.28);
  --shadow-md: 0 1px 2px rgba(31,30,29,.04), 0 12px 32px -16px rgba(31,30,29,.2);
  --radius: 18px;
  --font-serif: "Noto Serif KR", "Lora", Georgia, serif;
  --font-sans: "Pretendard Variable", "Pretendard", "Inter", "Apple SD Gothic Neo", "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1c1a;
    --bg-deep: #24231f;
    --surface: #2a2926;
    --surface-soft: #302e2a;
    --line: #3b3934;
    --line-strong: #4a4740;
    --ink: #f1efe8;
    --muted: #c3bfb4;
    --faint: #9a968b;
    --accent: #e08a6c;
    --accent-ink: #f0a487;
    --accent-soft: #3a2a23;
    --shadow-lg: 0 1px 2px rgba(0,0,0,.3), 0 24px 60px -24px rgba(0,0,0,.7);
    --shadow-md: 0 1px 2px rgba(0,0,0,.25), 0 12px 32px -16px rgba(0,0,0,.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86em;
  background: var(--surface-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── 위쪽 메뉴 ── */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .container { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; background: var(--mark-bg); }
.brand b { font-family: "Lora", var(--font-serif); font-size: 1.3rem; letter-spacing: -.01em; }
.nav nav { display: flex; gap: 4px; margin-left: auto; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--ink); background: var(--surface-soft); }
.nav .btn { padding: 9px 16px; font-size: .92rem; }
.nav .lang { flex: none; color: var(--muted); text-decoration: none; font-weight: 700; font-size: .85rem; letter-spacing: .02em;
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 5px 9px; }
.nav .lang:hover { color: var(--ink); border-color: var(--ink); }
@media (max-width: 860px) { .nav nav { display: none; } .nav .lang { margin-left: auto; } }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; font-weight: 650;
  border-radius: 12px; padding: 13px 20px; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
  line-height: 1.2; cursor: pointer; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { color: var(--bg); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.accent { background: var(--accent); color: #fff; }
.btn.accent:hover { color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { color: var(--ink); border-color: var(--ink); }
.btn small { display: block; font-weight: 500; font-size: .76rem; opacity: .7; margin-top: 2px; }
.btn .t { text-align: left; }

/* ── 첫 화면 ── */
.hero { padding: 64px 0 40px; position: relative; }
.hero .container { display: grid; grid-template-columns: minmax(0, 1fr); gap: 44px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent-ink); background: var(--accent-soft);
  font-weight: 600; font-size: .86rem; padding: 6px 12px; border-radius: 999px; margin: 0 0 18px; }
.hero h1 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.22;
  letter-spacing: -.025em; margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--muted); max-width: 40em; margin: 0 0 26px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { color: var(--faint); font-size: .9rem; margin: 16px 0 0; }
.fine span { white-space: nowrap; }
.hero-copy { text-align: center; max-width: 820px; margin: 0 auto; }
.hero-copy .cta { justify-content: center; }
.hero-stage { position: relative; }
.hero-stage .dalgu { position: absolute; width: 112px; right: -14px; top: -78px; z-index: 2; }
@media (max-width: 720px) { .hero-stage .dalgu { width: 78px; right: 4px; top: -58px; } }

/* 앱 창 틀 */
.window { margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); }
.window .bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--surface-soft);
  border-bottom: 1px solid var(--line); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #e5ddd0; }
.window .bar i:nth-child(1) { background: #ec6a5e; } .window .bar i:nth-child(2) { background: #f4bf4f; } .window .bar i:nth-child(3) { background: #61c554; }
.window .bar span { margin-left: 8px; font-size: .8rem; color: var(--faint); font-weight: 500; }
.window img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }

/* ── 구역 공통 ── */
section { position: relative; }
.section { padding: 88px 0; }
.section.tint { background: var(--bg-deep); }
.kicker { color: var(--accent-ink); font-weight: 700; font-size: .85rem; letter-spacing: .04em; margin: 0 0 10px; }
.section h2 { font-family: var(--font-serif); font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.3; letter-spacing: -.02em; margin: 0 0 14px; }
.section .sub { color: var(--muted); font-size: 1.06rem; max-width: 42em; margin: 0; }
.center { text-align: center; }
.center .sub { margin: 0 auto; }

/* ── 흩어진 학교 서비스 → 하나로 ── */
.sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 44px 0 0; }
.source { margin: 0; }
.source .shot { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-md);
  transform: rotate(var(--tilt, 0deg)); transition: transform .3s; }
.source:nth-child(1) { --tilt: -2deg; } .source:nth-child(2) { --tilt: 1.5deg; } .source:nth-child(3) { --tilt: -1deg; } .source:nth-child(4) { --tilt: 2deg; }
.source:hover .shot { transform: rotate(0) translateY(-3px); }
.source .shot img { aspect-ratio: 8 / 5; object-fit: cover; object-position: top center; width: 100%; height: auto; }
.source figcaption { margin-top: 14px; font-size: .94rem; color: var(--muted); }
.source figcaption b { display: block; color: var(--ink); font-size: 1rem; }
.merge { display: flex; flex-direction: column; align-items: center; margin: 26px 0 0; }
.merge svg { width: min(100%, 900px); height: 86px; color: var(--line-strong); }
.merge .badge { display: inline-flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-md); border-radius: 999px; padding: 10px 22px 10px 10px; font-weight: 650; }
.merge .badge img { width: 38px; height: 38px; border-radius: 10px; background: var(--mark-bg); }
@media (max-width: 860px) { .sources { grid-template-columns: repeat(2, minmax(0, 1fr)); } .merge svg { display: none; } .merge { margin-top: 36px; } }
@media (max-width: 460px) { .sources { gap: 12px; } .source figcaption { font-size: .88rem; } }

/* ── 기능 ── */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding: 44px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip > .copy { order: 2; }
.feature h3 { font-family: var(--font-serif); font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.35; letter-spacing: -.015em; margin: 0 0 12px; }
.feature .tag { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .85rem; color: var(--c, var(--accent-ink)); margin: 0 0 12px; }
.feature .tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.feature p { color: var(--muted); margin: 0 0 14px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3 3 7-7' fill='none' stroke='%23c0674a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.checks small { color: var(--faint); }
@media (max-width: 900px) { .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 26px; } .feature.flip > .copy { order: 0; } }

.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.extra { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.extra b { display: block; margin-bottom: 4px; }
.extra span { color: var(--muted); font-size: .94rem; }
@media (max-width: 860px) { .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .extras { grid-template-columns: minmax(0, 1fr); } }

/* ── 꿀기능 ── */
.tip-hero { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 28px; box-shadow: var(--shadow-md); }
.tip-hero .tag { display: inline-block; font-weight: 700; font-size: .82rem; color: var(--accent-ink); background: var(--accent-soft);
  padding: 4px 10px; border-radius: 999px; margin: 0 0 10px; }
.tip-hero h3 { font-family: var(--font-serif); font-size: clamp(1.25rem, 2.2vw, 1.55rem); line-height: 1.4; margin: 0 0 10px; letter-spacing: -.01em; }
.tip-hero p { color: var(--muted); margin: 0; }
/* 가로로 긴 화면 띠는 글 아래 전체 폭으로 (옆에 두면 글자가 너무 작아진다) */
.tip-hero.stack { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.tip-hero.stack .copy { max-width: 46em; }
.shot-strip { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #faf9f5; }
.shot-strip img { width: 100%; height: auto; }
.tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.tip { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.tip b { display: block; margin-bottom: 4px; }
.tip span { color: var(--muted); font-size: .94rem; }
.tip small { color: var(--faint); }
@media (max-width: 900px) { .tip-hero { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px; } .tips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .tips { grid-template-columns: minmax(0, 1fr); } .tip-hero { padding: 18px; } }

/* ── 왜 편한가 ── */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.value { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-md); }
.value .num { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 700; color: var(--accent); line-height: 1; margin: 0 0 6px; }
.value .num small { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: 4px; }
.value h3 { font-size: 1.15rem; margin: 10px 0 6px; }
.value p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 860px) { .values { grid-template-columns: minmax(0, 1fr); } }

/* ── 시작하기 ── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--bg); font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 1.08rem; margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }
.steps-wrap { position: relative; }
.steps-wrap .dalgu { position: absolute; width: 96px; right: 6px; top: -92px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: minmax(0, 1fr); } .steps-wrap .dalgu { width: 70px; top: -66px; } }

/* ── 개인정보 요약 ── */
.trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 48px; align-items: start; }
.trust ul { margin: 18px 0 0; }
.perm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.perm .row { padding: 18px 22px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; }
.perm .row + .row { border-top: 1px solid var(--line); }
.perm .row b { display: block; }
.perm .row code { font-size: .78rem; }
.perm .row p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 860px) { .trust { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 520px) { .perm .row { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* ── 내려받기 ── */
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 12px; }
.dl .os { display: flex; align-items: center; gap: 12px; }
.dl .os svg { width: 30px; height: 30px; color: var(--ink); }
.pill { font-size: .75rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 3px 9px; }
.dl h3 { font-size: 1.3rem; margin: 0; }
.dl .req { color: var(--muted); font-size: .94rem; margin: 0; }
.dl .btn { align-self: flex-start; margin-top: 4px; }
.dl .ver { color: var(--faint); font-size: .85rem; }
.dl details { font-size: .92rem; color: var(--muted); }
.dl details summary { cursor: pointer; color: var(--ink); font-weight: 600; }
.dl details ol { margin: 8px 0 0; padding-left: 1.2em; }
.downloads-wrap { position: relative; }
.downloads-wrap .dalgu { position: absolute; width: 92px; left: -8px; top: -84px; }
@media (max-width: 760px) { .downloads { grid-template-columns: minmax(0, 1fr); } .downloads-wrap .dalgu { width: 70px; top: -64px; left: 4px; } }

/* ── 자주 묻는 질문 ── */
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

/* ── 아래 ── */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--faint); font-size: .92rem; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

/* 영어 요약 (Google 심사용) */
.en { border-top: 1px dashed var(--line); }
.en h2 { font-family: "Lora", var(--font-serif); }
.en p, .en li { color: var(--muted); }

/* 스크롤하면 살짝 떠오르기 (움직임 줄이기 설정이면 끔) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .source .shot { transform: none; } }
.no-js .reveal { opacity: 1; transform: none; }

/* ── 개인정보처리방침·약관 문서 ── */
.doc { padding: 48px 0 24px; }
.doc h1.page { font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.3rem); letter-spacing: -.02em; margin: 0 0 6px; line-height: 1.3; }
.meta { color: var(--faint); font-size: .95rem; margin: 0 0 32px; }
.doc h2 { font-family: var(--font-serif); font-size: 1.3rem; margin: 44px 0 12px; letter-spacing: -.01em; }
.doc h3 { font-size: 1.02rem; margin: 26px 0 8px; }
.doc ul, .doc ol { padding-left: 1.25em; } .doc li { margin: 6px 0; }
.table-wrap { overflow-x: auto; margin: 14px 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 520px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--surface-soft); font-weight: 600; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 14px 18px; margin: 20px 0; }
.doc .en { margin-top: 56px; padding-top: 8px; }

@media (max-width: 560px) {
  .container, .narrow { padding: 0 16px; }
  .hero { padding: 40px 0 24px; }
  .section { padding: 64px 0; }
  .btn { width: 100%; }
  .hero .cta { flex-direction: column; }
  .nav .btn { width: auto; }
}
