/* 핏플랜 소개 페이지. 앱의 디자인 B "계기판"과 같은 색(app/src/ui/theme.ts)과 글꼴(IBM Plex Sans KR)을 쓴다.
   파란색은 누를 수 있는 것과 그래프, 주황색은 "지금"에만 쓴다. 글꼴 파일은 이 페이지의 글자만 남긴 것이다 (deploy/README.md) */

@font-face { font-family: "IBM Plex Sans KR"; font-weight: 400; font-display: swap; src: url("/fonts/IBMPlexSansKR-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans KR"; font-weight: 600; font-display: swap; src: url("/fonts/IBMPlexSansKR-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans KR"; font-weight: 700; font-display: swap; src: url("/fonts/IBMPlexSansKR-700.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --page: #EEF2F8;
  --surface: #FFFFFF;
  --sunken: #DCE3EF;
  --line: #E3E8F1;
  --ink: #101B33;
  --ink-soft: #5B6781;
  --accent: #1F4FD8;
  --accent-soft: #E3EAFB;
  --on-accent: #FFFFFF;
  --marker: #E07A12;
  --band: #101B33;
  --band-ink: #FFFFFF;
  --band-soft: #A9B4CC;
  --font: "IBM Plex Sans KR", -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0D1424;
    --surface: #172138;
    --sunken: #26334F;
    --line: #25314B;
    --ink: #E8EDF7;
    --ink-soft: #9AA6C0;
    --accent: #86A4FF;
    --accent-soft: #1F2D52;
    --on-accent: #0D1424;
    --marker: #F59B45;
    --band: #080D19;
    --band-ink: #E8EDF7;
    --band-soft: #8E9BB8;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 16px/1.7 var(--font);
  word-break: keep-all;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.top, main, .foot-inner { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }

.top { padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 9px; }

/* 첫 화면: 왼쪽 글, 오른쪽 오늘 탭 */
.hero { display: grid; gap: 40px; padding-block: 32px 72px; align-items: center; }
@media (min-width: 880px) { .hero { grid-template-columns: 1.15fr 0.85fr; gap: 64px; padding-block: 56px 96px; } }

h1 { font-size: clamp(34px, 5.4vw, 54px); line-height: 1.16; letter-spacing: -0.025em; font-weight: 700; }
.lede { margin-top: 20px; max-width: 32em; font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.stores { margin-top: 32px; }
.soon { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: 15px; font-weight: 600; }
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--marker); }

.today { margin: 0; padding: 20px 20px 16px; border-radius: 24px; background: var(--surface); box-shadow: 0 1px 2px rgba(16, 27, 51, 0.06), 0 12px 32px rgba(16, 27, 51, 0.08); max-width: 400px; width: 100%; justify-self: center; }
.today-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 17px; }
.tag { font-size: 12px; font-weight: 400; color: var(--ink-soft); }

.gauge { display: block; width: 100%; max-width: 300px; margin: 4px auto 0; }
.gauge-track, .gauge-fill { fill: none; stroke-width: 14; stroke-linecap: round; }
.gauge-track { stroke: var(--sunken); }
.gauge-fill { stroke: var(--accent); }
.gauge-now { fill: var(--marker); stroke: var(--surface); stroke-width: 3; }
.gauge-num { fill: var(--ink); font: 700 54px var(--font); letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.gauge-unit { fill: var(--ink-soft); font: 400 14px var(--font); }

.today-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 12px; padding: 12px 0; border-block: 1px solid var(--line); text-align: center; }
.today-stats dt { font-size: 12px; color: var(--ink-soft); }
.today-stats dd { margin: 0; font-weight: 700; font-size: 20px; line-height: 1.3; font-variant-numeric: tabular-nums; }

.meals { list-style: none; margin: 0; padding: 0; }
.meals li { display: grid; grid-template-columns: 22px 40px 1fr auto; align-items: center; gap: 8px; padding-block: 9px; font-size: 15px; }
.meals li + li { border-top: 1px solid var(--line); }
.check { position: relative; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--sunken); }
.done .check { border-color: var(--accent); background: var(--accent); }
.done .check::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--on-accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.slot { font-size: 13px; color: var(--ink-soft); }
.meal { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcal { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-size: 14px; }
.kcal::after { content: " kcal"; }
.meals li.done .meal { color: var(--ink-soft); }
.today figcaption { margin-top: 10px; font-size: 12px; color: var(--ink-soft); }

/* 하루의 순서. 실제로 앱을 쓰는 순서라 번호를 붙인다 */
.flow { padding-block: 64px; border-top: 1px solid var(--line); }
h2 { font-size: 26px; line-height: 1.35; letter-spacing: -0.015em; font-weight: 700; }
.steps { list-style: none; counter-reset: step; margin: 32px 0 0; padding: 0; display: grid; gap: 0; max-width: 760px; }
.steps li { counter-increment: step; position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: 20px; padding-bottom: 32px; }
.steps li::before { content: counter(step); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--sunken); }
.steps li:last-child { padding-bottom: 0; }
.steps h3 { font-size: 19px; line-height: 1.4; font-weight: 700; padding-top: 8px; }
.steps p { margin-top: 6px; color: var(--ink-soft); max-width: 36em; }

.notes { display: grid; gap: 40px; padding-block: 56px; border-top: 1px solid var(--line); }
@media (min-width: 880px) { .notes { grid-template-columns: 1fr 1fr; gap: 64px; } }
.note h2 { font-size: 21px; }
.note p, .note ul { margin-top: 12px; color: var(--ink-soft); }
.note ul { padding-left: 1.2em; display: grid; gap: 6px; }

.disclaimer { padding-block: 24px 64px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--ink-soft); max-width: 46em; }

/* 맨 아래: 앱의 탭 막대와 같은 남색 띠 */
.foot { background: var(--band); color: var(--band-soft); padding-block: 40px 48px; font-size: 13px; line-height: 1.7; }
.foot a { color: var(--band-ink); }
.foot a:focus-visible { outline-color: var(--band-ink); }
.foot > * { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: 20px; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.legal a { text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.company { margin-top: 24px; margin-bottom: 0; display: grid; gap: 2px; }
.company div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; }
.company dt { color: var(--band-soft); }
.company dd { margin: 0; color: var(--band-ink); }
.copy { margin-top: 20px; }
