:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #68758d;
  --line: #dbe3f0;
  --soft: #eef3fb;
  --accent: #2f6df6;
  --accent-dark: #1e53cc;
  --success: #16885a;
  --danger: #c73c3c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: grid;
  flex: 1;
  min-height: 0;
  gap: 10px;
  overflow-y: auto;
  padding-right: 4px;
}

.nav a {
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.nav a:hover,
.nav a.active {
  background: var(--soft);
  color: var(--accent-dark);
}

.nav-single {
  border: 1px solid var(--line);
}

.nav-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  padding: 10px 11px;
  cursor: pointer;
  color: #33405a;
  font-weight: 800;
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "›";
  transform: rotate(90deg);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.nav-group[open] summary::after {
  transform: rotate(270deg);
}

.nav-group[open] summary {
  border-bottom: 1px solid var(--line);
  background: #f8fbff;
}

.nav-group-links {
  display: grid;
  gap: 4px;
  padding: 7px;
}

.logout {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.logout span {
  color: var(--muted);
  font-size: 14px;
}

.content {
  padding: 34px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: 34px;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
}

h3 {
  margin-bottom: 6px;
  font-size: 16px;
}

.eyebrow {
  margin-bottom: 8px;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.muted {
  color: var(--muted);
  line-height: 1.5;
}

.small {
  font-size: 14px;
}

.panel,
.form-card,
.auth-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(23, 32, 51, 0.06);
}

.auth-panel {
  max-width: 520px;
  margin: 4vh auto;
  padding: 30px;
}

.auth-panel-wide {
  max-width: 980px;
}

.login-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.login-choice-card {
  align-content: start;
}

.login-identity-card,
.recognized-login {
  align-content: start;
}

.lookup-form {
  display: grid;
  gap: 12px;
}

.company-login-result {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--success);
  border-radius: 8px;
  background: #f7fbf9;
}

.company-login-result h3,
.company-login-result h2,
.company-login-result p,
.recognized-login h2,
.recognized-login p {
  margin-bottom: 0;
}

.company-login-result .link-button {
  margin-top: 6px;
  text-align: center;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}

.form-card,
.form-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.panel {
  padding: 22px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

label {
  display: grid;
  gap: 7px;
  color: #33405a;
  font-weight: 700;
  font-size: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd6e6;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}

textarea {
  resize: vertical;
}

button,
.link-button {
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 800;
}

.primary {
  background: var(--accent);
  color: #fff;
}

.primary:hover {
  background: var(--accent-dark);
}

.ghost,
.logout button,
.actions button,
.compact-form button {
  background: var(--soft);
  color: var(--ink);
}

.alert,
.success {
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 700;
}

.alert {
  color: var(--danger);
  background: #fff0f0;
}

.success {
  color: var(--success);
  background: #edf9f3;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.stats article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stats span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}

.stats strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 18px;
  align-items: start;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(320px, 390px) 1fr;
  gap: 18px;
  align-items: start;
}

.calendar-side {
  display: grid;
  gap: 18px;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.check-row {
  display: grid;
  gap: 10px;
}

.check-row label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.check-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.compact-panel {
  margin-top: 22px;
  padding: 0;
}

.list {
  display: grid;
  gap: 10px;
}

.event-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.event-actions .compact-form {
  flex-direction: row;
}

.event-actions select {
  min-width: 130px;
}

.event-row.done {
  opacity: 0.65;
  border-left-color: var(--success);
}

.event-row.compact {
  grid-template-columns: 58px 1fr;
}

.priority-low {
  border-left-color: #7ba4d8;
}

.priority-normal {
  border-left-color: var(--accent);
}

.priority-high {
  border-left-color: #d9822b;
}

.priority-urgent {
  border-left-color: var(--danger);
}

.datebox {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 8px;
  background: var(--soft);
}

.datebox strong {
  font-size: 20px;
}

.datebox span {
  color: var(--muted);
  font-size: 12px;
}

.event-main p,
.event-row p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
}

.notes {
  margin-top: 8px;
  color: #3f4b62 !important;
}

.empty {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  font-size: 12px;
  font-weight: 800;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.status-available {
  background: var(--success);
}

.status-busy {
  background: #d9822b;
}

.status-out {
  background: var(--accent);
}

.status-holiday {
  background: #8a63d2;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.history-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-section {
  margin-bottom: 18px;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.compact-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.compact-form input,
.compact-form select {
  min-width: 150px;
}

.profile-data {
  display: grid;
  gap: 10px;
}

.profile-data p {
  margin-bottom: 0;
  color: var(--muted);
}

.profile-data strong {
  color: var(--ink);
}

.note-row,
.template-row {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.note-row.done {
  opacity: 0.65;
  border-left-color: var(--success);
}

.note-row p,
.template-row p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.template-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.template-use {
  display: grid;
  grid-template-columns: 150px 120px minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.code-box {
  display: inline-flex;
  margin: 10px 0;
  padding: 12px 16px;
  border: 1px dashed var(--accent);
  border-radius: 8px;
  background: #f7fbff;
  color: var(--accent-dark);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
}

.report-preview {
  white-space: pre-wrap;
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.load-list {
  display: grid;
  gap: 12px;
}

.load-row {
  display: grid;
  grid-template-columns: minmax(190px, 260px) 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.load-meter {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.load-meter span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.load-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.load-stats span {
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
}

.wide-form,
.settings-form {
  max-width: 820px;
}

.panel-subtitle {
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 800;
}

.danger {
  color: var(--danger) !important;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.day-column {
  min-width: 150px;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.mini-event {
  display: grid;
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.mini-event span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  overflow-x: auto;
}

.month-cell {
  min-height: 130px;
  padding: 9px;
  background: #fff;
}

.muted-cell {
  background: #f8fafc;
}

.month-day {
  margin-bottom: 8px;
  font-weight: 800;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 18px;
  align-items: start;
}

.day-lead {
  min-height: 420px;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.quick-form {
  display: grid;
  gap: 12px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.capacity-line {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.capacity-line span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: var(--success);
}

.chart-bar.level-ok i,
.load-meter.level-ok span {
  background: var(--success);
  color: #116b48;
}

.chart-bar.level-medium i,
.load-meter.level-medium span {
  background: #d9822b;
  color: #8a5a00;
}

.chart-bar.level-high i,
.load-meter.level-high span {
  background: var(--danger);
  color: #a42f2f;
}

.person-card.level-ok,
.time-day.level-ok {
  border-left-color: var(--success);
}

.person-card.level-medium,
.time-day.level-medium {
  border-left-color: #d9822b;
}

.person-card.level-high,
.time-day.level-high {
  border-left-color: var(--danger);
}

.badge.level-ok {
  background: #e8f7ef;
}

.badge.level-medium {
  background: #fff4db;
}

.badge.level-high {
  background: #fff0f0;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(240px, 1fr));
  gap: 14px;
  overflow-x: auto;
  align-items: start;
}

.kanban-column {
  min-width: 240px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfe;
}

.kanban-head,
.card-top,
.person-head,
.time-day-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.kanban-list,
.automation-list,
.chart-list {
  display: grid;
  gap: 10px;
}

.kanban-card,
.person-card,
.automation-row,
.time-day {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.kanban-card p,
.person-card p,
.automation-row p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.kanban-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.kanban-actions button {
  padding: 7px 9px;
  font-size: 12px;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 18px;
}

.person-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.person-stats span,
.next-box {
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
}

.person-stats strong {
  display: block;
  color: var(--ink);
  font-size: 20px;
}

.next-box {
  display: grid;
  gap: 4px;
}

.next-box p {
  margin: 0;
}

.time-week {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 18px;
  overflow-x: auto;
}

.time-day {
  min-width: 230px;
}

.time-day h2,
.kanban-head h2 {
  margin-bottom: 2px;
}

.focus-item {
  border-left-color: var(--success);
}

.focus-item form,
.mini-event form {
  margin-top: 6px;
}

.legend-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.legend-grid span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.legend-grid i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-ok {
  background: var(--success);
}

.legend-medium {
  background: #d9822b;
}

.legend-high {
  background: var(--danger);
}

.automation-row {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.chart-row {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 2fr auto;
  gap: 10px;
  align-items: center;
}

.chart-bar {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--soft);
}

.chart-bar i {
  display: block;
  height: 100%;
  min-width: 4px;
  max-width: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.marketing-page {
  min-height: 100vh;
  background: #f6f8fc;
}

.marketing-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 46px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.marketing-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
}

.marketing-brand span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}

.marketing-nav nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.marketing-nav nav a {
  color: var(--ink);
  font-weight: 800;
}

.marketing-nav nav a.active {
  color: var(--accent-dark);
}

.marketing-section,
.marketing-cta,
.security-strip {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.marketing-hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 760px;
  overflow: hidden;
  padding: 76px 46px;
  background: #eaf0f8;
}

.hero-dashboard-scene {
  position: absolute;
  inset: 0;
  opacity: 0.95;
}

.hero-app-frame {
  position: absolute;
  right: 34px;
  bottom: 48px;
  width: min(720px, 58vw);
  min-height: 520px;
  display: grid;
  grid-template-columns: 150px 1fr;
  overflow: hidden;
  border: 1px solid #cad5e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(23, 32, 51, 0.16);
  transform: rotate(-1deg);
}

.hero-app-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  background: #f8fbff;
}

.hero-app-sidebar span {
  height: 34px;
  border-radius: 8px;
  background: #e3ebf8;
}

.hero-app-sidebar span:first-child {
  width: 70px;
  background: var(--accent);
}

.hero-app-main {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.hero-app-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.hero-app-top strong {
  font-size: 28px;
}

.hero-app-top span {
  color: var(--muted);
  font-weight: 800;
}

.hero-app-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-app-stats div,
.hero-kanban section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hero-app-stats div {
  min-height: 100px;
  padding: 16px;
}

.hero-app-stats strong,
.hero-app-stats span {
  display: block;
}

.hero-app-stats strong {
  color: var(--accent-dark);
  font-size: 24px;
}

.hero-app-stats span {
  margin-top: 8px;
  color: var(--muted);
}

.hero-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-kanban section {
  display: grid;
  gap: 10px;
  min-height: 230px;
  align-content: start;
  padding: 14px;
}

.hero-kanban b {
  color: #33405a;
}

.hero-kanban i {
  display: block;
  height: 44px;
  border-radius: 8px;
  background: #eef3fb;
}

.hero-kanban section:nth-child(2) i {
  background: #e7f6ef;
}

.hero-kanban section:nth-child(3) i {
  background: #fff1de;
}

.marketing-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.marketing-hero h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: 60px;
  line-height: 1.03;
}

.marketing-hero-copy > p:not(.eyebrow),
.marketing-section > p,
.role-demo-section p,
.split-section p,
.marketing-cta p {
  color: #4d5b73;
  font-size: 18px;
  line-height: 1.65;
}

.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 14px;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-trust-row span {
  padding: 8px 10px;
  border: 1px solid #cbd6e6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #33405a;
  font-size: 13px;
  font-weight: 800;
}

.marketing-section {
  padding: 58px 0;
}

.marketing-section h2,
.marketing-cta h2 {
  max-width: 790px;
  font-size: 38px;
  line-height: 1.12;
}

.section-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.problem-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.problem-grid,
.feature-grid,
.role-cards {
  display: grid;
  gap: 14px;
}

.problem-grid {
  grid-template-columns: 1fr;
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.feature-grid article,
.problem-grid article,
.role-cards article,
.security-strip article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-grid article,
.problem-grid article,
.role-cards article {
  padding: 22px;
}

.feature-grid p,
.problem-grid p,
.role-cards p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.role-demo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

.role-cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-cards article {
  display: grid;
  align-content: start;
  gap: 14px;
}

.role-cards article:first-child {
  border-top: 4px solid var(--accent);
}

.role-cards article:nth-child(2) {
  border-top: 4px solid var(--success);
}

.role-cards article:nth-child(3) {
  border-top: 4px solid #d9822b;
}

.role-cards p {
  margin: 0;
}

.role-cards form {
  margin-top: 4px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: start;
}

.setup-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.setup-steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 800;
}

.setup-steps strong {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--accent-dark);
}

.security-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 10px 0 48px;
}

.security-strip article {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.security-strip span {
  color: var(--muted);
}

.marketing-cta {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-bottom: 52px;
  padding: 34px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #fff;
}

.pricing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 30px;
  align-items: end;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 66px 0 32px;
}

.pricing-hero h1 {
  max-width: 860px;
  margin-bottom: 14px;
  font-size: 52px;
  line-height: 1.06;
}

.pricing-hero p {
  max-width: 780px;
  color: #4d5b73;
  font-size: 18px;
  line-height: 1.65;
}

.pricing-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.pricing-hero-points span {
  padding: 8px 10px;
  border: 1px solid #cbd6e6;
  border-radius: 999px;
  background: #fff;
  color: #33405a;
  font-size: 13px;
  font-weight: 800;
}

.savings-panel {
  display: grid;
  gap: 4px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--success);
  border-radius: 8px;
  background: #fff;
}

.savings-panel > span {
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.savings-panel strong {
  color: var(--ink);
  font-size: 54px;
  line-height: 1;
}

.savings-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.pricing-section {
  padding-top: 26px;
}

.pricing-section-lead {
  max-width: 760px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.pricing-card {
  display: grid;
  grid-template-rows: auto auto auto auto 1fr auto;
  gap: 15px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-top: 4px solid #cbd6e6;
  border-radius: 8px;
  background: #fff;
}

.pricing-card-featured {
  border-top-color: var(--accent);
  box-shadow: 0 18px 42px rgba(47, 109, 246, 0.12);
}

.pricing-card-head {
  display: grid;
  gap: 8px;
}

.pricing-card-head h3 {
  margin: 0;
  font-size: 20px;
}

.pricing-card-head span {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.pricing-card p,
.pricing-card li,
.pricing-limit {
  color: var(--muted);
  line-height: 1.5;
}

.pricing-card > p {
  min-height: 92px;
}

.pricing-amount {
  display: grid;
  gap: 0;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.pricing-price-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
}

.pricing-price-line + .pricing-price-line {
  border-top: 1px solid var(--line);
}

.pricing-price-line.pricing-annual {
  color: var(--success);
}

.pricing-amount strong {
  color: var(--ink);
  font-size: 21px;
  white-space: nowrap;
}

.pricing-amount span {
  color: #33405a;
  font-weight: 900;
}

.pricing-amount em {
  grid-column: 1 / -1;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dff5e9;
  color: var(--success);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.pricing-limit {
  min-height: 58px;
  font-weight: 800;
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.pricing-card .link-button,
.pricing-card form {
  align-self: end;
}

.pricing-actions {
  display: grid;
  gap: 8px;
  align-self: end;
}

.pricing-actions .link-button {
  text-align: center;
}

.pricing-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 46px;
}

.pricing-note article {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pricing-note span {
  color: var(--muted);
  line-height: 1.5;
}

.order-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 28px;
  align-items: start;
}

.order-form {
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-block {
  display: grid;
  gap: 14px;
}

.order-block + .order-block {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.order-block h3 {
  margin: 0;
  color: #243149;
  font-size: 16px;
}

.order-choice-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 14px;
  align-items: start;
}

.order-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.billing-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.billing-choice legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: #33405a;
  font-size: 14px;
  font-weight: 800;
}

.billing-choice label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.billing-choice label:has(input:checked) {
  border-color: #a9c8ff;
  background: #f3f7ff;
}

.billing-choice input {
  width: auto;
  margin-top: 3px;
}

.billing-choice strong,
.billing-choice small {
  display: block;
}

.billing-choice small {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.checkbox-row input {
  width: auto;
  margin-top: 2px;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.setup-wizard section {
  display: grid;
  gap: 14px;
}

.setup-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.setup-progress span {
  padding: 10px;
  border-radius: 8px;
  background: var(--soft);
  color: #33405a;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .content {
    padding: 20px;
  }

  .grid-two,
  .calendar-layout,
  .login-options,
  .plan-grid,
  .work-grid,
  .dashboard-grid,
  .stats,
  .marketing-hero,
  .problem-band,
  .feature-grid,
  .role-demo-section,
  .role-cards,
  .split-section,
  .security-strip,
  .pricing-hero,
  .pricing-grid,
  .pricing-note,
  .order-section,
  .order-choice-grid,
  .billing-choice,
  .order-form-grid,
  .setup-progress {
    grid-template-columns: 1fr;
  }

  .marketing-hero {
    min-height: auto;
    padding: 48px 20px 360px;
  }

  .marketing-hero h1 {
    font-size: 40px;
  }

  .hero-app-frame {
    right: 18px;
    bottom: 24px;
    width: calc(100% - 36px);
    min-height: 300px;
    grid-template-columns: 74px 1fr;
    transform: none;
  }

  .hero-app-sidebar {
    padding: 14px 10px;
  }

  .hero-app-sidebar span {
    height: 26px;
  }

  .hero-app-main {
    gap: 10px;
    padding: 14px;
  }

  .hero-app-top {
    display: grid;
  }

  .hero-app-top strong {
    font-size: 20px;
  }

  .hero-app-stats,
  .hero-kanban {
    grid-template-columns: 1fr;
  }

  .hero-app-stats div {
    min-height: 62px;
  }

  .hero-kanban section {
    min-height: 84px;
  }

  .hero-kanban section:nth-child(2),
  .hero-kanban section:nth-child(3) {
    display: none;
  }

  .marketing-section h2,
  .marketing-cta h2 {
    font-size: 30px;
  }

  .pricing-hero h1 {
    font-size: 34px;
  }

  .pricing-hero {
    padding: 42px 0 26px;
  }

  .pricing-card > p,
  .pricing-limit {
    min-height: 0;
  }

  .marketing-nav {
    align-items: stretch;
    flex-direction: column;
    padding: 16px 20px;
  }

  .marketing-nav nav {
    justify-content: flex-start;
  }

  .compact-form {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-row,
  .history-row {
    grid-template-columns: 1fr;
  }

  .event-row {
    grid-template-columns: 58px 1fr;
  }

  .event-row form {
    grid-column: 1 / -1;
  }

  .event-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .template-use,
  .inline-fields,
  .load-row {
    grid-template-columns: 1fr;
  }

  .week-grid,
  .month-grid,
  .time-week,
  .kanban-board {
    grid-template-columns: 1fr;
  }

  .person-stats,
  .automation-row,
  .chart-row {
    grid-template-columns: 1fr;
  }
}
