/* ───────────────────────────────────────────────────────────────
   01 · Tokens
   Names follow reelmotion.fit's :root system (Ink/Cloud/Edge/Mist…),
   values come from the app (src/theme/colors.ts). See DESIGN.md.
   ─────────────────────────────────────────────────────────────── */

:root {
  color-scheme: dark;

  /* surfaces */
  --Void: #08080a;
  --Surface: #0f1012;
  --Card: #161719;
  --Raised: #1c1d20;
  --Field: #222326;
  --Edge: #2a2b2e;
  --EdgeStrong: #353639;

  /* text */
  --Chalk: #e8e8ea;
  --Fog: #b4b6bb;
  --Mist: #8b8d93;
  --Muted: #5c5e64;

  /* brand + meaning (blue = today/action, up = went up, down = went down) */
  --Blue: #4a90d9;
  --BlueDeep: #3a72ad;
  --BlueLight: #74aee6;
  --BlueTint: rgba(74, 144, 217, 0.15);
  --BlueWash: rgba(74, 144, 217, 0.08);
  --BlueEdge: rgba(74, 144, 217, 0.35);
  --Up: #34d399;
  --UpTint: rgba(52, 211, 153, 0.14);
  --Down: #f87171;
  --DownTint: rgba(248, 113, 113, 0.12);
  --GreyWash: rgba(139, 141, 147, 0.12);
  --White: #ffffff;
  --WhiteWash: rgba(255, 255, 255, 0.16);
  --OnBlue: rgba(255, 255, 255, 0.86);
  --Black: #000000;

  /* type families */
  --FontText: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --FontNumeral: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --FontSystem: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard Variable", Pretendard, sans-serif;
  --FontMark: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --FontCode: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* type roles */
  --TextDisplay: clamp(38px, 6vw, 72px);
  --TextTitle: clamp(28px, 3.9vw, 48px);
  --TextHeading: 22px;
  --TextSubtitle: 19px;
  --TextLead: 18px;
  --TextBody: 16px;
  --TextSmall: 15px;
  --TextMicro: 13px;

  --LeadingDisplay: 1.12;
  --LeadingTitle: 1.2;
  --LeadingHeading: 1.3;
  --LeadingBody: 1.7;
  --LeadingSmall: 1.55;

  --TrackDisplay: -0.04em;
  --TrackTitle: -0.03em;
  --TrackHeading: -0.015em;

  /* space (8pt) */
  --Space1: 4px;
  --Space2: 8px;
  --Space3: 12px;
  --Space4: 16px;
  --Space5: 24px;
  --Space6: 32px;
  --Space7: 40px;
  --Space8: 56px;
  --Space9: 80px;
  --Space10: 120px;
  --SectionGap: clamp(80px, 10vw, 128px);

  /* radius (reelmotion.fit scale) */
  --RadiusSm: 8px;
  --RadiusMd: 12px;
  --RadiusLg: 18px;
  --RadiusTile: 20px;
  --RadiusCard: 28px;
  --RadiusXl: 32px;
  --RadiusSlab: 36px;
  --RadiusFull: 999px;

  /* layout */
  --Container: 1240px;
  --Gutter: clamp(16px, 4vw, 40px);
  --SlabPad: clamp(20px, 4vw, 56px);
  --CardPad: var(--Space6);
  --HeaderH: 72px;

  /* elevation */
  --ShadowCard: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 24px 48px -28px rgba(0, 0, 0, 0.9);
  --ShadowLift: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -26px rgba(0, 0, 0, 0.95);
  --ShadowButton: 0 10px 30px -10px rgba(74, 144, 217, 0.55);
  --Focus: 0 0 0 4px rgba(74, 144, 217, 0.35);

  /* gradients (download slab, footer wordmark) */
  --GradientBlue: linear-gradient(135deg, var(--BlueDeep) 0%, var(--Blue) 55%, var(--BlueLight) 100%);
  --GradientMark: linear-gradient(180deg, var(--EdgeStrong) 0%, rgba(53, 54, 57, 0) 85%);

  /* motion */
  --Ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --DurFast: 150ms;
  --DurBase: 300ms;
  --DurLift: 1100ms;
}

html:lang(en) {
  --TrackDisplay: -0.035em;
  --TrackTitle: -0.025em;
}

@media (max-width: 767px) {
  :root {
    --CardPad: var(--Space5);
    --TextLead: 17px;
  }
}

/* ───────────────────────────────────────────────────────────────
   02 · Base — reset, type roles, focus, motion preferences
   ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--Void);
  scroll-behavior: smooth;
  scroll-padding-top: var(--Space5);
}

body {
  margin: 0;
  background: var(--Void);
  color: var(--Chalk);
  font-family: var(--FontText);
  font-size: var(--TextBody);
  line-height: var(--LeadingBody);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html:lang(en) body { word-break: normal; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--Blue);
  outline-offset: 3px;
  border-radius: var(--RadiusSm);
}

.skip-link {
  position: absolute;
  left: var(--Space4);
  top: -80px;
  z-index: 10;
  padding: var(--Space2) var(--Space4);
  border-radius: var(--RadiusFull);
  background: var(--Blue);
  color: var(--White);
  font-size: var(--TextSmall);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: var(--Space4); }

/* type roles — every text style on the page is one of these */
.t-display {
  font-size: var(--TextDisplay);
  font-weight: 700;
  line-height: var(--LeadingDisplay);
  letter-spacing: var(--TrackDisplay);
  text-wrap: balance;
}

.t-title {
  font-size: var(--TextTitle);
  font-weight: 700;
  line-height: var(--LeadingTitle);
  letter-spacing: var(--TrackTitle);
  text-wrap: balance;
}

.t-heading {
  font-size: var(--TextHeading);
  font-weight: 650;
  line-height: var(--LeadingHeading);
  letter-spacing: var(--TrackHeading);
}

.t-subtitle {
  font-size: var(--TextSubtitle);
  font-weight: 600;
  line-height: 1.4;
}

.t-lead {
  font-size: var(--TextLead);
  line-height: var(--LeadingBody);
  color: var(--Fog);
}

.t-body {
  font-size: var(--TextBody);
  line-height: var(--LeadingBody);
  color: var(--Fog);
}

.t-small {
  font-size: var(--TextSmall);
  line-height: var(--LeadingSmall);
  color: var(--Mist);
}

.t-micro {
  font-size: var(--TextMicro);
  line-height: 1.4;
  color: var(--Mist);
}

.nb { white-space: nowrap; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ───────────────────────────────────────────────────────────────
   03 · Layout — container, section rhythm, section heads, slabs
   Breakpoints: tablet ≤1024 · mobile ≤767 · small ≤374
   ─────────────────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: calc(var(--Container) + var(--Gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--Gutter);
}

.section {
  padding-top: var(--SectionGap);
  scroll-margin-top: var(--Space4);
}

.section-head {
  display: grid;
  gap: var(--Space4);
  max-width: 720px;
  margin-bottom: var(--Space8);
}

.section-head--center {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

/* heading on the left, one action on the right (e.g. "블로그 전체 보기") */
.section-head--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--Space5);
  max-width: none;
}

.section-head-text { display: grid; gap: var(--Space4); max-width: 720px; }

/* content right under a page-top slab */
.section--tight { padding-top: var(--Space8); }

/* First slab of every page. It is pulled up under .site-header, so the header sits inside it
   while staying outside <main> for landmarks. */
.page-top {
  margin-top: calc(-1 * (var(--HeaderH) + var(--Space4)));
  padding-top: var(--Space4);
}

.page-top > .container > .slab { padding-top: var(--HeaderH); }

/* big rounded container that groups a whole section (hero, how it works, download) */
.slab {
  position: relative;
  padding: var(--SlabPad);
  border-radius: var(--RadiusSlab);
  background: var(--Surface);
  border: 1px solid var(--Edge);
}

.slab--glow {
  background:
    radial-gradient(110% 60% at 50% 0%, var(--BlueWash), transparent 70%),
    var(--Surface);
}

@media (max-width: 767px) {
  .section-head { margin-bottom: var(--Space7); }
  .slab { border-radius: var(--RadiusXl); }
}

/* ───────────────────────────────────────────────────────────────
   04 · Components — header, button, badge, card, icon chip,
   checklist, accordion, QR tile, footer
   ─────────────────────────────────────────────────────────────── */

/* header (sits on top of the hero slab, like reelmotion.fit's nav inside its hero card).
   It stays outside <main> for landmarks; .hero is pulled up underneath it. */
.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--Space4);
  max-width: calc(var(--Container) + var(--Gutter) * 2);
  height: calc(var(--HeaderH) + var(--Space4));
  margin-inline: auto;
  padding: var(--Space4) calc(var(--Gutter) + var(--SlabPad) + 1px) 0;
}

.brand {
  font-family: var(--FontMark);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--Blue);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: var(--Space6);
}

.nav-link,
.nav-lang {
  font-size: var(--TextSmall);
  color: var(--Mist);
  text-decoration: none;
  transition: color var(--DurFast);
}

.nav-link:hover,
.nav-lang:hover,
.nav-link[aria-current="page"] { color: var(--Chalk); }

/* phone/tablet menu: native details/summary, closes on link click (site.js) */
.nav-menu { position: relative; display: none; }

.nav-menu-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--RadiusFull);
  border: 1px solid var(--EdgeStrong);
  color: var(--Chalk);
  list-style: none;
  cursor: pointer;
}

.nav-menu-btn::-webkit-details-marker { display: none; }
.nav-menu[open] .nav-menu-btn { background: var(--Raised); }

.nav-menu-panel {
  position: absolute;
  top: calc(100% + var(--Space2));
  right: 0;
  z-index: 10;
  display: grid;
  min-width: 220px;
  padding: var(--Space2);
  border-radius: var(--RadiusLg);
  background: var(--Card);
  border: 1px solid var(--Edge);
  box-shadow: var(--ShadowLift);
}

.nav-menu-panel .nav-link {
  padding: var(--Space3) var(--Space4);
  border-radius: var(--RadiusMd);
  font-size: var(--TextBody);
  color: var(--Chalk);
}

.nav-menu-panel .nav-link:hover { background: var(--Raised); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--Space5);
}

@media (max-width: 1024px) {
  .nav-links,
  .nav-lang { display: none; }
  .nav-menu { display: block; }
  .nav-actions { gap: var(--Space3); }
}

/* button: pill, says exactly what happens */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--Space2);
  height: 52px;
  padding-inline: var(--Space6);
  border: 1px solid transparent;
  border-radius: var(--RadiusFull);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--DurFast) var(--Ease), border-color var(--DurFast) var(--Ease), color var(--DurFast);
}

.btn:focus-visible { outline: none; box-shadow: var(--Focus); }

.btn--primary {
  background: var(--Blue);
  color: var(--White);
  box-shadow: var(--ShadowButton);
}

.btn--primary:hover { background: var(--BlueDeep); }

.btn--ghost {
  background: transparent;
  border-color: var(--EdgeStrong);
  color: var(--Chalk);
}

.btn--ghost:hover { border-color: var(--Mist); }

.btn--ink {
  background: var(--Void);
  color: var(--White);
}

.btn--ink:hover { background: var(--Surface); }

.btn--sm {
  height: 40px;
  padding-inline: var(--Space4);
  font-size: var(--TextSmall);
}

/* long label on wide screens, short label on phones */
.btn .label-sm { display: none; }

@media (max-width: 767px) {
  .btn .label-lg { display: none; }
  .btn .label-sm { display: inline; }
}

@media (max-width: 374px) {
  .btn--sm { padding-inline: var(--Space3); font-size: var(--TextMicro); }
}

/* badge: small pill label */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding-inline: var(--Space3);
  border-radius: var(--RadiusFull);
  background: var(--BlueTint);
  color: var(--Blue);
  font-size: var(--TextMicro);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.badge--outline {
  background: transparent;
  border: 1px solid var(--EdgeStrong);
  color: var(--Fog);
}

.badge--up {
  background: var(--UpTint);
  color: var(--Up);
}

.badge--light {
  background: var(--WhiteWash);
  color: var(--White);
}

a.badge { text-decoration: none; }

/* chips: category filter */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--Space2);
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding-inline: var(--Space4);
  border-radius: var(--RadiusFull);
  border: 1px solid var(--EdgeStrong);
  color: var(--Fog);
  font-size: var(--TextSmall);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color var(--DurFast), color var(--DurFast);
}

.chip:hover { border-color: var(--Mist); color: var(--Chalk); }

.chip[aria-current="page"] {
  background: var(--BlueTint);
  border-color: transparent;
  color: var(--Blue);
}

/* post card: the title link covers the whole card; the category badge stays on top */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--Space5);
}

.post-card { transition: border-color var(--DurFast), box-shadow var(--DurBase); }
.post-card:hover { border-color: var(--EdgeStrong); box-shadow: var(--ShadowLift); }
.post-card:has(.post-card-link:focus-visible) { box-shadow: var(--Focus); }

.post-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--Space2) var(--Space3);
}

.post-card-cat { position: relative; z-index: 1; }
.post-card-title { text-wrap: balance; }
.post-card-link { color: inherit; text-decoration: none; }
.post-card-link:focus-visible { outline: none; }
.post-card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.post-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-foot {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--Space2);
}

.post-card-read { color: var(--Blue); font-weight: 600; }

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: var(--Space4); }
}

/* card */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--Space3);
  min-width: 0;
  padding: var(--CardPad);
  border-radius: var(--RadiusCard);
  background: var(--Card);
  border: 1px solid var(--Edge);
  box-shadow: var(--ShadowCard);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--Space3);
  margin-bottom: var(--Space1);
}

.card-visual {
  margin-top: auto;
  padding-top: var(--Space4);
  min-width: 0;
}

/* icon chip: 40px circle, tint background */
.chip-icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--BlueTint);
  color: var(--Blue);
}

.chip-icon svg { width: 20px; height: 20px; }

/* checklist: bullets are the app's ticked set checkbox */
.checklist {
  display: grid;
  gap: var(--Space3);
}

.checklist li {
  position: relative;
  padding-left: 34px;
  color: var(--Fog);
  line-height: 1.5;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--Blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* accordion (native details/summary, no script) */
.faq-list {
  display: grid;
  gap: var(--Space3);
  max-width: 820px;
  margin-inline: auto;
}

.faq-item {
  border-radius: var(--RadiusLg);
  background: var(--Card);
  border: 1px solid var(--Edge);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--Space4);
  padding: var(--Space5);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  cursor: pointer;
  border-radius: var(--RadiusLg);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--Field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b8d93' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 7v10M7 12h10'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform var(--DurBase) var(--Ease);
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-answer {
  padding: 0 var(--Space5) var(--Space5);
  color: var(--Fog);
  max-width: 62ch;
}

/* QR tile (desktop only — on a phone you are already there) */
.qr {
  display: grid;
  justify-items: center;
  gap: var(--Space3);
}

.qr-code {
  width: 156px;
  padding: var(--Space3);
  border-radius: var(--RadiusTile);
  background: var(--White);
}

@media (max-width: 767px) {
  .qr { display: none; }
}

/* footer */
.site-footer {
  margin-top: var(--SectionGap);
  border-radius: var(--RadiusSlab) var(--RadiusSlab) 0 0;
  background: var(--Surface);
  border-top: 1px solid var(--Edge);
  overflow: hidden;
}

.footer-mark {
  container-type: inline-size;
  padding-top: var(--Space8);
}

.footer-mark span {
  display: block;
  font-family: var(--FontMark);
  font-size: 17vw;
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  background: var(--GradientMark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
}

@supports (width: 1cqi) {
  .footer-mark span { font-size: 19.5cqi; }
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: var(--Space7) var(--Space6);
  padding-block: var(--Space8) var(--Space7);
}

.footer-brand { display: grid; gap: var(--Space3); align-content: start; max-width: 34ch; }

.footer-col { display: grid; gap: var(--Space3); align-content: start; }

.footer-head {
  font-size: var(--TextSmall);
  font-weight: 600;
  color: var(--Chalk);
}

.footer-col a {
  font-size: var(--TextSmall);
  color: var(--Mist);
  text-decoration: none;
  width: fit-content;
}

.footer-col a:hover { color: var(--Chalk); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--Space2) var(--Space5);
  padding-block: var(--Space5) var(--Space7);
  border-top: 1px solid var(--Edge);
}

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .site-footer { border-radius: var(--RadiusXl) var(--RadiusXl) 0 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ───────────────────────────────────────────────────────────────
   05 · App UI — the phone frame and screens rebuilt from the app.
   Inside .ui every size is the RN StyleSheet value in iPhone points
   (393 × 852). The frame scales it with a fixed --k (no calc() inside
   transform, which older Safari drops).
   ─────────────────────────────────────────────────────────────── */

.phone {
  --sw: 250;
  --k: 0.63613;
  --bz: 10px;
  flex: none;
  width: calc(var(--sw) * 1px + var(--bz) * 2 + 2px);
  padding: var(--bz);
  border-radius: calc(var(--sw) * 0.145px + var(--bz));
  background: var(--Black);
  border: 1px solid var(--EdgeStrong);
}

.phone--240 { --sw: 240; --k: 0.61069; }
.phone--270 { --sw: 270; --k: 0.68702; }

.screen {
  position: relative;
  width: calc(var(--sw) * 1px);
  height: calc(var(--sw) * 852px / 393);
  border-radius: calc(var(--sw) * 0.145px);
  overflow: hidden;
  background: var(--Void);
}

.ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 393px;
  height: 852px;
  transform: scale(var(--k));
  transform-origin: 0 0;
  background: var(--Void);
  color: var(--Chalk);
  font-family: var(--FontSystem);
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
  word-break: keep-all;
}

/* status bar, Dynamic Island, home indicator */
.sb {
  position: absolute;
  inset: 0 0 auto 0;
  height: 54px;
  z-index: 5;
  pointer-events: none;
}

.sb-time {
  position: absolute;
  top: 18px;
  left: 0;
  width: 136px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}

.sb-icons {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 126px;
  height: 37px;
  margin-left: -63px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 13px 15px;
  border-radius: 19px;
  background: var(--Black);
  color: var(--Blue);
  transition: width var(--DurBase) var(--Ease), margin-left var(--DurBase) var(--Ease);
}

.island.live { width: 172px; margin-left: -86px; }
.island > * { opacity: 0; transition: opacity 0.2s; }
.island.live > * { opacity: 1; transition-delay: 0.15s; }

.il-time {
  font: 600 15px/1 ui-rounded, var(--FontSystem);
  font-variant-numeric: tabular-nums;
}

.home-ind {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 134px;
  height: 5px;
  margin-left: -67px;
  border-radius: 3px;
  background: var(--Chalk);
  z-index: 6;
}

/* shared screen parts */
.ui-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 67px 20px 12px;
  border-bottom: 1px solid var(--Edge);
}

.ui-head b { font-size: 17px; font-weight: 700; }
.ui-head .end { justify-self: start; font-size: 16px; color: var(--Down); }
.ui-head .ok { justify-self: end; font-size: 16px; font-weight: 700; color: var(--Blue); }

.ui-title-head {
  padding: 71px 20px 12px;
  border-bottom: 1px solid var(--Edge);
  font-size: 28px;
  font-weight: 700;
}

.ui-prog { height: 3px; background: var(--Field); }
.ui-prog i { display: block; width: 17%; height: 100%; background: var(--Blue); transition: width 0.4s; }

.ui-list { padding-inline: 20px; }

.ex {
  margin-top: 12px;
  border-radius: 12px;
  background: var(--Card);
  border: 1px solid var(--Edge);
}

.ex-head {
  display: flex;
  align-items: center;
  height: 48px;
  padding-inline: 16px;
}

.ex-head.drag { padding-left: 0; }
.ex-head .grip { padding: 0 6px 0 12px; color: var(--Muted); }
.ex-head b { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-head .sub { flex: none; margin-left: 8px; font-size: 13px; color: var(--Muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* CardHeaderAction (기록) */
.ex-head .hist {
  flex: none;
  display: flex;
  align-items: center;
  gap: 3px;
  padding-left: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--Blue);
}

.ex.complete .ex-head b { color: var(--Up); }
.ex.skipped { opacity: 0.5; }
.ex.skipped .ex-head b { color: var(--Muted); text-decoration: line-through; }

.sets { padding-block: 8px; border-top: 1px solid var(--Edge); }

/* SetRow: [×] 1세트 [weight] kg [reps] 회 [✓] */
.set {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding-inline: 16px;
}

.del {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--DownTint);
  color: var(--Down);
}

.fld {
  flex: 1;
  min-width: 0;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--Field);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.unit { font-size: 12px; color: var(--Muted); }

.setno {
  flex: none;
  width: 42px;
  font-size: 13px;
  font-weight: 600;
  color: var(--Mist);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.set.done .fld { background: var(--Raised); color: var(--Muted); }
.set.done .setno { color: var(--Muted); }

.chk {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 11px;
  border: 1.5px solid var(--EdgeStrong);
  background: var(--GreyWash);
  color: var(--White);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

/* same hit area as hitSlop={10} */
.chk::after { content: ""; position: absolute; inset: -12px; }
.chk svg { opacity: 0; }
.set.done .chk { background: var(--Blue); border-color: var(--Blue); }
.set.done .chk svg { opacity: 1; }

.memo { padding: 10px 16px; border-top: 1px solid var(--Edge); }

.memo span {
  display: block;
  min-height: 36px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--Field);
  font-size: 14px;
  line-height: 18px;
}

.memo .ph { color: var(--Muted); }

/* card action row: [생략 | + 세트 추가] */
.acts {
  display: flex;
  height: 48px;
  border-top: 1px solid var(--Edge);
}

.acts .sec {
  flex: none;
  width: 80px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--Edge);
  font-size: 14px;
  font-weight: 600;
  color: var(--Mist);
}

.acts .add {
  flex: 1;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 500;
  color: var(--Blue);
}

/* SetAdjustBar: [− 무게(2.5kg) +] [− 반복(1회) +] */
.adj {
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid var(--Edge);
}

.stp {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 36px;
  border-radius: 10px;
  background: var(--Field);
}

.stp i { flex: none; width: 40px; height: 100%; display: grid; place-items: center; color: var(--Blue); }
.stp span { flex: 1; min-width: 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--Mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* AddExerciseFab: round + above the bottom bar (bar height 111 + 16) */
.fab {
  position: absolute;
  right: 20px;
  bottom: 127px;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 26px;
  background: var(--Blue);
  color: var(--White);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.bar {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 4;
  padding: 12px 20px 50px;
  border-top: 1px solid var(--Edge);
  background: var(--Surface);
}

.bar-btn {
  width: 100%;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--Blue);
  color: var(--White);
  font: 700 16px/1 var(--FontSystem);
  cursor: pointer;
}

.rest {
  width: 100%;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--BlueWash);
  color: var(--Blue);
  font: 700 20px/1 var(--FontSystem);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}

/* home: routine list + tab bar */
.routine-list {
  margin: 24px 20px 0;
  border-radius: 12px;
  background: var(--Card);
  border: 1px solid var(--Edge);
  overflow: hidden;
}

.routine {
  display: flex;
  align-items: flex-start;
  padding: 16px 2px 16px 16px;
  border-bottom: 1px solid var(--Edge);
}

.routine-info { flex: 1; min-width: 0; }
.routine-name { font-size: 17px; font-weight: 500; }
.routine-ex { margin-top: 6px; font-size: 13px; color: var(--Muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.routine-last { margin-top: 4px; font-size: 13px; color: var(--Mist); }
.routine-more { padding: 2px 6px; margin-left: 4px; color: var(--Muted); }

.routine-add {
  padding-block: 14px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--Blue);
}

.tabbar {
  position: absolute;
  inset: auto 0 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 83px;
  padding-top: 7px;
  border-top: 1px solid var(--Edge);
  background: var(--Surface);
  z-index: 4;
}

.tab {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  font-size: 12px;
  color: var(--Muted);
}

.tab.on { color: var(--Blue); }

/* completion: SectionTitle (blue bar + sub), TrendSection, SetCompareTable, volume preview */
.rtitle {
  margin: 28px 20px 0;
  padding-left: 12px;
  border-left: 3px solid var(--Blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.rtitle.top { margin-top: 87px; } /* safe area 59 + 28 */

.rsub {
  margin: 2px 20px 2px;
  padding-left: 15px;
  font-size: 14px;
  color: var(--Mist);
}

.mini { padding: 12px 16px; border-top: 1px solid var(--Edge); }
.mini svg { width: 100%; height: 80px; overflow: visible; }
.mini .g line { stroke: var(--Edge); stroke-width: 1; opacity: 0.4; }
.mini .tr { fill: none; stroke: var(--Muted); stroke-width: 2; stroke-linejoin: round; }
.mini .ls { stroke: var(--Blue); stroke-width: 2; }
.mini .dt { fill: var(--Muted); }
.mini .de { fill: var(--Blue); }

.mini-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 12px;
  color: var(--Muted);
}

.mini-dates span:last-child { color: var(--Blue); font-weight: 600; }

/* columns shared by the header and every row: set label 42, 이전, 오늘, 변화 60 */
.cmp-row {
  display: grid;
  grid-template-columns: 42px 1fr 1fr 60px;
  align-items: center;
  height: 40px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--Edge);
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cmp-row > :first-child { text-align: left; font-size: 13px; font-weight: 600; color: var(--Mist); }
.cmp-row.head { height: auto; padding-block: 8px; border-top: 1px solid var(--Edge); font-size: 13px; font-weight: 600; color: var(--Muted); }
.cmp-row:not(.head) > :nth-child(2) { color: var(--Muted); }
.cmp-row:not(.head) > :nth-child(3) { font-weight: 500; }
.cmp-row > :nth-child(4) { font-size: 13px; font-weight: 600; color: var(--Muted); }
.cmp-row .up { color: var(--Up); }
.cmp-row .down { color: var(--Down); }
.cmp-row:last-child { border-bottom: 0; }

.volp {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding-block: 10px;
  border-top: 1px solid var(--Edge);
  font-size: 14px;
  color: var(--Muted);
  font-variant-numeric: tabular-nums;
}

.volp b { color: var(--Chalk); font-weight: 600; }
.volp .up { color: var(--Up); font-weight: 600; }

/* ── fragments used outside a phone (feature cards). Fluid, same look. ── */
.frag { font-family: var(--FontSystem); line-height: 1.25; word-break: keep-all; }

.frag .ex { margin-top: 0; }
.frag .ex + .ex { margin-top: var(--Space3); }
.frag .set { padding-inline: 14px; }
.frag .setno { width: 40px; }
.frag .adj { padding-inline: 14px; }
/* Cards can be narrower than the phone. The steppers keep their labels whole and wrap
   to a second line when both don't fit; the card subtitle gives way to the exercise name. */
.frag { container-type: inline-size; }
.frag .adj { flex-wrap: wrap; }
.frag .stp { flex: 1 0 auto; }
.frag .stp i { width: 26px; }
.frag .stp span { overflow: visible; text-overflow: clip; }

@container (max-width: 259px) {
  .ex-head .sub { display: none; }
}

/* exercise history summary tiles (app/exercise/history.tsx) */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: var(--Space6);
}

.tile {
  min-width: 0;
  padding: 12px;
  border-radius: 12px;
  background: var(--Raised);
  border: 1px solid var(--Edge);
}

.tile dt { margin-bottom: 4px; font-size: 12px; color: var(--Muted); }
.tile dd { margin: 0; font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }

/* the app shrinks these values to fit (adjustsFontSizeToFit); so do phones here */
@media (max-width: 420px) {
  .tiles { gap: 6px; }
  .tile { padding: 10px 8px; }
  .tile dd { font-size: 15px; }
}

@media (max-width: 359px) {
  .tile dd { font-size: 13px; }
}

/* lock screen with the rest-timer Live Activity */
.lock {
  padding: 22px 12px 12px;
  border-radius: var(--RadiusTile);
  background: var(--Void);
  border: 1px solid var(--Edge);
  text-align: center;
}

.lock-date { font-size: 14px; font-weight: 600; color: var(--Fog); }

.lock-clock {
  margin: 2px 0 18px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.la {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--Card);
  text-align: left;
}

.la-text { display: grid; gap: 3px; min-width: 0; line-height: 1.2; }
.la-routine { font-size: 12px; color: var(--Mist); }
.la-ex { font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-sub { font-size: 14px; color: var(--Mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.la-time {
  flex: none;
  text-align: right;
  font: 700 34px/1 ui-rounded, var(--FontSystem);
  font-variant-numeric: tabular-nums;
  color: var(--Blue);
}

/* history calendar */
.cal {
  padding: 16px;
  border-radius: 12px;
  background: var(--Raised);
  border: 1px solid var(--Edge);
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--Mist);
}

.cal-head b { font-size: 15px; font-weight: 600; color: var(--Chalk); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
}

.cal-grid .dow { padding-block: 2px; font-size: 11px; font-weight: 500; color: var(--Muted); }
.cal-grid .day { min-height: 38px; display: grid; justify-items: center; align-content: center; gap: 2px; }

.cal-grid .day span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.cal-grid .sun, .cal-grid .sun span { color: var(--Down); }
.cal-grid .day i { width: 5px; height: 5px; border-radius: 3px; background: var(--Blue); }
.cal-grid .day i.none { visibility: hidden; }
.cal-grid .day.sel span { background: var(--Blue); color: var(--White); font-weight: 700; }
.cal-grid .day.sel i { background: var(--White); }

/* volume chart: HTML labels + a stretched SVG, so text never scales */
.chart-title { margin-bottom: var(--Space6); font-weight: 600; color: var(--Fog); }
.chart-box {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
}

.chart-y {
  position: relative;
  font-family: var(--FontNumeral);
  font-size: var(--TextMicro);
  color: var(--Muted);
  font-variant-numeric: tabular-nums;
}

.chart-y span {
  position: absolute;
  right: 10px;
  transform: translateY(-50%);
  line-height: 1;
}

.chart-y .kg { top: -16px; transform: none; font-family: var(--FontText); }

.plot {
  position: relative;
  height: clamp(200px, 22vw, 260px);
  margin-right: 8px;
}

.plot svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.plot .grid line { stroke: var(--Edge); stroke-width: 1; }
.plot .trend { fill: none; stroke: var(--Muted); stroke-width: 2; stroke-linejoin: round; }
.plot .last { fill: none; stroke: var(--Blue); stroke-width: 2.5; }

.pt {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  border-radius: 50%;
  background: var(--Muted);
}

.pt.end {
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  background: var(--Blue);
}

.plot-note {
  position: absolute;
  padding-inline: 4px;
  background: var(--Card);
  font-size: var(--TextMicro);
  line-height: 1.35;
  color: var(--Mist);
  white-space: nowrap;
}

.plot-note.end-note {
  transform: translate(calc(-100% - 10px), -50%);
  color: var(--Blue);
  font-weight: 600;
}

.plot-note.dip-note { transform: translate(-50%, 14px); }

.chart-x {
  position: relative;
  height: 28px;
  margin-right: 8px;
  font-size: var(--TextMicro);
  color: var(--Muted);
}

.chart-x span {
  position: absolute;
  top: 10px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.chart-x span:first-child { transform: none; }

/* ───────────────────────────────────────────────────────────────
   06 · Sections — hero, how it works, features, pricing, FAQ, download
   Each section owns its responsive rules. Extra breakpoint used here:
   1240 (= --Container), where the three step cards stop fitting.
   ─────────────────────────────────────────────────────────────── */

/* hero (a .page-top: the header sits inside its slab) */

.hero-body {
  display: grid;
  justify-items: center;
  gap: var(--Space5);
  max-width: 860px;
  margin-inline: auto;
  padding-top: clamp(28px, 6vw, 72px);
  text-align: center;
}

.hero-title {
  display: grid;
  justify-items: center;
  gap: var(--Space5);
}

.hero-lead { max-width: 33em; }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--Space3);
  margin-top: var(--Space2);
}

/* ledger: last time vs today, set in numerals. Weight axis = load. */
.ledger {
  --LedgerK: 3.35;
  container-type: inline-size;
  display: grid;
  gap: var(--Space5);
  width: 100%;
  max-width: 900px;
  margin: clamp(40px, 6vw, 72px) auto 0;
}

html:lang(en) .ledger { --LedgerK: 3.95; }

.ledger-row {
  display: grid;
  justify-items: center;
  gap: var(--Space2);
}

.ledger-label {
  display: inline-flex;
  align-items: center;
  gap: var(--Space2);
  min-height: 28px;
  font-size: var(--TextSmall);
  font-weight: 600;
  color: var(--Mist);
}

.ledger-value {
  font-family: var(--FontNumeral);
  font-size: clamp(52px, 12vw, 168px);
  font-stretch: 80%;
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@supports (width: 1cqi) {
  .ledger-value { font-size: min(168px, calc(100cqi / var(--LedgerK))); }
}

.ledger-value.was { font-weight: 200; color: var(--Mist); }

.ledger-value.now {
  font-weight: 800;
  color: var(--Chalk);
  transition: font-weight var(--DurLift) var(--Ease), color var(--DurLift) var(--Ease);
}

.ledger .u {
  margin-left: 0.18em;
  font-family: var(--FontText);
  font-size: 0.2em;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--Muted);
}

.ledger .x {
  position: relative;
  top: -0.14em;
  margin-inline: 0.16em 0.12em;
  font-size: 0.5em;
  font-weight: 200;
  color: var(--Muted);
}

.ledger .r-old { display: none; }

/* load moment: today's line starts as a copy of last time, then gets heavier */
.lift-ready .ledger:not(.lifted) .now { font-weight: 200; color: var(--Mist); }
.lift-ready .ledger:not(.lifted) .r-old { display: inline; }
.lift-ready .ledger:not(.lifted) .r-new { display: none; }
.lift-ready .ledger:not(.lifted) .ledger-delta { opacity: 0; transform: translateY(6px); }
.lift-ready .ledger .ledger-delta { transition: opacity var(--DurBase) var(--Ease) 0.8s, transform var(--DurBase) var(--Ease) 0.8s; }
.lift-ready .ledger.lifted .r-new { display: inline-block; animation: rep-in 0.5s var(--Ease) 0.2s both; }

@keyframes rep-in {
  from { opacity: 0; transform: translateY(0.22em); }
  to { opacity: 1; transform: none; }
}

/* how it works: three step cards, each with the real screen */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--Space5);
}

.step-num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--BlueTint);
  color: var(--Blue);
  font-family: var(--FontNumeral);
  font-size: var(--TextSmall);
  font-weight: 700;
}

.step-hint { color: var(--Blue); }

.step-visual {
  display: grid;
  justify-items: center;
  gap: var(--Space3);
  margin-top: auto;
  padding-top: var(--Space5);
}

@media (max-width: 1240px) {
  .steps {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 312px;
    gap: var(--Space4);
    margin-inline: calc(var(--SlabPad) * -1);
    padding-inline: var(--SlabPad);
    padding-bottom: var(--Space2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--SlabPad);
    scrollbar-width: none;
  }
  .steps::-webkit-scrollbar { display: none; }
  .step { --CardPad: var(--Space5); scroll-snap-align: start; }
  .steps .phone { --sw: 240; --k: 0.61069; }
}

@media (max-width: 767px) {
  .steps {
    grid-auto-columns: min(280px, calc(100vw - 72px));
    gap: var(--Space3);
    padding-inline: var(--Space4);
    scroll-padding-inline: var(--Space4);
  }
  .step { --CardPad: var(--Space4); }
  .steps .phone { --sw: 220; --k: 0.5598; }
}

@media (max-width: 374px) {
  .steps .phone { --sw: 190; --k: 0.48346; }
}

/* features: bento of cards, each showing the real piece of UI */
.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--Space5);
}

.bento .span-2 { grid-column: span 2; }
.bento .span-all { grid-column: 1 / -1; }

.feature-privacy {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--Space6);
}

.feature-privacy-text { display: grid; gap: var(--Space3); max-width: 46ch; }

.privacy-points {
  display: flex;
  flex-wrap: wrap;
  gap: var(--Space3);
}

.privacy-point {
  display: inline-flex;
  align-items: center;
  gap: var(--Space2);
  height: 48px;
  padding: 0 var(--Space4) 0 var(--Space1);
  border-radius: var(--RadiusFull);
  background: var(--Raised);
  border: 1px solid var(--Edge);
  font-size: var(--TextSmall);
  font-weight: 600;
  white-space: nowrap;
}

.privacy-point .chip-icon { width: 38px; height: 38px; }
.privacy-point .chip-icon svg { width: 18px; height: 18px; }

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .span-2 { grid-column: 1 / -1; }
  .feature-privacy { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 767px) {
  .bento { grid-template-columns: minmax(0, 1fr); gap: var(--Space4); }
}

/* pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--Space5);
  max-width: 960px;
  margin-inline: auto;
}

.plan { gap: var(--Space2); }
.plan--pro { border-color: var(--BlueEdge); box-shadow: var(--ShadowLift); }

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--Space1) var(--Space3);
  margin-top: var(--Space2);
}

.plan-price .pn {
  font-family: var(--FontNumeral);
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 800;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.plan-price .pv { white-space: nowrap; }
.plan-price .pu { margin-left: 2px; font-size: 20px; font-weight: 600; }
.plan-price s { font-size: var(--TextSmall); color: var(--Muted); }
.plan-desc { margin-top: var(--Space3); }

.includes {
  max-width: 960px;
  margin: var(--Space5) auto 0;
}

.includes .checklist {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--Space6);
  margin-top: var(--Space2);
}

.pricing-foot {
  display: grid;
  justify-items: center;
  gap: var(--Space4);
  margin-top: var(--Space7);
  text-align: center;
}

@media (max-width: 767px) {
  .plans,
  .includes .checklist { grid-template-columns: minmax(0, 1fr); }
}

/* download */
.download {
  border: 0;
  background: var(--GradientBlue);
  color: var(--White);
  overflow: hidden;
}

.download-copy { display: grid; gap: var(--Space4); }

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--Space7);
}

.download .t-title { color: var(--White); }
.download .t-lead { color: var(--OnBlue); }

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--Space3);
  margin-top: var(--Space4);
}

@media (max-width: 767px) {
  .download-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 404 */
.not-found-box {
  display: grid;
  justify-items: center;
  gap: var(--Space5);
  max-width: 720px;
  margin-inline: auto;
  padding-block: var(--Space9);
  text-align: center;
}

/* ───────────────────────────────────────────────────────────────
   07 · Blog and documents — page heads, breadcrumbs, article prose,
   post FAQ and keywords. Used by /blog, /blog/<slug>, legal pages, 404.
   ─────────────────────────────────────────────────────────────── */

/* head inside the first slab */
.page-head {
  display: grid;
  gap: var(--Space4);
  max-width: 780px;
  padding-top: clamp(20px, 4vw, 48px);
}

/* post and legal heads share the article column, so the title lines up with the text */
.page-head--article {
  max-width: 720px;
  margin-inline: auto;
}

.page-head--center {
  margin-inline: auto;
  justify-items: center;
  text-align: center;
}

.page-head + .chips { margin-top: var(--Space6); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--Space2);
  color: var(--Muted);
}

.crumbs a { color: var(--Fog); text-decoration: none; }
.crumbs a:hover { color: var(--Chalk); }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--Space2) var(--Space4);
  margin-top: var(--Space1);
  color: var(--Mist);
}

.empty-note { padding-block: var(--Space7); color: var(--Mist); }

/* article column: about 70 characters of Korean per line */
.post-body { max-width: calc(720px + var(--Gutter) * 2); }

.post-hero {
  width: 100%;
  height: auto;
  margin-bottom: var(--Space7);
  border-radius: var(--RadiusCard);
  border: 1px solid var(--Edge);
}

/* markdown */
.prose {
  font-size: 17px;
  line-height: 1.85;
  color: var(--Fog);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--Chalk);
  scroll-margin-top: var(--Space5);
  text-wrap: balance;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.45;
  color: var(--Chalk);
  scroll-margin-top: var(--Space5);
}

.prose h2 + *,
.prose h3 + * { margin-top: 0.7em; }

.prose strong { font-weight: 650; color: var(--Chalk); }

.prose a {
  color: var(--Blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover { color: var(--BlueLight); }

.prose ul,
.prose ol { padding-left: 1.3em; }

.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li > ul,
.prose li > ol { margin-top: 0.4em; }
.prose li::marker { color: var(--Muted); }

.prose blockquote {
  margin: 0;
  padding: var(--Space4) var(--Space5);
  border-left: 3px solid var(--Blue);
  border-radius: 0 var(--RadiusMd) var(--RadiusMd) 0;
  background: var(--Surface);
}

.prose blockquote > * + * { margin-top: 0.7em; }
.prose blockquote p { margin: 0; }

.prose :not(pre) > code {
  padding: 0.1em 0.4em;
  border-radius: 6px;
  background: var(--Field);
  font-family: var(--FontCode);
  font-size: 0.88em;
  color: var(--Chalk);
}

.prose pre {
  overflow-x: auto;
  padding: var(--Space4) var(--Space5);
  border-radius: var(--RadiusMd);
  background: var(--Surface);
  border: 1px solid var(--Edge);
  font-size: 14px;
  line-height: 1.7;
}

.prose pre code { font-family: var(--FontCode); color: var(--Fog); }

.prose hr {
  margin-block: 2.4em;
  border: 0;
  border-top: 1px solid var(--Edge);
}

.prose img { height: auto; border-radius: var(--RadiusMd); }

/* tables scroll inside their own box on phones */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--RadiusMd);
  border: 1px solid var(--Edge);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

.prose th,
.prose td {
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--Edge);
}

.prose th {
  background: var(--Raised);
  font-weight: 600;
  color: var(--Chalk);
  white-space: nowrap;
}

.prose td { min-width: 6em; }
.prose tbody tr:last-child td { border-bottom: 0; }

/* post FAQ (same accordion as the landing page) and keywords */
.post-faq {
  display: grid;
  gap: var(--Space5);
  margin-top: var(--Space8);
}

.post-faq h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.post-faq .faq-list { max-width: none; margin: 0; }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--Space2);
  margin-top: var(--Space7);
}

@media (max-width: 767px) {
  .prose { font-size: 16px; line-height: 1.8; }
  .prose th, .prose td { padding: 9px 12px; font-size: 14px; }
}
