/* ============================================================
   학우너 원장 ERP — owner.css
   ERP-landing-specific blocks layered on top of styles.css + components.css
   · desktop dashboard (browser-window) hero mockup
   · build-order steps
   · single ERP price card
   · char counter / 4-col footer
   ============================================================ */

/* ---------- Hero override: give the dashboard the wider column ---------- */
.hero--erp .hero-grid { grid-template-columns: .92fr 1.08fr; gap: clamp(28px, 4vw, 56px); }
[data-hero="centered"] .hero--erp .hero-grid,
.hero--erp[data-x] .hero-grid { grid-template-columns: 1fr; }
.hero--erp .hero .lead { max-width: 38ch; }
@media (max-width: 980px){
  .hero--erp .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero--erp .hero .lead { max-width: 52ch; margin-inline: auto; }
  .hero--erp .hero-cta, .hero--erp .hero-note, .hero--erp .hero-trust { justify-content: center; }
  .hero--erp .hero-art { margin-top: 40px; }
}

/* ---------- Desktop dashboard (browser window) mockup ---------- */
.hero-art--erp { display: block; perspective: 1600px; }
.dash {
  position: relative; z-index: 2;
  width: 100%; max-width: 660px; margin-inline: auto;
  border-radius: 16px; overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 44px 80px -30px rgba(7,61,41,.42), 0 18px 40px rgba(20,33,27,.14), 0 0 0 1px rgba(20,33,27,.02);
  container-type: inline-size;
  font-family: var(--font-sans);
}
/* browser chrome */
.dash-bar {
  display: flex; align-items: center; gap: 12px;
  height: 40px; padding: 0 14px;
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.dash-bar .lights { display: flex; gap: 7px; flex: none; }
.dash-bar .lights i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.dash-bar .lights i:nth-child(1){ background:#ED6A5E; }
.dash-bar .lights i:nth-child(2){ background:#F4BF50; }
.dash-bar .lights i:nth-child(3){ background:#61C454; }
.dash-bar .url {
  flex: 1; display: flex; align-items: center; gap: 7px; justify-content: center;
  max-width: 340px; margin-inline: auto;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 14px;
  font-size: 12px; color: var(--ink-3); font-weight: 600;
}
.dash-bar .url svg { width: 12px; height: 12px; color: var(--brand); flex: none; }
.dash-bar .url b { color: var(--ink-2); font-weight: 700; }

/* dashboard body */
.dash-body { display: flex; min-height: 392px; background: var(--paper); }

/* sidebar */
.dash-side {
  width: 178px; flex: none; padding: 16px 12px;
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.dash-brand { display: flex; align-items: center; gap: 9px; padding: 4px 8px 14px; }
.dash-brand .lg { width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: linear-gradient(150deg, var(--brand), var(--brand-700)); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.dash-brand b { font-size: 15px; font-weight: 800; letter-spacing: -.02em; display: block; line-height: 1.1; }
.dash-brand span { font-size: 10px; color: var(--ink-3); font-weight: 600; font-family: var(--font-mono); letter-spacing: .04em; }
.dash-nav { display: flex; flex-direction: column; gap: 2px; }
.dash-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 9px;
  font-size: 12.5px; font-weight: 650; color: var(--ink-2);
}
.dash-nav a svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.dash-nav a.on { background: var(--brand-tint); color: var(--brand-700); }
.dash-nav a.on svg { color: var(--brand); }
.dash-side .seat {
  margin-top: auto; display: flex; align-items: center; gap: 8px;
  padding: 9px 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line);
}
.dash-side .seat .av { width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg,#2F6B57,#0A5E3F); color:#fff; display:grid; place-items:center; font-size:11px; font-weight:800; }
.dash-side .seat b { font-size: 11.5px; font-weight: 750; display: block; line-height: 1.15; }
.dash-side .seat span { font-size: 10px; color: var(--ink-3); }

/* main panel */
.dash-main { flex: 1; min-width: 0; padding: 16px 18px; display: flex; flex-direction: column; gap: 13px; }
.dash-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dash-h b { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.dash-h .date { font-size: 11px; color: var(--ink-3); font-weight: 600; background: var(--surface);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* stat cards */
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.dash-stat .lab { font-size: 10.5px; color: var(--ink-3); font-weight: 650; display:flex; align-items:center; gap:5px; }
.dash-stat .lab .ico { width: 7px; height: 7px; border-radius: 2px; flex:none; }
.dash-stat .val { font-size: 21px; font-weight: 850; letter-spacing: -.03em; margin-top: 7px; font-family: var(--font-mono); }
.dash-stat .val small { font-size: 12px; font-weight: 700; color: var(--ink-3); font-family: var(--font-sans); }
.dash-stat .sub { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; }
.dash-stat .sub.up { color: var(--brand-700); font-weight: 700; }
.dash-stat .sub.warn { color: #C2742B; font-weight: 700; }

/* chart */
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; }
.dash-card .ch-h { display: flex; align-items: center; justify-content: space-between; }
.dash-card .ch-h b { font-size: 12.5px; font-weight: 750; }
.dash-card .ch-h span { font-size: 10.5px; color: var(--ink-3); font-weight: 600; }
.chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; align-items: end; height: 76px; margin-top: 12px; }
.chart .bar { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bar i { width: 100%; max-width: 18px; border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, var(--brand-300), var(--brand)); display: block; }
.chart .bar.on i { background: linear-gradient(180deg, var(--brand), var(--brand-700)); }
.chart .bar.dim i { background: var(--brand-tint-2); }
.chart .bar small { font-size: 9.5px; color: var(--ink-3); font-weight: 600; }
.chart .bar.on small { color: var(--brand-700); font-weight: 800; }

/* recent consults */
.dash-list .row { display: flex; align-items: center; gap: 10px; padding: 9px 2px; }
.dash-list .row + .row { border-top: 1px solid var(--line); }
.dash-list .row .av { width: 28px; height: 28px; border-radius: 9px; flex: none; color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.dash-list .row .who { flex: 1; min-width: 0; }
.dash-list .row .who b { font-size: 12.5px; font-weight: 750; display: block; line-height: 1.2; }
.dash-list .row .who span { font-size: 10.5px; color: var(--ink-3); }
.tagx { font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 999px; flex: none; letter-spacing:.01em; }
.tagx.new  { background: var(--accent-soft); color: #B96A26; }
.tagx.prog { background: var(--brand-tint); color: var(--brand-700); }
.tagx.done { background: var(--surface-2); color: var(--ink-3); }

/* container-query: collapse sidebar to icons when the window gets narrow */
@container (max-width: 520px){
  .dash-side { width: 56px; padding: 14px 8px; align-items: center; }
  .dash-brand b, .dash-brand span, .dash-nav a span, .dash-side .seat b, .dash-side .seat span { display: none; }
  .dash-brand { padding: 4px 0 12px; justify-content: center; }
  .dash-nav a { justify-content: center; padding: 9px; }
  .dash-side .seat { justify-content: center; padding: 8px; }
}
@container (max-width: 380px){
  .dash-stats { grid-template-columns: 1fr 1fr; }
  .dash-stat:nth-child(3){ grid-column: 1 / -1; }
}

/* floating accent card by the dashboard */
.hero-art--erp .hero-float { z-index: 4; }
.hero-art--erp .hf-1 { top: -4%; right: 4%; left: auto; }
.hero-art--erp .hf-2 { bottom: -5%; left: 2%; right: auto; }
@media (max-width: 980px){
  .hero-art--erp .hf-1 { right: 1%; } .hero-art--erp .hf-2 { left: 1%; }
}
@media (max-width: 520px){
  .hero-art--erp .hf-1, .hero-art--erp .hf-2 { display: none; }
}

/* ---------- Build-order steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; position: relative; }
.step-c {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.step-c:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); border-color: var(--brand-300); }
.step-c .n {
  width: 46px; height: 46px; border-radius: 13px; flex: none;
  background: linear-gradient(150deg, var(--brand), var(--brand-700)); color: #fff;
  display: grid; place-items: center; font-family: var(--font-mono); font-size: 20px; font-weight: 700;
  box-shadow: var(--sh-brand); margin-bottom: 20px;
}
.step-c:nth-child(2) .n { background: linear-gradient(150deg, var(--accent), #cf7a32); box-shadow: 0 12px 28px -10px rgba(232,150,74,.5); }
.step-c h3 { font-size: 19px; font-weight: 800; }
.step-c p { margin-top: 10px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.step-c .free { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 12px; font-weight: 750; color: var(--brand-700); background: var(--brand-tint);
  padding: 5px 11px; border-radius: 999px; }
.step-c .arrow { position: absolute; top: 44px; right: -23px; z-index: 3; color: var(--brand-300); }
.step-c .arrow svg { width: 26px; height: 26px; }
@media (max-width: 800px){
  .steps { grid-template-columns: 1fr; gap: 14px; }
  .step-c { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; align-items: start; padding: 22px 24px; }
  .step-c .n { margin-bottom: 0; grid-row: 1 / 4; }
  .step-c .arrow { display: none; }
}

/* ---------- Single ERP price card ---------- */
.price-solo {
  max-width: 720px; margin: 48px auto 0;
  background: var(--surface); border: 2px solid var(--brand); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr;
}
.price-solo .ps-left { padding: clamp(28px, 3vw, 40px); border-right: 1px solid var(--line); }
.price-solo .badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--brand-700);
  background: var(--brand-tint); padding: 6px 12px; border-radius: 999px; }
.price-solo .pname { font-size: 22px; font-weight: 850; letter-spacing: -.03em; margin-top: 16px; }
.price-solo .pprice { display: flex; align-items: baseline; gap: 5px; margin-top: 14px; }
.price-solo .pprice .amt { font-size: clamp(40px, 5vw, 52px); font-weight: 850; letter-spacing: -.04em; line-height: 1; }
.price-solo .pprice .per { font-size: 16px; color: var(--ink-3); font-weight: 700; }
.price-solo .vat { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }
.price-solo .free-row { display: flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); color: #9A5418;
  font-size: 13.5px; font-weight: 700; }
.price-solo .free-row svg { width: 18px; height: 18px; flex: none; }
.price-solo .ps-right { padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; }
.price-solo .ps-right h4 { font-size: 14px; font-weight: 800; color: var(--ink); margin-bottom: 16px; }
.price-solo ul { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.price-solo ul li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); align-items: flex-start; }
.price-solo ul li svg { width: 18px; height: 18px; color: var(--brand); flex: none; margin-top: 2px; }
.price-solo .ps-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
@media (max-width: 680px){
  .price-solo { grid-template-columns: 1fr; }
  .price-solo .ps-left { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ---------- Real app header + tab panels ---------- */
.dr-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 44px; padding: 0 14px; flex: none;
  background: color-mix(in srgb, var(--ink) 96%, var(--brand));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
[data-theme="dark"] .dr-head { background: #040e09; }
.dr-logo-g { display: flex; align-items: center; gap: 8px; }
.dr-logo-g .lg {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  background: linear-gradient(150deg, var(--brand), var(--brand-700));
  color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.dr-logo-g > div b { color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: -.02em; display: block; line-height: 1.1; }
.dr-logo-g > div span { font-size: 9px; color: rgba(255,255,255,.38); font-weight: 600; font-family: var(--font-mono); letter-spacing: .07em; }
.dr-head-r { display: flex; align-items: center; gap: 9px; }
.dr-date-tag { font-size: 10px; color: rgba(255,255,255,.42); font-weight: 650; font-family: var(--font-mono); }
.dr-nav-av {
  width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, var(--brand-300), var(--brand));
  color: #fff; display: grid; place-items: center; font-size: 10px; font-weight: 800;
}
/* Tab bar */
.dr-tabs {
  display: flex; gap: 0; border-bottom: 1px solid var(--line);
  padding: 0 2px; flex: none; margin: -13px -18px 0;
}
.dr-tab {
  padding: 9px 12px; font-size: 11.5px; font-weight: 700; color: var(--ink-3);
  background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent;
  margin-bottom: -1px; transition: color .15s, border-color .15s; line-height: 1;
}
.dr-tab.on { color: var(--brand-700); border-bottom-color: var(--brand); }
.dr-tab:hover:not(.on) { color: var(--ink-2); }
/* Panels */
.dp { display: flex; flex-direction: column; gap: 10px; padding-top: 13px; }
.dp.dp-hidden { display: none; }
.dp.dp-enter  { animation: dpIn .2s var(--ease); }
@keyframes dpIn { from { opacity:0; transform:translateY(4px); } to { opacity:1; transform:none; } }
/* Finance panel */
.fin-band { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.fin-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.fin-card .fl { font-size: 10px; color: var(--ink-3); font-weight: 650; }
.fin-card .fv { font-size: 18px; font-weight: 850; letter-spacing: -.04em; margin-top: 4px; font-family: var(--font-mono); }
.fin-card .fv.warn-red { color: #B85400; }
.fin-row { display: flex; align-items: center; gap: 9px; padding: 8px 2px; }
.fin-row + .fin-row { border-top: 1px solid var(--line); }
.fin-row .av { width: 24px; height: 24px; border-radius: 7px; flex: none; color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.fin-row .fw { flex: 1; min-width: 0; }
.fin-row .fw b { font-size: 12px; font-weight: 750; display: block; line-height: 1.2; }
.fin-row .fw span { font-size: 10px; color: var(--ink-3); }
.fin-row .amt-due { font-size: 11.5px; font-weight: 800; color: #B85400; font-family: var(--font-mono); flex: none; white-space: nowrap; }
@container (max-width: 380px){ .fin-band { grid-template-columns: 1fr 1fr; } .fin-card:nth-child(3){ grid-column:1/-1; } }

/* ---------- char counter ---------- */
.field .count { float: right; font-size: 11.5px; color: var(--ink-3); font-weight: 600; font-family: var(--font-mono); }

/* ---------- region links / 4-col footer ---------- */
.footer-grid--erp { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
.region-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.region-row a {
  font-size: 12.5px; color: var(--ink-2); font-weight: 600; padding: 6px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; transition: color .15s, border-color .15s;
}
.region-row a:hover { color: var(--brand); border-color: var(--brand-300); }
@media (max-width: 860px){
  .footer-grid--erp { grid-template-columns: 1fr 1fr; }
  .footer-grid--erp .footer-col.first { grid-column: 1 / -1; }
}
@media (max-width: 480px){
  .footer-grid--erp { grid-template-columns: 1fr; }
}
