:root {
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #191f28;
  background: #fff;
  font-synthesis: none;
  --blue: #3182f6;
  --blue-dark: #1b64da;
  --blue-soft: #e8f3ff;
  --ink: #191f28;
  --gray: #4e5968;
  --muted: #8b95a1;
  --line: #e5e8eb;
  --soft: #f2f4f6;
  --shadow: 0 8px 24px rgba(25,31,40,.08);
  --shadow-lg: 0 20px 48px rgba(25,31,40,.13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.3; }
h1 { font-size: clamp(38px, 5vw, 68px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 900; }
:is(a, button, input, select, summary):focus-visible { outline: 3px solid rgba(49,130,246,.38); outline-offset: 3px; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }

/* Navigation and shared controls */
.header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(16px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 24px; }
.brand, .footer-brand { display: inline-flex; align-items: center; flex: none; }
.brand img { display: block; width: 148px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; color: var(--gray); font-size: 14px; font-weight: 700; }
.nav a:hover, .text-button:hover, .plain-link:hover { color: var(--blue); }
.nav-signup { padding: 10px 16px; border-radius: 12px; background: var(--blue); color: #fff !important; }
.nav-signup:hover { background: var(--blue-dark); }
.nav form { margin: 0; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--gray); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-height: 49px; padding: 0 22px; border: 1px solid var(--blue); border-radius: 14px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 800; white-space: nowrap; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover:not(:disabled) { transform: translateY(-2px); background: var(--blue-dark); box-shadow: 0 8px 20px rgba(49,130,246,.24); }
.button:active:not(:disabled) { transform: scale(.98); }
.button.ghost { border-color: transparent; background: var(--soft); color: var(--ink); }
.button.ghost:hover:not(:disabled) { background: #e8ebee; box-shadow: none; }
.button.full { width: 100%; }
.button.small-button { min-height: 37px; padding: 0 14px; border-radius: 10px; font-size: 13px; }
.muted { color: var(--gray); line-height: 1.75; }
.small { font-size: 13px; }
.break-all { word-break: break-all; }

/* Home */
.hero { position: relative; overflow: hidden; padding: 58px 0 64px; text-align: center; }
.hero-glow { position: absolute; top: -280px; left: 50%; width: min(950px, 100vw); height: 850px; transform: translateX(-50%); background: radial-gradient(circle, rgba(49,130,246,.14), rgba(49,130,246,.05) 42%, transparent 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero h1 { margin: 0; line-height: 1.23; }
.hero h1 em { color: var(--blue); font-style: normal; background: linear-gradient(transparent 67%, var(--blue-soft) 67%); }
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.section { padding: 72px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 35px; }
.section-head h2 { margin: 8px 0 8px; }
.section-head p { margin: 0; color: var(--gray); font-size: 16px; }
.catalog-section { padding: 64px 0 72px; background: var(--soft); scroll-margin-top: 70px; }
.catalog-content { scroll-margin-top: 85px; }
.plan-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 15px; }
.plan-card { display: flex; flex-direction: column; min-width: 0; min-height: 270px; padding: 19px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 3px 13px rgba(25,31,40,.05); transition: transform .25s, box-shadow .25s, border-color .25s; }
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card h3 { margin: 0 0 4px; font-size: 19px; font-weight: 900; overflow-wrap: anywhere; }
.plan-price { display: flex; align-items: baseline; gap: 2px; margin: 2px 0 10px; color: #2468e8; white-space: nowrap; }
.plan-price strong { font-size: clamp(17px,1.7vw,23px); font-weight: 900; letter-spacing: -.04em; }
.plan-price small { font-size: 12px; font-weight: 800; }
.plan-price .price-unavailable { font-size: 14px; color: var(--muted); }
.plan-spec-list { margin: 0 0 18px; }
.plan-spec-list div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; font-size: 12px; line-height: 1.45; }
.plan-spec-list dt { color: #78869a; }
.plan-spec-list dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; white-space: nowrap; }
.plan-spec-list b { color: #2468e8; }
.plan-link { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: auto; padding: 10px 12px; border-radius: 11px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 900; white-space: nowrap; }
.plan-link:hover { background: var(--blue-dark); }
.plan-link.unavailable { background: var(--soft); color: var(--muted); }
.catalog-note { margin: 24px 0 0; color: var(--gray); font-size: 13px; }

/* Forms, account pages, and management */
.narrow-page, .inner-page { min-height: 670px; background: var(--soft); }
.narrow-page { padding: 96px 0; }
.inner-page { padding: 65px 0 115px; }
.form-card, .panel { border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.form-card { width: min(460px,100%); margin-inline: auto; padding: 42px; }
.form-card h1 { margin: 0 0 24px; font-size: 32px; }
.form-card .muted { margin-bottom: 30px; font-size: 14px; }
.form-card label, .panel form > label { display: block; margin-bottom: 20px; color: var(--ink); font-size: 14px; font-weight: 800; }
.form-card input, .panel input:not([type=hidden]):not([type=radio]), .panel select, .mapping-row select, .admin-order input { width: 100%; min-height: 47px; margin-top: 8px; padding: 0 14px; border: 1px solid #d6dce2; border-radius: 12px; background: #f8fafc; color: var(--ink); outline: none; }
.form-card input:focus, .panel input:focus, .panel select:focus, .mapping-row select:focus, .admin-order input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(49,130,246,.11); }
.form-card .button { margin-top: 12px; }
.form-switch { margin: 25px 0 0; color: var(--gray); font-size: 13px; text-align: center; }
.form-switch a { color: var(--blue); font-weight: 900; }
.back-link { display: inline-block; margin-bottom: 38px; color: var(--gray); font-size: 14px; font-weight: 700; }
.back-link:hover { color: var(--blue); }
.page-heading { margin-bottom: 34px; }
.page-heading h1 { margin: 0 0 8px; font-size: clamp(32px,4vw,50px); }
.page-heading p { margin: 0; color: var(--gray); font-size: 15px; }
.checkout-grid, .instance-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(290px,1fr); align-items: start; gap: 22px; }
.panel { min-width: 0; padding: 32px; }
.order-panel { width: min(760px,100%); margin-inline: auto; }
.order-panel .detail-list dd { overflow-wrap: anywhere; }
.order-panel .notice { margin-bottom: 0; }
.panel h2 { margin: 0 0 22px; font-size: 23px; }
.panel fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.panel legend { margin-bottom: 12px; font-size: 14px; font-weight: 800; }
.panel label small { display: block; margin-top: 7px; font-weight: 500; }
.radio-row { display: flex; align-items: center; gap: 12px; margin-bottom: 9px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.radio-row:has(input:checked) { border-color: var(--blue); background: #f2f8ff; }
.radio-row.unavailable { background: var(--soft); color: var(--muted); cursor: not-allowed; }
.radio-row.unavailable small { color: var(--muted); }
.radio-row input { accent-color: var(--blue); }
.radio-row span { display: flex; flex-direction: column; gap: 3px; }
.radio-row b { font-size: 14px; }
.radio-row small { margin: 0 !important; color: var(--gray); font-size: 12px; }
.summary-panel { box-shadow: 0 8px 30px rgba(25,31,40,.06); }
.summary-panel h2 { margin-top: 0; }
.summary-panel dl, .detail-list { margin: 0; }
.summary-panel dl > div, .detail-list > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.summary-panel dt, .detail-list dt { color: var(--gray); font-size: 13px; }
.summary-panel dd, .detail-list dd { margin: 0; font-size: 13px; font-weight: 800; text-align: right; }
.summary-total { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: 30px; }
.summary-total span { color: var(--gray); font-size: 14px; }
.summary-total strong { color: var(--blue); font-size: 26px; font-weight: 900; }
.checkout-pay-button { margin-top: 20px; }
.notice { margin: 18px 0; padding: 13px 16px; border-radius: 12px; background: var(--blue-soft); color: #205bb0; font-size: 13px; font-weight: 600; }
.notice.error { background: #fdeaec; color: #c23142; }
.notice.success { background: #e8f8ef; color: #17834a; }
.accent-text { color: var(--blue); font-size: 18px !important; }
.panel .detail-list { margin: 22px 0 29px; }
.panel .detail-list > div { padding: 15px 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-head h2 { margin: 0; }
.state { display: inline-block; padding: 5px 10px; border-radius: 999px; background: #eef1f4; color: var(--gray); font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.state.complete, .state.active { background: #e8f8ef; color: #168349; }
.state.pending { background: #fff4dd; color: #a86c08; }
.state.attention, .state.cancelled, .state.expired, .state.terminated { background: #fdeaec; color: #c23142; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-actions form { margin: 0; }
.info-tile { display: flex; flex-direction: column; gap: 5px; margin: 32px 0 18px; padding: 20px; border-radius: 15px; background: #f2f8ff; }
.info-tile span, .info-tile small { color: var(--gray); font-size: 12px; }
.info-tile strong { color: var(--blue); font-size: 25px; }
.section-head.compact { margin: 42px 0 16px; }
.section-head.compact h2 { margin: 0; font-size: 25px; }
.count { color: var(--blue); font-size: 14px; }
.plain-link { color: var(--blue); font-size: 14px; font-weight: 800; }
.instance-list { display: grid; gap: 10px; }
.instance-row { display: flex; align-items: center; gap: 18px; min-height: 90px; padding: 20px 25px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 3px 10px rgba(25,31,40,.04); }
.instance-row:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.instance-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 23px; }
.instance-main { display: flex; flex-direction: column; gap: 4px; }
.instance-main strong { font-size: 17px; }
.instance-main small, .order-list small, .admin-order small, .mapping-row small { display: block; color: var(--muted); font-size: 12px; }
.instance-arrow { margin-left: auto; color: var(--blue); }
.empty-state { display: flex; flex-direction: column; align-items: center; padding: 65px 20px; border: 1px dashed #c8d1dc; border-radius: 20px; background: #fff; text-align: center; }
.empty-state > span { color: var(--blue); font-size: 45px; }
.empty-state h3 { margin: 7px 0; font-size: 22px; }
.empty-state p { color: var(--gray); font-size: 14px; }
.empty-state .button { margin-top: 16px; }
.order-list { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.order-list a { display: grid; grid-template-columns: 1.8fr 1fr 100px 20px; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); font-size: 14px; }
.order-list a:last-child { border-bottom: 0; }
.order-list a:hover { background: #f8fbff; }
.order-list strong { display: block; margin-bottom: 3px; }
.order-list i { color: var(--blue); font-style: normal; }
.top-gap { margin-top: 65px !important; }

/* Operator screens */
.admin-tabs { display: flex; gap: 8px; width: fit-content; max-width: 100%; margin-bottom: 28px; padding: 6px; border-radius: 15px; background: var(--soft); }
.admin-tabs button { min-width: 148px; padding: 11px 18px; border: 0; border-radius: 11px; background: transparent; color: var(--gray); font-size: 14px; font-weight: 800; }
.admin-tabs button[aria-selected="true"] { background: #fff; color: var(--blue-dark); box-shadow: var(--shadow); }
.admin-status { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.admin-status span { padding: 9px 12px; border-radius: 999px; background: #fdeaec; color: #c23142; font-size: 12px; font-weight: 800; }
.admin-status span.ready { background: #e8f8ef; color: #17834a; }
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.inline-form { display: flex; align-items: end; gap: 8px; }
.inline-form input { margin-top: 0 !important; }
.pricing-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; gap: 0 12px; }
.pricing-form label { min-width: 0; font-size: 13px !important; }
.pricing-form .button { justify-self: start; margin-bottom: 20px; }
.panel details { margin-top: 17px; color: var(--gray); font-size: 13px; }
.panel pre { overflow: auto; max-height: 150px; padding: 13px; border-radius: 10px; background: var(--soft); color: var(--ink); }
.mapping-grid { display: grid; gap: 8px; }
.mapping-row { display: grid; grid-template-columns: 1.3fr 1fr 66px; align-items: center; gap: 16px; min-height: 76px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.mapping-row strong { display: block; margin-bottom: 4px; font-size: 14px; }
.mapping-row .mapping-price { margin-top: 5px; color: var(--blue); font-weight: 800; }
.mapping-row .mapping-price.unavailable { color: var(--muted); }
.mapping-row select { min-height: 38px; margin: 0; font-size: 12px; }
.product-markup-grid { display: grid; gap: 8px; }
.product-markup-row { display: grid; grid-template-columns: minmax(0,1fr) 180px auto; align-items: center; gap: 16px; min-height: 78px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.product-markup-row strong, .product-markup-row small { display: block; }
.product-markup-row strong { font-size: 14px; }
.product-markup-row small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.product-markup-row label { color: var(--gray); font-size: 12px; font-weight: 700; }
.product-markup-row input { width: 100%; min-height: 38px; margin-top: 5px; padding: 0 11px; border: 1px solid #d6dce2; border-radius: 10px; background: #f8fafc; color: var(--ink); }
.product-markup-row input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(49,130,246,.11); }
.product-markup-actions { display: flex; align-items: center; gap: 10px; }
.product-markup-actions .text-button { white-space: nowrap; font-size: 12px; }
.admin-orders { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.admin-order { display: grid; grid-template-columns: 1.5fr 1.2fr 1fr 1.5fr; align-items: start; gap: 15px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 12px; }
.admin-order:last-child { border-bottom: 0; }
.admin-order-head { background: #f8fafc; color: var(--gray); font-weight: 900; }
.admin-order strong { display: block; margin-bottom: 4px; }
.admin-order .text-button { display: block; margin-top: 8px; color: var(--blue); font-size: 12px; }
.admin-order-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.admin-order-actions form { margin: 0; }
.order-action { min-width: 62px; min-height: 33px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 800; }
.order-action.approve { border-color: var(--blue); background: var(--blue); color: #fff; }
.order-action.approve:hover { background: var(--blue-dark); }
.order-action.cancel { border-color: #f4cbd0; color: #c23142; }
.order-action.cancel:hover { background: #fdeaec; }
.admin-order input { min-height: 34px; margin-top: 8px; font-size: 12px; }
.error-text { color: #c23142 !important; }

.footer { padding: 55px 0 45px; background: var(--ink); color: #aeb8c2; }
.footer-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 20px 35px; }
.footer-brand img { display: block; width: 125px; height: auto; padding: 3px; border-radius: 3px; background: #fff; }
.footer p, .footer small { display: block; margin: 0; font-size: 12px; }
.footer-intro p { margin-top: 13px; }
.footer-links { display: flex; align-items: start; justify-content: flex-end; gap: 12px 22px; flex-wrap: wrap; }
.footer a:not(.footer-brand) { color: #dce7f1; font-size: 13px; }
.footer a:hover { color: #fff; }
.footer-terms { grid-column: 1/-1; }
.footer-terms summary { width: fit-content; cursor: pointer; color: #dce7f1; font-size: 13px; font-weight: 700; }
.footer-terms summary:hover, .footer-terms summary:focus-visible { color: #fff; }
.footer-terms-body { max-height: min(70vh,720px); margin-top: 16px; padding: 22px; overflow-y: auto; border: 1px solid #39424d; border-radius: 14px; background: #25303c; color: #dce7f1; font-size: 13px; line-height: 1.75; }
.footer-terms-body h2 { margin: 0 0 4px; color: #fff; font-size: 20px; }
.footer-terms-body h3 { margin: 0 0 9px; color: #fff; font-size: 15px; }
.footer-terms-body section { margin-top: 22px; }
.footer-terms-body p { margin: 0; font-size: 13px; }
.footer-terms-body .terms-effective { color: #aeb8c2; }
.footer-terms-body ol { margin: 0; padding-left: 21px; }
.footer-terms-body li + li { margin-top: 6px; }
.footer-terms-body a { text-decoration: underline; text-underline-offset: 3px; }
.footer-business { grid-column: 1/-1; padding-top: 18px; border-top: 1px solid #39424d; line-height: 1.8; }
.footer-business a { text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { grid-column: 1/-1; color: #8995a1; }

@media (max-width: 1100px) {
  .plan-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 32px,1120px); }
  .header-inner { min-height: 64px; }
  .brand img { width: 112px; }
  .nav { gap: 12px; font-size: 12px; }
  .nav a[href="/#plans"] { display: none; }
  .nav-signup { padding: 8px 11px; }
  .hero { padding: 50px 0 56px; }
  .hero h1 { font-size: clamp(38px,8vw,58px); }
  .catalog-section { padding: 52px 0 60px; }
  .plan-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .checkout-grid, .instance-grid, .admin-grid { grid-template-columns: 1fr; }
  .order-list a { grid-template-columns: 1fr auto; gap: 8px; }
  .order-list a i { display: none; }
  .mapping-row { grid-template-columns: 1fr 1fr; }
  .mapping-row span { grid-column: 1/-1; }
  .product-markup-row { grid-template-columns: 1fr 180px; }
  .product-markup-actions { grid-column: 1/-1; }
  .admin-order { grid-template-columns: 1fr 1fr; }
  .admin-order-head { display: none; }
  .pricing-form { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .brand img { width: 90px; }
  .nav { gap: 8px; font-size: 11px; }
  .hero h1 { font-size: 37px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .section-head { align-items: start; }
  .plan-grid { grid-template-columns: 1fr; }
  .panel, .form-card { padding: 24px; }
  .mapping-row, .admin-order { grid-template-columns: 1fr; }
  .mapping-row span { grid-column: 1; }
  .product-markup-row { grid-template-columns: 1fr; }
  .product-markup-actions { grid-column: 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .footer-terms, .footer-business, .footer-copy { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
