/* Baro web pages. DariMoa brand tokens (Design/about-me-design.md):
   ink/paper/indigo/amber. Amber is an accent, never the action colour. */
@font-face { font-family: "Pretendard"; src: url("/static/fonts/pretendard-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
/* DariMoa wordmark only (Design/about-me-design.md): Outfit 700, subset of the six letters D a r i M o. */
@font-face { font-family: "Outfit"; src: url("/static/fonts/outfit-wordmark.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Pretendard KR"; src: url("/static/fonts/pretendard-ko.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+AC00-D7AF, U+1100-11FF, U+3130-318F; }

:root {
  --ink: #15181F; --paper: #F6F6F2; --card: #FFFFFF; --line: #E3E1DA; --line-strong: #CFCDC5; --slate: #6B6E76;
  --indigo: #1E2A5A; --indigo-deep: #141D40; --indigo-wash: #EEF0F7; --indigo-ink: #2B3A7A;
  --amber: #F0A93B; --amber-text: #9C6210; --amber-wash: #FEF5E7;
  --red: #9B2C2C; --red-wash: #FBECEC; --green: #1F6B45; --green-wash: #E8F4EC; --blue-wash: #E8EEF9;
  --radius: 6px; --topbar: 52px; --nav: 232px;
  font-family: "Pretendard", "Pretendard KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 1;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); line-height: 1.5; font-size: 15px; }
a { color: var(--indigo-ink); }
code, .mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.9em; }
.mono { word-break: break-all; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--slate); font-weight: 400; }
.small { font-size: 0.86rem; }
.hint { color: var(--slate); font-size: 0.88rem; margin: 0; }
.fine { color: var(--slate); font-size: 0.85rem; margin-top: auto; }
.fine-block { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.fine-block .fine { margin-top: 0; }
/* DariMoa lockup: company mark + official wordmark. One word, "Moa" carries the amber (brand rule since 2026-08-10). */
.dm-lockup { display: inline-flex; align-items: center; gap: 8px; }
.dm-lockup .dm-mark { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.dm-word { font-family: "Outfit", "Pretendard", sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; line-height: 1; color: var(--ink); }
.dm-word .moa { color: var(--amber-text); }
.auth-intro .dm-word { color: #fff; }
.auth-intro .dm-word .moa { color: var(--amber); }
.auth-intro .dm-lockup .dm-mark { box-shadow: 0 0 0 1.5px rgba(255,255,255,0.32); }
.empty { color: var(--slate); padding: 18px 4px; margin: 0; }

/* Baro wordmark (AP-37, docs/brand/baro-wordmark.svg): "Baro" in Outfit 700 with an amber full stop. */
.wordmark { font-family: "Outfit", "Pretendard", sans-serif; font-weight: 700; font-size: 1.6rem; letter-spacing: -0.02em; text-decoration: none; color: inherit; }
.wordmark .word { white-space: nowrap; padding-bottom: 2px; }
.wordmark .dot { font-style: normal; color: var(--amber); }
.wordmark.small { font-size: 1.15rem; gap: 8px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; }
.wordmark .mark { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.wordmark.small .mark { width: 26px; height: 26px; border-radius: 6px; }
/* The mark's navy square is the same navy as the auth panel and close to the top bar: a faint ring keeps its edge. */
.auth-intro .wordmark .mark, .topbar .wordmark .mark { box-shadow: 0 0 0 1.5px rgba(255,255,255,0.32); }

/* ----- buttons, inputs ----- */
.btn { font: inherit; font-weight: 600; font-size: 0.92rem; padding: 8px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: #fff; color: var(--ink); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--indigo); }
.btn.primary { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn.primary:hover { background: var(--indigo-deep); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--slate); }
.btn.small { padding: 6px 12px; font-size: 0.86rem; }
.btn.tiny { padding: 3px 9px; font-size: 0.8rem; font-weight: 500; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.icon-btn { font: inherit; background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: inherit; display: none; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 0.88rem; font-weight: 600; }
input, select, textarea { font: inherit; font-size: 0.95rem; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--indigo); outline-offset: 1px; }
input[type="file"] { padding: 5px; }
.inline-select { padding: 3px 6px; font-size: 0.85rem; }

/* ----- chips, messages ----- */
.chip, .badge { display: inline-block; font-size: 0.76rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--indigo-wash); color: var(--indigo-ink); white-space: nowrap; }
.chip.ok { background: var(--green-wash); color: var(--green); }
.chip.warn, .badge.warn { background: var(--amber-wash); color: var(--amber-text); }
.btn.warn { background: var(--amber-wash); color: var(--amber-text); border-color: var(--amber-text); }
.chip.bad { background: var(--red-wash); color: var(--red); }
.chip.info { background: var(--blue-wash); color: var(--indigo-ink); }
.chip.muted { background: #EEEDE8; color: var(--slate); }
.message { min-height: 1.4em; margin: 0; font-size: 0.93rem; }
.message.error { color: var(--red); }
.message.ok { color: var(--green); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; }
.toast.error { background: var(--red); }
/* The toast is also .message, whose .error/.ok rules colour the text red/green -- on a red or ink
   background that made the warning unreadable (seen 2026-10-20: a blank red bar). Toast text is always white. */
.toast.error, .toast.ok { color: #fff; }
.disclaimer { font-size: 0.84rem; color: var(--slate); border-top: 1px solid var(--line); padding-top: 10px; }

/* ----- auth layout: statement left, form right ----- */
.auth-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px); min-height: 100vh; }
.auth-intro { background: var(--indigo); color: #F4F5FA; padding: 48px 56px; display: flex; flex-direction: column; gap: 28px; }
.auth-intro .wordmark { color: #fff; }
.auth-intro h1 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 8px 0 0; max-width: 18ch; }
.auth-intro .lede { font-size: 1.05rem; max-width: 52ch; margin: 0; color: #DDE0EE; }
.facts { display: grid; gap: 16px; margin: 8px 0 0; max-width: 56ch; }
.facts div { border-top: 1px solid rgba(255,255,255,0.18); padding-top: 12px; }
.facts dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber); }
.facts dd { margin: 4px 0 0; color: #E7E9F3; }
.auth-intro .fine { color: #AEB4CC; }
.auth-card { padding: 48px 40px; display: flex; flex-direction: column; gap: 20px; background: var(--card); border-left: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; padding: 10px 14px; font: inherit; font-weight: 600; color: var(--slate); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--indigo); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.providers { display: flex; flex-direction: column; gap: 10px; }
.providers .provider { text-align: left; }
.rule { display: flex; align-items: center; gap: 12px; color: var(--slate); font-size: 0.85rem; }
.rule::before, .rule::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.narrow { max-width: 520px; margin: 10vh auto; padding: 0 24px; display: flex; flex-direction: column; gap: 16px; }

/* ----- app shell: top bar + side navigation + view ----- */
.shell { background: var(--paper); }
.topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar); display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; background: var(--indigo-deep); color: #F4F5FA; }
.topbar a { color: inherit; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar .firm { color: #C9CEE3; font-size: 0.92rem; border-left: 1px solid rgba(255,255,255,0.18); padding-left: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .muted { color: #B9BFD8; font-size: 0.88rem; white-space: nowrap; }
.topbar .btn.primary { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.topbar .btn.primary:hover { background: #E79C2A; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-weight: 600; font-size: 0.92rem; padding: 6px 10px; border-radius: var(--radius); white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; color: #B9BFD8; }
.menu[open] summary { background: rgba(255,255,255,0.08); }
.menu-list { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(20,29,64,0.12); padding: 6px; display: flex; flex-direction: column; }
.menu-list a, .menu-list button { font: inherit; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 4px; color: var(--ink); text-decoration: none; cursor: pointer; font-size: 0.92rem; }
.menu-list a:hover, .menu-list button:hover { background: var(--indigo-wash); }

.layout { display: grid; grid-template-columns: var(--nav) minmax(0, 1fr); min-height: calc(100vh - var(--topbar)); }
.sidenav { background: #fff; border-right: 1px solid var(--line); padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: var(--topbar); height: calc(100vh - var(--topbar)); overflow: auto; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); padding: 0 10px 6px; }
.sidenav a { display: block; padding: 8px 10px; border-radius: 5px; color: var(--ink); text-decoration: none; font-size: 0.93rem; font-weight: 500; }
.sidenav a:hover { background: var(--paper); }
.sidenav a.active { background: var(--indigo-wash); color: var(--indigo-ink); font-weight: 600; box-shadow: inset 3px 0 0 var(--indigo); }
.nav-foot { margin-top: auto; font-size: 0.8rem; color: var(--slate); padding: 0 10px; }

.view { padding: 26px 32px 60px; max-width: 1240px; width: 100%; }
.page-head { margin-bottom: 18px; }
.page-head h1 { margin: 0; font-size: 1.45rem; letter-spacing: -0.01em; }
.page-head .lede { margin: 6px 0 0; color: var(--slate); max-width: 80ch; }
.page-body { display: flex; flex-direction: column; gap: 18px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card h2 { margin: 0; font-size: 1.02rem; }
.card h3 { margin: 10px 0 4px; font-size: 0.95rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpis.small { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi-value { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.kpi-label { color: var(--slate); font-size: 0.84rem; margin-top: 4px; }
.kpi-sub { color: var(--slate); font-size: 0.8rem; margin-top: 6px; }

table.data { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 0.92rem; }
table.data th { text-align: left; font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); background: #FAFAF8; padding: 10px 12px; border-bottom: 1px solid var(--line); font-weight: 600; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #FBFBF9; }
table.data td.actions { white-space: nowrap; text-align: right; }
/* A wide table scrolls inside its card instead of spilling out of it; figures, dates, references and short
   links stay on one line, and a long source line keeps enough width to read (2026-11-02). */
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap > table.data { min-width: 100%; }
.nowrap { white-space: nowrap; }
table.data td.src { min-width: 16em; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.md { border-collapse: collapse; font-size: 0.9rem; margin: 8px 0; }
table.md td { border: 1px solid var(--line); padding: 5px 9px; }
table.md tr:first-child td { background: #FAFAF8; font-weight: 600; }

.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; align-items: end; }
.grid-form .form-actions, .grid-form .hint { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; gap: 12px; }
.inline { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.picker { max-width: 520px; margin-bottom: 4px; }
.searchbar { display: flex; gap: 8px; }
.searchbar input { flex: 1; }
.linkbox { background: var(--indigo-wash); border-radius: var(--radius); padding: 10px 12px; margin: 0; font-size: 0.9rem; word-break: break-all; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose h2, .prose h3, .prose h4 { margin: 14px 0 6px; }
.prose p { margin: 6px 0; }
ul.plain { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
ul.plain ul { margin: 4px 0 0 14px; padding: 0; list-style: none; }

@media (max-width: 960px) {
  .auth-grid { grid-template-columns: 1fr; }
  .auth-intro { padding: 32px 24px; }
  .auth-card { border-left: 0; border-top: 1px solid var(--line); padding: 32px 24px; }
  .layout { grid-template-columns: 1fr; }
  .icon-btn { display: inline-block; }
  .sidenav { position: fixed; left: 0; top: var(--topbar); width: var(--nav); transform: translateX(-100%); transition: transform .18s; z-index: 15; box-shadow: 0 10px 30px rgba(20,29,64,0.15); }
  .sidenav.open { transform: none; }
  .view { padding: 18px 16px 48px; }
  .topbar .firm, .topbar .muted { display: none; }
}

/* ----- language switch (i18n) ----- */
.intro-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lang { display: inline-flex; align-items: center; font-weight: 500; }
.lang-switch { font: inherit; font-size: 0.85rem; padding: 4px 8px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.35); background: rgba(255,255,255,0.08); color: #F4F5FA; cursor: pointer; }
.lang-switch option { color: var(--ink); }
.auth-card .lang-switch { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.topbar .lang-switch.compact { padding: 3px 6px; font-size: 0.8rem; }
/* Korean typography: keep words whole, let the headline breathe */
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
/* Numbers never split mid-figure (AP-91): "anywhere" let Korean tables squeeze amount columns
   until "$1,650,000" broke into three lines. Table cells and KPI figures wrap like English. */
html[lang="ko"] td, html[lang="ko"] th, html[lang="ko"] .kpi-value { overflow-wrap: normal; }
td.num, th.num, .kpi-value { white-space: nowrap; }
html[lang="ko"] .auth-intro h1 { max-width: 24ch; font-size: clamp(1.7rem, 2.9vw, 2.3rem); }

/* ----- public home page (AP-37) ----- */
.home { background: var(--paper); font-size: 16px; }
.home .wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.home h1, .home h2, .home h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
.home h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.home h3 { font-size: 1.08rem; margin-bottom: 6px; }
.home p { margin: 0; }
.home .hint { font-size: 0.9rem; }
.home .btn { text-decoration: none; display: inline-flex; align-items: center; }
.home .btn.large { padding: 11px 20px; font-size: 1rem; }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Baro lockup: the mark + "Baro" in Outfit 700 with an amber full stop (docs/brand/baro-wordmark.svg is the same drawing as paths). */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.lockup .mark { width: 34px; height: 34px; border-radius: 8px; flex: none; }
.lockup .word { font-family: "Outfit", "Pretendard", sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1; padding-bottom: 2px; white-space: nowrap; }
.lockup .word .dot { font-style: normal; color: var(--amber); }

.site-head { position: sticky; top: 0; z-index: 20; background: rgba(246,246,242,0.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--slate); text-decoration: none; font-weight: 500; font-size: 0.95rem; padding: 4px 0; }
.site-nav a:hover { color: var(--ink); }
.site-actions { display: flex; align-items: center; gap: 8px; }
.site-actions .lang-switch { border-color: var(--line-strong); background: #fff; color: var(--ink); }

.hero { padding: 64px 0 72px; position: relative; overflow: hidden; --mx: 0; --my: 0; }
.hero-grid { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--amber-text); font-weight: 600; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.3rem); max-width: 16ch; letter-spacing: -0.03em; line-height: 1.08; }
.hero .lede { font-size: 1.1rem; color: #3C4049; max-width: 54ch; }

/* The tie-out figure: a sentence from the draft and the arithmetic behind each figure. */
.tieout { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 1px 0 rgba(21,24,31,0.03), 0 18px 40px -28px rgba(20,29,64,0.35); }
.tieout-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--slate); font-weight: 600; }
.draft-line { font-size: 1.02rem; line-height: 1.55; border-left: 3px solid var(--indigo); padding-left: 14px; }
.draft-line mark { background: var(--amber-wash); color: var(--ink); padding: 0 3px; border-radius: 3px; box-shadow: inset 0 -2px 0 var(--amber); font-variant-numeric: tabular-nums; }
.ties { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.ties th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); font-weight: 600; padding: 4px 6px 6px 0; border-bottom: 1px solid var(--line); }
.ties td { padding: 7px 6px 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ties tr:last-child td { border-bottom: 0; }
.ties td:first-child { white-space: nowrap; font-weight: 600; width: 1%; padding-right: 16px; }
.ties td:last-child { text-align: right; width: 1%; }
.ties .mono { font-size: 0.86rem; word-break: normal; }
.tieout-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--slate); font-weight: 600; margin-top: 2px; }
.tieout-label + .ties { margin-top: -8px; }
.tieout-foot { font-size: 0.8rem; color: var(--slate); }

.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 60ch; margin-bottom: 36px; }
.section-head p { color: #3C4049; }

.how { padding: 72px 0; border-top: 1px solid var(--line); background: #fff; }
.steps-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps-row li { border-top: 2px solid var(--ink); padding-top: 14px; display: flex; flex-direction: column; }
.step-no { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.8rem; color: var(--amber-text); margin-bottom: 10px; }
.steps-row p { font-size: 0.95rem; color: #3C4049; }

.modules { padding: 72px 0; border-top: 1px solid var(--line); }
.modules-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.modules .section-head { margin-bottom: 0; }
.modules-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.modules-table th, .modules-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-size: 0.95rem; }
.modules-table tr:last-child th, .modules-table tr:last-child td { border-bottom: 0; }
.modules-table th { width: 30%; font-weight: 600; background: #FAFAF8; }
.modules-table td { color: #3C4049; }

.status { padding: 72px 0; background: var(--indigo); color: #F4F5FA; }
.status h2 { margin-bottom: 28px; color: #fff; }
.facts.wide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; max-width: none; }
.facts.wide div { border-top-color: rgba(255,255,255,0.22); }

.closing { padding: 72px 0; }
.closing-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.closing-row > div:first-child { display: flex; flex-direction: column; gap: 10px; max-width: 56ch; }
.closing-row p { color: #3C4049; }

.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { display: flex; flex-direction: column; gap: 8px; }
.foot-brand .fine { margin: 0; }
.foot-links { display: flex; align-items: center; gap: 18px; font-size: 0.9rem; }
.foot-links a { color: var(--slate); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 1100px) {
  .modules-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 960px) {
  .site-nav { display: none; }
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .modules-table th { width: 36%; }
  .facts.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how, .modules, .status, .closing { padding: 52px 0; }
}
@media (max-width: 600px) {
  .site-head-row { height: 60px; gap: 10px; }
  .lockup .mark { width: 28px; height: 28px; border-radius: 7px; }
  .lockup .word { font-size: 1.3rem; }
  .site-actions { gap: 6px; }
  .site-actions .btn.ghost { display: none; }
  .site-actions .btn.primary { padding: 7px 11px; font-size: 0.86rem; }
  .hero h1 { max-width: none; }
  .steps-row, .facts.wide { grid-template-columns: 1fr; }
  .tieout { padding: 16px; }
  .ties td:first-child { padding-right: 10px; }
}
html[lang="ko"] .hero h1 { max-width: 18ch; letter-spacing: -0.035em; font-size: clamp(1.9rem, 3.6vw, 3rem); }
html[lang="ko"] .eyebrow { letter-spacing: 0; text-transform: none; }
html[lang="ko"] .tieout-head, html[lang="ko"] .tieout-label, html[lang="ko"] .ties th { letter-spacing: 0; text-transform: none; }

/* ----- provider buttons (Google / Microsoft) ----- */
.btn.provider { display: flex; align-items: center; gap: 10px; }
.btn.provider .glyph { display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center; flex: 0 0 18px; }
.glyph-google { font-weight: 800; font-family: "Pretendard", system-ui, sans-serif; color: #4285F4; font-size: 1rem; }
.glyph-ms { display: inline-grid !important; grid-template-columns: 1fr 1fr; gap: 2px; }
.glyph-ms i { display: block; width: 7px; height: 7px; }
.glyph-ms i:nth-child(1) { background: #F25022; } .glyph-ms i:nth-child(2) { background: #7FBA00; }
.glyph-ms i:nth-child(3) { background: #00A4EF; } .glyph-ms i:nth-child(4) { background: #FFB900; }
.btn.provider .soon { margin-left: auto; font-size: 0.72rem; font-weight: 600; color: var(--amber-text); background: var(--amber-wash); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.btn.provider.unavailable { color: var(--slate); }
.btn.provider.unavailable .glyph { filter: grayscale(1); opacity: 0.7; }

/* ----- plan bundles (AP-39): locked sections in the nav, upgrade card ----- */
.sidenav a.locked { color: var(--slate); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sidenav a.locked::after { content: attr(data-lock); font-size: 0.66rem; font-weight: 600; color: var(--amber-text); background: var(--amber-wash); padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.card.upgrade { border-color: var(--amber); }

/* ----- home page motion (AP-40): background layers, the hero scene, drawn step art, reveals ----- */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ledger-rules { position: absolute; inset: -10% 0; width: 100%; height: 120%; }
.sheet { position: absolute; width: 150px; height: auto; filter: drop-shadow(0 14px 30px rgba(20,29,64,0.10)); will-change: transform; transition: translate .6s cubic-bezier(.2,.7,.2,1); }
.sheet.s1 { right: 4%; top: 6%; transform: rotate(-6deg); }
.sheet.s2 { right: 34%; bottom: 4%; width: 120px; transform: rotate(5deg); opacity: 0.8; }
.sheet.s3 { left: 46%; top: 2%; width: 100px; transform: rotate(9deg); opacity: 0.7; }
.motion .sheet { animation: drift 14s ease-in-out infinite; }
.motion .sheet.s1 { animation-duration: 16s; translate: calc(var(--mx) * -18px) calc(var(--my) * -12px); }
.motion .sheet.s2 { animation-duration: 19s; animation-delay: -6s; translate: calc(var(--mx) * 12px) calc(var(--my) * 10px); }
.motion .sheet.s3 { animation-duration: 22s; animation-delay: -11s; translate: calc(var(--mx) * -8px) calc(var(--my) * 16px); }
@keyframes drift { 0%, 100% { margin-top: 0; } 50% { margin-top: -18px; } }
@media (max-width: 960px) { .sheet.s2, .sheet.s3 { display: none; } .sheet.s1 { width: 90px; right: 2%; top: 2%; opacity: 0.6; } }

/* the scene */
.scene { position: relative; overflow: hidden; }
.tb-panel { background: #FAFAF8; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px 8px; }
.tb-panel .tieout-label { margin: 0 0 6px; display: flex; justify-content: space-between; gap: 10px; }
.tb-panel .file { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--slate); }
.tb { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.tb th { text-align: left; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); font-weight: 600; padding: 2px 6px 4px 0; border-bottom: 1px solid var(--line); }
.tb th.num { text-align: right; }
.tb td { padding: 5px 6px 5px 0; border-bottom: 1px dashed var(--line); transition: background .3s, color .3s; }
.tb .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tb tr.sum td { border-bottom: 0; border-top: 1px solid var(--ink); font-weight: 700; padding-top: 7px; }
.tb tr.lit-cur td.cur, .tb tr.lit-prior td.prior { background: var(--amber-wash); color: var(--amber-text); }
.tb tr.sum.lit-cur td.cur, .tb tr.sum.lit-prior td.prior { background: var(--indigo); color: #fff; }
.scene.animated .draft-line mark { min-width: 5.5ch; display: inline-block; text-align: center; color: var(--slate); background: #F3F2EE; box-shadow: inset 0 -2px 0 var(--line-strong); transition: background .35s, color .35s, box-shadow .35s; }
.scene.animated .draft-line mark.lit { color: var(--ink); background: var(--amber-wash); box-shadow: inset 0 -2px 0 var(--amber); }
.scene.animated .draft-line mark.pulse { animation: pulse .55s ease-in-out; background: var(--indigo-wash); box-shadow: inset 0 -2px 0 var(--indigo); }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.scene.animated .ties tr[data-fig] { opacity: 0.28; transition: opacity .4s; }
.scene.animated .ties tr[data-fig].lit { opacity: 1; }
.scene.animated .ties tr[data-fig] .chip { transform: scale(0.6); opacity: 0; transition: transform .35s cubic-bezier(.3,1.6,.5,1), opacity .25s; display: inline-block; }
.scene.animated .ties tr[data-fig].lit .chip { transform: scale(1); opacity: 1; }
.fly { position: absolute; z-index: 5; font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; font-size: 0.86rem; color: #fff; background: var(--indigo); padding: 1px 6px; border-radius: 4px; pointer-events: none; white-space: nowrap; box-shadow: 0 8px 20px rgba(20,29,64,0.25); }

/* step art: strokes draw themselves, chips and bars pop in when the <li> scrolls into view */
.step-art { width: 100%; max-width: 220px; height: auto; margin-bottom: 14px; display: block; }
.band-mark { position: absolute; right: -40px; top: 40px; width: 420px; pointer-events: none; }
.how, .status, .closing { position: relative; overflow: hidden; }
.how .wrap, .status .wrap, .closing .wrap { position: relative; z-index: 1; }
.status-bg { position: absolute; inset: -12% 0; width: 100%; height: 124%; pointer-events: none; }
.closing { padding-bottom: 150px; }
.closing-art { position: absolute; left: 50%; bottom: 0; width: min(1120px, 100%); height: auto; transform: translateX(-50%); pointer-events: none; }
.motion .draw .d { stroke-dasharray: 600; stroke-dashoffset: 600; }
.motion .draw.in .d { animation: drawline 1.1s cubic-bezier(.4,0,.2,1) forwards; }
.motion .draw.in .d2 { animation-delay: .15s; } .motion .draw.in .d3 { animation-delay: .3s; } .motion .draw.in .d4 { animation-delay: .45s; } .motion .draw.in .d5 { animation-delay: .6s; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.motion .draw .pop { opacity: 0; transform: translateY(6px) scale(.92); transform-origin: center; transform-box: fill-box; }
.motion .draw.in .pop { animation: popin .45s cubic-bezier(.3,1.5,.5,1) forwards; }
.motion .draw.in .p1 { animation-delay: .8s; } .motion .draw.in .p2 { animation-delay: .95s; } .motion .draw.in .p3 { animation-delay: 1.1s; }
@keyframes popin { to { opacity: 1; transform: none; } }
.motion .draw .grow { transform: scaleY(0); transform-origin: bottom; transform-box: fill-box; }
.motion .draw.in .grow { animation: growup .7s cubic-bezier(.2,.8,.2,1) forwards; }
.motion .draw.in .g2 { animation-delay: .15s; } .motion .draw.in .g3 { animation-delay: .3s; } .motion .draw.in .g4 { animation-delay: .45s; }
@keyframes growup { to { transform: scaleY(1); } }
.motion .closing-art .d { stroke-dasharray: 1200; stroke-dashoffset: 1200; }
.motion .closing-art.in .d { animation-duration: 1.6s; }

/* reveal on scroll */
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.motion .reveal.in { opacity: 1; transform: none; }
.motion .closing-art.reveal { transform: translateX(-50%) translateY(18px); }
.motion .closing-art.reveal.in { transform: translateX(-50%); }
.motion .steps-row li:nth-child(2) { transition-delay: .1s; } .motion .steps-row li:nth-child(3) { transition-delay: .2s; } .motion .steps-row li:nth-child(4) { transition-delay: .3s; }
.motion .facts.wide div:nth-child(2) { transition-delay: .08s; } .motion .facts.wide div:nth-child(3) { transition-delay: .16s; }
.motion .facts.wide div:nth-child(4) { transition-delay: .24s; } .motion .facts.wide div:nth-child(5) { transition-delay: .32s; } .motion .facts.wide div:nth-child(6) { transition-delay: .4s; }
.motion .hero .scene.reveal { transition-delay: .2s; }
[data-parallax] { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .sheet, .reveal, .draw .d, .draw .pop, .draw .grow { animation: none !important; transition: none !important; }
  [data-parallax] { transform: none !important; }
}

/* ----- AP-44: app shell look — rounder, tinted, less white (Philip, 2026-10-20) -----
   Scoped to body.shell: the public home page and the sign-in page keep their own look.
   Brand radius is 14px (Design/about-me-design.md); amber stays an accent, indigo the action colour. */
.shell { --paper: #EDF0F7; --card: #FFFFFF; --line: #DFE3EE; --line-strong: #C9CFE0; --radius: 11px; --radius-lg: 16px; --field: #F8F9FD; }
.shell .view { padding: 28px 36px 64px; }
.shell .page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.shell .page-head h1 { font-size: 1.55rem; letter-spacing: -0.02em; }
.shell .page-actions { display: flex; gap: 8px; flex: none; padding-top: 4px; }
.shell .page-body { gap: 20px; }
.shell .card { border-radius: var(--radius-lg); border-color: var(--line); padding: 22px 24px; gap: 14px; box-shadow: 0 1px 2px rgba(20,29,64,0.04), 0 10px 28px rgba(20,29,64,0.06); }
.shell .card-head h2 { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.shell .card-head h2::before { content: ""; width: 4px; height: 1.05em; border-radius: 3px; background: var(--amber); flex: none; }
.shell .card.callout { background: var(--indigo-wash); border-color: #D3D9EC; box-shadow: none; }
.shell .card.callout .card-head h2::before { background: var(--indigo); }
.shell .card.upgrade { background: var(--amber-wash); border-color: #F2DDB3; box-shadow: none; }
.shell .kpis { gap: 14px; }
.shell .kpi { border: 0; border-radius: var(--radius-lg); padding: 16px 18px; background: #fff; box-shadow: 0 1px 2px rgba(20,29,64,0.04), 0 6px 18px rgba(20,29,64,0.05); border-top: 4px solid var(--indigo); }
.shell .kpi:nth-child(2) { border-top-color: #5B6BB5; }
.shell .kpi:nth-child(3) { border-top-color: var(--amber); }
.shell .kpi:nth-child(4) { border-top-color: #3C8C62; }
.shell .kpi:nth-child(5) { border-top-color: var(--indigo-deep); }
.shell .kpi-value { color: var(--indigo-ink); font-size: 1.7rem; }
.kpi.kpi-text .kpi-value, .shell .kpi.kpi-text .kpi-value { font-size: 1.05rem; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.shell .btn { border-radius: var(--radius); padding: 9px 16px; }
.shell .btn.primary { box-shadow: 0 2px 6px rgba(30,42,90,0.25); }
.shell .btn.tiny { padding: 4px 11px; border-radius: 8px; }
.shell .btn.small { padding: 6px 13px; }
/* Row links and the Edit button in the client / engagement tables (AP-154): room between them */
.row-actions { text-align: right; }
.row-actions .btn { margin: 4px 0 4px 16px; vertical-align: middle; }
.row-actions .sep { margin: 0 6px; color: var(--slate); }
.shell input, .shell select, .shell textarea { border-radius: 10px; background: var(--field); padding: 9px 12px; }
.shell input:focus, .shell select:focus, .shell textarea:focus { background: #fff; outline-color: var(--indigo); box-shadow: 0 0 0 4px rgba(30,42,90,0.10); }
.shell table.data { border-radius: 12px; }
.shell table.data th { background: #F3F5FB; color: #4A5170; }
.shell table.data tbody tr:hover { background: #F7F8FC; }
.shell .sidenav { background: #F7F8FC; border-right-color: var(--line); padding: 20px 14px; }
.shell .sidenav a { border-radius: 10px; padding: 9px 12px; }
.shell .sidenav a:hover { background: #fff; }
.shell .sidenav a.active { background: var(--indigo); color: #fff; box-shadow: 0 4px 12px rgba(30,42,90,0.22); }
.shell .sidenav a.locked::after { background: #fff; }
.shell .sidenav a.active.locked::after { background: rgba(255,255,255,0.18); color: #fff; }
.shell .topbar { box-shadow: 0 2px 12px rgba(20,29,64,0.25); }
.shell .linkbox, .shell .chip, .shell .badge { border-radius: 10px; }
.shell .chip, .shell .badge { border-radius: 999px; }
.shell .menu-list { border-radius: 12px; }
.shell .toast { border-radius: 12px; }
/* overview: main column + side column (recent packs, advisor) */
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
.overview-main, .overview-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.pipeline { margin: 4px 0 0; padding: 16px 18px 16px 40px; background: #F3F5FB; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; counter-reset: stage; font-size: 0.93rem; }
.pipeline li { position: relative; }
.pipeline li::marker { color: var(--indigo); font-weight: 700; }
.recent { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.recent li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.recent li:last-child { border-bottom: 0; }
@media (max-width: 1100px) { .overview-grid { grid-template-columns: 1fr; } }
.shell .topbar .lang-switch { background: rgba(255,255,255,0.08); color: #F4F5FA; border-radius: 8px; padding: 3px 6px; }
.shell .topbar .lang-switch option { color: var(--ink); background: #fff; }

/* ----- multi-page site (AP-41): navigation state, page heroes, index, module list, sample pack ----- */
body[data-page="how"] .site-nav a[data-nav="how"], body[data-page="modules"] .site-nav a[data-nav="modules"],
body[data-page="sample"] .site-nav a[data-nav="sample"], body[data-page="pricing"] .site-nav a[data-nav="pricing"], body[data-page="about"] .site-nav a[data-nav="about"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); }
.nav-toggle { display: none; width: 38px; height: 34px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: #fff; cursor: pointer; padding: 7px 9px; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 1px; }
.site-nav-mobile { display: flex; flex-direction: column; border-top: 1px solid var(--line); background: #fff; padding: 6px 24px 10px; }
.site-nav-mobile a { padding: 10px 0; text-decoration: none; color: var(--ink); font-weight: 500; border-bottom: 1px solid var(--line); }
.site-nav-mobile a:last-child { border-bottom: 0; }
body[data-page="how"] .site-nav-mobile a[data-nav="how"], body[data-page="modules"] .site-nav-mobile a[data-nav="modules"],
body[data-page="sample"] .site-nav-mobile a[data-nav="sample"], body[data-page="pricing"] .site-nav-mobile a[data-nav="pricing"], body[data-page="about"] .site-nav-mobile a[data-nav="about"] { color: var(--amber-text); }
@media (max-width: 960px) { .nav-toggle { display: flex; } }

.page-hero { padding: 56px 0 40px; }
.page-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); max-width: 24ch; letter-spacing: -0.03em; line-height: 1.1; margin-top: 10px; }
.page-hero .lede { font-size: 1.08rem; color: #3C4049; max-width: 62ch; margin-top: 18px; }
.two-col { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.two-col .section-head { margin-bottom: 0; }

/* home index of pages */
/* ----- feature films (AP-96): nine 21-second films (Marketing/10-21-2026_Baro_기능영상_쇼츠, 1:1 cut at 720px).
   One row that scrolls sideways and snaps, like the Moa page's reel: nine squares read as a reel, and the
   row keeps the home page short. Each plays muted only while on screen; a click opens the file, with sound. */
.films-band { padding: 64px 0 56px; border-top: 1px solid var(--line); }
.films { list-style: none; margin: 0; padding: 0 0 14px; display: grid; grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 30%); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.film { scroll-snap-align: start; }
.film-open { display: block; position: relative; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 1; border: 1px solid var(--line); border-radius: 10px; background: var(--indigo-deep); }
.film-open:hover video, .film-open:focus-visible video { border-color: var(--indigo); }
.film-t { margin: 14px 0 0; font-weight: 600; font-size: 1rem; color: var(--ink); }
.film-t .mono { color: var(--slate); font-size: 0.8rem; margin-right: 10px; }
.film-d { margin: 6px 0 0; font-size: 0.92rem; color: #3C4049; line-height: 1.55; }
@media (max-width: 760px) { .films { grid-auto-columns: 78%; } .films-band { padding: 48px 0 40px; } }
/* Free template cards, shared by /resources and the home page (AP-174). */
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.res-card { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.res-card:focus-visible { border-color: var(--line-strong); box-shadow: inset 3px 0 0 var(--amber); }
@media (hover: hover) { .res-card:hover { border-color: var(--line-strong); box-shadow: inset 3px 0 0 var(--amber); } }
.res-card .num { font: 700 .78rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .14em; color: var(--amber-text); }
.res-card h2, .res-card h3 { font-size: 1.25rem; letter-spacing: -.02em; margin: 0; }
.res-card .pain { margin: 0; color: var(--slate); }
.res-card p { margin: 0; }
.res-card .meta { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font: 600 .78rem/1.2 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .04em; color: var(--slate); }
.res-card .tag { padding: 4px 8px; border-radius: 999px; background: var(--indigo-wash); color: var(--indigo); }
/* Hangul in the mono stack falls back to a wide font: plain face, no tracking. */
:lang(ko) .res-card .meta { font-family: inherit; letter-spacing: 0; }
.free-band { padding: 64px 0; border-top: 1px solid var(--line); }
.free-more { margin: 24px 0 0; font-weight: 600; }
.free-more a { color: var(--indigo-ink); }
.index { padding: 64px 0; border-top: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.index .wrap { position: relative; z-index: 1; }
.index-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.index-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.index-list .step-no { margin: 0; }
.index-list h3 { font-size: 1.12rem; margin: 0 0 4px; }
.index-list h3 a { color: var(--ink); text-decoration: none; }
.index-list h3 a:hover { color: var(--indigo-ink); }
.index-list p { color: #3C4049; font-size: 0.95rem; }
.index-go { font-size: 1.3rem; color: var(--slate); text-decoration: none; text-align: right; transition: transform .25s, color .25s; }
.index-list li:hover .index-go { transform: translateX(4px); color: var(--ink); }
.strip { border-top: 1px solid var(--line); background: var(--indigo); color: #E7E9F3; padding: 18px 0; }
.strip-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.strip strong { color: var(--amber); }
.strip a { color: #fff; }

/* how it works: tall steps */
.steps-tall { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.steps-tall li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: 40px 0; border-top: 1px solid var(--line); }
.steps-tall li:nth-child(even) .step-art { order: 2; }
.steps-tall .step-art { max-width: 360px; margin: 0 auto; }
.steps-tall h2 { font-size: 1.45rem; margin: 6px 0 10px; }
.steps-tall p { color: #3C4049; }
.leaves { margin-top: 12px !important; font-size: 0.92rem; }
.leaves > span:first-child { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--amber-text); font-weight: 600; margin-bottom: 2px; }
html[lang="ko"] .leaves > span:first-child { letter-spacing: 0; text-transform: none; }
.pack-contents, .formats, .maker { padding: 64px 0; border-top: 1px solid var(--line); }
.pack-contents { background: #fff; }
.format-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; border-top: 2px solid var(--ink); }
.format-list li { padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }

/* modules page */
.module-list { padding: 24px 0 64px; position: relative; overflow: hidden; }
.module-list .wrap { position: relative; z-index: 1; }
.module { border-top: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 76ch; }
.module:first-child { border-top: 2px solid var(--ink); }
.module-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.module-head .step-no { margin: 0; }
.module-head h2 { font-size: 1.3rem; }
.module p { color: #3C4049; }
.module .leaves a { margin-left: 6px; }

/* sample pack */
.pack-section { padding: 24px 0 72px; }
.pack-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; }
.pack-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 10px; }
.pack-aside .tieout-label { margin-top: 8px; }
.pack-aside .chip { align-self: flex-start; margin-top: 6px; }
.pack { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 36px 40px; font-size: 0.95rem; line-height: 1.6; box-shadow: 0 18px 40px -30px rgba(20,29,64,0.3); }
.pack h2 { font-size: 1.25rem; margin: 28px 0 10px; letter-spacing: -0.01em; }
.pack h2:first-child { margin-top: 0; }
.pack h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.pack h4 { font-size: 0.95rem; margin: 16px 0 6px; color: var(--indigo-ink); }
.pack p { margin: 8px 0; }
.pack hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.pack ol, .pack ul { margin: 8px 0; padding-left: 22px; }
.pack li { margin: 4px 0; }
.pack code { background: var(--indigo-wash); padding: 1px 5px; border-radius: 3px; }
.pack-table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: 0.88rem; }
.pack-table th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); padding: 6px 8px; border-bottom: 1px solid var(--ink); }
.pack-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pack-table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pack-table tr:last-child td { border-bottom: 0; }
.pack-log { list-style: none; padding: 14px 16px !important; background: #FAFAF8; border: 1px solid var(--line); border-radius: 8px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.contact-mail { font-size: 1.25rem; font-weight: 600; text-decoration: none; }

@media (max-width: 960px) {
  .two-col, .pack-grid { grid-template-columns: 1fr; gap: 28px; }
  .pack-aside { position: static; }
  .steps-tall li { grid-template-columns: 1fr; gap: 20px; padding: 28px 0; }
  .steps-tall li:nth-child(even) .step-art { order: 0; }
  .steps-tall .step-art { max-width: 260px; margin: 0; }
  .pack { padding: 22px 18px; }
  .pack-table { display: block; overflow-x: auto; }
  .page-hero { padding: 36px 0 24px; }
  .pack-contents, .formats, .maker, .index { padding: 48px 0; }
}
@media (max-width: 600px) { .index-list li { grid-template-columns: 36px minmax(0, 1fr); } .index-go { display: none; } .format-list { grid-template-columns: 1fr; } }
/* inner pages: no stray band decoration behind the page hero; shorter reveals on long content */
body:not([data-page="home"]) .band-mark { display: none; }
.motion .page-hero .reveal { transition-duration: .45s; }

/* ----- footnote form (F7) ----- */
.fn-section { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; margin: 6px 0; background: var(--field, #fff); }
.fn-section summary { cursor: pointer; font-weight: 600; list-style: none; }
.fn-section summary::-webkit-details-marker { display: none; }
.fn-section[open] summary { margin-bottom: 10px; }
.fn-section .grid-form { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fn-line { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 8px; margin-top: 6px; }
.fn-errors { margin: 8px 0 0; padding-left: 20px; }

/* ----- pricing page (AP-62) ----- */
.plans { padding: 8px 0 56px; }
.prices-pending { display: none; margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--amber); background: var(--amber-wash); border-radius: var(--radius); color: var(--amber-text); font-weight: 500; }
.plans[data-prices="pending"] .prices-pending { display: block; }
.plan-table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.plan-table th, .plan-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 0.95rem; }
.plan-table thead th { background: #FAFAF8; border-bottom: 2px solid var(--ink); }
.plan-table tbody th { font-weight: 600; color: var(--slate); width: 18%; font-size: 0.85rem; }
.plan-table tbody tr:last-child th, .plan-table tbody tr:last-child td { border-bottom: 0; }
.plan-name { font-weight: 700; font-size: 1.05rem; }
.price-row td { padding-top: 18px; padding-bottom: 18px; }
.price { display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price.quote { font-size: 1.15rem; padding-top: 6px; }
.per { display: block; font-size: 0.82rem; color: var(--slate); margin-top: 4px; }
.plans[data-prices="pending"] .price[data-price] { color: var(--slate); }
.plan-table .btn { margin-top: 2px; }
.plan-detail, .plan-how { padding: 56px 0; border-top: 1px solid var(--line); }
.plan-detail { background: #fff; }
.plain-facts { max-width: none; }
.plain-facts div { border-top-color: var(--line); }
.plain-facts dt { color: var(--amber-text); }
.plain-facts dd { color: #3C4049; }
@media (max-width: 960px) {
  .plan-table { display: block; overflow-x: auto; }
  .plan-table th, .plan-table td { white-space: normal; min-width: 150px; }
  .plan-table tbody th { min-width: 110px; }
  .plan-detail, .plan-how { padding: 44px 0; }
}
.leaves.gap > span:first-child { color: var(--slate); }
.leaves.gap { margin-top: 6px !important; }

/* ----- pricing page, large plan panels (AP-64) ----- */
body[data-page="pricing"] .page-hero { padding-bottom: 28px; }
body[data-page="pricing"] .page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); max-width: 18ch; }
.plan-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 26px 26px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 0 rgba(21,24,31,0.03); }
.plan.featured { border-color: var(--indigo); box-shadow: 0 0 0 1px var(--indigo), 0 24px 48px -32px rgba(20,29,64,0.45); position: relative; }
.plan.featured::before { content: ""; position: absolute; left: 26px; right: 26px; top: 0; height: 4px; background: var(--amber); border-radius: 0 0 3px 3px; }
.plan-name { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; margin: 0; color: var(--slate); }
.plan.featured .plan-name { color: var(--indigo-ink); }
.plan-price { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.plan-price .price { font-size: clamp(2.4rem, 3.4vw, 3.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.plan-price .price.quote { font-size: clamp(1.6rem, 2.2vw, 2rem); letter-spacing: -0.02em; padding-top: 8px; }
.plan-price .per { font-size: 0.92rem; color: var(--slate); }
.plan-facts { margin: 0; display: grid; gap: 0; border-top: 2px solid var(--ink); }
.plan-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.plan-facts dt { color: var(--slate); font-weight: 500; }
.plan-facts dd { margin: 0; font-weight: 600; text-align: right; }
.plan .btn { margin-top: auto; justify-content: center; }
.plan-note { margin-top: auto !important; text-align: center; color: var(--slate); font-size: 0.9rem; padding: 11px 0; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.plan-foot { margin-top: 18px !important; color: var(--slate); font-size: 0.92rem; }
.plans[data-prices="pending"] .plan-price .price[data-price] { color: var(--slate); }
@media (max-width: 1100px) { .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plan-grid { grid-template-columns: 1fr; } .plan { padding: 22px 20px; } }
/* Plan picker window in the app (Subscribe), cards as on /pricing without Free */
.plan-picker { position: fixed; inset: 0; z-index: 60; background: rgba(15, 18, 30, 0.55); display: flex; align-items: flex-start; justify-content: center; padding: max(24px, 6vh) 16px 24px; overflow-y: auto; }
.plan-picker-box { background: var(--paper); border-radius: 16px; width: min(1000px, 100%); padding: 28px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.45); }
.plan-picker-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.plan-picker-head h2 { margin: 0 0 6px; font-size: 1.4rem; letter-spacing: -0.01em; }
.plan-picker-head p { margin: 0; max-width: 62ch; }
.plan-picker-x { border: 0; background: transparent; color: var(--slate); font-size: 1.7rem; line-height: 1; padding: 2px 10px 6px; border-radius: 8px; cursor: pointer; }
.plan-picker-x:hover { background: var(--line); color: var(--ink); }
.plan-picker .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-picker .plan-price .price { font-size: 2.6rem; }
.plan-picker .plan-price .price.quote { font-size: 1.8rem; }
@media (max-width: 760px) { .plan-picker .plan-grid { grid-template-columns: 1fr; } .plan-picker-box { padding: 20px; } }
/* contact form on /about (AP-65) */
.contact-card form { gap: 12px; }
.contact-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-card textarea { resize: vertical; }
.contact-card .message { min-height: 0; }
/* sign-up consent and name fields (AP-66); legal pages */
.two-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.two-fields label { min-width: 0; }
.two-fields input { width: 100%; min-width: 0; }
@media (max-width: 480px) { .two-fields { grid-template-columns: 1fr; } }
.consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 0.88rem; line-height: 1.45; }
.consent input { margin: 3px 0 0; width: 16px; height: 16px; flex: none; accent-color: var(--indigo); }
.last-updated { margin-top: 12px; color: var(--slate); font-size: 0.88rem; }
.legal { padding: 24px 0 72px; }
.legal-body { max-width: 76ch; display: flex; flex-direction: column; gap: 26px; }
.legal-body h2 { font-size: 1.15rem; margin-bottom: 8px; }
.legal-body p { color: #3C4049; margin: 0 0 10px; }
.legal-body ul { margin: 0 0 10px; padding-left: 20px; color: #3C4049; }
.legal-body li { margin: 4px 0; }
.legal-foot { border-top: 1px solid var(--line); padding-top: 18px; }

/* ----- sign-in panel: "closing the books" scene (AP-71). One 7.5s timeline shared by every part. ----- */
.close-scene { margin: 4px 0 -6px; }
.close-scene svg { width: min(360px, 100%); height: auto; overflow: visible; display: block; }
.cs-stack { transform: translate(102px, 22px); }
.cs-sheet, .cs-cover, .cs-rule path, .cs-dot { animation-duration: 7.5s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.2,.7,.2,1); animation-fill-mode: both; }
.cs-sheet { filter: drop-shadow(0 6px 14px rgba(0,0,0,0.25)); transform-box: fill-box; transform-origin: center; }
.cs-s1 { animation-name: cs-sheet-1; }
.cs-s2 { animation-name: cs-sheet-2; }
.cs-s3 { animation-name: cs-sheet-3; }
.cs-cover { animation-name: cs-cover; transform-box: fill-box; transform-origin: top center; filter: drop-shadow(0 10px 22px rgba(0,0,0,0.35)); }
.cs-rule path { stroke-dasharray: 170; stroke-dashoffset: 170; }
.cs-r1 { animation-name: cs-rule-1; }
.cs-r2 { animation-name: cs-rule-2; }
.cs-dot { animation-name: cs-dot; transform-box: fill-box; transform-origin: center; }
/* sheets fly in from three sides, land with a little offset, then the stack straightens as the cover closes */
@keyframes cs-sheet-1 { 0% { transform: translate(-170px, -60px) rotate(-14deg); opacity: 0; } 6% { opacity: 1; } 18%, 86% { transform: translate(0, 0) rotate(0); opacity: 1; } 93%, 100% { transform: translate(0, 0) rotate(0); opacity: 0; } }
@keyframes cs-sheet-2 { 0%, 7% { transform: translate(190px, -40px) rotate(12deg); opacity: 0; } 13% { opacity: 1; } 25% { transform: translate(6px, -6px) rotate(3deg); } 40%, 86% { transform: translate(0, -5px) rotate(0); opacity: 1; } 93%, 100% { transform: translate(0, -5px) rotate(0); opacity: 0; } }
@keyframes cs-sheet-3 { 0%, 14% { transform: translate(40px, -150px) rotate(-6deg); opacity: 0; } 20% { opacity: 1; } 32% { transform: translate(-6px, -10px) rotate(-3deg); } 40%, 86% { transform: translate(0, -10px) rotate(0); opacity: 1; } 93%, 100% { transform: translate(0, -10px) rotate(0); opacity: 0; } }
/* the cover swings down over the stack: a flattened hinge, then settles */
@keyframes cs-cover { 0%, 38% { transform: translate(0, -14px) scaleY(0.02); opacity: 0; } 40% { opacity: 1; } 50% { transform: translate(0, -14px) scaleY(1.04); } 54%, 86% { transform: translate(0, -14px) scaleY(1); opacity: 1; } 93%, 100% { transform: translate(0, -14px) scaleY(1); opacity: 0; } }
/* the closed total: two rules drawn under the stack, then the amber stop */
@keyframes cs-rule-1 { 0%, 55% { stroke-dashoffset: 170; opacity: 1; } 63%, 86% { stroke-dashoffset: 0; opacity: 1; } 93%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes cs-rule-2 { 0%, 60% { stroke-dashoffset: 170; opacity: 1; } 68%, 86% { stroke-dashoffset: 0; opacity: 1; } 93%, 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes cs-dot { 0%, 68% { transform: scale(0); opacity: 0; } 72% { transform: scale(1.25); opacity: 1; } 76%, 86% { transform: scale(1); opacity: 1; } 93%, 100% { transform: scale(1); opacity: 0; } }
@media (max-width: 960px) { .close-scene svg { width: min(280px, 100%); } }
@media (prefers-reduced-motion: reduce) {
  .cs-sheet, .cs-cover, .cs-rule path, .cs-dot { animation: none !important; opacity: 1; }
  .cs-s2 { transform: translate(0, -5px); } .cs-s3 { transform: translate(0, -10px); } .cs-cover { transform: translate(0, -14px); }
  .cs-rule path { stroke-dashoffset: 0; } .cs-dot { transform: none; }
}

/* ----- phone widths (AP-72): the header and footer overflowed 375px, the sample aside forced a 517px column ----- */
.home { overflow-x: clip; }
.foot-links { flex-wrap: wrap; row-gap: 8px; }
.site-nav-mobile .btn { margin-top: 10px; justify-content: center; }
@media (max-width: 600px) {
  .site-actions .btn.primary { display: none; }  /* the primary action lives in the mobile menu instead */
  .site-actions .lang-switch { padding: 4px 6px; font-size: 0.8rem; }
  .foot-row { flex-direction: column; align-items: flex-start; }
  .foot-links { gap: 10px 16px; }
  .pack-grid { grid-template-columns: minmax(0, 1fr); }
  .pack-aside code, .pack code { overflow-wrap: anywhere; }
  .index-list h3 { font-size: 1.05rem; }
}

/* ----- app shell v2 (2026-10-20, Philip; benchmark: a monthly-close screen) ------------------------------
   Full-height dark sidebar with the brand on top, line icons and quiet group labels; a dark top bar over the
   content carrying the firm name as the title and an avatar menu; a centred content column with calmer cards
   and roomier tables. Scoped to body.shell: the public site and the sign-in page are untouched. */
.shell { --nav: 248px; --topbar: 60px; --paper: #F2F3F7; --side: #171C35; --side-2: #1E2A5A; --side-ink: #C6CBE0; --side-dim: #8D93B4; }
.shell .layout { grid-template-columns: var(--nav) minmax(0, 1fr); min-height: 100vh; }
.shell .main-col { min-width: 0; display: flex; flex-direction: column; }

.shell .sidenav { position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 0; padding: 18px 12px 16px; gap: 22px; overflow-y: auto; }
.shell .side-brand { color: #fff; padding: 4px 10px 2px; text-decoration: none; }
.shell .side-brand .mark { box-shadow: 0 0 0 1.5px rgba(255,255,255,0.28); }
.shell .nav-group { gap: 2px; }
.shell .nav-label { color: var(--side-dim); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 0 12px 8px; }
html[lang="ko"] .shell .nav-label { letter-spacing: 0.02em; text-transform: none; font-size: 0.74rem; }
.shell .sidenav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 8px; color: var(--side-ink); font-size: 0.9rem; font-weight: 500; box-shadow: none; }
.shell .sidenav a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.9; }
.shell .sidenav a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell .sidenav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.shell .sidenav a.active { background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--amber); }
.shell .sidenav a.locked { justify-content: flex-start; color: var(--side-dim); }
.shell .sidenav a.locked::after { margin-left: auto; background: rgba(240,169,59,0.16); color: #F3C57B; }
.shell .sidenav a.active.locked::after { background: rgba(240,169,59,0.22); color: #F6D29A; }
.shell .nav-foot { color: var(--side-dim); font-size: 0.76rem; line-height: 1.45; padding: 12px 12px 0; border-top: 1px solid rgba(255,255,255,0.08); }

.shell .topbar { position: sticky; top: 0; z-index: 20; height: var(--topbar); padding: 0 32px; background: var(--side-2); box-shadow: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
.shell .topbar .firm { color: #fff; font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; border-left: 0; padding-left: 0; }
.shell .topbar .muted { color: #C6CBE0; font-size: 0.85rem; }
.shell .icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; display: block; }
.shell .menu summary { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; }
.shell .menu summary::after { content: none; }
.shell .avatar { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--side-2); display: inline-flex; align-items: center; justify-content: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; flex: none; }
.shell .uname { font-size: 0.88rem; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; }

.shell .view { padding: 34px 40px 72px; max-width: 1120px; width: 100%; margin: 0 auto; }
.shell .page-head { margin-bottom: 24px; }
.shell .page-head h1 { font-size: 1.8rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.shell .page-head .lede { margin-top: 8px; font-size: 0.95rem; color: #5E6375; max-width: 72ch; }
.shell .page-body { gap: 18px; }

.shell .card { border: 1px solid var(--line); border-radius: 12px; padding: 0 22px 20px; gap: 14px; box-shadow: 0 1px 2px rgba(20,29,64,0.04); }
.shell .card > .card-head, .shell .card > h2:first-child { margin: 0 -22px; padding: 15px 22px 13px; border-bottom: 1px solid var(--line); }
.shell .card > .card-head h2, .shell .card > h2:first-child { font-size: 1rem; font-weight: 650; letter-spacing: -0.005em; }
.shell .card-head h2::before { content: none; }
.shell .card.callout, .shell .card.upgrade { padding-top: 0; }

.shell .kpi { border-radius: 12px; box-shadow: 0 1px 2px rgba(20,29,64,0.04); border: 1px solid var(--line); border-top-width: 3px; }
.shell .kpi-label { color: #5E6375; }

.shell table.data { border-radius: 10px; font-size: 0.9rem; }
.shell table.data th { text-transform: none; letter-spacing: 0.01em; font-size: 0.78rem; font-weight: 600; color: #5A6180; background: #F6F7FA; padding: 10px 14px; }
.shell table.data td { padding: 12px 14px; }
.shell .hint { color: #6A6F82; }

.shell a.btn { text-decoration: none; }
.shell .card > p { margin-top: 0; margin-bottom: 0; }
.shell .card > :not(.card-head):not(h2):first-child { margin-top: 18px; }
.shell .nav-scrim { display: none; }
/* Between tablet and wide desktop the user's name pushed the top bar past the screen edge (the page scrolled
   sideways at 1024px); the avatar's initials stay (2026-11-02). */
@media (max-width: 1180px) { .shell .uname { display: none; } }
/* On a phone the "e-mail not confirmed" badge shrinks with an ellipsis instead of pushing the bar wider. */
.shell .topbar .badge { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 960px) {
  .shell .layout { grid-template-columns: 1fr; }
  .shell .sidenav { position: fixed; left: 0; top: 0; height: 100vh; width: min(84vw, var(--nav)); transform: translateX(-100%); transition: transform .2s ease; z-index: 40; box-shadow: none; }
  .shell .sidenav.open { transform: none; box-shadow: 0 0 40px rgba(10,14,30,0.35); }
  .shell .nav-scrim:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(10,14,30,0.35); z-index: 35; }
  .shell .icon-btn { display: inline-flex; color: #fff; }
  .shell .topbar { padding: 0 14px; gap: 10px; }
  .shell .topbar .firm { display: inline; font-size: 1rem; max-width: 46vw; }
  .shell .topbar .muted, .shell .uname { display: none; }
  .shell .view { padding: 22px 16px 56px; }
  .shell .page-head h1 { font-size: 1.45rem; }
  .shell .card { padding: 0 16px 16px; }
  .shell .card > .card-head, .shell .card > h2:first-child { margin: 0 -16px; padding: 13px 16px 11px; }
}
@media (max-width: 600px) {
  .shell #subscribe { display: none; }  /* the quota card and the billing page carry it on a phone */
  .shell .topbar-right { gap: 8px; }
  .shell .page-head { flex-direction: column; align-items: stretch; gap: 12px; }
  .shell .page-actions { padding-top: 0; }
}

/* ----- page content rhythm v1 (2026-10-20, Philip: "basic line spacing, more readable and modern") -----
   One vertical rhythm (18px between blocks, 14/18px inside forms), one control height (40px), checkbox labels
   on one line, readable helper text, and multi-line table rows that read from the top. Scoped to body.shell. */
@media (min-width: 961px) { .shell .layout { background: linear-gradient(to right, var(--side) var(--nav), transparent var(--nav)); } }
.shell #body, .shell #twofa, .shell #audit, .shell #results, .shell #prior { display: flex; flex-direction: column; gap: 18px; }
.shell .page-body > div:empty, .shell #body:empty { display: none; }
.shell .picker { max-width: 460px; margin: 0; }
.shell .picker select { font-weight: 600; }

.shell label { font-size: 0.84rem; font-weight: 600; color: #2A2F45; gap: 6px; }
.shell .grid-form { gap: 16px 18px; }
.shell input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), .shell select { min-height: 40px; }
.shell .topbar select { min-height: 0; }
.shell input[type="file"] { background: #fff; padding: 7px 8px; font-size: 0.88rem; }
.shell .btn:not(.tiny):not(.small) { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.shell label.check, .shell label.inline:has(> input[type="checkbox"]) { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.shell label.check input, .shell label.inline > input[type="checkbox"], .shell td > input[type="checkbox"] { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--indigo); }

.shell .toolbar { gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.shell .toolbar form.inline { flex-wrap: nowrap; gap: 8px; }
.shell .toolbar input:not([type="checkbox"]):not([type="radio"]) { min-width: 220px; }
.shell .card .toolbar { padding: 0; border: 0; background: none; }  /* inside a card the card is the frame */
.shell .linkbox { line-height: 1.55; }

.shell .hint, .shell p.small, .shell .card > .muted { font-size: 0.86rem; line-height: 1.6; color: #646A7D; }
.shell .card p, .shell .card li { line-height: 1.6; }
.shell .card h3 { font-size: 0.92rem; font-weight: 650; color: var(--ink); margin: 6px 0 0; letter-spacing: -0.005em; }

.shell table.data td { vertical-align: top; line-height: 1.5; }
.shell table.data td.actions, .shell table.data td:has(> .btn:only-child) { vertical-align: middle; }
/* A row with a drop-down or a button (clients, engagements): text sits on the controls' middle line */
.shell table.data tr:has(select, .btn) > td { vertical-align: middle; }
.shell table.data .chip { white-space: nowrap; }
.shell table.data td input:not([type="checkbox"]) { min-height: 34px; padding: 6px 9px; }
.shell table.data td .muted.small, .shell table.data td .hint { display: inline-block; margin-top: 2px; }
.shell .form-actions { flex-wrap: wrap; }
@media (max-width: 960px) {
  /* wide tables scroll inside their own box on a phone instead of widening the page */
  .shell table.data { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .shell .btn:not(.tiny) { white-space: normal; text-align: center; }
  .shell .toolbar input:not([type="checkbox"]):not([type="radio"]) { min-width: 0; flex: 1 1 160px; }
  .shell .toolbar form.inline { flex-wrap: wrap; flex: 1 1 100%; }
}

/* ----- drop zones (2026-10-20): every file input is a large drag-and-drop target ----------------------- */
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 140px; padding: 20px 18px; border: 1.5px dashed #B6BDD4; border-radius: 12px; background: #FAFBFE; text-align: center; transition: border-color .15s, background-color .15s; font-weight: 500; }
.dropzone svg { width: 28px; height: 28px; fill: none; stroke: var(--indigo); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 2px; }
.dropzone .dz-main { font-size: 0.9rem; color: var(--ink); line-height: 1.45; }
.dropzone .dz-link { color: var(--indigo); font-weight: 650; text-decoration: underline; text-underline-offset: 2px; }
.dropzone .dz-sub { font-size: 0.78rem; color: var(--slate); font-weight: 400; }
.dropzone .dz-file { font-size: 0.84rem; font-weight: 600; color: var(--green); overflow-wrap: anywhere; max-width: 100%; }
.dropzone .dz-file.bad { color: var(--red); }
.dropzone input[type="file"], .shell .dropzone input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; padding: 0; min-height: 0; border: 0; }
.dropzone:hover, .dropzone.over { border-color: var(--indigo); background: var(--indigo-wash); }
.dropzone.over { border-style: solid; }
.dropzone.has-file { border-style: solid; border-color: #9CC5AE; background: #F3FAF6; }
.dropzone:focus-within { outline: 2px solid var(--indigo); outline-offset: 2px; }
.dropzone.compact { min-height: 0; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; gap: 4px 10px; padding: 12px 14px; text-align: left; }
.dropzone.compact svg { width: 20px; height: 20px; margin: 0; }
.dropzone.compact .dz-sub { display: none; }
.dropzone.compact .dz-file { flex-basis: 100%; }
@media (min-width: 961px) { .grid-form > label:has(.dropzone) { grid-column: span 2; } }
@media (max-width: 960px) { .grid-form > label:has(.dropzone) { grid-column: 1 / -1; } .dropzone { min-height: 112px; } }


/* AP-70 account closure: banner on every page, danger zone on Billing, red-outlined buttons */
.closed-banner { background: var(--amber-wash); color: var(--amber-text); border-bottom: 1px solid #F3D9A8; padding: 10px 24px; font-size: 0.92rem; line-height: 1.45; }
.closed-banner a { color: inherit; font-weight: 600; margin-left: 6px; }
.btn.danger { color: var(--red); border-color: #E4B8B8; }
.btn.danger:hover { background: var(--red-wash); border-color: var(--red); }
.btn.danger:disabled, .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.danger-zone { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.danger-zone h3 { margin: 0 0 6px; font-size: 1rem; color: var(--red); }
.callout.warn { background: var(--amber-wash); color: var(--amber-text); border-radius: var(--radius); padding: 10px 14px; }
@media (max-width: 760px) { .closed-banner { padding: 10px 16px; } }

/* AP-82 user guide inside the app */
.guide-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.guide-frame { display: block; width: 100%; height: calc(100vh - 230px); min-height: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: #F6F6F2; }
@media (max-width: 760px) { .guide-frame { height: calc(100vh - 180px); min-height: 420px; } }

/* DariMoa social links under the lockup (AP-73) -- same icons and URLs as darimoa.com */
.dm-social { list-style: none; display: flex; gap: 10px; margin: 6px 0 0; padding: 0; }
.dm-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; text-decoration: none; color: var(--slate); border: 1px solid var(--line); transition: color .15s ease, border-color .15s ease; }
.dm-social a:hover, .dm-social a:focus-visible { color: var(--indigo); border-color: var(--indigo); }
.dm-social a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.dm-social svg { display: block; }
.auth-intro .dm-social a { color: #AEB4CC; border-color: rgba(255,255,255,0.18); }
.auth-intro .dm-social a:hover, .auth-intro .dm-social a:focus-visible { color: #fff; border-color: rgba(255,255,255,0.5); }
@media (prefers-reduced-motion: reduce) { .dm-social a { transition: none; } }

/* ----- site header menu (2026-10-24): one line always, amber underline on hover and on the current page ----- */
.site-nav a { white-space: nowrap; transition: color .15s ease, box-shadow .15s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); }
body[data-page="tutorials"] .site-nav a[data-nav="tutorials"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); }
body[data-page="tutorials"] .site-nav-mobile a[data-nav="tutorials"] { color: var(--amber-text); }
body[data-page="resources"] .site-nav a[data-nav="resources"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--amber); }
body[data-page="resources"] .site-nav-mobile a[data-nav="resources"] { color: var(--amber-text); }
.site-actions .btn { white-space: nowrap; }
/* Seven menu items (AP-174): the full menu needs about 1220px in English, the compact one about 1100px. */
@media (max-width: 1260px) and (min-width: 1121px) { .site-nav { gap: 18px; } .site-nav a { font-size: 0.9rem; } .site-head-row { gap: 14px; } }
@media (max-width: 1120px) { .site-nav { display: none; } .nav-toggle { display: flex; } }
@media (prefers-reduced-motion: reduce) { .site-nav a { transition: none; } }

/* AP-173: file comparison (Compare Files page, Versions card on Client Documents) */
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.shell .table-scroll > table.data, .shell .table-scroll > .table-wrap > table.data { display: table; min-width: 640px; }
.compare-table td.num, .compare-table th.num, .compare-totals td.num { white-space: nowrap; }
.compare-table td.wide { min-width: 200px; }
.compare-table td.row-no, .compare-table td.col-no { white-space: nowrap; }
.compare-table td.val { min-width: 150px; max-width: 320px; overflow-wrap: anywhere; }
.compare-result { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.compare-result .kpis.small { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.compare-head p { margin: 0 0 6px; }
.compare-sheet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 1rem; margin: 14px 0 0; }
.versions-card h3 { font-size: 1rem; margin: 6px 0 0; }
.compare-table td.adopt { white-space: nowrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg label { display: inline-flex; flex-direction: row; align-items: center; gap: 4px; padding: 3px 9px; font-size: 0.82rem; cursor: pointer; margin: 0; }
.seg label + label { border-left: 1px solid var(--line); }
.seg label:has(input:checked) { background: var(--indigo-wash); color: var(--indigo-ink); font-weight: 600; }
.seg input { margin: 0; accent-color: var(--indigo); }
.choose { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.choose h3 { font-size: 1rem; margin: 0; }
.choose .inline-label { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.choose .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.versions-card tr.in-use td { background: var(--green-wash); }
/* the versions table stays inside its card: long file names wrap, the two buttons stack, and anything wider scrolls in its own box */
.versions-card table.data td.vfile { min-width: 170px; overflow-wrap: anywhere; }
.versions-card table.data td.actions { white-space: normal; min-width: 120px; }
.versions-card table.data td.actions .btn { margin: 2px 0 2px 4px; }
/* file-name buttons in tables wrap: a confirmed trial balance gets a long name (…_confirmed_v1_v2.csv) */
.shell table.data td .btn[data-file] { white-space: normal; overflow-wrap: anywhere; text-align: left; }
