/* Tiny Desk Forest — 토스식 UI 규칙(brothermaze/web 기준)을 브랜드 코랄로 옮김
 * 순백 바탕 · 면이 필요한 곳만 옅은 회색 · 알약 버튼(라운드 = 높이 ÷ 2) · 카드 24px
 * 스페이싱 4px 스케일: 섹션 80 → 120, 컨테이너 1120, 좌우 20 → 40 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&display=swap');

:root{
  color-scheme: light;
  --font-sans: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
  --font-num: Montserrat, 'Pretendard Variable', Pretendard, sans-serif;

  /* 브랜드 코랄 — 원색은 그래픽·큰 숫자, 버튼·작은 글씨는 대비 4.5:1 이상 톤 */
  --brand-50: #FFF1EC;
  --brand-100: #FFE2D7;
  --brand-500: #E8654A;
  --brand-600: #C94A2E;   /* 버튼 배경 · 흰 글씨 4.66:1 */
  --brand-700: #BD452A;   /* 작은 강조 글씨 · 흰 바탕 5.19:1 */
  --brand-800: #A93E26;

  --ground: #FFFFFF;
  --fill: #F2F4F6;
  --fill-2: #F9FAFB;
  --ink: #191F28;
  --ink-2: #4E5968;
  --ink-3: #6B7684;       /* 흰 바탕에서만 */
  --line: #E5E8EB;

  --radius-card: 24px;
  --shadow-card: 0 1px 2px rgb(16 24 40 / .04), 0 4px 16px rgb(25 31 40 / .06);
  --shadow-float: 0 2px 6px rgb(16 24 40 / .06), 0 16px 40px rgb(201 74 46 / .14);
  --header-h: 64px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:calc(var(--header-h) + 24px);-webkit-text-size-adjust:100%}
body{background:var(--ground);color:var(--ink);font-family:var(--font-sans);font-size:16px;line-height:1.7;letter-spacing:-.01em;-webkit-font-smoothing:antialiased;word-break:keep-all;overflow-wrap:break-word}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3{text-wrap:balance}
:focus-visible{outline:2px solid var(--brand-600);outline-offset:3px;border-radius:6px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.num{font-family:var(--font-num);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.brand{color:var(--brand-600)}

/* 레이아웃 */
.container{width:100%;max-width:1120px;margin:0 auto;padding:0 20px}
.section{padding:80px 0}
.section.gray{background:var(--fill-2)}
@media (min-width:768px){.container{padding:0 40px}.section{padding:120px 0}}

/* 헤더 */
.site-header{position:sticky;top:0;z-index:50;height:var(--header-h);background:rgb(255 255 255 / .9);backdrop-filter:saturate(180%) blur(12px);-webkit-backdrop-filter:saturate(180%) blur(12px);transition:box-shadow .2s}
.site-header.scrolled{box-shadow:0 1px 0 var(--line)}
.site-header .container{height:100%;display:flex;align-items:center;justify-content:space-between;gap:16px}
.logo{display:inline-flex;align-items:center;gap:10px;font-weight:800;font-size:17px;letter-spacing:-.02em}
.logo-mark{width:28px;height:28px}
.nav{display:none;gap:28px;font-size:15px;font-weight:600;color:var(--ink-2)}
.nav a:hover{color:var(--ink)}
@media (min-width:900px){.nav{display:flex}}

/* 버튼 — 라운드 = 높이 ÷ 2 */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;font-family:inherit;font-weight:700;white-space:nowrap;cursor:pointer;transition:background-color .15s,box-shadow .15s,transform .15s}
.btn-lg{height:56px;padding:0 32px;font-size:17px}
.btn-md{height:48px;padding:0 24px;font-size:16px}
.btn-sm{height:40px;padding:0 18px;font-size:15px}
.btn-primary{background:var(--brand-600);color:#fff}
.btn-primary:hover{background:var(--brand-700)}
.btn-primary:active{background:var(--brand-800)}
.btn-secondary{background:#fff;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.btn-secondary:hover{background:var(--fill-2)}
.btn-tint{background:var(--brand-50);color:var(--brand-700)}
.btn-tint:hover{background:var(--brand-100)}
.btn[disabled]{opacity:.55;cursor:default}
.btn svg{width:18px;height:18px}

/* 공통 헤드 — 토스식 번호 챕터 */
.chapter{max-width:680px;margin:0 auto;text-align:center}
.chapter .no{font-size:26px;font-weight:800;color:var(--brand-500)}
.chapter h2{margin-top:16px;font-size:28px;line-height:1.35;font-weight:700;letter-spacing:-.01em}
.chapter p{margin-top:16px;font-size:16px;line-height:1.75;color:var(--ink-2)}
@media (min-width:768px){.chapter .no{font-size:32px}.chapter h2{font-size:36px}.chapter p{font-size:17px}}

.pill{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 14px;border-radius:999px;background:var(--brand-50);color:var(--brand-700);font-size:14px;font-weight:700}
.pill .dot{width:7px;height:7px;border-radius:50%;background:var(--brand-500);animation:blink 1.6s ease-in-out infinite}
@keyframes blink{50%{opacity:.25}}

.card{background:#fff;border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:24px}
.card.flat{box-shadow:inset 0 0 0 1px var(--line)}
@media (min-width:768px){.card{padding:32px}}

/* 히어로 */
.hero{padding:56px 0 80px;text-align:center}
.hero h1{margin-top:20px;font-size:clamp(30px,8.4vw,34px);line-height:1.3;font-weight:800;letter-spacing:-.025em}
.hero .lead{max-width:560px;margin:20px auto 0;font-size:17px;line-height:1.7;color:var(--ink-2)}
.hero .actions{margin-top:32px;display:flex;flex-direction:column;gap:12px;align-items:stretch;max-width:360px;margin-left:auto;margin-right:auto}
@media (min-width:600px){.hero .actions{flex-direction:row;justify-content:center;max-width:none}}
.br-m{display:inline}
@media (min-width:600px){.br-m{display:none}}
@media (min-width:768px){.hero{padding:88px 0 120px}.hero h1{font-size:52px}.hero .lead{font-size:19px}}

.clock-card{position:relative;max-width:420px;margin:56px auto 0;padding:36px 24px 32px;border-radius:32px;background:#fff;box-shadow:var(--shadow-float)}
.clock-card .top{font-size:15px;font-weight:700;color:var(--ink-3)}
.ring{position:relative;width:220px;height:220px;margin:18px auto 0}
.ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring .track{stroke:var(--fill)}
.ring .bar{stroke:var(--brand-500);stroke-linecap:round;transition:stroke-dashoffset .12s linear}
.ring .center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring .sec{font-size:76px;font-weight:800;line-height:1;color:var(--ink)}
.ring .unit{margin-top:6px;font-size:15px;font-weight:700;color:var(--ink-3)}
.clock-card .bottom{margin-top:20px;font-size:17px;font-weight:700}
.clock-card .bottom span{display:block;margin-top:4px;font-size:15px;font-weight:500;color:var(--ink-3)}
.tick-row{display:flex;justify-content:center;gap:8px;margin-top:18px}
.tick-row i{display:block;width:6px;height:6px;border-radius:50%;background:var(--fill)}
.tick-row i.on{background:var(--brand-500)}

/* 01 이야기 */
.story{max-width:640px;margin:40px auto 0}
.story p{font-size:17px;line-height:1.85;color:var(--ink-2)}
.story p+p{margin-top:18px}
.story strong{color:var(--ink);font-weight:700}
.stats{margin-top:56px;display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.stat{background:#fff;border-radius:20px;padding:24px 16px;text-align:center;box-shadow:inset 0 0 0 1px var(--line)}
.stat .label{font-size:15px;font-weight:600;color:var(--ink-2)}
.stat .value{margin-top:8px;font-size:34px;font-weight:800;line-height:1.1}
.stat .value small{font-family:var(--font-sans);font-size:.5em;font-weight:700;margin-left:2px}
@media (min-width:768px){.stats{grid-template-columns:repeat(4,1fr);gap:16px}.stat .value{font-size:44px}}

/* 02 컨셉 */
.concepts{margin-top:56px;display:grid;gap:16px}
@media (min-width:900px){.concepts{grid-template-columns:repeat(3,1fr);gap:20px}}
.concept .icon{width:56px;height:56px;border-radius:18px;background:var(--brand-50);display:flex;align-items:center;justify-content:center;color:var(--brand-600)}
.concept .icon svg{width:28px;height:28px}
.concept .kicker{margin-top:24px;font-size:14px;font-weight:700;color:var(--brand-700)}
.concept h3{margin-top:4px;font-size:22px;line-height:1.4;font-weight:700}
.concept p{margin-top:10px;font-size:16px;line-height:1.75;color:var(--ink-2)}
.teaser{margin-top:20px;display:flex;align-items:center;gap:14px;padding:20px 24px;border-radius:20px;background:var(--fill-2);font-size:15.5px;color:var(--ink-2);line-height:1.6}
.teaser svg{flex-shrink:0;width:22px;height:22px;color:var(--ink-3)}
.teaser b{color:var(--ink)}

/* 03 알림 신청 */
.notify{max-width:560px;margin:48px auto 0}
.field label{display:block;font-size:15px;font-weight:600;color:var(--ink-2);margin-bottom:8px}
.input{width:100%;height:56px;padding:0 18px;border-radius:16px;border:0;background:var(--fill);font:inherit;font-size:17px;color:var(--ink);transition:box-shadow .15s,background .15s}
.input::placeholder{color:#8B95A1}
.input:focus{outline:none;background:#fff;box-shadow:inset 0 0 0 2px var(--brand-500)}
.input[aria-invalid="true"]{box-shadow:inset 0 0 0 2px #E5484D;background:#fff}
.hint{min-height:22px;margin-top:6px;font-size:14px;color:#D93A3F}
.consent{margin-top:18px;padding:18px;border-radius:16px;background:var(--fill-2)}
.check{display:flex;align-items:flex-start;gap:12px;cursor:pointer;font-size:16px;font-weight:600}
.check input{appearance:none;-webkit-appearance:none;flex-shrink:0;width:24px;height:24px;margin-top:1px;border-radius:8px;background:#fff;box-shadow:inset 0 0 0 1.5px #C4CAD1;display:grid;place-content:center;cursor:pointer;transition:background .15s,box-shadow .15s}
.check input::after{content:"";width:12px;height:7px;border:solid #fff;border-width:0 0 2.5px 2.5px;transform:rotate(-45deg) translate(1px,-1px);opacity:0}
.check input:checked{background:var(--brand-600);box-shadow:none}
.check input:checked::after{opacity:1}
.check .req{color:var(--brand-700)}
.terms{margin-top:14px;display:grid;grid-template-columns:auto 1fr;gap:6px 14px;font-size:14px;line-height:1.55;color:var(--ink-2)}
.terms dt{font-weight:700;color:var(--ink-2);white-space:nowrap}
.terms dd{margin:0}
.terms-more{margin-top:10px;font-size:13.5px;color:var(--ink-2)}
.terms-more a{text-decoration:underline;text-underline-offset:3px}
.notify .btn{width:100%;margin-top:20px}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.done{text-align:center;padding:40px 24px}
.done .check-ico{width:64px;height:64px;margin:0 auto;border-radius:50%;background:var(--brand-50);color:var(--brand-600);display:flex;align-items:center;justify-content:center}
.done .check-ico svg{width:32px;height:32px}
.done h3{margin-top:20px;font-size:24px;font-weight:700}
.done p{margin-top:8px;color:var(--ink-2)}

/* 04 설문 */
.survey{margin-top:48px;display:grid;gap:12px}
@media (min-width:768px){.survey{grid-template-columns:repeat(3,1fr);gap:16px}}
.survey .stat{box-shadow:none;background:var(--fill-2)}
.survey .stat .value{font-size:30px}
@media (min-width:768px){.survey .stat .value{font-size:36px}}
.survey .stat .value.txt{font-family:var(--font-sans);font-size:22px;line-height:1.35;letter-spacing:-.02em}
@media (min-width:768px){.survey .stat .value.txt{font-size:24px;padding:6px 0}}
.center-action{margin-top:32px;text-align:center}

/* 푸터 */
.site-footer{background:var(--fill-2);padding:48px 0 56px;font-size:14px;color:var(--ink-2)}
.site-footer .row{display:flex;flex-direction:column;gap:20px}
@media (min-width:768px){.site-footer .row{flex-direction:row;justify-content:space-between;align-items:flex-end}}
.site-footer .desc{margin-top:10px}
.site-footer nav{display:flex;gap:20px;font-weight:600}
.site-footer nav a:hover{color:var(--ink)}
.site-footer .copy{margin-top:6px;color:var(--ink-2)}

/* 정책 페이지 */
.doc{max-width:760px;margin:0 auto;padding:56px 20px 96px}
.doc h1{font-size:30px;font-weight:800;line-height:1.35}
.doc .meta{margin-top:8px;color:var(--ink-3);font-size:15px}
.doc h2{margin-top:40px;font-size:20px;font-weight:700}
.doc p,.doc li{margin-top:10px;color:var(--ink-2);font-size:16px;line-height:1.8}
.doc ul{padding-left:20px}
.doc .box{margin-top:14px;padding:18px 20px;border-radius:16px;background:var(--fill-2)}
.back{display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--ink-2);margin-bottom:28px}

/* 등장 모션 */
.reveal{opacity:0;transform:translateY(16px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
  .reveal{opacity:1;transform:none}
}
