/* Onfeel site — colors are DESIGN.md §3.1 tokens only (BRAND.md §6.2, B4). Light theme. */
:root {
  --bg-app: #F5F6F8;
  --bg-surface: #FFFFFF;
  --bg-desk: #E9EBEF;
  --text: #1A1D21;
  --text-2: #5B6470;
  --text-3: #8A93A0;
  --amber: #F59E0B;          /* excerptBase — brand primary */
  --amber-ink: #B45309;      /* excerpt (light) — amber text on white */
  --amber-wash: rgba(245, 158, 11, .14); /* excerptSubtle */
  --border: rgba(0, 0, 0, .10);
  --border-strong: rgba(0, 0, 0, .18);
  --serif: "Nanum Myeongjo", "AppleMyungjo", "Noto Serif KR", "Source Han Serif K", "Noto Serif CJK KR", Georgia, serif;
  /* 한글 글리프가 있는 서체를 **맨 앞**에. -apple-system(SF)에는 한글이 없고 iOS Safari의 CJK 폴백이
     환경에 따라 동작하지 않아 본문이 통째로 두부(□)가 됐다(iPhone 시뮬레이터 실측) — 앱의 서식 웹뷰와 같은 결함. */
  --sans: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wrap: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg-surface);
  color: var(--text);
  font: 16px/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--amber-ink); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: 16px; top: -60px; background: var(--bg-surface); padding: 8px 12px; z-index: 10; }
.skip:focus { top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 16px;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand svg { width: 28px; height: 28px; }
.brand b { font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand small { color: var(--text-3); font-size: 13px; letter-spacing: .04em; }
.header-nav { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.header-nav a { color: var(--text-2); text-decoration: none; }
.header-nav a:hover { color: var(--text); }
.header-nav .page-links { display: none; gap: 18px; }

.language-switch { display: flex; gap: 4px; font-size: 13px; }
.language-switch a {
  color: var(--text-2); text-decoration: none; padding: 4px 9px; border-radius: 999px; border: 1px solid transparent;
}
.language-switch a[aria-current="page"] { color: var(--text); border-color: var(--border-strong); }

/* Hero */
.hero { background: var(--bg-app); border-bottom: 1px solid var(--border); }
.hero .inner {
  max-width: var(--wrap); margin: 0 auto; padding: 48px 16px 56px;
  display: grid; gap: 40px; align-items: center;
}
.eyebrow { font-size: 12px; letter-spacing: .18em; font-weight: 600; color: var(--amber-ink); margin: 0 0 16px; text-transform: uppercase; }
.hero h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 9vw, 60px); letter-spacing: -.03em; line-height: 1.25; margin-bottom: 20px;
}
.hero .lead { font-size: 17px; color: var(--text-2); max-width: 32em; }
.hero .platform { margin-top: 24px; font-size: 14px; color: var(--text-3); }

/* The logo gesture, drawn large: paper + amber dashed marquee + 4 handles (BRAND §6.1) */
.paper-art { justify-self: center; width: min(320px, 82vw); }
.paper-art .sheet { fill: var(--bg-surface); stroke: var(--border-strong); }
.paper-art .line { stroke: var(--bg-desk); stroke-width: 6; stroke-linecap: round; }
.paper-art .wash { fill: var(--amber-wash); }
.paper-art .marquee { fill: none; stroke: var(--amber); stroke-width: 3; stroke-dasharray: 9 6; }
.paper-art .handle { fill: var(--amber); }

/* Sections */
.section { max-width: var(--wrap); margin: 0 auto; padding: 56px 16px; }
.section > h2, .section-head h2 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 6vw, 36px); letter-spacing: -.02em; margin-bottom: 12px;
}
.section-head p { color: var(--text-2); max-width: 36em; }

.pipeline { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.pipeline li {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto 1fr; gap: 4px 16px; align-items: start;
}
.pipeline .icon { grid-row: span 3; width: 56px; height: 56px; border-radius: 12px; background: var(--bg-app); display: grid; place-items: center; }
.pipeline .icon svg { width: 34px; height: 34px; }
.pipeline .stage { font-size: 13px; font-weight: 600; color: var(--amber-ink); letter-spacing: .04em; }
.pipeline .stage::before { counter-increment: step; content: counter(step) " · "; color: var(--text-3); }
.pipeline h3 { font-family: var(--serif); font-size: 21px; }
.pipeline p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.icon .stroke { fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon .amber { fill: none; stroke: var(--amber); stroke-width: 2; stroke-dasharray: 3 2.5; }
.icon .amber-fill { fill: var(--amber); }

.flow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 20px;
  font-size: 14px; color: var(--text-2);
}
.flow span { padding: 4px 12px; border-radius: 999px; background: var(--bg-app); border: 1px solid var(--border); }
.flow i { font-style: normal; color: var(--text-3); }

.band { background: var(--bg-app); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.facts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.facts li { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; }
.facts b { display: block; margin-bottom: 2px; }
.facts span { color: var(--text-2); font-size: 15px; }

.note { color: var(--text-2); font-size: 15px; }

/* Legal + support pages */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 16px 64px; }
.doc h1 { font-family: var(--serif); font-size: clamp(28px, 7vw, 38px); letter-spacing: -.02em; margin-bottom: 8px; }
.doc .meta { color: var(--text-3); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 19px; margin: 36px 0 10px; padding-top: 4px; }
.doc h3 { font-size: 16px; margin: 20px 0 6px; }
.doc p, .doc li { color: var(--text); font-size: 16px; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: .4em; }
.doc .summary { background: var(--bg-app); border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; margin-bottom: 8px; }
.doc .summary ul { margin: 0; }

.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; padding: 14px 28px 14px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; color: var(--text-3); font-weight: 400; font-size: 20px; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 12px; color: var(--text-2); }
.faq details > div p { color: var(--text-2); }

.contact-card h2 { margin-top: 0; }
.contact-card p:last-child { margin-bottom: 0; }
.contact-card { margin-top: 36px; background: var(--bg-app); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-surface); }
.site-footer .inner {
  max-width: var(--wrap); margin: 0 auto; padding: 28px 16px 40px;
  display: grid; gap: 14px; font-size: 14px; color: var(--text-2);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer nav a { color: var(--text-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--text); text-decoration: underline; }
.site-footer small { color: var(--text-3); }

/* 404 / redirect */
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.center-page h1 { font-family: var(--serif); font-size: 32px; margin: 12px 0; }
.center-page .paper-art { width: 140px; margin: 0 auto 8px; }
.center-page nav { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }

@media (min-width: 720px) {
  .header-nav .page-links { display: flex; }
  .hero .inner { grid-template-columns: 1.2fr 1fr; padding: 88px 24px 96px; }
  .section { padding: 80px 24px; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .site-footer .inner { grid-template-columns: 1fr auto; align-items: center; padding: 32px 24px 48px; }
}

@media (prefers-reduced-motion: no-preference) {
  .paper-art .marquee { animation: march 1.4s linear infinite; }
  @keyframes march { to { stroke-dashoffset: -30; } }
}
