/* 틈틈 AICE 공개 웹 페이지(소개·개인정보처리방침) 공통 스타일. 앱과 같은 파스텔 색과 Pretendard 글꼴을 쓴다. */
@import url('/fonts/pretendard.css');

:root {
  --bg: #f7f6fb;
  --card: #ffffff;
  --ink: #1e2230;
  --ink-2: #4a5064;
  --muted: #5e6475;
  --line: #e2e0ec;
  --accent: #4d5fc4;
  --accent-strong: #3b4aa0;
  --accent-soft: #eaeeff;
  --accent-fill: #c3cdff;
  --accent-ink: #1f2b66;
  --warn-fill: #ffd4ba;
  --warn-ink: #7a3b12;
  --mint-fill: #c9eedc;
  --mint-ink: #1d5a3c;
  --frame: #1e2230;
  --font: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --shadow: 0 30px 60px -28px rgba(42, 47, 85, .4);
  /* 공개 페이지는 기기 테마와 상관없이 밝은 화면으로 보여준다 */
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 16px; line-height: 1.65; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-strong); }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 10; background: var(--card); padding: 8px 12px; border-radius: 8px; }

/* ── 머리말 ── */
/* 아래 옅은 선 + 부드러운 그림자로 콘텐츠와 구분 */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(247, 246, 251, .9); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(226, 224, 236, .8); box-shadow: 0 6px 20px -10px rgba(42, 47, 85, .22); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; }
.brand b { color: var(--accent); }
.site-nav { display: flex; gap: 22px; font-size: 15px; font-weight: 600; }
.site-nav a { color: var(--ink-2); text-decoration: none; }
.site-nav a:hover { color: var(--accent-strong); }

/* ── 버튼 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: 14px; font-size: 16px; font-weight: 700; text-decoration: none; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--accent-fill); color: var(--accent-ink); }
.btn-disabled { opacity: .75; cursor: default; }
.soon { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--card); color: var(--accent-strong); }

/* ── 첫 화면 ── */
.hero { position: relative; overflow: hidden; padding: 56px 0 80px; }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; z-index: -1; }
.hero::before { width: 620px; height: 620px; right: -200px; top: -240px; background: #eceefd; }
.hero::after { width: 520px; height: 520px; left: -260px; bottom: -260px; background: #fff0e6; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent-strong); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.18; letter-spacing: -.02em; margin: 18px 0 18px; font-weight: 800; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 28px; max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.facts li::before { content: '✓'; color: var(--accent); font-weight: 800; margin-right: 6px; }

/* ── 폰 목업 (스토어 스크린샷과 같은 비율) ── */
.phone { position: relative; width: 300px; max-width: 100%; margin: 0 auto; padding: 9px; border-radius: 46px; background: var(--frame); box-shadow: var(--shadow); }
.phone .screen { border-radius: 37px; overflow: hidden; background: var(--bg); }
.phone .status { position: relative; height: 34px; display: flex; align-items: center; padding: 0 30px; font-size: 13px; font-weight: 600; }
.phone .status::after { content: ''; position: absolute; left: 50%; top: 8px; width: 84px; height: 24px; margin-left: -42px; border-radius: 12px; background: #0b0d12; }
.phone img { width: 100%; height: auto; aspect-ratio: 393 / 808; object-fit: cover; object-position: top; }
.hero .phone { transform: rotate(3deg); }

/* ── 구역 공통 ── */
section { padding: 80px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.3; letter-spacing: -.015em; margin: 14px 0 12px; font-weight: 800; }
.sec-head p { color: var(--ink-2); margin: 0; }

/* ── 기능 ── */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-bottom: 88px; }
.feature:last-child { margin-bottom: 0; }
.feature:nth-child(even) .feature-text { order: 2; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 8px; background: var(--accent-soft); color: var(--accent-strong); }
.tag.warn { background: var(--warn-fill); color: var(--warn-ink); }
.tag.mint { background: var(--mint-fill); color: var(--mint-ink); }
h3 { font-size: 26px; line-height: 1.35; margin: 14px 0 12px; font-weight: 800; }
.feature-text p { color: var(--ink-2); margin: 0 0 16px; }
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.points li { padding-left: 26px; position: relative; color: var(--ink); font-weight: 500; }
.points li::before { content: ''; position: absolute; left: 4px; top: .55em; width: 10px; height: 10px; border-radius: 3px; background: var(--accent-fill); }

/* ── 문제 유형 ── */
.types { background: var(--card); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.type { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--bg); }
.type strong { display: block; font-size: 18px; margin-bottom: 6px; }
.type p { margin: 0; color: var(--ink-2); font-size: 15px; }
.type code { font-family: 'JetBrains Mono', Consolas, monospace; font-size: 14px; background: var(--accent-soft); color: var(--accent-ink); padding: 1px 6px; border-radius: 6px; }

/* ── 가격 ── */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 760px; margin: 0 auto; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.plan.premium { border: 2px solid var(--accent-fill); }
.plan .name { font-size: 15px; font-weight: 700; color: var(--muted); }
.plan .price { font-size: 32px; font-weight: 800; margin: 6px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; font-size: 15px; }
.plan li::before { content: '✓'; color: var(--accent); font-weight: 800; margin-right: 8px; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: '–'; color: var(--muted); }

/* ── 자주 묻는 질문 ── */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
/* 열면 +가 45도 돌아 ×가 된다 (assets/landing.js가 is-open을 붙인다) */
.faq summary::after { content: '+'; flex: none; color: var(--accent); font-size: 24px; font-weight: 500; line-height: 1; transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.faq details.is-open summary::after { transform: rotate(45deg); }
.faq-body { overflow: hidden; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }

.notice-box { max-width: 760px; margin: 40px auto 0; font-size: 14px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }

/* ── 꼬리말 ── */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 13.5px; color: var(--muted); }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 14px; font-weight: 600; }
.site-foot .links a { color: var(--ink-2); text-decoration: none; }
.site-foot .links a.strong { color: var(--ink); font-weight: 800; }
.biz { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 10px; padding: 0; list-style: none; }

/* ── 정책 문서 ── */
.doc { max-width: 780px; margin: 0 auto; padding: 40px 20px 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); margin: 0 0 10px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc .intro { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.doc .summary { background: var(--accent-soft); border-radius: 16px; padding: 18px 22px; margin: 18px 0 8px; }
.doc .summary strong { color: var(--accent-ink); }
.doc .summary ul { margin: 8px 0 0; padding-left: 20px; }
.doc h2 { font-size: 21px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 22px; margin: 22px 0; }
.toc ol { margin: 6px 0; padding-left: 22px; columns: 2; column-gap: 28px; font-size: 14.5px; }
.toc a { text-decoration: none; }
.table-scroll { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.doc table { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 14px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--bg); font-weight: 700; white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }

/* ── 좁은 화면 ── */
@media (max-width: 860px) {
  .hero { padding: 32px 0 64px; }
  .hero .wrap, .feature { grid-template-columns: 1fr; gap: 36px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .feature { margin-bottom: 64px; }
  .hero .phone { transform: none; width: 260px; }
  .phone { width: 260px; }
  section { padding: 56px 0; }
  .site-nav { display: none; }
  .plans { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}

/* ── 스크롤 등장 (assets/landing.js가 html.js-reveal을 붙일 때만 숨겼다가, 화면에 들어오면 .shown) ── */
.js-reveal .reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js-reveal .reveal.shown { opacity: 1; transform: none; }
.js-reveal .reveal.later { transition-delay: .15s; }
/* 나란히 있는 카드·질문은 차례로 */
.js-reveal .type:nth-child(2), .js-reveal .faq details:nth-child(2) { transition-delay: .08s; }
.js-reveal .type:nth-child(3), .js-reveal .faq details:nth-child(3) { transition-delay: .16s; }
.js-reveal .type:nth-child(4), .js-reveal .faq details:nth-child(4) { transition-delay: .24s; }
.js-reveal .faq details:nth-child(5) { transition-delay: .32s; }
.js-reveal .faq details:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
