:root {
  --navy: #052451;
  --navy-2: #061f46;
  --navy-3: #0d2c5d;
  --blue: #1d67b2;
  --blue-soft: #edf5ff;
  --gold: #d9a441;
  --gold-deep: #c98b24;
  --gold-soft: #fff5df;
  --text: #0d2345;
  --muted: #5d6d82;
  --line: #dfe8f0;
  --white: #ffffff;
  --shadow: 0 22px 45px rgba(13, 35, 69, 0.12);
  --shadow-soft: 0 16px 34px rgba(13, 35, 69, 0.08);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}

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

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  height: 44px;
  padding: 0 25px;
  border: 0;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(5, 36, 81, 0.22);
}

.btn-gold {
  background: linear-gradient(135deg, #dfad49, #c98b24);
  color: var(--white);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: transparent;
}

.btn-soft {
  background: var(--blue-soft);
  color: var(--navy);
}

.btn-line {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--navy);
}

.icon-inline,
.brand-icon,
.trust-icon svg,
.gold-icon svg,
.service-link-icon svg,
.footer-contact-icon svg {
  display: block;
}

.brand-icon {
  width: 38px;
  height: 38px;
  color: var(--gold);
}

.service-link-icon,
.footer-contact-icon {
  width: 18px;
  height: 18px;
}

.landing-page {
  background: #ffffff;
}

.nav {
  height: 78px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 64px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 20;
}

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

.logo-copy strong {
  display: block;
  font-family: var(--serif);
  font-size: 25px;
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 0.9;
}

.logo-copy small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 9px;
  font-weight: 800;
  color: #50627a;
}

.links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
}

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

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

.btn-portal {
  border-color: rgba(5, 36, 81, 0.16);
  background: #ffffff;
  color: var(--navy);
  box-shadow: 0 10px 22px rgba(5, 36, 81, 0.08);
}

.btn-portal:hover {
  color: var(--blue);
  border-color: rgba(29, 103, 178, 0.22);
}

.hero {
  min-height: 553px;
  background:
    linear-gradient(
      90deg,
      #f9fcff 0%,
      rgba(249, 252, 255, 0.92) 35%,
      rgba(249, 252, 255, 0.48) 61%,
      rgba(249, 252, 255, 0.12) 100%
    ),
    url("https://images.unsplash.com/photo-1629909613654-28e377c37b09?q=80&w=1800&auto=format&fit=crop")
      center right / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.09));
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: 553px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin-bottom: 22px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 15px;
  background: var(--gold);
}

.hero h1 {
  margin: 0 0 26px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 66px;
  line-height: 0.93;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-copy p {
  max-width: 455px;
  margin: 0 0 33px;
  color: #485a72;
  font-size: 17px;
  line-height: 1.82;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.hero-badges span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check {
  width: 17px;
  height: 17px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--gold);
  font-size: 11px;
  flex: 0 0 auto;
}

.appt-card {
  width: 320px;
  justify-self: center;
  padding: 28px 28px 31px;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.appt-card h2 {
  margin: 0 0 21px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 23px;
  text-align: center;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.field {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #dbe2e8;
  border-radius: 2px;
  background: #ffffff;
  color: #526174;
  font-size: 12px;
  outline: none;
}

.field:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 103, 178, 0.09);
}

textarea.field {
  height: 70px;
  padding-top: 11px;
  resize: none;
}

.success-text {
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.trust-strip {
  position: relative;
  z-index: 4;
  max-width: 1110px;
  margin: -66px auto 0;
  min-height: 130px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(13, 35, 69, 0.13);
}

.trust-item {
  padding: 26px 18px;
  text-align: center;
  color: var(--navy);
  border-right: 1px solid var(--line);
}

.trust-item:last-child {
  border-right: 0;
}

.trust-icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  color: var(--blue);
}

.trust-item strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.04;
}

.section {
  padding: 38px 0 22px;
  background: #ffffff;
}

.section-title {
  margin-bottom: 25px;
  text-align: center;
}

.kicker {
  margin-bottom: 5px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 36px;
  line-height: 1.05;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.service-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 8px 18px rgba(5, 36, 81, 0.04);
}

.service-img {
  height: 128px;
}

.service-body {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 13px;
  padding: 19px;
}

.gold-icon {
  width: 33px;
  height: 33px;
  color: var(--gold);
}

.service-card h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
}

.service-card p {
  margin: 0 0 9px;
  color: #5e6f84;
  font-size: 12px;
  line-height: 1.45;
}

.learn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
}

.learn svg {
  width: 12px;
  height: 12px;
}

.care-band {
  margin-top: 18px;
  padding: 44px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(135deg, #052451, #071a3a);
}

.care-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

.care-left {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 28px;
  align-items: center;
}

.circle-tooth {
  width: 85px;
  height: 85px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold);
}

.circle-tooth svg {
  width: 42px;
  height: 42px;
}

.care-band h2 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.02;
  text-transform: uppercase;
}

.care-band p {
  margin: 0;
  color: #d9e6f3;
}

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

.care-list div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #ffffff;
}

.care-list .check {
  margin-top: 2px;
  background: var(--gold);
  border-color: var(--gold);
  color: #ffffff;
}

.who {
  padding: 37px 0 24px;
}

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.who-card {
  min-height: 145px;
  display: grid;
  grid-template-columns: 135px 1fr;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  box-shadow: 0 8px 18px rgba(5, 36, 81, 0.04);
}

.who-img {
  height: 145px;
}

.who-body {
  position: relative;
  padding: 23px 18px;
}

.who-body h3 {
  margin: 0 0 9px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 21px;
}

.who-body p {
  margin: 0 0 11px;
  color: #5e6f84;
  font-size: 12px;
  line-height: 1.45;
}

.floating-icon {
  position: absolute;
  left: -25px;
  bottom: 14px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff;
  box-shadow: 0 10px 25px rgba(13, 35, 69, 0.11);
  color: var(--gold);
}

.floating-icon svg {
  width: 24px;
  height: 24px;
}

.process {
  padding: 13px 0 30px;
}

.process-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
  padding: 0 16px;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
}

.num {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
}

.step-icon {
  width: 32px;
  height: 32px;
  color: var(--blue);
}

.step strong {
  display: block;
  margin-bottom: 3px;
  color: var(--navy);
  font-weight: 900;
}

.step p {
  margin: 0;
  color: #5e6f84;
  font-size: 12px;
  line-height: 1.42;
}

.testimonials {
  padding: 20px 0 42px;
  background: linear-gradient(#ffffff, #fbfdff);
}

.review-wrap {
  display: grid;
  grid-template-columns: 35px 1fr 35px;
  align-items: center;
  gap: 22px;
}

.arrow {
  color: var(--navy);
  font-size: 42px;
  text-align: center;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

.review {
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(13, 35, 69, 0.08);
}

.stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.review p {
  margin: 9px 0 14px;
  color: #3b4b61;
  font-size: 13px;
  line-height: 1.55;
}

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

.avatar {
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 50%;
}

.client strong {
  color: var(--navy);
  font-size: 12px;
}

.bottom-cta {
  padding: 27px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #062653, #071b3d);
}

.bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.bottom-cta h2 {
  margin: 0 0 3px;
  font-family: var(--serif);
  font-size: 32px;
}

.bottom-cta p {
  margin: 0;
  color: #d6e3f0;
}

.bottom-actions {
  display: flex;
  gap: 20px;
}

.bottom-actions .btn {
  min-width: 180px;
  height: 51px;
}

.footer {
  padding: 45px 0 20px;
  color: #ffffff;
  background: #041d43;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr 0.95fr 0.85fr;
  gap: 50px;
}

.footer p,
.footer li {
  color: #d9e2ec;
  font-size: 13px;
}

.footer h4 {
  margin: 0 0 14px;
  font-weight: 900;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li {
  margin-bottom: 5px;
}

.footer-link-list a:hover {
  color: #ffffff;
}

.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.footer-contact-icon {
  flex: 0 0 auto;
  color: var(--gold);
}

.social {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.social span {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1b5b9d;
}

.copy {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  color: #c5d1dd;
  font-size: 11px;
}

.portal-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(29, 103, 178, 0.09), transparent 28rem),
    linear-gradient(180deg, #f7fbff 0%, #eff5fb 100%);
}

.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(13, 35, 69, 0.08);
}

.portal-nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.portal-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.portal-nav-links a,
.portal-nav-links button {
  padding: 10px 14px;
  border: 1px solid rgba(5, 36, 81, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.portal-nav-links a.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.portal-main {
  padding: 30px 0 42px;
}

.portal-grid {
  display: grid;
  gap: 22px;
}

.surface-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(5, 36, 81, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.surface-card.padded {
  padding: 24px;
}

.page-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: stretch;
}

.page-hero h1,
.section-head h2,
.metric-card h2,
.module-card h3,
.list-card h3,
.table-head h2,
.portal-footer h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
}

.page-hero h1 {
  font-size: 46px;
  line-height: 0.95;
}

.page-lead {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head h2 {
  font-size: 32px;
  line-height: 1;
}

.section-head p,
.metric-card p,
.list-card p,
.status-note,
.field-help,
.mini-note,
.chart-note {
  margin: 0;
  color: var(--muted);
}

.mini-kicker {
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-stack,
.stats-grid,
.module-grid,
.dual-grid,
.three-grid,
.four-grid,
.list-grid,
.payroll-grid {
  display: grid;
  gap: 18px;
}

.hero-stack {
  grid-template-columns: 1fr;
}

.stats-grid {
  grid-template-columns: repeat(4, 1fr);
}

.metric-card {
  padding: 20px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(5, 36, 81, 0.08);
  border-radius: 16px;
}

.metric-card h2 {
  margin-top: 6px;
  font-size: 34px;
  line-height: 1;
}

.metric-card p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.55;
}

.login-card,
.clock-card,
.panel-card {
  padding: 24px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

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

.field-label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.field-label input,
.field-label select,
.field-label textarea {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #d9e4ef;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
}

.field-label textarea {
  min-height: 96px;
  padding-top: 12px;
  resize: vertical;
}

.field-label input:focus,
.field-label select:focus,
.field-label textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 103, 178, 0.09);
}

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

.session-chip,
.status-badge,
.tool-chip,
.period-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.session-chip {
  background: var(--gold-soft);
  color: var(--navy);
}

.status-badge {
  background: #edf5ff;
  color: var(--navy);
}

.status-badge.is-warn {
  background: #fff4e2;
  color: #845000;
}

.status-badge.is-done {
  background: #e6f4ed;
  color: #166534;
}

.tool-chip {
  background: rgba(5, 36, 81, 0.06);
  color: var(--navy);
}

.period-chip {
  border: 1px solid rgba(5, 36, 81, 0.1);
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  cursor: pointer;
}

.period-chip.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.status-line {
  min-height: 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

.status-line.is-muted {
  color: var(--muted);
}

.module-grid {
  grid-template-columns: repeat(4, 1fr);
}

.module-card {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(5, 36, 81, 0.08);
  border-radius: 16px;
}

.module-card h3 {
  margin-top: 10px;
  font-size: 25px;
  line-height: 1;
}

.module-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.module-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(217, 164, 65, 0.14);
  color: var(--gold-deep);
  font-weight: 900;
}

.dual-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

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

.four-grid {
  grid-template-columns: repeat(4, 1fr);
}

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

.list-card,
.schedule-card,
.customer-card,
.timecard-card,
.invoice-card {
  padding: 18px;
  border: 1px solid rgba(5, 36, 81, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
}

.list-card h3,
.schedule-card h3,
.customer-card h3,
.timecard-card h3,
.invoice-card h3 {
  font-size: 23px;
  line-height: 1;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mini-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(5, 36, 81, 0.06);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.time-display {
  display: grid;
  gap: 8px;
  align-items: start;
}

.timer-value {
  color: var(--navy);
  font-family: var(--serif);
  font-size: 44px;
  line-height: 0.95;
}

.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.customer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.customer-card .split-fields,
.mini-grid {
  margin-top: 14px;
}

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

.customer-card p,
.schedule-card p,
.timecard-card p,
.invoice-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.customer-card .form-actions,
.schedule-card .form-actions {
  margin-top: 14px;
}

.schedule-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.schedule-column {
  padding: 18px;
  border-radius: 16px;
  background: rgba(5, 36, 81, 0.03);
  border: 1px solid rgba(5, 36, 81, 0.08);
}

.schedule-column h3 {
  margin: 0 0 14px;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 25px;
}

.schedule-stack {
  display: grid;
  gap: 12px;
}

.shift-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(29, 103, 178, 0.09);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.month-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.month-switcher button {
  padding: 10px 14px;
  border: 1px solid rgba(5, 36, 81, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.month-switcher button.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.bar-chart-shell {
  display: grid;
  gap: 16px;
}

.bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.bar-legend span::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 7px;
  display: inline-block;
  border-radius: 999px;
}

.bar-legend .legend-collections::before {
  background: var(--navy);
}

.bar-legend .legend-payroll::before {
  background: var(--gold);
}

.bar-legend .legend-supplies::before {
  background: var(--blue);
}

.bar-legend .legend-overhead::before {
  background: #a7b6c8;
}

.bar-chart {
  min-height: 270px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 12px;
}

.month-cluster {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.cluster-bars {
  width: 100%;
  min-height: 220px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 6px;
}

.bar {
  min-height: 12px;
  border-radius: 999px 999px 4px 4px;
  height: calc(var(--size) * 220px);
}

.bar-collections {
  background: var(--navy);
}

.bar-payroll {
  background: linear-gradient(180deg, #e5b45a, #cb902b);
}

.bar-supplies {
  background: var(--blue);
}

.bar-overhead {
  background: #9fb0c4;
}

.month-cluster strong {
  color: var(--navy);
  font-size: 12px;
}

.month-cluster.is-selected strong {
  color: var(--blue);
}

.donut-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.donut-card {
  padding: 18px;
  border: 1px solid rgba(5, 36, 81, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  text-align: center;
}

.donut-visual {
  width: 110px;
  height: 110px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, #ffffff 67%, transparent 68%),
    conic-gradient(var(--donut-fill) calc(var(--donut-value) * 1%), rgba(5, 36, 81, 0.08) 0);
}

.donut-card strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
}

.donut-card small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.line-chart-shell {
  display: grid;
  gap: 12px;
}

.line-key {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

.line-key span::before {
  content: "";
  width: 18px;
  height: 3px;
  margin-right: 7px;
  display: inline-block;
  vertical-align: middle;
}

.line-key .line-key-collections::before {
  background: var(--navy);
}

.line-key .line-key-costs::before {
  background: var(--gold);
}

.line-chart-shell svg {
  width: 100%;
  height: auto;
}

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

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

.payroll-table th,
.payroll-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.payroll-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.payroll-table td {
  color: var(--text);
  font-size: 13px;
}

.payroll-table .actions-cell {
  min-width: 220px;
}

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

.mini-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(5, 36, 81, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mini-button.is-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.portal-footer {
  padding: 0 0 42px;
}

.portal-footer-card {
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: linear-gradient(135deg, #052451, #0a346f);
  border-radius: 20px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.portal-footer-card h2 {
  color: #ffffff;
  font-size: 34px;
}

.portal-footer-card p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
}

.portal-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 1050px) {
  .nav {
    padding: 0 22px;
  }

  .hero .container,
  .page-hero,
  .dual-grid,
  .care-inner {
    grid-template-columns: 1fr;
  }

  .appt-card {
    justify-self: start;
    margin-top: 28px;
  }

  .stats-grid,
  .module-grid,
  .services-grid,
  .who-grid,
  .review-grid,
  .schedule-board,
  .donut-grid,
  .four-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip {
    margin: 0 20px;
    grid-template-columns: repeat(2, 1fr);
  }

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

  .bottom-inner,
  .portal-footer-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .nav {
    height: auto;
    padding: 18px 18px 16px;
    flex-wrap: wrap;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 12px;
    order: 2;
  }

  .links {
    width: 100%;
    order: 3;
    gap: 18px;
    overflow-x: auto;
  }

  .hero h1 {
    font-size: 48px;
  }

  .stats-grid,
  .module-grid,
  .services-grid,
  .who-grid,
  .review-grid,
  .schedule-board,
  .donut-grid,
  .footer-grid,
  .customer-grid,
  .list-grid,
  .four-grid,
  .three-grid {
    grid-template-columns: 1fr;
  }

  .split-fields,
  .mini-grid,
  .process-row {
    grid-template-columns: 1fr;
  }

  .process-row .step {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-row .step:last-child {
    border-bottom: 0;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .who-card {
    grid-template-columns: 1fr;
  }

  .who-img {
    height: 200px;
  }

  .floating-icon {
    left: 16px;
    top: 16px;
    bottom: auto;
  }

  .bottom-actions,
  .portal-footer-actions,
  .form-actions,
  .toolbar-row,
  .nav-actions {
    width: 100%;
  }

  .bottom-actions .btn,
  .portal-footer-actions .btn,
  .nav-actions .btn {
    width: 100%;
  }

  .copy {
    flex-direction: column;
    gap: 8px;
  }

  .portal-nav {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-nav-links {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
}
