/* 삐리삐리 웹 첫 화면 (로그인 전). 색은 design/tokens.json 과 같다. 05-design-system: 흰 바탕, 검정 주 버튼, 색은 의미 있을 때만. */
:root {
  --ink: #16181D; --ink2: #4B4F57; --muted: #8C9097; --line: #ECEDF0; --paper: #FFFFFF; --fill: #F3F4F6; --fill2: #F8F9FA;
  --mint: #2BD9AE; --mintDeep: #0E9E7B; --mintSoft: #E7F8F2; --signal: #FFC83D; --signalText: #D99A00; --tomato: #F04452; --tomatoSoft: #FEECEE;
  --radius: 18px; --max: 1120px;
  color-scheme: light;
}
/* Flutter 화면이 뜨는 주소에서는 랜딩을 그리지 않는다 (landing.js 가 <html> 에 표시) */
html.ppiri-app #ppiri-landing { display: none !important; }
html:not(.ppiri-app) body { overflow: auto; }
html.l-wait #ppiri-landing { visibility: hidden; }

#ppiri-landing { background: var(--paper); color: var(--ink); min-height: 100vh;
  font: 16px/1.6 "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Segoe UI", "Hiragino Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans KR", "Noto Sans JP", "Noto Sans SC", Roboto, sans-serif;
  word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
#ppiri-landing *, #ppiri-landing *::before, #ppiri-landing *::after { box-sizing: border-box; }
#ppiri-landing a { color: inherit; text-decoration: none; }
#ppiri-landing button { font: inherit; color: inherit; }
.l-wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.l-skip { position: absolute; left: -9999px; }
.l-skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 10px; }
#ppiri-landing :focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }

/* 위쪽 막대 */
.l-nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.l-nav.scrolled { border-bottom-color: var(--line); }
.l-nav .l-wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.l-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.2px; }
.l-brand img { display: block; }
.l-links { display: flex; gap: 24px; font-size: 14.5px; color: var(--ink2); }
.l-links a:hover { color: var(--ink); }
.l-nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* 버튼 */
.l-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; font-size: 15px; font-weight: 600; letter-spacing: -.1px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.l-btn-sm { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 14px; }
.l-btn-lg { height: 52px; padding: 0 22px; border-radius: 14px; font-size: 16px; }
.l-btn-primary { background: var(--ink); color: #fff !important; }
.l-btn-primary:hover { background: #2B2E36; }
.l-btn-ghost { background: transparent; color: var(--ink2); }
.l-btn-ghost:hover { background: var(--fill); color: var(--ink); }
.l-btn-line { background: var(--paper); border-color: #DADCE0; color: var(--ink); }
.l-btn-line:hover { background: var(--fill2); }
.l-btn svg { flex: none; }

/* 언어 고르기 */
.l-lang { position: relative; }
.l-lang > button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; border-radius: 10px; border: 0; background: transparent; color: var(--ink2); font-size: 14px; cursor: pointer; }
.l-lang > button:hover { background: var(--fill); color: var(--ink); }
.l-lang ul { position: absolute; right: 0; top: 42px; min-width: 168px; margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(22,24,29,.10); display: none; }
.l-lang.up ul { top: auto; bottom: 42px; }
.l-lang.open ul { display: block; }
.l-lang li button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border: 0; border-radius: 9px; background: none; font-size: 14px; text-align: left; cursor: pointer; }
.l-lang li button:hover { background: var(--fill); }
.l-lang li button[aria-checked="true"] { font-weight: 650; }
.l-lang li button[aria-checked="true"]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }

/* 첫 구역 */
.l-hero { padding: 72px 0 88px; }
.l-hero .l-wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.l-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.l-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px var(--mintSoft); }
.l-hero h1 { margin: 20px 0 18px; font-size: clamp(36px, 5.2vw, 58px); line-height: 1.12; letter-spacing: -.035em; font-weight: 750; }
.l-hero h1 em { font-style: normal; color: var(--muted); }
.l-lead { margin: 0 0 32px; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink2); max-width: 34em; }
.l-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.l-note { margin: 18px 0 0; font-size: 13.5px; color: var(--muted); }

/* 제품 미리보기 (실제 채팅방 모양) */
.l-shot { background: var(--fill2); border: 1px solid var(--line); border-radius: 24px; padding: 14px; }
.l-win { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.l-win-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.l-stack { display: flex; }
.l-stack svg + svg { margin-left: -8px; }
.l-win-title { font-size: 15px; font-weight: 700; line-height: 1.2; }
.l-win-sub { font-size: 12px; color: var(--muted); }
.l-feed { padding: 16px; display: grid; gap: 14px; background: var(--paper); }
.l-msg { display: grid; grid-template-columns: 32px 1fr; gap: 10px; }
.l-route { font-size: 12px; color: var(--muted); margin: 2px 0 5px; }
.l-route b { color: var(--ink2); font-weight: 600; }
.l-bubble { background: var(--fill); border-radius: 6px 18px 18px 18px; padding: 11px 14px 9px; }
.l-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.l-bubble h4 { margin: 3px 0 2px; font-size: 14.5px; font-weight: 650; letter-spacing: -.2px; }
.l-bubble p { margin: 0; font-size: 13.5px; color: var(--ink2); line-height: 1.5; }
.l-meta { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.l-one { color: var(--signalText); font-weight: 800; }
.l-approve { background: var(--paper); border: 1.5px solid var(--ink); }
.l-why { margin: 8px 0 10px; padding: 8px 10px; background: var(--fill); border-radius: 10px; font-size: 12.5px; color: var(--ink2); }
.l-approve-btns { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.l-approve-btns span { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 10px; font-size: 13px; font-weight: 650; }
.l-approve-btns span:first-child { border: 1px solid #DADCE0; }
.l-approve-btns span:last-child { background: var(--ink); color: #fff; }
.l-typing { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; color: var(--mintDeep); font-weight: 600; }
.l-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); animation: l-beep 1.2s infinite; }
.l-typing i:nth-child(2) { animation-delay: .2s; background: var(--signal); }
.l-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes l-beep { 0%, 60%, 100% { opacity: .25; } 20% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .l-typing i { animation: none; opacity: 1; } }
.l-watch { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.l-watch span { flex: 1; }
.l-stop { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 10px; background: var(--tomato); color: #fff; font-size: 13px; font-weight: 700; }

/* 구역 공통 */
.l-section { padding: 96px 0; border-top: 1px solid var(--line); }
.l-kicker { font-size: 13px; font-weight: 700; color: var(--mintDeep); letter-spacing: .02em; margin: 0 0 12px; }
.l-section h2 { margin: 0 0 14px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; letter-spacing: -.03em; font-weight: 750; max-width: 20em; }
.l-section .l-sub { margin: 0 0 48px; font-size: 17px; color: var(--ink2); max-width: 40em; }
.l-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.l-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: var(--paper); }
.l-num { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px; background: var(--fill); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 18px; }
.l-ico { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 12px; background: var(--fill); margin-bottom: 18px; color: var(--ink); }
.l-ico.stop { background: var(--tomatoSoft); color: var(--tomato); }
.l-card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -.2px; font-weight: 700; }
.l-card p { margin: 0; font-size: 15px; color: var(--ink2); line-height: 1.6; }
.l-code { margin-top: 16px; padding: 10px 12px; background: var(--ink); color: #E8EAED; border-radius: 10px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: nowrap; }
.l-types { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.l-types span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: var(--fill); font-size: 12.5px; font-weight: 600; color: var(--ink2); }

/* 보안 */
.l-sec { background: var(--fill2); }
.l-sec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.l-sec-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 26px 24px; border-bottom: 1px solid var(--line); }
.l-sec-item:nth-child(odd) { border-right: 1px solid var(--line); }
.l-sec-item:nth-last-child(-n+2) { border-bottom: 0; }
.l-sec-item .l-ico { margin: 0; }
.l-sec-item h3 { margin: 2px 0 4px; font-size: 16px; font-weight: 700; letter-spacing: -.2px; }
.l-sec-item p { margin: 0; font-size: 14.5px; color: var(--ink2); line-height: 1.6; }
.l-sec-more { margin-top: 20px; font-size: 14.5px; color: var(--ink2); }
.l-sec-more a { text-decoration: underline !important; text-underline-offset: 3px; }

/* 내려받기 */
.l-get { text-align: center; }
.l-get h2 { margin-left: auto; margin-right: auto; }
.l-get .l-sub { margin-left: auto; margin-right: auto; }
.l-get .l-cta { justify-content: center; }
.l-get-robots { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin-bottom: 28px; }

/* 아래 */
.l-foot { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--muted); }
.l-foot .l-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.l-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.l-foot nav a { color: var(--ink2); }
.l-foot nav a:hover { color: var(--ink); }
.l-foot .l-lang { margin-left: auto; }

@media (max-width: 960px) {
  .l-hero .l-wrap { grid-template-columns: 1fr; gap: 48px; }
  .l-hero { padding: 48px 0 64px; }
  .l-grid3 { grid-template-columns: 1fr; }
  .l-links { display: none; }
}
@media (max-width: 640px) {
  .l-wrap { padding: 0 16px; }
  .l-nav .l-wrap { gap: 12px; }
  .l-nav-login { display: none; }
  .l-section { padding: 64px 0; }
  .l-sec-grid { grid-template-columns: 1fr; }
  .l-sec-item:nth-child(odd) { border-right: 0; }
  .l-sec-item:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .l-cta .l-btn { flex: 1 1 100%; }
  .l-shot { padding: 8px; border-radius: 18px; }
  .l-foot .l-lang { margin-left: 0; }
}
