:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #102033;
  background: #f7fbff;
  --ink: #102033;
  --muted: #607086;
  --panel: #ffffff;
  --paper: #f7fbff;
  --line: #d9e5ef;
  --navy: #102033;
  --blue: #3b82f6;
  --blue-dark: #1d5fd6;
  --cyan: #22c6a3;
  --green: #16a979;
  --amber: #d97706;
  --lavender: #eaf4ff;
  --red: #b42318;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f4f8fc;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.legal-consent {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.legal-consent input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--blue);
}

.legal-consent a {
  color: var(--blue-dark);
  font-weight: 800;
  text-decoration: underline;
}

.site-footer {
  min-height: 110px;
  padding: 26px clamp(20px, 5vw, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--navy);
  color: #ffffff;
}

.site-footer > div {
  display: grid;
  gap: 4px;
}

.site-footer > div span {
  color: #b8c7d9;
  font-size: 13px;
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  color: #d9e5ef;
  font-size: 13px;
}

.site-footer nav a:hover {
  color: #ffffff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 78px;
  padding: 0 clamp(20px, 5vw, 84px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(219, 227, 238, 0.86);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(22px);
}

.brand,
nav,
.hero-actions,
.trust-strip,
.account-steps {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 950;
}

.brand-logo {
  width: 164px;
  height: 48px;
  display: block;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, var(--navy), var(--cyan));
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0;
}

nav {
  gap: 26px;
  color: #526071;
  font-weight: 850;
}

nav a {
  padding: 8px 0;
}

nav a:hover {
  color: var(--blue);
}

.header-action,
.primary,
.secondary,
.plan button {
  min-height: 44px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 950;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.pricing-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 20px 22px;
  border-bottom: 1px solid #e2e9f2;
  text-align: left;
  vertical-align: middle;
}

.pricing-table th {
  color: #40516a;
  background: #f7f9fc;
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
}

.pricing-table th small {
  display: block;
  margin-top: 3px;
  color: #718096;
  font-size: 11px;
  text-transform: none;
}

.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table tbody tr.recommended {
  background: #f0f6ff;
}

.pricing-table td:first-child strong,
.pricing-table td:nth-child(2) strong {
  display: block;
  color: var(--ink);
  font-size: 19px;
}

.pricing-table td:first-child span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.pricing-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.header-action,
.primary,
.plan button {
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.22);
}

.header-action:hover,
.primary:hover,
.plan button:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

.secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: #d6dfeb;
}

.secondary:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.hidden {
  display: none !important;
}

.hero {
  min-height: calc(100vh - 118px);
  padding: clamp(48px, 6vw, 84px) clamp(20px, 5vw, 84px) 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(500px, 1.08fr);
  align-items: center;
  gap: clamp(36px, 5vw, 80px);
  background: #ffffff;
}

.hero-copy {
  max-width: 760px;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0;
  color: #526071;
  font-size: 20px;
  line-height: 1.58;
}

.eyebrow,
.panel-kicker {
  display: inline-flex;
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
}

.trust-strip {
  margin-top: 28px;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-strip span,
.account-steps span {
  border: 1px solid #d6dfeb;
  border-radius: 7px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.82);
  color: #435166;
  font-size: 13px;
  font-weight: 900;
}

.product-visual {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(160deg, #102033 0%, #12263d 58%, #0b3c43 100%);
  color: #f8fafc;
  box-shadow: 0 28px 70px rgba(15, 35, 58, 0.2);
  overflow: hidden;
}

.visual-top {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #b9c6d8;
}

.window-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #f97316;
  box-shadow: 22px 0 0 #facc15, 44px 0 0 #22c55e;
}

.visual-top strong {
  margin-left: 48px;
  color: #ffffff;
}

.visual-top em {
  margin-left: auto;
  font-style: normal;
  font-weight: 850;
  color: #a7f3d0;
}

.visual-board {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.visual-kpi,
.visual-flow,
.visual-columns article {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
}

.visual-kpi small,
.visual-columns small {
  display: block;
  color: #b9c6d8;
  font-weight: 850;
}

.visual-kpi strong {
  display: block;
  margin: 10px 0;
  font-size: 46px;
  color: #ffffff;
}

.visual-kpi span,
.visual-columns span {
  color: #bdd1c8;
}

.visual-kpi.accent {
  background:
    linear-gradient(135deg, #dbeafe, #cffafe);
  color: #132238;
}

.visual-kpi.accent small,
.visual-kpi.accent strong,
.visual-kpi.accent span {
  color: #132238;
}

.visual-flow {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
}

.flow-step {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.07);
}

.flow-step b {
  color: #ffffff;
}

.flow-step span {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 850;
}

.flow-step.done {
  border-left: 4px solid #22c55e;
}

.flow-step.current {
  border-left: 4px solid #f59e0b;
}

.visual-columns {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.visual-columns strong {
  display: block;
  margin: 7px 0 3px;
  color: #ffffff;
}

.visual-columns small,
.visual-columns span {
  color: #cbd5e1;
}

.proof-band {
  margin: -30px clamp(20px, 5vw, 84px) 0;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.09);
}

.proof-band article {
  padding: 24px 26px;
  border-right: 1px solid #e8eef6;
}

.proof-band article:last-child {
  border-right: 0;
}

.proof-band strong,
.proof-band span {
  display: block;
}

.proof-band span {
  margin-top: 6px;
  color: var(--muted);
}

.section {
  padding: 88px clamp(20px, 5vw, 84px);
}

.section-head {
  max-width: 820px;
  margin-bottom: 32px;
}

.section-head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.58;
}

.centered-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.feature-grid,
.plans {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1220px;
  margin: 0 auto;
}

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

.feature-grid article,
.plan,
.checkout-form,
.account-intro,
.portal-account {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.feature-grid article {
  min-height: 210px;
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  gap: 10px 18px;
}

.feature-grid article h3,
.feature-grid article p { grid-column: 2; }
.feature-grid article p { margin: 0; }

.feature-index,
.plan-label {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--lavender);
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 950;
}

.feature-grid p,
.plan p,
.account-intro p {
  color: var(--muted);
  line-height: 1.58;
}

.plan {
  min-height: 354px;
  padding: 28px;
  display: grid;
  gap: 16px;
  align-content: start;
}

.plan.featured {
  border-color: #93c5fd;
  box-shadow: 0 26px 64px rgba(37, 99, 235, 0.16);
}

.plan strong {
  font-size: 30px;
}

.plan ul {
  margin: 0;
  padding-left: 18px;
  color: #526071;
  line-height: 1.7;
}

.plan button {
  width: 100%;
  align-self: end;
}

.method-section {
  background: #102033;
  color: #ffffff;
}

.method-section .section-head {
  max-width: 900px;
}

.method-section .eyebrow { color: #7dd3fc; }
.method-section .section-head p:not(.eyebrow) { color: #bdc9d8; }

.method-grid,
.role-grid {
  display: grid;
  gap: 18px;
}

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

.method-grid article,
.role-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
}

.method-grid article {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

.method-grid article {
  min-height: 260px;
  padding: 30px;
  display: grid;
  align-content: start;
  gap: 16px;
}

.method-grid span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #22c6a3;
  color: #082f2a;
  font-weight: 950;
}

.method-grid p,
.role-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
}

.method-grid p { color: #bdc9d8; }

.roles-section {
  background: #eef4f8;
}

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

.role-grid article {
  min-height: 190px;
  padding: 28px;
}

.role-grid article:nth-child(2) {
  border-top: 4px solid #3b82f6;
  background: #ffffff;
}

.role-grid article:nth-child(3) {
  border-top: 4px solid #16a979;
  background: #ffffff;
}

.role-grid article:first-child { border-top: 4px solid #d97706; }

.home-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1240px;
  margin: 0 auto;
}

.home-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 430px;
  padding: 28px;
  border: 1px solid #d9e4ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 35, 58, 0.07);
}

.home-plan--featured {
  border-color: #3b82f6;
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.14);
}

.home-plan-badge { position: absolute; top: -13px; right: 20px; padding: 6px 11px; border-radius: 999px; background: #1d5fd6; color: #fff; font-size: 11px; font-weight: 950; }
.home-plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 20px; }
.home-plan-price strong { color: #102033; font-size: 36px; }
.home-plan-price span { color: var(--muted); font-weight: 850; }
.home-plan > p { min-height: 72px; margin: 14px 0; color: var(--muted); line-height: 1.55; }
.home-plan ul { display: grid; gap: 11px; margin: 4px 0 22px; padding: 0; color: #40516a; list-style: none; }
.home-plan li::before { content: '\2713'; margin-right: 9px; color: #078258; font-weight: 950; }
.home-plan > small { margin-top: auto; padding-bottom: 18px; color: var(--muted); font-weight: 800; }
.home-plan button { width: 100%; }

.final-cta {
  margin: 0 clamp(20px, 5vw, 84px) 96px;
  padding: clamp(30px, 5vw, 48px);
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  background: #102033;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.final-cta h2 {
  max-width: 860px;
  font-size: clamp(28px, 3.4vw, 44px);
}

.final-cta .eyebrow {
  color: #bfdbfe;
}

.final-cta .primary {
  background: #ffffff;
  color: var(--navy);
  box-shadow: none;
}

.final-cta .primary:hover {
  background: #eaf2ff;
}

.final-cta .secondary {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}

.final-cta .secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.portal-section {
  min-height: calc(100vh - 78px);
  background:
    linear-gradient(180deg, #f8fbff, #eef4f8);
}

.account-title {
  max-width: 940px;
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(430px, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1180px;
}

.account-intro {
  min-height: 440px;
  padding: 38px;
  border-radius: 8px;
  background:
    linear-gradient(160deg, #102033 0%, #071523 100%);
  color: #fffdf8;
}

.account-intro p {
  color: #cbd5cf;
  line-height: 1.65;
}

.account-intro .panel-kicker {
  color: #93c5fd;
}

.account-steps {
  margin-top: 24px;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.account-steps span {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #edf5ef;
}

.account-forms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid #dce6f1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 35, 58, 0.1);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px;
  border-bottom: 1px solid #e5edf6;
  background: #f5f8fc;
}

.auth-tabs button {
  min-height: 46px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #617188;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.auth-tabs button.active {
  background: #fff;
  color: #102033;
  box-shadow: 0 2px 10px rgba(15, 35, 58, 0.1);
}

.checkout-form {
  padding: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-form {
  padding: 30px;
}

.auth-form-head {
  padding-bottom: 6px;
}

.auth-form-head h3 {
  margin-top: 6px;
  font-size: 25px;
}

.auth-form-head p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.auth-submit {
  min-height: 48px;
}

.compact-form {
  min-width: 0;
}

.portal-account {
  overflow: hidden;
  background: #ffffff;
}

.account-head {
  min-height: 96px;
  padding: 22px 24px;
  border-bottom: 1px solid #e7eef8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(135deg, #102033 0%, #1f4f86 100%);
  color: #fffdf8;
}

.account-head .panel-kicker {
  color: #bfdbfe;
}

.account-head strong,
.account-head small {
  display: block;
}

.account-head strong {
  font-size: 24px;
}

.account-head small {
  margin-top: 4px;
  color: #cbd5cf;
  font-weight: 850;
}

.portal-nav {
  display: flex;
  gap: 4px;
  padding: 10px 18px 0;
  border-bottom: 1px solid #e7eef8;
  background: #f8fbff;
  overflow-x: auto;
}

.portal-nav button {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #607087;
  font: inherit;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.portal-nav button.active {
  border-bottom-color: #2563eb;
  color: #102033;
}

.nav-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
}

.portal-panel {
  min-height: 390px;
  background: #fff;
}

.overview-head,
.portal-panel-head {
  padding: 28px 28px 20px;
}

.overview-head h3,
.portal-panel-head h3 {
  margin-top: 5px;
  font-size: 25px;
}

.overview-head p,
.portal-panel-head p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--muted);
}

.portal-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #e7eef8;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 0 28px 30px;
}

.overview-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 92px;
  padding: 17px;
  border: 1px solid #dce6f2;
  border-radius: 8px;
  background: #fff;
  color: #102033;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 35, 58, 0.05);
}

.overview-item:hover {
  border-color: #a9c7eb;
  background: #f8fbff;
}

.overview-item small,
.overview-item strong { display: block; }
.overview-item small { margin-bottom: 4px; color: var(--muted); font-weight: 800; }
.overview-item strong { font-size: 16px; }
.overview-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 8px; background: #e9f2ff; color: #1d5fb7; font-weight: 950; }
.overview-icon--green { background: #e5f7ed; color: #08794d; font-size: 22px; }
.overview-icon--amber { background: #fff3dc; color: #a55a05; font-size: 19px; }
.overview-arrow { color: #8da0b5; font-size: 28px; }

[data-portal-panel="plans"] .portal-panel-head,
[data-portal-panel="plans"] .contract-form {
  width: calc(100% - 64px);
  max-width: 1500px;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}

[data-portal-panel="plans"] .portal-panel-head {
  padding: 30px 0 26px;
}

.contract-form {
  max-width: none;
  padding: 30px 0 38px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  background: #ffffff;
}

.plan-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  padding: 22px;
  border: 1px solid #d8e2ee;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(15, 35, 58, 0.05);
}

.plan-choice:has(input:checked) {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 12px 28px rgba(15, 35, 58, 0.08);
}

.plan-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.plan-choice__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  color: #102033;
}

.plan-choice__top strong { font-size: 21px; }
.plan-choice__top > span { font-size: 22px; font-weight: 950; white-space: nowrap; }
.plan-choice__top small { color: var(--muted); font-size: 12px; }
.plan-choice__annual { margin-top: 5px; color: var(--muted); font-size: 13px; font-weight: 750; }
.plan-choice__users { margin-top: 18px; color: #1d4ed8; font-size: 15px; font-weight: 950; }
.plan-choice__features { display: grid; gap: 9px; margin-top: 16px; color: #43546a; font-weight: 750; }
.plan-choice__features span::before { content: '\2713'; margin-right: 9px; color: #078258; font-weight: 950; }
.plan-choice__extra { margin-top: auto; padding-top: 20px; color: #52657b; font-size: 13px; font-weight: 900; }
.plan-choice__flag { position: absolute; top: -12px; right: 16px; padding: 5px 10px; border-radius: 999px; background: #1d4ed8; color: #fff; font-size: 11px; font-weight: 950; }

.contract-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 2px;
}

.contract-actions p {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.contracts-list {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: #f6f9fc;
}

.support-area {
  background: #fff;
}

.support-head {
  padding: 26px 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.support-head h3 { margin-top: 5px; font-size: 24px; }
.support-head p { margin: 7px 0 0; color: var(--muted); }

.ticket-form {
  margin: 0 24px 24px;
  padding: 20px;
  border: 1px solid #d7e3f1;
  border-radius: 8px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px 160px;
  gap: 16px;
}

.ticket-form .full { grid-column: 1 / -1; }
.ticket-form-actions { display: flex; justify-content: flex-end; gap: 10px; }

.tickets-list { display: grid; border-top: 1px solid #e4ebf4; }
.tickets-empty { padding: 28px 24px; display: grid; gap: 5px; color: var(--muted); }
.tickets-empty strong { color: var(--ink); }

.ticket-card { border-bottom: 1px solid #e2eaf4; background: #fff; }
.ticket-card summary {
  min-height: 96px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  list-style: none;
}
.ticket-card summary::-webkit-details-marker { display: none; }
.ticket-summary-main { display: grid; gap: 7px; min-width: 0; }
.ticket-summary-main strong { overflow: hidden; color: #102033; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.ticket-summary-main small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.ticket-summary-meta { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.ticket-priority { padding: 5px 9px; border-radius: 999px; background: #eef3f8; color: #536478; font-size: 12px; font-weight: 900; }
.ticket-priority.high, .ticket-priority.urgent { background: #fee8e7; color: #a62525; }
.ticket-chevron { display: grid; place-items: center; width: 32px; height: 32px; color: #71849a; font-size: 26px; transition: transform 160ms ease; }
.ticket-card[open] .ticket-chevron { transform: rotate(90deg); }
.status-pill.neutral { background: #e8edf3; color: #526173; }

.ticket-thread { padding: 22px 24px; border-top: 1px solid #e8eef6; display: grid; gap: 14px; background: #f9fbfe; }
.ticket-message { max-width: min(720px, 88%); padding: 14px 16px; border: 1px solid #dbe5f0; border-radius: 8px; background: #fff; }
.ticket-message.customer { justify-self: end; background: #edf5ff; border-color: #ccdef4; }
.ticket-message > div { display: flex; justify-content: space-between; gap: 20px; }
.ticket-message time { color: var(--muted); font-size: 12px; }
.ticket-message p { margin: 8px 0 0; color: #33445a; line-height: 1.55; }
.ticket-reply { padding: 18px 24px 24px; border-top: 1px solid #e4ebf4; background: #fff; }
.ticket-reply > div { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ticket-closed-note { margin: 0; padding: 16px 24px 22px; color: var(--muted); }
.ticket-pagination { min-height: 66px; padding: 12px 24px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; background: #fff; border-top: 1px solid #e4ebf4; }
.ticket-pagination span { color: var(--muted); font-size: 13px; font-weight: 850; }
.ticket-pagination button { min-height: 36px; padding: 0 13px; }

@media (max-width: 760px) {
  .support-head, .ticket-card summary { align-items: flex-start; }
  .ticket-form { grid-template-columns: 1fr; }
  .ticket-form .full { grid-column: auto; }
  .ticket-card summary { min-height: 0; flex-direction: column; }
  .ticket-summary-main { width: 100%; }
  .ticket-summary-meta { width: 100%; justify-content: flex-start; }
  .ticket-chevron { margin-left: auto; }
  .ticket-message { max-width: 100%; }
  .ticket-pagination { justify-content: space-between; padding-inline: 16px; }
}

.contract-card {
  padding: 22px;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
  gap: 24px;
  align-items: stretch;
  background: #fff;
  box-shadow: 0 8px 22px rgba(15, 35, 58, 0.04);
}

.contract-card:last-child {
  border-bottom: 0;
}

.contract-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.contract-title-row small {
  color: #1d5fb7;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.contract-card h3 {
  margin-top: 5px;
  font-size: 22px;
}

.contract-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.contract-details {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #e7edf4;
}

.contract-details div {
  min-width: 0;
  padding: 14px 14px 0 0;
}

.contract-details dt {
  margin: 0 0 2px;
  color: #68746f;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.contract-details dd {
  margin: 0;
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 950;
}

.status-pill.ok {
  background: #dcfce7;
  color: #047857;
}

.status-pill.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-pill.bad {
  background: #fbe0de;
  color: var(--red);
}

.erp-access-panel {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 18px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  background: #f8fbff;
}

.erp-access-panel small {
  color: var(--muted);
}

.erp-access-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid #dfe8f2; }
.erp-access-head small, .erp-access-head strong { display: block; }
.erp-access-head strong { margin-top: 3px; }
.credential-row { display: grid; grid-template-columns: 125px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; }
.credential-row > span { color: var(--muted); font-size: 12px; font-weight: 850; }
.credential-row > strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.credential-row button { min-height: 30px; padding: 0 9px; border: 1px solid #ccd9e8; border-radius: 7px; background: #fff; color: #24588d; font-weight: 900; cursor: pointer; }
.erp-access-panel--removed { align-content: center; border-color: #f1d1d1; background: #fff8f8; color: #9f2727; }

.erp-unavailable {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #efcaca;
  border-radius: 7px;
  background: #fff1f1;
  color: #9f2727;
  font-weight: 900;
}

.activation-note {
  justify-items: start;
}

.error-text {
  color: var(--red) !important;
}

label {
  display: grid;
  gap: 8px;
  color: #40504a;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6dfeb;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

input,
select {
  height: 44px;
}

textarea {
  resize: vertical;
  padding-top: 12px;
}

.full {
  grid-column: 1 / -1;
}

.form-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 900;
}

.site-footer {
  color: #ffffff;
  border-top: 0;
  background: var(--navy);
}

@media (max-width: 1120px) {
  .hero,
  .portal-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .method-grid,
  .role-grid,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .account-intro {
    min-height: 0;
  }

  .final-cta {
    margin-left: 20px;
    margin-right: 20px;
  }

  .plan-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  nav {
    width: 100%;
    gap: 14px;
    flex-wrap: wrap;
  }

  .hero,
  .section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .proof-band {
    margin-left: 18px;
    margin-right: 18px;
  }

  .visual-board,
  .visual-columns,
  .proof-band,
  .feature-grid,
  .method-grid,
  .role-grid,
  .plans,
  .checkout-form,
  .account-forms,
  .overview-grid,
  .plan-choice-grid,
  .home-plan-grid,
  .contract-form,
  .contract-card {
    grid-template-columns: 1fr;
  }

  .proof-band article {
    border-right: 0;
    border-bottom: 1px solid #e7eef8;
  }

  .proof-band article:last-child {
    border-bottom: 0;
  }

  .portal-nav {
    flex-wrap: nowrap;
    gap: 2px;
  }

  .portal-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .contract-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .contract-actions .primary {
    width: 100%;
  }

  .overview-head,
  .portal-panel-head {
    padding: 22px 18px 16px;
  }

  [data-portal-panel="plans"] .portal-panel-head,
  [data-portal-panel="plans"] .contract-form {
    width: calc(100% - 36px);
  }

  [data-portal-panel="plans"] .portal-panel-head {
    padding: 22px 0 18px;
  }

  [data-portal-panel="plans"] .contract-form {
    padding: 22px 0 28px;
  }

  .overview-grid {
    padding: 0 18px 24px;
  }

  .contracts-list { padding: 14px; }
  .contract-card { padding: 18px; }
  .contract-title-row { align-items: flex-start; flex-direction: column-reverse; }
  .contract-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .erp-access-head { align-items: flex-start; flex-direction: column; }
  .credential-row { grid-template-columns: 1fr auto; }
  .credential-row > span { grid-column: 1 / -1; }
}
