/* ==========================================================
   10분 콘텐츠 시스템 — 스타일
   색상·폰트 값은 css/tokens.css 에서 수정합니다.
   ========================================================== */

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
mark {
  color: inherit;
  background: linear-gradient(transparent 58%, var(--marker) 58%, var(--marker) 92%, transparent 92%);
  padding: 0 2px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* 모바일 / 데스크톱 전용 줄바꿈 */
.br-d { display: none; }
@media (min-width: 768px) {
  .br-m { display: none; }
  .br-d { display: inline; }
}

section[id], article[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--blue);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}
.kicker::before {
  content: "";
  width: 18px; height: 2px;
  background: currentColor;
}

.section { padding-block: clamp(88px, 14vw, 160px); }

.section-head { margin-bottom: clamp(36px, 6vw, 64px); }

.section-title {
  font-size: clamp(27px, 6.4vw, 44px);
  font-weight: 800;
  line-height: 1.34;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.section-desc {
  margin-top: 18px;
  font-size: 16px;
  color: var(--ink-2);
}

.pen-note {
  font-family: var(--font-pen);
  font-size: 23px;
  line-height: 1.3;
  color: var(--blue);
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.section-head .pen-note { margin-top: 14px; }

.slot {
  display: inline-block;
  padding: 0 6px;
  border: 1px dashed var(--blue);
  border-radius: 6px;
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  line-height: 1.5;
}
.slot-sample { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: #2448e0; }
.btn--primary:active { transform: translateY(1px); }
.btn--lg { min-height: 58px; padding: 16px 32px; font-size: 17px; }
.btn--ghost {
  border-color: rgba(255, 255, 255, .28);
  color: var(--white);
  font-weight: 600;
}
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn.is-pending { opacity: .62; cursor: default; }
.btn.is-pending::after {
  content: "준비 중";
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: 11px;
  font-weight: 700;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(250, 250, 248, .88);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(22, 33, 62, .06);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  color: var(--navy);
}
.brand__name { font-weight: 800; font-size: 17px; letter-spacing: -0.03em; }
.brand__divider { width: 1px; height: 12px; background: var(--line-strong); }
.brand__page {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-cta {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .2s;
}
.header-cta:hover { background: #dfe7ff; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(56px, 11vw, 128px) clamp(72px, 12vw, 140px); }
.hero__grid { display: grid; gap: 56px; align-items: center; }
.hero__title {
  margin-top: 22px;
  font-size: clamp(28px, 7.6vw, 56px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.hero__lead {
  margin-top: 28px;
  font-size: clamp(16px, 4.2vw, 19px);
  line-height: 1.8;
  color: var(--ink-2);
}
.hero__lead strong { color: var(--ink); font-weight: 700; }
.hero__point {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 3px solid var(--blue);
  font-size: clamp(18px, 4.8vw, 22px);
  font-weight: 700;
  line-height: 1.6;
  color: var(--navy);
}
.strike {
  text-decoration: line-through;
  text-decoration-color: var(--blue);
  text-decoration-thickness: 2px;
  color: var(--ink-3);
}
.hero .btn { margin-top: 40px; }

.desk-note { display: none; }

@media (min-width: 960px) {
  .hero { min-height: calc(92vh - var(--header-h)); display: flex; align-items: center; }
  .hero > .wrap { width: 100%; }
  .hero__grid { grid-template-columns: 1.5fr .8fr; gap: 64px; }

  .desk-note {
    display: block;
    position: relative;
    padding: 36px 30px 28px;
    background:
      repeating-linear-gradient(transparent 0 35px, rgba(49, 91, 255, .12) 35px 36px),
      var(--white);
    background-position: 0 28px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(22, 33, 62, .06), 0 18px 40px -18px rgba(22, 33, 62, .22);
    transform: rotate(2.2deg);
    font-family: var(--font-pen);
    color: var(--navy);
  }
  .desk-note::before { /* 마스킹 테이프 */
    content: "";
    position: absolute;
    top: -12px; left: 50%;
    width: 96px; height: 24px;
    transform: translateX(-50%) rotate(-3deg);
    background: rgba(49, 91, 255, .16);
  }
  .desk-note__date { font-size: 22px; color: var(--ink-3); line-height: 36px; }
  .desk-note__list li {
    position: relative;
    padding-left: 32px;
    font-size: 26px;
    line-height: 36px;
  }
  .desk-note__list li::before {
    content: "";
    position: absolute;
    left: 2px; top: 10px;
    width: 16px; height: 16px;
    border: 2px solid var(--navy);
    border-radius: 3px;
  }
  .desk-note__list li.is-done { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--blue); }
  .desk-note__list li.is-done::after {
    content: "";
    position: absolute;
    left: 6px; top: 6px;
    width: 8px; height: 16px;
    border: solid var(--blue);
    border-width: 0 3px 3px 0;
    transform: rotate(40deg);
  }
  .desk-note__timer { margin-top: 12px; font-size: 22px; line-height: 36px; color: var(--ink-2); }
  .desk-note__timer span {
    font-family: var(--font);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--blue);
    margin-right: 4px;
  }
}

/* ---------- Section 1 : 상황 선택 ---------- */
.situation { border-top: 1px solid var(--line); }
.situation-list { border-top: 2px solid var(--navy); }
.situation-list > li { border-bottom: 1px solid var(--line); }

.choice {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-areas: "box text" "box go";
  column-gap: 16px;
  row-gap: 6px;
  align-items: start;
  padding: 24px 8px;
  border: 0;
  background: transparent;
  text-align: left;
  transition: background-color .2s;
}
.choice__box {
  grid-area: box;
  position: relative;
  width: 34px; height: 34px;
  margin-top: 1px;
  border: 2px solid var(--navy);
  border-radius: 8px;
  transition: background-color .2s, border-color .2s;
}
.choice__key {
  grid-area: box;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  transition: opacity .2s;
}
.choice__text {
  grid-area: text;
  font-size: clamp(18px, 4.8vw, 23px);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.choice__go {
  grid-area: go;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
}
.choice__arrow { transition: transform .2s; }

.choice:hover { background: var(--blue-soft); }
.choice:hover .choice__arrow { transform: translateX(4px); }
.choice[aria-pressed="true"] .choice__box { background: var(--blue); border-color: var(--blue); }
.choice[aria-pressed="true"] .choice__key { opacity: 0; }
.choice[aria-pressed="true"] .choice__box::after {
  content: "";
  position: absolute;
  left: 10px; top: 4px;
  width: 9px; height: 17px;
  border: solid var(--white);
  border-width: 0 3px 3px 0;
  transform: rotate(40deg);
}

@media (min-width: 768px) {
  .choice {
    grid-template-columns: 34px 1fr auto;
    grid-template-areas: "box text go";
    align-items: center;
    column-gap: 24px;
    padding: 30px 16px;
  }
}

/* ---------- Section 2 : 흐름 ---------- */
.flow { background: var(--white); border-block: 1px solid var(--line); }

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 16px;
  row-gap: 16px;
  padding-bottom: 52px;
}
.flow-step:last-child { padding-bottom: 0; }

/* 번호 사이를 잇는 점선 + 화살표 */
.flow-step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 52px;
  bottom: 10px;
  border-left: 2px dashed rgba(49, 91, 255, .35);
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  bottom: 8px;
  width: 8px; height: 8px;
  border: solid rgba(49, 91, 255, .55);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.flow-step__num {
  grid-row: span 2;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--blue);
  font-variant-numeric: tabular-nums;
}
.flow-step__title {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--navy);
}
.flow-step__body p { margin-top: 8px; color: var(--ink-2); }

.flow-step__ex {
  grid-column: 2;
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px;
  border-left: 2px solid var(--blue-soft);
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.ex-label {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--blue);
}

@media (min-width: 880px) {
  .flow-step {
    grid-template-columns: 120px 1fr 300px;
    column-gap: 32px;
    align-items: start;
    padding-bottom: 72px;
  }
  .flow-step__num { grid-row: auto; font-size: 64px; }
  .flow-step:not(:last-child)::before { left: 30px; top: 78px; }
  .flow-step:not(:last-child)::after { left: 26px; }
  .flow-step__ex { grid-column: 3; margin-top: 4px; }
}

/* ---------- Section 3 : 루틴 ---------- */
.routine {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding-block: 44px;
  border-top: 1px solid var(--line);
}
.routine:first-child { border-top: 2px solid var(--navy); }

.routine__num { display: flex; align-items: baseline; gap: 10px; }
.routine__k {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--ink-3);
}
.routine__n {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--line-strong);
  font-variant-numeric: tabular-nums;
  transition: color .3s;
}
.routine.is-current .routine__n { color: var(--blue); }

.routine__picked { display: none; margin-bottom: 6px; }
.routine.is-picked .routine__picked { display: block; }

.routine__title {
  font-size: clamp(22px, 5.6vw, 30px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.routine__title:focus { outline: none; }
.routine__title:focus-visible { outline: 3px solid var(--blue); }

/* 상황 → 방법 → 결과 */
.routine__steps { margin-top: 22px; display: grid; }
.step {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 2px solid var(--blue-soft);
}
.step::before {
  content: "";
  position: absolute;
  left: -6px; top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--blue);
}
.step:last-child { padding-bottom: 0; }
.step dt {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--blue);
}
.step dd { margin-top: 2px; color: var(--ink-2); line-height: 1.65; }
.step--result::before { background: var(--blue); }
.step--result dd { color: var(--ink); font-weight: 600; }

@media (min-width: 768px) {
  .routine {
    grid-template-columns: 140px 1fr;
    gap: 32px;
    padding-block: 60px;
  }
  .routine__num { flex-direction: column; gap: 8px; }
  .routine__n { font-size: 56px; }
  .routine__steps { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .step {
    padding: 18px 20px 0 0;
    border-left: 0;
    border-top: 2px solid var(--blue-soft);
  }
  .step::before { left: 0; top: -6px; }
}

.routine__toggle {
  margin-top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 20px;
  border: 1.5px solid var(--navy);
  border-radius: 999px;
  background: transparent;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
  transition: background-color .2s, color .2s;
}
.routine__toggle:hover { background: var(--blue-soft); }
.routine__toggle[aria-expanded="true"] { background: var(--navy); color: var(--white); }
.routine__toggle-icon {
  position: relative;
  width: 12px; height: 12px;
}
.routine__toggle-icon::before,
.routine__toggle-icon::after {
  content: "";
  position: absolute;
  left: 0; top: 5px;
  width: 12px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s;
}
.routine__toggle-icon::after { transform: rotate(90deg); }
.routine__toggle[aria-expanded="true"] .routine__toggle-icon::after { transform: rotate(0deg); }

/* 프롬프트 펼침 */
.prompt {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows .35s ease, visibility 0s linear .35s;
}
.prompt[data-open="true"] {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows .35s ease, visibility 0s;
}
.prompt__inner { min-height: 0; overflow: hidden; }

.prompt__card {
  margin-top: 20px;
  border: 1px solid rgba(49, 91, 255, .18);
  border-radius: var(--radius);
  background: var(--blue-soft);
}
.prompt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-bottom: 1px dashed rgba(49, 91, 255, .3);
}
.prompt__label { font-size: 13px; font-weight: 800; color: var(--navy); }
.prompt__text {
  padding: 20px 18px 16px;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.prompt__tip {
  padding: 0 18px 18px;
  font-size: 13px;
  color: var(--ink-2);
}
.prompt__tip .slot { font-size: 12px; }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  transition: background-color .2s;
}
.copy-btn::before {
  content: "";
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='12' height='12' rx='2'/%3E%3Cpath d='M5 15V5a2 2 0 0 1 2-2h8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.copy-btn:hover { background: #2448e0; }
.copy-btn.is-copied { background: var(--navy); }
.copy-btn.is-copied::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}

/* ---------- Section 4 : 맡기는 것 / 직접 하는 것 ---------- */
.split { background: var(--white); border-block: 1px solid var(--line); }
.split-grid { display: grid; gap: 16px; }
.split-col { padding: 30px 26px; border-radius: var(--radius); }
.split-col__title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.split-col--ai {
  border: 1.5px dashed var(--line-strong);
  color: var(--ink-2);
}
.split-col--ai .split-col__title { color: var(--ink-2); }
.check-list li {
  position: relative;
  padding: 8px 0 8px 32px;
  font-size: 17px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 14px;
  width: 18px; height: 18px;
  border-radius: 5px;
  background: var(--blue-soft);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 8px; top: 16px;
  width: 5px; height: 10px;
  border: solid var(--blue);
  border-width: 0 2px 2px 0;
  transform: rotate(40deg);
}

.split-col--me { background: var(--navy); color: var(--white); }
.own-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.own-list li {
  font-size: clamp(22px, 6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(transparent 70%, rgba(49, 91, 255, .7) 70%, rgba(49, 91, 255, .7) 88%, transparent 88%);
}

.split-quote {
  margin-top: clamp(48px, 8vw, 72px);
  font-size: clamp(20px, 5.2vw, 30px);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.03em;
  color: var(--navy);
}

@media (min-width: 768px) {
  .split-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .split-col { padding: 40px 40px; }
}

/* ---------- Section 5 : Before / After ---------- */
.ba { display: grid; gap: 28px; align-items: center; }
.ba-tag {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--navy);
}
.ba-tag span { letter-spacing: 0; font-weight: 500; color: var(--ink-3); }

.memo {
  position: relative;
  padding: 26px 24px 24px;
  background:
    repeating-linear-gradient(transparent 0 37px, rgba(22, 33, 62, .08) 37px 38px),
    var(--white);
  background-position: 0 20px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(22, 33, 62, .06), 0 16px 32px -18px rgba(22, 33, 62, .25);
  transform: rotate(-1.2deg);
  font-family: var(--font-pen);
  font-size: 25px;
  line-height: 38px;
  color: var(--ink);
}

.ba-arrow {
  justify-self: center;
  color: var(--blue);
  transform: rotate(90deg);
}

.branch {
  position: relative;
  padding-left: 22px;
  border-left: 2px solid var(--blue);
}
.branch__item {
  position: relative;
  padding: 4px 0 22px;
}
.branch__item:last-child { padding-bottom: 0; }
.branch__item::before {
  content: "";
  position: absolute;
  left: -22px; top: 16px;
  width: 14px;
  border-top: 2px solid var(--blue);
}
.branch__ch {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}
.branch__item > p {
  margin-top: 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--navy);
}
.chips { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

@media (min-width: 880px) {
  .ba { grid-template-columns: 1fr 56px 1.15fr; gap: 32px; }
  .ba-arrow { transform: none; }
}

/* ---------- Section 6 : 에세이 ---------- */
.essay__inner { max-width: 680px; }
.essay__title {
  font-size: clamp(24px, 6vw, 36px);
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -0.035em;
  color: var(--navy);
}
.essay__body {
  margin-top: 40px;
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-2);
}
.essay__body p + p { margin-top: 1.4em; }
.essay__body mark { color: var(--ink); font-weight: 600; }
.essay__sign {
  margin-top: 40px;
  font-family: var(--font-pen);
  font-size: 32px;
  color: var(--blue);
  transform: rotate(-3deg);
  transform-origin: left center;
}
.essay__sign::before { content: "— "; }

@media (min-width: 768px) {
  .essay__inner {
    padding-left: calc(var(--gutter) + 36px);
    background: linear-gradient(rgba(49, 91, 255, .25), rgba(49, 91, 255, .25)) calc(var(--gutter) + 4px) 0 / 1px 100% no-repeat;
  }
}

/* ---------- Last CTA ---------- */
.final {
  padding-block: clamp(88px, 14vw, 150px);
  background: var(--navy);
  color: var(--white);
}
.final__inner { text-align: center; }
.final__title {
  font-size: clamp(27px, 6.6vw, 46px);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -0.04em;
}
.final__sub {
  margin: 22px auto 40px;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, .72);
}
.final__links {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.final :focus-visible { outline-color: var(--white); }

.site-footer {
  padding: 28px 0 calc(96px + env(safe-area-inset-bottom));
  background: var(--navy);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .5);
  font-size: 13px;
  text-align: center;
}

/* ---------- 현재 루틴 표시 ---------- */
.now-reading {
  position: fixed;
  z-index: 30;
  left: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  max-width: calc(100% - 12px - 12px - 52px - 10px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(22, 33, 62, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility 0s linear .25s;
}
.now-reading.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s, transform .25s, visibility 0s;
}
.now-reading__label {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.now-reading__k {
  margin-right: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, .55);
}
.now-reading__dots { display: flex; flex-shrink: 0; }
.dot {
  position: relative;
  width: 20px; height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}
.dot::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .3);
  transform: translate(-50%, -50%);
  transition: background-color .2s, width .2s;
}
.dot[aria-current]::before { width: 16px; border-radius: 4px; background: #8fa7ff; }
.dot:hover::before { background: rgba(255, 255, 255, .7); }
.now-reading :focus-visible { outline-color: var(--white); outline-offset: -2px; }

@media (min-width: 768px) {
  .now-reading {
    left: 50%;
    max-width: 520px;
    transform: translate(-50%, 12px);
  }
  .now-reading.is-show { transform: translate(-50%, 0); }
}

/* ---------- 맨 위로 ---------- */
.to-top {
  position: fixed;
  z-index: 30;
  right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 10px 24px -12px rgba(22, 33, 62, .4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility 0s linear .25s;
}
.to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .25s, transform .25s, visibility 0s;
}
.to-top:hover { color: var(--blue); }

/* ---------- 토스트 ---------- */
.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity .25s, transform .25s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    transition-delay: 0s !important;
    animation: none !important;
  }
}
