/* 웰그린 AI 서비스 공통 스타일 — 어두운 바탕, 따뜻한 노랑(행동)·청록(안도)·분홍(경고) */
:root{
  --ink:#0d1726;--ink2:#0a1220;--panel:#16263d;--line:#2a4063;
  --text:#eef3f8;--muted:#a7b9cf;
  --warm:#ffb648;--calm:#5ad1c0;--alarm:#ff6b81;
  --display:"Black Han Sans","Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --body:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--ink);color:var(--text);font-family:var(--body);line-height:1.7;overflow-x:hidden}
a{color:var(--calm)}
.wrap{max-width:1040px;margin:0 auto;padding:0 20px}
.skip{position:absolute;left:-9999px}.skip:focus{left:12px;top:12px;background:var(--warm);color:#2a1a00;padding:8px 12px;border-radius:8px;z-index:20}

/* 상단 메뉴 */
header.top{position:sticky;top:0;z-index:10;background:rgba(13,23,38,.88);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.topin{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;color:var(--text);text-decoration:none;font-family:var(--display);font-size:20px}
.brand i{width:32px;height:32px;border-radius:9px;background:var(--calm);display:grid;place-items:center}
.brand span{color:var(--warm)}
nav.menu{display:flex;flex-wrap:wrap;gap:2px 18px;font-size:15px}
nav.menu a{color:var(--text);text-decoration:none;padding:10px 0}
nav.menu a[aria-current="page"]{color:var(--warm)}
.btn{display:inline-flex;align-items:center;gap:8px;background:var(--warm);color:#2a1a00;font-weight:700;font-size:16px;padding:13px 22px;border-radius:12px;text-decoration:none;border:0;cursor:pointer;font-family:inherit;box-shadow:0 10px 26px rgba(255,182,72,.25);transition:transform .2s ease}
.btn:hover{transform:translateY(-2px)}
.btn.sm{font-size:14px;padding:10px 16px}
.btn.ghost{background:transparent;color:var(--text);border:1px solid var(--line);box-shadow:none}
.btn:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,button:focus-visible{outline:3px solid var(--calm);outline-offset:3px}

/* 타이포 */
h1,h2,h3{margin:0;line-height:1.25;text-wrap:balance}
h1,h2{font-family:var(--display);font-weight:400}
h1{font-size:clamp(34px,6.4vw,62px)}
h2{font-size:clamp(26px,4.4vw,40px)}
h3{font-size:19px}
p{margin:0;color:var(--muted);max-width:40em}
.warm{color:var(--warm)}.calm{color:var(--calm)}.alarm{color:var(--alarm)}
.hl{background:linear-gradient(90deg,#ffb648,#ff8f6b);-webkit-background-clip:text;background-clip:text;color:transparent}
.kicker{font-size:13px;letter-spacing:.12em;font-weight:700;color:var(--calm)}
.note{font-size:13px;color:var(--muted)}

/* 섹션 */
section{padding:64px 0;display:flex;flex-direction:column;gap:22px}
section+section{border-top:1px solid rgba(42,64,99,.5)}
.hero{position:relative;padding:84px 0 72px}
.hero>*{position:relative}
.hero::before,.hero::after{content:"";position:absolute;border-radius:50%;pointer-events:none}
.hero::before{width:560px;height:560px;right:-200px;top:-140px;background:radial-gradient(circle,rgba(255,182,72,.2),transparent 62%);animation:float 9s ease-in-out infinite alternate}
.hero::after{width:440px;height:440px;left:-220px;bottom:-180px;background:radial-gradient(circle,rgba(90,209,192,.15),transparent 62%);animation:float 11s ease-in-out infinite alternate-reverse}
.hero p{font-size:clamp(16px,2.2vw,20px)}
.row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}

/* 카드·그리드 */
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:8px;transition:transform .25s ease,border-color .25s ease}
.card:hover{transform:translateY(-4px);border-color:var(--warm)}
.card p{font-size:15px}
.card .go{margin-top:auto;font-weight:700;color:var(--warm);text-decoration:none}

/* 대화·흐름 */
.chat{display:flex;flex-direction:column;gap:10px;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px;max-width:540px}
.bubble{padding:10px 14px;border-radius:14px;font-size:15px;max-width:90%}
.me{align-self:flex-end;background:var(--warm);color:#2a1a00;font-weight:500}
.ai{align-self:flex-start;background:var(--ink);border:1px solid var(--line)}
.miss{align-self:flex-start;border:2px dashed var(--alarm);color:var(--alarm);border-radius:10px;padding:6px 12px;font-weight:700;font-size:15px}
.flowbox{background:var(--panel);border:1px solid var(--line);border-radius:18px;padding:22px;display:grid;gap:10px;max-width:520px}
.task{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-radius:12px;background:var(--ink)}
.task em{font-style:normal;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px}
.task .hand{color:var(--alarm);background:rgba(255,107,129,.12)}
.task .auto{color:var(--calm);background:rgba(90,209,192,.14)}

/* 최악·최상 */
.vs{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.side{border-radius:16px;padding:22px;border:1px solid var(--line);background:var(--panel);display:flex;flex-direction:column;gap:12px}
.side.worst{border-color:rgba(255,107,129,.55);background:linear-gradient(180deg,rgba(255,107,129,.10),var(--panel) 60%)}
.side.best{border-color:rgba(255,182,72,.6);background:linear-gradient(180deg,rgba(255,182,72,.12),var(--panel) 60%)}
.side h3{font-family:var(--display);font-weight:400;font-size:24px}
.tl{list-style:none;margin:0;padding:0 0 0 20px;display:grid;gap:12px;position:relative}
.tl::before{content:"";position:absolute;left:5px;top:6px;bottom:6px;width:2px;background:var(--line)}
.tl li{position:relative;font-size:15px}
.tl li::before{content:"";position:absolute;left:-20px;top:7px;width:10px;height:10px;border-radius:50%;background:var(--ink);border:2px solid var(--line)}
.worst .tl li::before{border-color:var(--alarm)}.best .tl li::before{border-color:var(--warm)}
.tl time{display:block;font-size:13px;font-weight:700;color:var(--muted)}
.worst .tl li:last-child{color:var(--alarm);font-weight:700}.best .tl li:last-child{color:var(--warm);font-weight:700}

/* 골든서클 */
.gcircle{display:grid;grid-template-columns:200px 1fr;gap:30px;align-items:center}
.rings{position:relative;width:200px;height:200px}
.rings i{position:absolute;left:50%;top:50%;border-radius:50%;border:2px solid;transform:translate(-50%,-50%)}
.rings .r3{width:200px;height:200px;border-color:var(--line)}
.rings .r2{width:134px;height:134px;border-color:var(--calm)}
.rings .r1{width:68px;height:68px;border-color:var(--warm);background:rgba(255,182,72,.15)}
.gc{display:grid;gap:14px}
.gc b{display:block;font-family:var(--display);font-weight:400;font-size:20px;letter-spacing:.05em}
.gc p{color:var(--text)}

/* 표 */
.tablebox{overflow-x:auto;border:1px solid var(--line);border-radius:14px}
table{width:100%;min-width:640px;border-collapse:collapse;font-variant-numeric:tabular-nums}
th,td{text-align:left;padding:12px 14px;border-bottom:1px solid var(--line);font-size:15px;vertical-align:top}
th{color:var(--muted);font-weight:500;background:var(--panel)}
tr:last-child td{border-bottom:0}
td.num{text-align:right;white-space:nowrap;font-weight:700}
td.num.warm{color:var(--warm)}
.tag{font-size:11px;font-weight:700;color:#8A4A08;background:#FDF1DF;padding:2px 8px;border-radius:999px;margin-left:4px}

/* 숫자·게이지 */
.bignum{font-family:var(--display);font-size:clamp(80px,17vw,160px);line-height:.9;color:var(--warm);font-variant-numeric:tabular-nums}
.duo{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.pane{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:10px}
.shot{border-radius:10px;min-height:130px;display:grid;place-items:center;font-size:14px;font-weight:700}
.shot.img{background:linear-gradient(135deg,#3b5a8a,#5ad1c0 60%,#ffb648);color:#0d1726}
.shot.void{border:1px dashed var(--line);color:var(--muted);font-weight:400}
.shot.void span::after{content:"▍";margin-left:4px;color:var(--alarm);animation:blink 1s steps(1) infinite}
.fall{display:flex;align-items:baseline;gap:14px;flex-wrap:wrap;font-family:var(--display)}
.fall s{font-size:clamp(20px,3.4vw,30px);color:var(--muted);text-decoration-color:var(--alarm)}
.fall .now{font-size:clamp(46px,9vw,84px);color:var(--warm);line-height:1}
.fall small{font-family:var(--body);font-size:14px;color:var(--warm);font-weight:700}

/* 단계 */
.steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;counter-reset:s;list-style:none;margin:0;padding:0}
.steps li{counter-increment:s;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:6px}
.steps li::before{content:counter(s);font-family:var(--display);color:var(--calm);font-size:26px;line-height:1}
.steps li p{font-size:14px}
.steps.four{grid-template-columns:repeat(4,minmax(0,1fr))}

/* 한 문장 */
.motto{align-items:center;text-align:center}
.motto h2{font-size:clamp(32px,6.4vw,60px)}

/* FAQ */
details{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px 18px}
details summary{cursor:pointer;font-weight:700;color:var(--text)}
details p{margin-top:8px;font-size:15px}

/* 신청 */
form.apply{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:22px;display:grid;gap:14px;max-width:640px}
fieldset{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
legend{font-weight:700;margin-bottom:8px;font-size:15px}
.chip{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:10px 14px;font-size:15px;cursor:pointer}
label.f{display:grid;gap:6px;font-size:14px;color:var(--muted)}
input[type=text],input[type=tel],input[type=email],textarea{background:var(--ink);border:1px solid var(--line);border-radius:10px;padding:12px 14px;color:var(--text);font:inherit;font-size:16px;width:100%}
.result{display:none;background:var(--ink);border:1px solid var(--calm);border-radius:12px;padding:14px;font-size:15px;white-space:pre-wrap}
.result.on{display:block}

footer{border-top:1px solid var(--line);padding:30px 0 44px;font-size:14px;color:var(--muted);display:grid;gap:4px}
footer b{color:var(--text)}

/* 모션 */
@keyframes float{from{transform:translate(0,0)}to{transform:translate(-30px,24px)}}
@keyframes rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes pop{0%{opacity:0;transform:scale(.8)}70%{transform:scale(1.06)}100%{opacity:1;transform:none}}
@keyframes shake{0%,100%{transform:none}20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}
@keyframes blink{50%{opacity:0}}
@keyframes ringPop{from{transform:translate(-50%,-50%) scale(0)}to{transform:translate(-50%,-50%) scale(1)}}
@keyframes flip{0%{transform:rotateX(90deg);opacity:0}100%{transform:none;opacity:1}}
.js section.reveal>*{opacity:0}
section.in>*{animation:rise .75s cubic-bezier(.2,.7,.2,1) both}
section.in>*:nth-child(2){animation-delay:.1s}section.in>*:nth-child(3){animation-delay:.2s}section.in>*:nth-child(4){animation-delay:.3s}section.in>*:nth-child(5){animation-delay:.4s}
section.in .tl li{animation:rise .6s both}
section.in .tl li:nth-child(2){animation-delay:.25s}section.in .tl li:nth-child(3){animation-delay:.5s}section.in .tl li:nth-child(4){animation-delay:.75s}
section.in .rings .r1{animation:ringPop .6s .2s both}section.in .rings .r2{animation:ringPop .6s .8s both}section.in .rings .r3{animation:ringPop .6s 1.4s both}
.hero .chat .me{animation:rise .6s .7s both}.hero .chat .ai{animation:rise .6s 1.6s both}.hero .chat .miss{animation:pop .5s 2.6s both,shake .5s 3.4s}
.hero .task em.auto{animation:flip .5s both}
.hero .task:nth-child(1) em.auto{animation-delay:1s}.hero .task:nth-child(2) em.auto{animation-delay:1.5s}.hero .task:nth-child(3) em.auto{animation-delay:2s}.hero .task:nth-child(4) em.auto{animation-delay:2.5s}

@media (max-width:860px){.steps{grid-template-columns:repeat(2,minmax(0,1fr))}.steps.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){.grid,.grid.two,.vs,.duo,.gcircle{grid-template-columns:1fr}.rings{width:150px;height:150px}.rings .r3{width:150px;height:150px}.rings .r2{width:100px;height:100px}.rings .r1{width:50px;height:50px}}
@media (max-width:420px){.steps,.steps.four{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}html{scroll-behavior:auto}.js section.reveal>*{opacity:1}}
