/* 언제볼래 앱 홈페이지
 * 사이트 자체는 흰 바탕 하나로 간다(기기가 다크 모드여도 바뀌지 않는다).
 * 앱 화면을 옮긴 조각들은 앱의 값 그대로다 — lib/core/theme/app_colors.dart(AppColors.light),
 * 그룹 달력의 따뜻한 종이색은 features/groups/calendar_style.dart, 아바타는 core/widgets/avatar.dart.
 * 실제 화면은 test_snapshots 로 그려 맞춰 봤다.
 * Firebase Hosting 의 CSP(style-src 'self')가 인라인 스타일을 막아서, 스타일은 모두 이 파일에만 둔다. */

:root {
  /* 사이트 */
  --canvas: #FFFFFF;
  --surface: #FFFFFF;
  --ink: #111816;
  --ink-rgb: 17, 24, 22;
  --secondary: #545D59;
  --tertiary: #737C78;
  --quaternary: #ADB5B1;
  --hairline: rgba(17, 24, 22, .07);
  --accent: #1F6B58;
  --accent-ink: #1B594A;
  --accent-soft: #EBF2F0;
  --on-accent: #FFFFFF;
  --sunday: #D9645B;
  --saturday: #4F7FE0;
  --danger: #E5484D;
  --glass: rgba(250, 251, 251, .8);
  --shadow: 0 0 0 1px rgba(17, 24, 22, .07), 0 1px 2px rgba(17, 40, 34, .04), 0 18px 40px -24px rgba(17, 40, 34, .22);

  /* 앱 — AppColors.light */
  --app: #F2F4F3;      /* 화면 바탕 */
  --track: #E3E7E5;    /* 아바타 · 막대 바탕 */

  /* 그룹 달력 — CalendarStyle(light) */
  --ground: #EDEBE4;
  --mark: #2B2722;
  --mark-rgb: 43, 39, 34;
  --ground-soft: #CCD7CE;  /* lerp(ground, accent, .16) — 모두 되는 날 */
  --on-mark: #F6F5F1;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --smooth: cubic-bezier(.22, 1, .36, 1);
  --bouncy: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1160px;
  --gutter: 20px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* overflow-anchor: none — 내용이 늘어날 때 브라우저가 스크롤 위치를 몰래 옮기지 않게 (머리 바가 '올렸다'고 오해한다) */
html { scroll-behavior: smooth; overflow-anchor: none; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ───────── 사이트 조각 ───────── */

.mark { display: inline-flex; align-items: center; gap: 7px; font-size: 24px; font-weight: 900; letter-spacing: -.07em; color: var(--accent); }
.mark::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mark-sm { display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 900; letter-spacing: -.06em; color: var(--accent); }
.mark-sm::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.chip-soft {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 99px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 99px;
  font-size: 16px; font-weight: 700; white-space: nowrap;
  transition: transform 180ms var(--smooth), background-color 200ms ease, color 200ms ease;
}
.btn:active { transform: scale(.96); }
.btn svg { width: 18px; height: 18px; transition: transform 200ms var(--smooth); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-quiet { color: var(--secondary); padding-inline: 18px; }
.btn-quiet:hover { color: var(--ink); background: rgba(var(--ink-rgb), .05); }
.btn-soft { background: rgba(var(--ink-rgb), .06); color: var(--ink); }
.btn-soft:hover { background: rgba(var(--ink-rgb), .1); }
.btn-white { background: #FFFFFF; color: #1F6B58; }
.btn-white:hover { background: #EBF2F0; }

.pill { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 99px; font-size: 14px; font-weight: 700; transition: background-color 200ms ease; }
.pill-soft { background: rgba(var(--ink-rgb), .06); color: var(--ink); }
.pill-soft:hover { background: rgba(var(--ink-rgb), .1); }

/* 떠오르기 — 화면에 들어오면 아래에서 올라온다. 묶음(data-stagger) 안에서는 차례로 */
.rise { opacity: 0; transform: translateY(24px); transition: opacity 600ms ease, transform 800ms var(--smooth); transition-delay: var(--d, 0ms); }
.rise.in { opacity: 1; transform: none; }

/* ───────── 앱 조각 — 공통 ───────── */

/* 아바타 — 사진이 없으면 옅은 회색 원에 이름 첫 글자 (MemberAvatar) */
.av {
  --s: 28px;
  display: inline-grid; place-items: center; flex: none; width: var(--s); height: var(--s); border-radius: 50%;
  background: var(--track); color: var(--secondary); font-style: normal; font-size: calc(var(--s) * .42); font-weight: 500;
}
.av svg { width: 55%; height: 55%; color: var(--tertiary); }
/* 아직 안 한 사람 — 점선 원 */
.av.empty { background: none; outline: 1.5px dashed var(--quaternary); outline-offset: -1.5px; }
.stack { display: flex; padding-left: 8px; }
.stack .av { --s: 30px; margin-left: -8px; box-shadow: 0 0 0 2px var(--surface); }
.stack.sm .av { --s: 24px; margin-left: -6px; }
.stack .av.empty { box-shadow: none; margin-left: 4px; }

/* 흰 카드 — 앱의 GroupedCard · 카드 */
.card { border-radius: 16px; background: var(--surface); }
.card.list > * + * { border-top: 1px solid var(--hairline); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 0 14px 0 16px; }
.row-l { font-size: 15.5px; }
.row-l.dim { color: var(--secondary); }
.cap { margin: 18px 4px 8px; font-size: 13px; font-weight: 600; color: var(--tertiary); }
.cap:first-child { margin-top: 0; }
.note { margin: 8px 4px 0; font-size: 12.5px; line-height: 1.6; color: var(--tertiary); }

/* 둘 · 셋 중 하나 (SegmentedControl) */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; flex: none; padding: 3px; border-radius: 99px; background: rgba(var(--ink-rgb), .07); }
.seg button { min-width: 52px; padding: 5px 10px; border-radius: 99px; font-size: 13.5px; font-weight: 600; color: var(--secondary); transition: background-color 250ms ease, color 250ms ease, box-shadow 250ms ease; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(17, 24, 22, .14); }
.seg[aria-hidden="true"] button { cursor: default; }

/* 스위치 — 앱처럼 켜면 초록 */
.switch { position: relative; flex: none; width: 50px; height: 30px; border-radius: 99px; background: var(--track); box-shadow: inset 0 0 0 1.5px rgba(var(--ink-rgb), .1); transition: background-color 250ms ease; }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .2); transition: transform 350ms var(--bouncy); }
.switch[aria-checked="true"] { background: var(--accent); box-shadow: none; }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* 내 일정 카드 — 시작 · 끝 시각, 이름, 공개 정도, 오른쪽 눈 · 자물쇠 */
.ev { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 16px; background: var(--surface); }
.ev time { font-size: 14.5px; font-weight: 600; line-height: 1.35; font-variant-numeric: tabular-nums; }
.ev time small { display: block; font-size: 13px; font-weight: 400; color: var(--tertiary); }
.ev b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.ev span small { display: block; font-size: 13px; color: var(--tertiary); }
.ev svg { width: 20px; height: 20px; color: var(--tertiary); }

/* ───────── 그룹 달력 조각 — 따뜻한 종이, 날짜 고리 ───────── */
.ground { background: var(--ground); color: var(--mark); }
.gc-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; color: rgba(var(--mark-rgb), .5); padding-bottom: 4px; }

/* 날짜 고리 (CalendarCell) — 그날 되는 사람 몫만큼 호가 차고, 모두 되는 날은 초록을 옅게 채운다.
   --p 를 등록해 두어 화면에 들어올 때(.in) 0 에서 차오른다. 호는 ::before 가 그리므로 물려받게(inherits) 둔다. */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.ring {
  --p: 0;
  position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-style: normal; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: rgba(var(--mark-rgb), .85);
  transition: --p 900ms var(--smooth), background-color 300ms ease, color 300ms ease;
}
.ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(rgba(var(--mark-rgb), .8) calc(var(--p) * 1%), rgba(var(--mark-rgb), .14) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.6px), #000 calc(100% - 1.5px));
}
.ring.p20 { --to: 20; }
.ring.p40 { --to: 40; }
.ring.p60 { --to: 60; }
.ring.p80 { --to: 80; }
.in .ring { --p: var(--to, 0); }
.ring.full { background: var(--ground-soft); font-weight: 700; color: var(--mark); }
.ring.full::before { display: none; }
.ring.past { color: rgba(var(--mark-rgb), .3); }
.ring.past::before { background: rgba(var(--mark-rgb), .12); }
.ring.today { color: var(--accent); font-weight: 700; }
.ring.today::before { background: var(--accent); }
.ring.sel { background: var(--accent); color: var(--on-mark); font-weight: 700; }
.ring.sel::before { display: none; }
/* 고리 아래 인원 */
.cnt { display: block; height: 14px; font-size: 11px; font-weight: 600; line-height: 14px; color: rgba(var(--mark-rgb), .6); font-variant-numeric: tabular-nums; }
.cnt.full { color: var(--accent); font-weight: 700; }

/* 한 주 줄 */
.wk { display: grid; grid-template-columns: repeat(7, 1fr); justify-items: center; }
.wk > span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.wk small { font-size: 11px; font-weight: 600; color: rgba(var(--mark-rgb), .6); font-variant-numeric: tabular-nums; }
.wk small.full { color: var(--accent); font-weight: 700; }

/* 추천 날짜 (SuggestionsCard) */
.sg-cap { margin: 14px 4px 8px; font-size: 13px; font-weight: 600; color: rgba(var(--mark-rgb), .5); }
.sg-card { padding: 16px 16px 12px; border-radius: 16px; background: var(--ground-soft); }
.sg-title { font-size: 16px; font-weight: 600; color: var(--accent-ink); letter-spacing: -.02em; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sg-chips span { padding: 7px 14px; border-radius: 99px; background: var(--ground); color: var(--mark); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; animation: chip-in 400ms var(--smooth) both; }
.sg-chips span:nth-child(2) { animation-delay: 40ms; }
.sg-chips span:nth-child(3) { animation-delay: 80ms; }
.sg-chips span:nth-child(4) { animation-delay: 120ms; }
@keyframes chip-in { from { opacity: 0; transform: translateY(6px); } }
.sg-act { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.sg-act svg { width: 14px; height: 14px; }

/* 고른 날 (DayDetail) — 날짜와 그날 가장 많이 모이는 때, 그때 안 되는 사람 · 가능한 사람 */
.dd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.dd-head b { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.dd-sum { font-size: 13px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dd-sum.none { color: rgba(var(--mark-rgb), .5); }
.dd-sep { height: 1px; margin: 10px 0; background: rgba(var(--mark-rgb), .1); }
.dd-cap { font-size: 12.5px; font-weight: 700; color: rgba(var(--mark-rgb), .45); font-variant-numeric: tabular-nums; }
.dd-names { margin-top: 2px; font-size: 14px; color: var(--mark); }
.dd-ok { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 14px; color: rgba(var(--mark-rgb), .6); }
.dd-ok svg { width: 17px; height: 17px; color: var(--accent); }
.person { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.person .av { margin-top: 1px; }
.person span { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.person b { font-size: 14px; font-weight: 700; color: var(--mark); }
.person small { font-size: 12.5px; color: rgba(var(--mark-rgb), .55); font-variant-numeric: tabular-nums; }

/* ───────── 머리 ───────── */
/* 맨 위 머리 — 아래에 얇은 구분선 (높이 76px 은 선까지 포함) */
/* 내리면 위로 스르륵 올라가 숨고, 다시 올리면 위에서 내려온다 (home.js 가 .hide 를 붙였다 뗀다) */
.top {
  position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  transition: transform 450ms var(--smooth), box-shadow 300ms ease;
}
.top.hide { transform: translateY(-100%); }
.top.lifted { box-shadow: 0 8px 24px -16px rgba(17, 40, 34, .25); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 75px; }

/* ───────── 한 화면에 한 장 ─────────
   장마다 화면 높이를 다 쓰고 내용은 세로 가운데에 둔다. 첫 장은 머리(76px)를 뺀 만큼.
   아래에 떠 있는 탭 막대가 가리는 만큼 아래 여백을 위보다 크게 둔다. 내용이 더 길면(좁은 화면) 그만큼 늘어난다. */
.hero, .sec { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100svh; }
.hero > .wrap, .sec > .wrap { width: 100%; }
/* 스크롤을 장 경계에 붙이는 scroll-snap 은 쓰지 않는다 — 빠르게 내리다 멈추면 가까운 경계로 끌려 올라가고,
   화면에 붙는 머리(.top)까지 붙을 자리로 잡혀 두 번 연달아 당겨졌다. */

/* ───────── 1. 첫 화면 ───────── */
.hero { position: relative; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); padding: 24px 0 104px; overflow: hidden; }
/* 바탕의 옅은 점 격자 — 달력의 날짜 자리 */
.hero::before {
  content: ""; position: absolute; inset: -40px 0 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgba(var(--ink-rgb), .12) 1.2px, transparent 1.6px) 0 0 / 28px 28px;
  -webkit-mask: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  mask: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { margin-top: 22px; font-size: clamp(38px, 5.2vw, 64px); font-weight: 800; line-height: 1.18; letter-spacing: -.045em; }
.hero h1 .em { color: var(--accent); }
.hero-lead { margin-top: 22px; max-width: 34em; font-size: clamp(16.5px, 1.5vw, 19px); line-height: 1.75; color: var(--secondary); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 34px; }
.hero-copy > * { animation: up 700ms var(--smooth) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }
@keyframes up { from { opacity: 0; transform: translateY(18px); } }

/* 아이폰 — 높이에서 폭이 나온다(9 : 19.5). 안쪽은 화면 폭 비율(cqi)로 그려 폰 크기를 따라 같이 줄어든다 */
.hero-side { display: flex; flex-direction: column; align-items: center; }
.iphone {
  height: min(calc(100svh - 236px), 720px); aspect-ratio: 9 / 19.5; padding: 10px; border-radius: 54px;
  background: linear-gradient(145deg, #2C2F35, #121417);
  box-shadow: 0 50px 100px -40px rgba(17, 40, 34, .45), 0 20px 40px -20px rgba(17, 40, 34, .25), inset 0 0 0 1.5px rgba(255, 255, 255, .1);
}
.ip-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 44px; background: var(--ground); color: var(--mark); container-type: inline-size; }
.ip-island { position: absolute; z-index: 3; left: 50%; top: 3cqi; width: 30cqi; height: 8.6cqi; margin-left: -15cqi; border-radius: 99px; background: #050606; }
.ip-status { position: absolute; z-index: 2; inset: 0 0 auto; height: 14cqi; display: flex; align-items: center; gap: 1.6cqi; padding: 1.4cqi 7.4cqi 0 10cqi; font-size: 4.3cqi; font-variant-numeric: tabular-nums; }
.ip-status b { margin-right: auto; }
.ip-sig { display: flex; align-items: flex-end; gap: .5cqi; height: 3cqi; }
.ip-sig i { width: .9cqi; border-radius: .3cqi; background: var(--mark); }
.ip-sig i:nth-child(1) { height: 35%; }
.ip-sig i:nth-child(2) { height: 55%; }
.ip-sig i:nth-child(3) { height: 78%; }
.ip-sig i:nth-child(4) { height: 100%; }
.ip-bat { position: relative; width: 6.4cqi; height: 3.1cqi; border-radius: 1cqi; background: var(--mark); }
.ip-body { position: absolute; inset: 14cqi 0 0; padding: 1cqi 5cqi 0; }
/* 앱 위쪽 — 뒤로 · 그룹 이름(가운데) · 초대 · 설정 */
.ip-bar { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 2cqi; }
.ip-bar b { text-align: center; font-size: 4.8cqi; font-weight: 700; padding-left: 10cqi; }
.ip-circ { display: grid; place-items: center; width: 9.4cqi; height: 9.4cqi; border-radius: 50%; background: rgba(255, 255, 255, .55); box-shadow: 0 .4cqi 1.2cqi rgba(43, 39, 34, .15), inset 0 0 0 1px rgba(255, 255, 255, .7); color: var(--accent-ink); }
.ip-circ svg { width: 5cqi; height: 5cqi; }
.ip-screen .gc-members { margin-top: 2.4cqi; gap: 1.4cqi; font-size: 3.4cqi; }
.ip-screen .gc-members svg { width: 4cqi; height: 4cqi; }
.ip-big { margin-top: 2cqi; font-size: 17cqi; font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.ip-month { display: flex; align-items: baseline; justify-content: space-between; }
.ip-month span { font-size: 4.4cqi; color: rgba(var(--mark-rgb), .6); }
.ip-screen .gc-month { font-size: 4cqi; }
.ip-screen .gc-month b { font-size: 5.8cqi; margin-right: 1cqi; }
.ip-screen .gc-nav { margin: 2cqi 0 1.6cqi; }
.ip-arrows { display: flex; gap: 6cqi; padding-left: 2cqi; color: rgba(var(--mark-rgb), .6); }
.ip-arrows svg { width: 5cqi; height: 5cqi; }
.ip-screen .gc-len { height: 8cqi; padding: 0 3.6cqi; gap: 1.4cqi; font-size: 3.6cqi; }
.ip-screen .gc-len svg { width: 4cqi; height: 4cqi; }
.ip-screen .gc-week { font-size: 3cqi; padding-bottom: 1cqi; }
.ip-screen .gc-grid .c { height: 10.6cqi; gap: 0; border-radius: 3cqi; }
.ip-screen .gc-grid .ring { width: 7.6cqi; height: 7.6cqi; font-size: 3.1cqi; }
.ip-screen .cnt { height: 2.8cqi; font-size: 2.5cqi; line-height: 2.8cqi; }
.ip-screen .gc-day { min-height: 0; margin-top: 2cqi; padding-top: 3cqi; }
.ip-screen .dd-head b { font-size: 4.4cqi; }
.ip-screen .dd-sum { font-size: 3.2cqi; }
.ip-screen .dd-sep { margin: 2.4cqi 0; }
.ip-screen .dd-cap { font-size: 3cqi; }
.ip-screen .dd-names, .ip-screen .dd-ok { font-size: 3.4cqi; }
.ip-screen .dd-ok svg { width: 4.2cqi; height: 4.2cqi; }
.ip-screen .person { gap: 2.4cqi; padding: 1.2cqi 0; }
.ip-screen .person .av { --s: 7cqi; }
.ip-screen .person b { font-size: 3.4cqi; }
.ip-screen .person small { font-size: 3cqi; }
/* 아래에 떠 있는 '이 날로 약속 잡기' — 위로 바탕이 옅게 번져 내용이 그 밑으로 사라진다 */
.ip-cta {
  position: absolute; z-index: 2; left: 5cqi; right: 5cqi; bottom: 6cqi; display: flex; align-items: center; justify-content: center; gap: 2cqi;
  height: 13cqi; border-radius: 99px; background: var(--accent); color: var(--on-mark); font-size: 4.2cqi; font-weight: 700;
}
.ip-cta svg { width: 5cqi; height: 5cqi; }
/* 바탕 번짐은 화면에 깐다 — 단추 안에 두면 단추 색 위로 덮인다 */
.ip-screen::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 34cqi; pointer-events: none; background: linear-gradient(to bottom, rgba(237, 235, 228, 0), var(--ground) 45%); }

.gc-members { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; color: rgba(var(--mark-rgb), .6); white-space: nowrap; }
.gc-members svg { flex: none; width: 17px; height: 17px; }
.gc-members b { color: var(--mark); font-size: 14px; }
.gc-members span { overflow: hidden; text-overflow: ellipsis; }
.gc-nav { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 10px; }
.gc-month { font-size: 15px; font-weight: 500; color: rgba(var(--mark-rgb), .5); }
.gc-month b { font-size: 22px; font-weight: 800; color: var(--mark); letter-spacing: -.03em; margin-right: 4px; }
/* 필요한 시간 단추 (그룹 달력 오른쪽 위) */
.gc-len {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 99px;
  box-shadow: inset 0 0 0 1.5px rgba(var(--mark-rgb), .22); font-size: 14px; font-weight: 600; color: var(--mark);
}
.gc-len svg { width: 16px; height: 16px; color: rgba(var(--mark-rgb), .6); }
button.gc-len:hover { background: rgba(var(--mark-rgb), .05); }
.gc-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.gc-grid .c { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 46px; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.gc-grid .c:disabled { cursor: default; }
.gc-grid .c:not(:disabled):active .ring { transform: scale(.9); }
.gc-grid .c:focus-visible { outline: none; }
.gc-grid .c:focus-visible .ring { outline: 2px solid var(--accent); outline-offset: 2px; }
.gc-grid .ring { transition: --p 900ms var(--smooth), background-color 250ms ease, color 250ms ease, transform 150ms ease; }
.gc-day { margin-top: 10px; padding-top: 12px; border-top: 1px solid rgba(var(--mark-rgb), .1); min-height: 150px; }
.gc-day.swap { animation: day-in 360ms var(--smooth); }
@keyframes day-in { from { opacity: .3; transform: translateY(4px); } }
.side-note { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--tertiary); }

/* ───────── 장 머리 ───────── */
.sec { padding-block: 72px 104px; }
.sec-head { margin-bottom: clamp(28px, 5vh, 52px); }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 15px; font-weight: 700; color: var(--accent); }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.sec h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.25; letter-spacing: -.04em; text-wrap: balance; }

/* ───────── 2. 공감 ───────── */
/* 두 카드는 같은 폭 · 같은 높이 — 오른쪽 카드는 늘어난 만큼 안쪽 달력 판이 채운다 */
.ask-pair { display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); align-items: stretch; }
.answer { display: flex; flex-direction: column; }
.ans-ground { flex: 1; display: flex; flex-direction: column; justify-content: center; }
/* 왼쪽은 앱이 아닌 메신저 대화 — 멤버 색 동그라미로만 구분한다 */
.chat-card { border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.chat-top { display: flex; align-items: center; gap: 8px; padding: 18px 22px; border-bottom: 1px solid var(--hairline); }
.chat-top b { font-size: 16px; }
.chat-top small { font-size: 14px; font-weight: 700; color: var(--tertiary); }
.chat-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px 24px; background: #F6F7F7; }
.chat-day { align-self: center; margin: 6px 0 2px; padding: 3px 12px; border-radius: 99px; background: rgba(var(--ink-rgb), .06); font-size: 12px; font-weight: 600; color: var(--tertiary); }
.bub { display: flex; align-items: flex-end; gap: 8px; }
.cav { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; color: #fff; font-style: normal; font-size: 11px; font-weight: 700; }
.cv1 { background: #EF7A6D; }
.cv2 { background: #5B8DEF; }
.cv3 { background: #E3A33A; }
.cv4 { background: #9A7BDF; }
.bub span { padding: 10px 15px; border-radius: 18px 18px 18px 6px; background: var(--surface); box-shadow: 0 1px 2px rgba(17, 40, 34, .06); font-size: 15px; }
.bub.me { justify-content: flex-end; }
.bub.me span { border-radius: 18px 18px 6px 18px; background: #FEE500; }
.chat-body > * { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity 300ms ease, transform 500ms var(--bouncy); }
.chat-card.in .chat-body > * { opacity: 1; transform: none; }
.chat-card.in .chat-body > :nth-child(1) { transition-delay: 200ms; }
.chat-card.in .chat-body > :nth-child(2) { transition-delay: 320ms; }
.chat-card.in .chat-body > :nth-child(3) { transition-delay: 480ms; }
.chat-card.in .chat-body > :nth-child(4) { transition-delay: 700ms; }
.chat-card.in .chat-body > :nth-child(5) { transition-delay: 820ms; }
.chat-card.in .chat-body > :nth-child(6) { transition-delay: 980ms; }
.chat-card.in .chat-body > :nth-child(7) { transition-delay: 1200ms; }
.chat-card.in .chat-body > :nth-child(8) { transition-delay: 1320ms; }

/* 가운데 화살표 — 초록 원에 흰 화살표로 또렷하게 */
.ask-link { position: relative; display: grid; place-items: center; height: 100%; color: var(--accent); }
.ask-link span { position: absolute; left: 4px; right: 4px; top: 50%; border-top: 2px dashed rgba(31, 107, 88, .45); }
.ask-link svg {
  position: relative; width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--accent); color: #fff;
  box-shadow: 0 0 0 6px var(--canvas), 0 10px 24px -8px rgba(31, 107, 88, .6);
}

.answer { padding: 20px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 2px rgba(31, 107, 88, .2); }
.answer.rise { transition-delay: 300ms; }
.ans-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 14px; }
.ans-top small { font-size: 13px; color: var(--tertiary); font-weight: 600; }
.ans-ground { padding: 14px 12px 12px; border-radius: 20px; }
.ans-ground .ring { transition-delay: calc(500ms + var(--i, 0) * 60ms); }
.wk > span:nth-child(2) .ring { --i: 1; }
.wk > span:nth-child(3) .ring { --i: 2; }
.wk > span:nth-child(4) .ring { --i: 3; }
.wk > span:nth-child(5) .ring { --i: 4; }
.wk > span:nth-child(6) .ring { --i: 5; }
.wk > span:nth-child(7) .ring { --i: 6; }
.ans-foot { margin-top: 14px; font-size: 13.5px; color: var(--tertiary); text-align: center; }

/* ───────── 3. 이런 모임에 — 그룹 목록 카드 ───────── */
/* 두 줄 두 칸 — 앱에서 이 카드는 폰 폭을 거의 다 쓰는 카드라, 좁히면 이름이 잘린다 */
.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.gitem { display: flex; flex-direction: column; min-width: 0; }
/* 카드 위의 모임 종류 — 소제목처럼 크고 굵게, 앞에 초록 점 */
.gtag { display: flex; align-items: center; gap: 8px; margin: 0 4px 12px; font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.gtag::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.gcard { padding: 18px 18px 16px; border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); transition: transform 300ms var(--smooth), box-shadow 300ms ease; }
.gitem.in:hover .gcard { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(17, 24, 22, .07), 0 2px 4px rgba(17, 40, 34, .05), 0 28px 50px -26px rgba(17, 40, 34, .35); }
.gc-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 800; letter-spacing: -.03em; }
.gpill { flex: none; padding: 4px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; }
.gchev { flex: none; width: 15px; height: 15px; color: var(--quaternary); }
.gmeta { margin-top: 8px; font-size: 13px; color: var(--tertiary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gnext { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hairline); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gnext svg { flex: none; width: 17px; height: 17px; color: var(--accent); }
.gdesc { margin: 14px 4px 0; font-size: 15px; line-height: 1.6; color: var(--secondary); }

/* ───────── 4. 사용 흐름 ───────── */
/* 1 → 2 → 3 — 화면에 들어오면(.play) 1.3초에 걸쳐 초록 선과 점이 단계마다 들렀다 가고,
   점이 닿는 순간 그 단계가 떠오르며 고리가 찬다. 화면을 벗어나면 처음으로 돌아가 다시 볼 수 있다. */
.flow-wrap { position: relative; }
.track { position: absolute; z-index: 0; left: 16.6%; right: 16.6%; top: 35px; border-top: 2px dotted rgba(31, 107, 88, .3); }
.track .fill { position: absolute; left: 0; right: 0; top: -2px; height: 2px; border-radius: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.track .runner {
  position: absolute; top: -8px; left: 0; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 6px rgba(31, 107, 88, .16); opacity: 0;
}
.play .track .fill { animation: flow-fill 1.3s linear both; }
.play .track .runner { animation: flow-run 1.3s linear both; }
@keyframes flow-fill { 0%, 8% { transform: scaleX(0); } 42%, 50% { transform: scaleX(.5); } 84%, 100% { transform: scaleX(1); } }
@keyframes flow-run {
  0% { left: 0; opacity: 0; } 8% { left: 0; opacity: 1; }
  42%, 50% { left: 50%; } 84% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; }
}
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 8px; transition: opacity 600ms ease, transform 800ms var(--smooth); }
/* 세 단계 모두 처음부터 자리에 있되, 2 · 3 은 10% 로 흐리게 기다리다가 점이 닿아 고리가 차는 순간 또렷해진다 */
.flow-wrap:not(.play) .step:not(:first-child) { opacity: .1; }
.play .step { transition: opacity 300ms ease; }
.play .step:nth-child(2) { transition-delay: .55s; }
.play .step:nth-child(3) { transition-delay: 1.1s; }
.step-ring { --p: 0; position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--canvas); transition: --p 500ms var(--smooth); }
.step-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(var(--ink-rgb), .12) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.6px));
}
.step-ring b { font-size: 24px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.step-ring svg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); color: var(--accent); transform: scale(0); transition: transform 500ms var(--bouncy); }
.play .s1 { --p: 33.3; transition-delay: 75ms; }
.play .s2 { --p: 66.7; transition-delay: 550ms; }
.play .s3 { --p: 100; transition-delay: 1100ms; }
.play .s3 svg { transform: scale(1); transition-delay: 1450ms; }
/* 단계 아래 화면 조각의 링도 그 단계가 켜질 때 찬다 */
.play .step .ring { --p: var(--to, 0); }
.play .step:nth-child(2) .ring { transition-delay: calc(.65s + var(--i, 0) * 30ms); }
.step h3 { margin-top: 20px; font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
.step > p { margin-top: 8px; max-width: 22em; font-size: 15.5px; line-height: 1.65; color: var(--secondary); }
/* 단계 아래의 앱 화면 조각 — 앱 바탕(회색) 위 흰 카드 */
.screen { width: 100%; max-width: 340px; margin-top: 22px; padding: 14px; border-radius: 22px; background: var(--app); text-align: left; display: grid; gap: 8px; }
.screen.ground { background: var(--ground); padding: 14px 10px 12px; gap: 2px; }
.sc-date { margin: 2px 4px 0; font-size: 13px; font-weight: 600; color: var(--secondary); }
.sc-date.today { color: var(--accent-ink); }
/* 날짜 투표 */
.vprog { padding: 14px 16px; }
.vp-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vp-top b { font-size: 14.5px; font-weight: 600; }
.vp-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 12px; }
.vp-bars i { height: 5px; border-radius: 99px; background: var(--track); transform-origin: left; }
.vp-bars i.on { background: var(--accent); }
.vc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .08); }
.vc b { display: block; font-size: 15.5px; font-weight: 700; letter-spacing: -.02em; }
.vc em { display: block; font-style: normal; font-size: 13.5px; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.radio { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--quaternary); color: #fff; }
.radio svg { width: 14px; height: 14px; }
.vc.sel { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.vc.sel .radio { background: var(--accent); box-shadow: none; }

/* ───────── 5. 기능 ───────── */
/* 왼쪽 목록은 오른쪽 창과 같은 높이로 늘이고, 여섯 줄이 그 높이를 똑같이 나눈다 */
.feat { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; align-items: stretch; }
@media (min-width: 1001px) {
  .feat-list .fl { flex: 1; }
  .feat-list .fi { width: 42px; height: 42px; border-radius: 12px; }
  .feat-list .fi svg { width: 22px; height: 22px; }
  .feat-list .ft b { font-size: 17px; }
  .feat-list .ft small { font-size: 13.5px; }
}
.feat-list { display: flex; flex-direction: column; padding: 8px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.fl { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; text-align: left; transition: background-color 200ms ease; }
.fl + .fl::before { content: ""; position: absolute; left: 66px; right: 14px; top: 0; border-top: 1px solid var(--hairline); }
.fl:hover { background: rgba(var(--ink-rgb), .035); }
.fl[aria-selected="true"] { background: var(--accent-soft); }
.fl[aria-selected="true"]::before, .fl[aria-selected="true"] + .fl::before { opacity: 0; }
.fi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; }
.fi svg { width: 20px; height: 20px; }
.c-green { background: #1F6B58; }
.c-blue { background: #5B8DEF; }
.c-coral { background: #EF7A6D; }
.c-amber { background: #E3A33A; }
.c-violet { background: #9A7BDF; }
.c-ink { background: #5B6662; }
.ft { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.ft b { font-size: 16px; font-weight: 700; }
.ft small { font-size: 13px; color: var(--tertiary); }
.fc { width: 16px; height: 16px; color: var(--quaternary); transition: transform 300ms var(--smooth), color 200ms ease; }
.fl[aria-selected="true"] .fc { color: var(--accent); transform: translateX(3px); }

/* 오른쪽 — 앱 바탕(회색) 위에 그 기능의 화면 */
.feat-stage { position: relative; min-height: 452px; padding: clamp(22px, 3vw, 34px); border-radius: 28px; background: var(--app); display: grid; align-items: center; }
/* 여섯 화면을 한 칸에 겹쳐 두고 고른 것만 보이게 한다 — 칸 높이는 가장 긴 화면에 맞춰지므로
   무엇을 골라도 오른쪽 창 크기가 바뀌지 않는다. 숨긴 화면도 자리는 차지하되 보이지도 읽히지도 않는다. */
.fp { grid-area: 1 / 1; width: 100%; max-width: 420px; margin: 0 auto; }
.fp:not([hidden]) { animation: fp-in 450ms var(--smooth); }
.feat-stage > .fp[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
@keyframes fp-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }

/* 공개 범위 — 친구들 그룹 달력에 보이는 내 모습 */
.peek { margin-top: 10px; padding: 14px 16px 12px; border-radius: 18px; }
.peek .dd-cap + * { margin-top: 2px; }
.peek .pk-in, .peek .pk-out { margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(var(--mark-rgb), .1); }
.peek .pk-out { display: none; }
.peek[data-v="2"] .pk-in { display: none; }
.peek[data-v="2"] .pk-out { display: block; }
.peek .av { --s: 28px; }

/* 필요한 시간 */
.tm { padding: 16px; border-radius: 20px; }
.tm .gc-nav { margin: 0 0 4px; }

/* 약속 시트 */
.sheet { padding: 22px 20px 18px; border-radius: 24px; background: var(--surface); box-shadow: 0 10px 30px -18px rgba(17, 40, 34, .3); }
.sh-title { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.35; }
.sh-meta { margin-top: 4px; font-size: 14px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.placed { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 12px 14px 16px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); }
.placed > svg { flex: none; width: 22px; height: 22px; }
.placed span { display: flex; flex-direction: column; flex: 1; line-height: 1.35; }
.placed small { font-size: 12.5px; font-weight: 700; }
.placed b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.placed em { flex: none; padding: 6px 12px; border-radius: 99px; background: var(--surface); font-style: normal; font-size: 12.5px; font-weight: 700; }
.sheet .cap { margin-top: 16px; }
.opts { box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb), .08); }
.opt { display: flex; align-items: center; gap: 14px; padding: 12px 10px 12px 16px; }
.opt > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; line-height: 1.4; }
.opt b { font-size: 15.5px; font-weight: 600; }
.opt b.settled { color: var(--accent-ink); }
.opt small { font-size: 12.5px; color: var(--tertiary); font-variant-numeric: tabular-nums; }
.ochk { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--quaternary); color: #fff; }
.ochk.on { background: var(--accent); box-shadow: none; }
.ochk svg { width: 15px; height: 15px; }
.omap { flex: none; width: 18px; height: 18px; margin: 0 10px; color: var(--tertiary); }
.opt.add { gap: 12px; padding: 13px 16px; font-size: 15px; color: var(--accent-ink); }
.oplus { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); }
.oplus svg { width: 16px; height: 16px; }
.btn-sec { display: grid; place-items: center; height: 48px; margin-top: 16px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 15.5px; font-weight: 700; }
.foot-note { margin-top: 8px; text-align: center; font-size: 12.5px; color: var(--tertiary); }

/* 알림 — 전날 알림 */
.banner {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px; padding: 14px 16px; border-radius: 22px; background: var(--glass);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -12px rgba(17, 40, 34, .3), inset 0 0 0 1px var(--hairline);
  animation: drop 700ms var(--bouncy) both 150ms;
}
@keyframes drop { from { opacity: 0; transform: translateY(-16px); } }
.banner-ic { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #fff url("/eonjebollae/icon.png") center / cover; box-shadow: inset 0 0 0 1px rgba(17, 24, 22, .06); }
.banner span:last-child { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.banner small { font-size: 11.5px; font-weight: 600; color: var(--tertiary); }
.banner b { font-size: 14.5px; }
.banner em { font-style: normal; font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; }

/* 친구 초대 — 초대 시트 */
.code {
  margin-top: 18px; padding: 24px 10px; border-radius: 18px; background: var(--accent-soft); text-align: center;
  font-size: 34px; font-weight: 500; letter-spacing: .32em; text-indent: .32em; color: var(--accent-ink); font-variant-numeric: tabular-nums;
}
.kakao { position: relative; display: grid; place-items: center; height: 50px; margin-top: 18px; border-radius: 99px; background: #FEE500; color: rgba(0, 0, 0, .85); }
.kakao svg { position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; color: #000; }
.kakao b { font-size: 15.5px; font-weight: 700; }
.more { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.more span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 14.5px; font-weight: 700; }
.more svg { width: 18px; height: 18px; }

/* ───────── 6. 자주 묻는 질문 — 묶음 목록 ───────── */
/* 질문 장은 제목과 목록을 가운데로 */
#faq .sec-head { text-align: center; }
/* 답을 펼치면 위쪽은 그대로 두고 아래로만 늘어나게 — 가운데 정렬이면 펼칠 때마다 제목이 위로 밀린다.
   닫힌 상태에서 대략 가운데에 오도록 위 여백을 화면 높이에 맞춘다 */
#faq { justify-content: flex-start; padding-top: max(56px, calc(50svh - 330px)); }
.faq { max-width: 820px; margin: 0 auto; padding: 6px 8px; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.qa + .qa { border-top: 1px solid var(--hairline); }
.q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 20px 16px;
  font-size: clamp(16px, 1.4vw, 18px); font-weight: 700; letter-spacing: -.02em; text-align: left; border-radius: 16px;
}
.q:hover { color: var(--accent-ink); }
.q svg { flex: none; width: 18px; height: 18px; color: var(--quaternary); transform: rotate(90deg); transition: transform 400ms var(--smooth), color 200ms ease; }
.q[aria-expanded="true"] svg { transform: rotate(-90deg); color: var(--accent); }
.a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--smooth); }
.a > div { overflow: hidden; }
.a p { margin: 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--app); font-size: 15.5px; line-height: 1.7; color: var(--secondary); opacity: 0; transition: opacity 300ms ease; }
.qa.open .a { grid-template-rows: 1fr; }
.qa.open .a p { opacity: 1; margin-bottom: 18px; transition-delay: 100ms; }

/* ───────── 7. 출시 소식 · 문의 ───────── */
.end { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.launch { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 4vw, 44px); border-radius: 32px; background: var(--accent); color: #fff; }
.kicker-light { color: rgba(255, 255, 255, .85); }
.launch h2 { color: #fff; }
.launch-lead { margin-top: 12px; font-size: 17px; color: rgba(255, 255, 255, .78); }
.stores { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 14px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border-radius: 16px; background: rgba(0, 0, 0, .24); color: #fff; line-height: 1.15; cursor: default; }
.store svg { width: 24px; height: 24px; }
.store > span { display: flex; flex-direction: column; font-size: 16px; font-weight: 700; }
.store small { font-size: 11px; font-weight: 600; opacity: .72; }
.launch .btn { margin-top: auto; }
.launch-ring {
  position: absolute; right: -44px; bottom: -44px; display: grid; place-items: center; width: 240px; height: 240px; border-radius: 50%;
  border: 14px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .12); font-size: 110px; font-weight: 900; letter-spacing: -.05em; pointer-events: none;
}
.ask-form { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px); border-radius: 32px; background: var(--surface); box-shadow: var(--shadow); }
.ask-form.rise { transition-delay: 120ms; }
.field { display: grid; gap: 8px; margin-top: 24px; }
.field span { font-size: 14px; font-weight: 700; color: var(--secondary); }
.field textarea {
  width: 100%; min-height: 128px; resize: vertical; padding: 14px 16px; border: 0; border-radius: 16px; outline: none;
  background: var(--app); color: var(--ink); font: inherit; font-size: 16px; line-height: 1.6;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow 200ms ease, background-color 200ms ease;
}
.field textarea::placeholder { color: var(--quaternary); }
.field textarea:focus { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent); }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.form-actions .btn { padding: 0 12px; }
.addr { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--secondary); }
.addr span { min-width: 0; overflow-wrap: anywhere; user-select: all; }
.addr button { flex: none; padding: 6px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 700; transition: background-color 200ms ease, color 200ms ease; }
.addr button.done { background: var(--accent); color: var(--on-accent); }

/* ───────── 바닥글 ───────── */
/* 아래 탭 막대에 가리지 않게 바닥글 안에 여백을 둔다 — 바닥글 끝이 곧 페이지 끝이 되게 */
.foot { border-top: 1px solid var(--hairline); padding-bottom: 96px; }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; padding-block: 40px 24px; }
.foot .mark { font-size: 20px; }
.foot-desc { margin-top: 8px; font-size: 14px; color: var(--tertiary); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-content: start; font-size: 14px; font-weight: 600; color: var(--secondary); }
.foot-links a:hover { color: var(--ink); }
.biz { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.8; color: var(--tertiary); }

/* ───────── 아래 탭 막대 — 앱의 LiquidTabBar ───────── */
.dock {
  --i: 0;
  position: fixed; z-index: 30; left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: repeat(5, 1fr); width: min(460px, calc(100% - 32px)); height: 64px; padding: 6px; transform: translateX(-50%);
  border-radius: 99px; background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 36px -12px rgba(17, 40, 34, .32), inset 0 0 0 1px rgba(var(--ink-rgb), .07);
  animation: dock-in 700ms var(--bouncy) 400ms both;
}
@keyframes dock-in { from { opacity: 0; transform: translate(-50%, 24px); } }
.dock-plate {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 99px;
  background: rgba(var(--ink-rgb), .08); transform: translateX(calc(var(--i) * 100%)); transition: transform 500ms var(--bouncy);
}
.dock a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 99px; color: var(--ink); transition: color 250ms ease; }
.dock svg { width: 22px; height: 22px; }
.dock em { font-style: normal; font-size: 11px; font-weight: 600; }
.dock a[aria-current="true"] { color: var(--accent); }

/* ───────── 키가 낮은 넓은 화면(1366×768 노트북 등) — 한 장이 한 화면에 들어오게 조인다 ───────── */
@media (min-width: 1001px) and (max-height: 860px) {
  .hero { padding-bottom: 96px; }
  .sec { padding-block: 48px 96px; }
  .sec-head { margin-bottom: 26px; }
  .kicker { margin-bottom: 8px; }
  .sec h2 { font-size: clamp(28px, 3.2vw, 40px); }
  .side-note { margin-top: 8px; }
  .chat-top { padding: 14px 20px; }
  .chat-body { gap: 6px; padding: 12px 20px 16px; }
  .chat-day { margin: 2px 0 0; }
  .bub span { padding: 7px 13px; font-size: 14.5px; }
  .answer { padding: 16px; }
  .sg-cap { margin-top: 10px; }
  .step-ring { width: 60px; height: 60px; }
  .track { top: 29px; }
  .step h3 { margin-top: 14px; }
  .screen { margin-top: 16px; }
  .fl { padding: 11px 14px; }
  .feat-stage { min-height: 410px; padding: 22px; }
  .sheet { padding: 16px 18px 14px; }
  .placed { margin-top: 12px; padding: 10px 12px 10px 14px; }
  .sheet .cap { margin-top: 12px; }
  .opt { padding-block: 9px; }
  .opt.add { padding-block: 10px; }
  .btn-sec { height: 44px; margin-top: 12px; }
  .q { padding: 16px 16px; }
  .launch, .ask-form { padding: 28px 32px; }
  .stores { margin: 20px 0 12px; }
  .field { margin-top: 16px; }
  .field textarea { min-height: 104px; }
}

/* ───────── 좁은 화면 ───────── */
@media (max-width: 1000px) {
  .hero-in { grid-template-columns: 1fr; }
  .iphone { height: auto; width: min(340px, 100%); }
  .ask-pair { grid-template-columns: 1fr; gap: 0; }
  .ask-link { height: 64px; }
  .ask-link span { left: 50%; right: auto; top: 8px; bottom: 8px; border-top: 0; border-left: 2px dotted rgba(31, 107, 88, .4); }
  .ask-link svg { transform: rotate(90deg); }
  .feat { grid-template-columns: 1fr; }
  /* 목록은 가로로 넘기는 칩으로 */
  .feat-list { flex-direction: row; gap: 6px; overflow-x: auto; padding: 6px; border-radius: 99px; scrollbar-width: none; }
  .feat-list::-webkit-scrollbar { display: none; }
  .fl { flex: none; grid-template-columns: auto auto; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 99px; }
  .fl + .fl::before { display: none; }
  .fl .fi { width: 30px; height: 30px; border-radius: 50%; }
  .fl .fi svg { width: 16px; height: 16px; }
  .fl .ft small, .fl .fc { display: none; }
  .fl .ft b { font-size: 14.5px; white-space: nowrap; }
  .feat-stage { min-height: 0; }
  .end { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 56px; }
  .track { display: none; } /* 세로로 쌓이면 선 없이 단계만 차례로 켜진다 */
  .step { background: var(--canvas); padding-block: 0 4px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .hero { padding-top: 16px; }
  .groups { grid-template-columns: 1fr; }
  .form-actions { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; }
  .dock em { font-size: 10px; }
  .seg button { min-width: 44px; padding-inline: 8px; }
}

/* ───────── 움직임 줄이기 ───────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
  .chat-body > * { opacity: 1; transform: none; }
}
