:root {
  --ink: #14343c;
  --muted: #56727a;
  --line: #c9e0e6;
  --line-strong: #a8cdd6;
  --canvas: #e8f4f7;
  --panel: #ffffff;
  --accent: #0c7c94;
  --accent-hover: #0a6880;
  --accent-soft: #e3f5f8;
  --danger: #8d2f2f;
  font-family: "Avenir Next", "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #d5e8ee;
}
:root {
  --control-h: 40px;
  --control-sm-h: 32px;
  --radius: 4px;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.6; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  height: 72px;
  background: #f4fbfc;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.app-icon {
  width: 32px; height: 32px; border-radius: 7px;
  object-fit: cover; flex: none;
}
.login-logo { height: 36px; width: auto; display: block; flex: none; }
.wordmark { height: 46px; width: auto; max-width: min(240px, 52vw); display: block; flex: none; }
.brand-logo {
  width: min(340px, 100%); height: auto; display: block; margin-bottom: 18px;
}
.brand strong { letter-spacing: 0.08em; font-size: 15px; }
.nav { display: flex; gap: 20px; align-items: center; flex: none; }
.nav .muted { font-weight: 600; }
.nav a, .text-btn {
  background: transparent; border: 0; color: var(--accent);
  font-weight: 600; text-decoration: none; font-size: 14px;
  padding: 6px 2px; white-space: nowrap;
}

.wrap { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: 56px 0 28px; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 28px; align-items: center; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: 40px; letter-spacing: -0.03em; margin: 8px 0 12px; }
.lead { color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 560px; }
.hero-copy .actions, .download-box .actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--line-strong); background: #f4fbfc; color: var(--ink);
  height: var(--control-h); padding: 0 18px; min-width: 120px; border-radius: var(--radius);
  font-weight: 600; font-size: 14px; line-height: 1; text-decoration: none; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.btn.primary { background: var(--accent); color: #f7fdff; border-color: var(--accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn:hover { background: #e5f4f7; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .desk-side button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.btn.sm { height: var(--control-sm-h); min-width: 76px; padding: 0 12px; font-size: 13px; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: #fbeeee; border-color: #d9b4b4; }
.panel {
  background: var(--panel); border: 1px solid var(--line-strong); padding: 18px; border-radius: var(--radius);
  min-width: 0;
}
.panel h2 { font-size: 16px; margin-bottom: 8px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; min-height: var(--control-h); }
.panel-head h2 { margin: 0; }
.panel-tools { display: flex; gap: 8px; align-items: center; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.45; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-bottom: 48px; }
.card { background: var(--panel); border: 1px solid var(--line); padding: 16px; }
.card h3 { font-size: 15px; margin-bottom: 6px; }
.foot { padding: 18px 0 28px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

.desk-app {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: calc(100vh - 72px);
}
.desk-side {
  background: #0c7c94;
  color: #f7fdff;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky; top: 0; align-self: start; height: calc(100vh - 72px);
}
.desk-side button {
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: #f7fdff;
  height: var(--control-h);
  padding: 0 12px;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 120ms ease;
}
.desk-side button.on, .desk-side button:hover { background: rgba(255,255,255,0.16); }
.desk-main { padding: 22px 24px 40px; display: grid; gap: 14px; align-content: start; min-width: 0; width: min(1240px, 100%); }
.desk-head { display: grid; gap: 4px; margin-bottom: 4px; }
.desk-head h1 { font-size: 26px; letter-spacing: -0.03em; margin: 0; }
.search { width: 280px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--radius); min-height: 76px; display: grid; align-content: center; gap: 4px; }
.stat span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat strong { font-size: 22px; line-height: 1.1; }
.tabs { display: flex; gap: 6px; }
.tabs button { border: 1px solid var(--line); background: #f4fbfc; padding: 8px 12px; font-weight: 600; }
.tabs button.on { background: var(--accent-soft); color: var(--accent); border-color: #b7dbe3; }

table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
th { color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; background: #f8fcfd; overflow: hidden; text-overflow: ellipsis; }
tbody tr:hover td { background: #f8fcfd; }
td.nowrap, th.nowrap { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
td.actions { display: table-cell; margin: 0; white-space: nowrap; text-align: right; overflow: hidden; overflow-wrap: normal; }
.btn-group { display: inline-flex; gap: 6px; justify-content: flex-end; align-items: center; vertical-align: middle; flex-wrap: nowrap; }
.btn-group .btn { min-width: 78px; }
td .sub { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; }
td .sub code { color: var(--muted); font-size: 11px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll th:first-child, .table-scroll td:first-child { padding-left: 12px; }
.table-scroll th:last-child, .table-scroll td:last-child { padding-right: 12px; }
.table-scroll tbody tr:last-child td { border-bottom: 0; }
.empty { color: var(--muted); text-align: center; padding: 26px 8px !important; }
col.w80 { width: 80px; } col.w100 { width: 100px; } col.w104 { width: 104px; } col.w110 { width: 110px; } col.w120 { width: 120px; }
col.w130 { width: 130px; } col.w150 { width: 150px; } col.w160 { width: 160px; } col.w170 { width: 170px; } col.w180 { width: 180px; } col.w190 { width: 190px; }
col.w215 { width: 215px; } col.w270 { width: 270px; } col.w300 { width: 300px; } col.w320 { width: 320px; } col.w340 { width: 340px; } col.w400 { width: 400px; } col.p24 { width: 24%; } col.p40 { width: 40%; }
.table-scroll tbody tr.picked td { background: var(--accent-soft); }
.pager { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.pager-size { flex-direction: row; align-items: center; gap: 8px; width: auto; color: var(--ink); font-size: 13px; white-space: nowrap; }
.pager-count { margin-right: auto; color: var(--muted); font-size: 13px; font-weight: 600; }
.pager-nav { display: flex; align-items: center; gap: 6px; }
.bulk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; min-height: 32px; }
.bulk-bar[hidden] { display: none !important; }
.bulk-bar > span { font-size: 13px; font-weight: 600; }
.bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-bar .btn { width: auto; min-width: 0; height: 32px; min-height: 32px; padding: 0 12px; }
col.pick { width: 44px; } col.sno { width: 56px; }
.box-serial { font-weight: 700; letter-spacing: 0.04em; }
th.pick, td.pick { width: 44px; text-align: center; padding-left: 8px; padding-right: 8px; }
th.sno, td.sno { width: 56px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
th.pick input, td.pick input { width: 16px; height: 16px; margin: 0; accent-color: #0c7c94; }
.table-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 0 0 12px; }
.table-bar label { flex: 0 1 160px; width: 160px; }
.table-bar label.grow { flex: 1 1 240px; width: auto; max-width: 360px; }
.table-bar .btn { flex: 0 0 auto; width: auto; min-width: 148px; margin-left: auto; }
.table-note { margin: -4px 0 12px; }
.table-scroll table { width: max-content; min-width: 0; }
button.th-sort {
  background: transparent; border: 0; padding: 0; margin: 0;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--muted);
  display: block; max-width: 100%; height: auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
button.th-sort:hover, button.th-sort.on { color: var(--ink); }
.pager-nav button {
  height: var(--control-sm-h); min-width: 32px; padding: 0 10px;
  border: 1px solid var(--line-strong); background: #f4fbfc; color: var(--ink);
  border-radius: var(--radius); font-weight: 600; font-size: 13px;
}
.pager-nav button.on { background: var(--accent); border-color: var(--accent); color: #f7fdff; }
.pager-nav button:disabled { opacity: 0.45; cursor: not-allowed; }
.pager-gap { color: var(--muted); width: 16px; text-align: center; }
.desk-app .pager-size select { width: 88px; }

label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); min-width: 0; }
input, select, textarea {
  background: white; border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0 10px; font-weight: 500; font-size: 14px; color: var(--ink); width: 100%; min-width: 0;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
input, select { height: var(--control-h); }
input[type="date"], input[type="number"] { -webkit-appearance: none; appearance: none; }
input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.7; }
input[type="file"] { padding: 0; line-height: calc(var(--control-h) - 2px); color: var(--muted); font-size: 13px; }
input[type="file"]::file-selector-button {
  height: calc(var(--control-h) - 2px); margin: 0 10px 0 0; padding: 0 12px; border: 0; border-right: 1px solid var(--line-strong);
  background: #f4fbfc; color: var(--ink); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2356727a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; -webkit-appearance: none; appearance: none;
}
textarea { padding: 10px; min-height: 80px; resize: vertical; line-height: 1.45; display: block; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(12, 124, 148, 0.14); }
input:disabled, select:disabled { background: #f1f6f8; color: var(--muted); }
input::placeholder, textarea::placeholder { color: #93aab0; font-weight: 500; }

.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid.generate {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr) minmax(108px, 0.7fr) 168px;
  align-items: end;
}
.field-action { min-width: 0; }
.field-action .btn { width: 100%; min-width: 0; }
.desk-app input:not([type="checkbox"]):not([type="file"]),
.desk-app select {
  height: 40px; min-height: 40px; max-height: 40px;
  line-height: 38px; padding-top: 0; padding-bottom: 0;
}
.desk-app input[type="date"]::-webkit-datetime-edit { line-height: 38px; padding: 0; }
.desk-app input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.desk-app input[type="number"]::-webkit-inner-spin-button,
.desk-app input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.desk-app .panel-tools .search { width: 280px; height: 40px; }
.desk-app .panel-tools .btn { width: 168px; min-width: 168px; height: 40px; padding: 0 12px; }
.desk-app .btn-group { gap: 8px; }
.desk-app .btn-group .btn {
  width: 92px; min-width: 92px; max-width: 92px;
  height: 32px; min-height: 32px; padding: 0 8px;
}
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.row .btn { flex: 0 0 auto; }
.toolbar { display: grid; grid-template-columns: auto 140px auto minmax(0, 1fr); gap: 10px; align-items: end; }
.toolbar .form-error { align-self: center; padding-bottom: 12px; }
.form-error { color: var(--danger); font-size: 13px; line-height: var(--control-h); min-height: 0; }
.form-error:empty { display: none; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-transform: capitalize;
}
.badge.active { color: var(--accent); background: var(--accent-soft); }
.badge.blocked { color: var(--danger); background: #fbeeee; }
.badge.neutral { color: var(--muted); background: #eef4f6; }
.login-stage { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 28px 16px; }
.login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 22px 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 18px 48px rgba(12, 60, 72, 0.12);
}
.login-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.login-head h1 { margin: 0; text-align: right; font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; }
.login-card .btn { width: 100%; }
.login-card .form-error { line-height: 1.4; }
.login-forgot { align-self: center; padding: 2px 4px; }
.login-note {
  margin: 0;
  background: var(--accent-soft);
  color: var(--ink);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.45;
}
.recovery-key {
  margin: 0;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  background: var(--accent-soft);
  border: 1px solid #b7dbe3;
  border-radius: 10px;
  padding: 12px 10px;
  overflow-wrap: anywhere;
}
[hidden] { display: none !important; }
.dialog { width: min(440px, 100%); background: white; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.dialog h1 { font-size: 24px; margin: 0; }
.dialog .btn { width: 100%; }
.dialog .form-error { line-height: 1.4; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
code.key { display: inline-block; white-space: nowrap; letter-spacing: 0.02em; }
td.key-cell { overflow: hidden; }
.key-line { display: flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; }
.key-line code.key { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.detail-grid .key-line { display: inline-flex; }
button.eye {
  width: 28px; height: 28px; min-width: 28px; padding: 0; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: #fff; color: var(--muted);
}
button.eye.on { color: var(--accent); background: var(--accent-soft); border-color: #b7dbe3; }
button.eye svg { display: block; }
code.key.wrap { white-space: normal; overflow-wrap: anywhere; font-size: 12px; }
.detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.detail-grid div { background: #f4fbfc; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 62px; display: grid; align-content: start; gap: 4px; font-size: 14px; overflow-wrap: anywhere; }
.detail-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.detail-grid .wide { grid-column: span 2; }
.detail-actions { display: grid; grid-template-columns: 180px 200px minmax(0, 1fr) auto; gap: 10px; align-items: end; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--line); }
.detail-actions .form-error { grid-column: 1 / -1; line-height: 1.4; }
.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.detail-head h3 { font-size: 15px; margin: 0; }
.detail-panel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.detail-panel h3 { font-size: 14px; margin: 14px 0 8px; color: var(--muted); }
tr.picked td { background: var(--accent-soft) !important; }
@media (max-width: 1100px) {
  .stats, .detail-grid, .form-grid.four, .form-grid.generate { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-action { grid-column: 1 / -1; }
  .field-action .btn { width: 168px; }
  .detail-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .hero, .grid, .stats, .form-grid, .form-grid.two, .form-grid.four, .form-grid.generate, .detail-grid, .toolbar, .detail-actions { grid-template-columns: 1fr; }
  .field-action .btn, .desk-app .panel-tools .btn, .desk-app .panel-tools .search { width: 100%; }
  .desk-app { grid-template-columns: 1fr; }
  .desk-side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .desk-main { padding: 16px; }
  .search, .table-bar label, .table-bar label.grow, .table-bar .btn { width: 100%; max-width: none; flex-basis: 100%; margin-left: 0; }
  .panel-head { flex-wrap: wrap; }
  h1 { font-size: 32px; }
}

html { scroll-behavior: smooth; }
.site { background: #f7fcfd; color: var(--ink); }
.pub-loading { width: min(1120px, calc(100% - 48px)); margin: 80px auto; color: var(--muted); }
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 72px; padding: 0 28px;
  background: rgba(247, 252, 253, 0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(244, 251, 252, 0.96); }
.site-menu { display: flex; align-items: center; gap: 2px; }
.site-menu a:not(.btn) {
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 4px;
}
.site-menu a:not(.btn):hover, .site-menu a.active { color: var(--accent); background: var(--accent-soft); }
.site-menu .btn { margin-left: 10px; min-width: 108px; }
.menu-toggle { display: none; align-items: center; gap: 8px; border: 1px solid var(--line-strong); background: white; border-radius: 4px; height: 40px; padding: 0 12px 0 10px; font-weight: 700; }
.menu-dots { width: 18px; height: 18px; flex: none; }

.hero-slider { width: min(1160px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 18px; }
.hero-slide {
  display: none;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: center;
  min-height: 460px;
}
.hero-slide.on { display: grid; animation: heroIn 420ms ease; }
@keyframes heroIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero-copy h1 { font-size: 54px; line-height: 1.04; letter-spacing: -0.038em; margin: 12px 0 16px; max-width: 640px; }
.hero-copy .lead { font-size: 18px; line-height: 1.55; max-width: 540px; }
.hero-panel {
  position: relative;
  background: #0c7c94; color: #f7fdff; border-radius: 12px;
  padding: 28px 28px 24px; min-height: 380px;
  box-shadow: 0 18px 40px rgba(12, 124, 148, 0.18);
}
.hero-panel .kicker { color: #d5f1f6; }
.hero-panel ol { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.hero-panel li {
  padding-left: 28px; position: relative; line-height: 1.45; font-size: 15px;
}
.hero-panel li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 50%;
  background: #f7fdff;
}
.hero-panel.has-photo { padding: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: #083846; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; display: block; }
.hero-caption { position: relative; z-index: 1; }
.hero-panel.has-photo .hero-caption { padding: 56px 22px 18px; background: linear-gradient(transparent, rgba(8, 32, 42, 0.82)); }
.slide-image { display: grid; gap: 8px; }
.slide-preview img { width: 100%; max-height: 200px; object-fit: cover; border-radius: 8px; display: block; border: 1px solid var(--line); }
.hero-controls { display: flex; align-items: center; gap: 14px; padding: 8px 0 28px; }
.hero-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: white; color: var(--ink); display: grid; place-items: center; padding: 0;
}
.hero-arrow svg { width: 18px; height: 18px; }
.hero-arrow:hover { border-color: var(--accent); color: var(--accent); }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button {
  width: 28px; height: 4px; border: 0; border-radius: 99px; padding: 0; background: #c5dde3;
}
.hero-dots button[aria-selected="true"] { background: var(--accent); width: 44px; }

.brand-rail { padding: 8px 0 36px; text-align: center; }
.brand-rail .kicker { margin-bottom: 16px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 42px; width: max-content; animation: marquee 42s linear infinite; padding: 8px 0 4px; }
.marquee.still { mask-image: none; }
.marquee.still .marquee-track { width: auto; margin: 0 auto; animation: none; flex-wrap: wrap; justify-content: center; max-width: 980px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.brand-name {
  font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: #6d8b93; white-space: nowrap;
}

.band { padding: 72px 0; }
.band.tint { background: #e7f3f6; }
.band-inner { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.site .band h2 { font-size: 36px; letter-spacing: -0.03em; margin: 8px 0 22px; line-height: 1.15; max-width: 680px; }
.section-note { margin: -8px 0 26px; max-width: 640px; }
.about-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }
.about-grid .lead { font-size: 17px; line-height: 1.6; }
.stat-grid { display: grid; gap: 12px; }
.stat-tile { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; }
.stat-tile strong { display: block; font-size: 22px; letter-spacing: -0.03em; color: var(--accent); margin-bottom: 4px; }
.stat-tile span { color: var(--muted); font-size: 14px; line-height: 1.4; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dept-grid, .screen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dept, .screen {
  background: white; border: 1px solid var(--line); border-radius: 10px; padding: 16px 16px 18px;
}
.dept h3, .screen h3 { font-size: 16px; margin-bottom: 6px; }
.dept-count { color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.review-grid, .quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.review, .quote {
  background: white; border: 1px solid var(--line); border-radius: 10px; padding: 18px 18px 16px; margin: 0;
}
.review p, .quote p { line-height: 1.55; }
.review h3, .quote footer { margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; color: var(--accent); }
.stars { color: #0c7c94; letter-spacing: 2px; font-size: 16px; margin-bottom: 8px; }
.quote p { font-size: 17px; }
.faq { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.faq p { color: var(--muted); margin: 0 0 14px; line-height: 1.55; }
.feature {
  background: white; border: 1px solid var(--line); border-radius: 10px; padding: 20px 18px 22px; min-height: 168px;
  transition: border-color 140ms ease, transform 140ms ease;
}
.feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.feature-no { display: block; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 10px; }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 18px; min-height: 180px; }
.step b { display: block; color: var(--accent); font-size: 13px; letter-spacing: 0.12em; margin-bottom: 12px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.plan {
  background: white; border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px 20px;
  display: flex; flex-direction: column; gap: 10px; position: relative;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 16px 36px rgba(12, 124, 148, 0.14); background: linear-gradient(180deg, #f4fbfd 0%, #fff 42%); }
.plan-flag {
  position: absolute; top: 14px; right: 14px; background: var(--accent); color: #f7fdff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 99px; padding: 4px 8px;
}
.plan h3 { font-size: 16px; }
.plan-price { font-size: 32px; letter-spacing: -0.03em; line-height: 1.1; margin: 4px 0; }
.plan-price small { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.plan ul { margin: 4px 0 8px; padding: 0; list-style: none; display: grid; gap: 8px; }
.plan li { padding-left: 18px; position: relative; color: var(--ink); font-size: 14px; line-height: 1.4; }
.plan li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.plan .btn { margin-top: auto; align-self: flex-start; }

.download-box {
  display: flex; justify-content: space-between; gap: 28px; align-items: center;
  background: white; border: 1px solid var(--line-strong); border-radius: 12px; padding: 28px;
}
.download-box h3 { font-size: 22px; margin-bottom: 8px; }
.release { margin-top: 8px; color: var(--accent); font-weight: 700; font-size: 14px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.post {
  background: white; border: 1px solid var(--line); border-radius: 12px; padding: 20px 18px 18px;
  display: flex; flex-direction: column; gap: 8px; min-height: 220px;
}
.post time { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.post h3 { font-size: 18px; letter-spacing: -0.02em; line-height: 1.25; }
.post .muted { flex: 1; }
.text-link {
  align-self: flex-start; margin-top: 6px; background: none; border: 0; padding: 0;
  color: var(--accent); font-weight: 700; font-size: 14px;
}
.text-link:hover { text-decoration: underline; }

.site-foot { background: #0c7c94; color: #f7fdff; padding: 48px 0 22px; }
.site-foot a { color: #f7fdff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
a.brand.foot-brand { display: inline-flex; width: fit-content; max-width: 100%; background: #fff; border-radius: 8px; padding: 6px 8px; }
.site-foot a.foot-brand:hover { text-decoration: none; }
.foot-blurb { margin-top: 14px; color: #e7f6f8; max-width: 280px; line-height: 1.55; }
.foot-grid {
  width: min(1120px, calc(100% - 48px)); margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
}
.site-foot h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.site-foot .foot-grid p, .site-foot .foot-grid a { font-size: 14px; line-height: 1.7; display: block; }
.legal {
  width: min(1120px, calc(100% - 48px)); margin: 28px auto 0; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.28);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: #e7f6f8;
}

.story {
  position: fixed; inset: 0; z-index: 40; background: rgba(20, 52, 60, 0.46);
  display: grid; place-items: center; padding: 24px;
}
.story-card {
  width: min(680px, 100%); max-height: min(80vh, 760px); overflow: auto;
  background: #f7fcfd; border-radius: 12px; padding: 28px 28px 32px; position: relative;
}
.story-card time { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.story-card h2 { font-size: 30px; letter-spacing: -0.03em; margin: 8px 48px 16px 0; }
.story-body p { color: var(--ink); font-size: 16px; line-height: 1.6; margin: 0 0 14px; }
.story-close {
  position: absolute; top: 16px; right: 16px; border: 1px solid var(--line-strong);
  background: white; border-radius: 4px; height: 32px; padding: 0 12px; font-weight: 700; font-size: 13px;
}
body.story-open { overflow: hidden; }

.site-block { display: grid; gap: 12px; }
.site-block > h2 { font-size: 16px; margin: 0; }
.site-card {
  border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: grid; gap: 10px; background: #f8fcfd;
}
.site-card-actions { display: flex; gap: 8px; justify-content: flex-end; }
.site-savebar {
  position: sticky; bottom: 12px; z-index: 5;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: rgba(244, 251, 252, 0.96); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 10px 12px; backdrop-filter: blur(8px);
}
label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; }
label.check input { width: 16px; height: 16px; }

@media (max-width: 980px) {
  .feature-grid, .price-grid, .post-grid, .dept-grid, .screen-grid { grid-template-columns: 1fr 1fr; }
  .review-grid, .quote-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-grid, .hero-slide, .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-copy h1 { font-size: 42px; }
}
@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; }
  .site-menu {
    display: none; position: absolute; top: 72px; left: 0; right: 0; z-index: 30;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 12px 12px;
    box-shadow: 0 16px 28px rgba(20, 52, 60, 0.12);
  }
  .site-menu.open { display: flex; }
  .site-menu .btn { margin: 6px 0 0; }
}
@media (max-width: 800px) {
  .hero-slider { width: min(1160px, calc(100% - 28px)); }
  .hero-slide, .hero-slide.on, .about-grid, .feature-grid, .steps, .price-grid, .post-grid, .download-box, .foot-grid, .dept-grid, .screen-grid {
    grid-template-columns: 1fr;
  }
  .hero-slide { min-height: 0; gap: 18px; }
  .hero-copy h1, .site .band h2 { font-size: 32px; }
  .hero-panel { min-height: 0; }
  .hero-panel.has-photo { min-height: 240px; }
  .download-box { display: grid; }
  .legal { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide.on, .marquee-track { animation: none; }
  .feature { transition: none; }
}
