:root {
  --bg: #f3f6fb;
  --bg-soft: #e9eff8;
  --surface: #ffffff;
  --surface-alt: #f9fbff;
  --text: #102039;
  --muted: #4d5d76;
  --primary: #0c63ce;
  --primary-strong: #0a4ca0;
  --accent: #11a67d;
  --danger: #c0392b;
  --border: #d4deec;
  --shadow: 0 12px 35px rgba(14, 39, 78, 0.12);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Manrope', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% -30%, #d7e8ff 0%, transparent 48%),
    radial-gradient(circle at 100% 0%, #d5f3eb 0%, transparent 38%),
    linear-gradient(160deg, #f7fafe 0%, #eef3fa 45%, #f9fbff 100%);
}

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

h1,
h2,
h3 {
  font-family: 'Sora', sans-serif;
  letter-spacing: -0.02em;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 251, 255, 0.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.1rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 32px;
  width: auto;
}

.brand span {
  color: var(--accent);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 2rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.93rem;
  color: var(--muted);
}

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

.nav-dropdown {
  position: relative;
}

.nav-dropdown details {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.93rem;
}

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

.nav-dropdown summary:hover {
  color: var(--text);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0 !important;
  right: auto !important;
  min-width: 220px;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 30;
  align-items: flex-start !important;
}

.nav-dropdown-menu a {
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  text-align: left !important;
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  align-self: flex-start !important;
  width: 100%;
  margin-right: auto !important;
}

.nav-dropdown-menu a:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.nav-dropdown-group + .nav-dropdown-group {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.nav-dropdown-heading {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--muted);
  font-weight: 700;
  padding: 0.35rem 0.6rem 0.2rem;
}

/* User dropdown menu */
.user-dropdown {
  position: relative;
}

.user-menu-trigger {
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.user-menu-trigger:hover {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--text);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0 !important;
  right: auto !important;
  min-width: 200px;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 30;
  align-items: flex-start !important;
}

.dropdown-item {
  padding: 0.6rem 0.8rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.2s ease;
  font-size: 0.9rem;
  border: none;
  text-align: left !important;
  justify-content: flex-start !important;
  align-self: flex-start !important;
  background: none;
  width: 100%;
  margin-right: auto !important;
  cursor: pointer;
  font-family: inherit;
}

.dropdown-item:hover {
  background: var(--surface-alt);
}

.dropdown-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 0.3rem 0;
}

.dropdown-logout {
  color: #dc3545;
}

.dropdown-logout:hover {
  background: #fff3f3;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 700;
}

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

.pill {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  white-space: nowrap;
}

.pill.subtle {
  background: var(--surface-alt);
  color: var(--text);
}

.listing-card p .pill {
  margin-left: 0.35rem;
}

.nav-cta,
.nav-ghost {
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  background: var(--surface);
  cursor: pointer;
}

.nav-cta {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.nav-cta:hover {
  background: var(--primary-strong);
}

.nav-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.flash {
  margin-top: 0.75rem;
  border-radius: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.9rem;
}

.flash-error {
  border-color: #f2c7c2;
  background: #fff3f2;
  color: #7f2218;
}

.flash-success {
  border-color: #c7e8dd;
  background: #f0faf6;
  color: #115b47;
}

.hero,
.page-hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.1rem;
}

.eyebrow {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

h1 {
  font-size: clamp(2rem, 4.1vw, 3.7rem);
  line-height: 1.08;
  max-width: 16ch;
}

.hero-copy,
.page-hero p,
p {
  color: var(--muted);
  line-height: 1.65;
}

.hero-copy {
  margin-top: 1.2rem;
  max-width: 57ch;
}

.hero-actions,
.inline-actions,
.stack-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.stack-actions {
  flex-direction: column;
  align-items: flex-end;
}

.btn {
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  padding: 0.7rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

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

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: #fff;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-danger {
  border: 1px solid #f1c8c1;
  background: #fff5f4;
  color: var(--danger);
}

.hero-panel,
.service-card,
.listing-card,
.form-card,
.detail-card,
.metric-card,
.banner-wrap {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 2rem;
  background:
    linear-gradient(150deg, rgba(12, 99, 206, 0.12), transparent 50%),
    linear-gradient(340deg, rgba(17, 166, 125, 0.1), transparent 45%), var(--surface);
}

.hero-panel h3 {
  color: var(--primary);
  font-size: 3rem;
  margin: 0.8rem 0;
}

.status-row {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
}

.services,
.services-listing,
.service-detail-section {
  padding: 2.4rem 0 4rem;
}

.section-header {
  margin-bottom: 1.2rem;
}

.split-header {
  margin-bottom: 0.3rem;
}

.section-header h2,
.listing-card h2,
.service-detail-section h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.service-card,
.listing-card {
  padding: 1.4rem;
}

.service-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 0.7rem;
}

.service-card h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  padding-bottom: 0.1rem;
}

.case-study-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.9rem;
}

.case-study-preview-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: linear-gradient(120deg, rgba(12, 99, 206, 0.08), transparent 36%), var(--surface);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.case-study-label {
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
}

.case-study-preview-card h3 {
  font-size: 1.18rem;
  line-height: 1.3;
}

.case-study-preview-summary {
  color: var(--text);
  font-weight: 600;
}

.case-study-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.case-study-preview-outcome {
  border-top: 1px solid var(--border);
  padding-top: 0.65rem;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
}

.case-study-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: linear-gradient(120deg, rgba(12, 99, 206, 0.08), transparent 36%), var(--surface);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: grid;
  gap: 0.7rem;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.case-study-card:hover {
  transform: translateY(-2px);
  border-color: #b8cce7;
  box-shadow: 0 16px 34px rgba(14, 39, 78, 0.15);
}

.case-study-card h2 {
  font-size: 1.16rem;
  line-height: 1.35;
}

.case-study-card .service-link {
  margin-left: auto;
  font-size: 1.2rem;
  line-height: 1;
}

.service-image {
  width: 100%;
  height: 145px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
}

.service-link {
  color: var(--primary);
  font-weight: 700;
}

.service-book-link {
  margin-left: auto;
}

.services-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.catalog-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: grid;
  gap: 0.75rem;
}

.pricing-card {
  border: 1px dashed #b9cae2;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  display: grid;
  gap: 0.2rem;
  background: #f7fbff;
  color: var(--text);
}

.pricing-card span {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-weight: 700;
}

.pricing-card strong {
  font-size: 1.1rem;
}

.pricing-card small {
  color: var(--muted);
}

.pricing-inline {
  margin-top: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.proof-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.proof-card h3 {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.logo-strip {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.logo-strip span {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  background: #fff;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}

.industry-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.2rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.6rem;
}

.industry-label {
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
}

.work-timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.work-timeline li {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.8rem;
  background: var(--surface-alt);
  display: grid;
  gap: 0.35rem;
}

.work-timeline strong {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08rem;
}

.how-work-card {
  background: linear-gradient(120deg, rgba(12, 99, 206, 0.08), transparent 45%), var(--surface);
}

.catalog-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f7fbff, #ecf4ff);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.catalog-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.catalog-card h2 {
  font-size: 1.2rem;
}

.catalog-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.3rem;
}

.services-listing .container {
  display: grid;
  gap: 0.9rem;
}

.service-finder {
  display: grid;
  gap: 0.8rem;
}

.finder-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem;
}

.finder-options label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--text);
}

.finder-result {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface-alt);
  padding: 0.8rem;
}
.listing-card {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.listing-card ul,
.detail-card ul {
  margin-top: 0.8rem;
  color: var(--muted);
  padding-left: 1rem;
}

.detail-card {
  padding: 2rem;
}

.qr-image {
  width: min(220px, 100%);
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  background: #fff;
  padding: 0.45rem;
}

.detail-layout {
  display: grid;
  gap: 0.9rem;
}

.case-study-editorial-grid {
  display: grid;
  gap: 1rem;
}

.case-study-editorial-card {
  border: 1px solid #c9d8ec;
  border-radius: 1rem;
  background:
    linear-gradient(95deg, rgba(16, 32, 57, 0.04) 0%, rgba(16, 32, 57, 0.01) 32%, transparent 100%), var(--surface);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
}

.case-study-editorial-meta {
  border-right: 1px solid var(--border);
  padding: 1.25rem;
  background: #f6f9ff;
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.case-study-editorial-meta h3 {
  font-size: 1.04rem;
}

.case-study-editorial-content {
  padding: 1.45rem;
  display: grid;
  gap: 0.85rem;
}

.case-study-editorial-content h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.case-study-intro {
  color: var(--text);
  font-weight: 600;
}

.case-study-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.case-study-flow > div {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  background: var(--surface-alt);
  padding: 0.9rem;
}

.case-study-outcome-banner {
  border: 1px solid #bcd5c7;
  border-radius: 0.8rem;
  background: linear-gradient(140deg, rgba(17, 166, 125, 0.14), transparent 45%), #f3fbf8;
  padding: 0.95rem;
}

.case-study-hero {
  padding-bottom: 1.2rem;
}

.case-study-shell {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1rem;
  align-items: start;
}

.case-study-hero-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background:
    linear-gradient(112deg, rgba(12, 99, 206, 0.1), transparent 40%),
    linear-gradient(295deg, rgba(17, 166, 125, 0.09), transparent 34%), var(--surface);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: grid;
  gap: 0.9rem;
}

.case-study-hero-card h1 {
  max-width: 22ch;
}

.case-study-hero-subtitle {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
  max-width: 65ch;
}

.case-study-kpi-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.case-study-kpi-item {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.85rem;
}

.case-study-side-panel {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.2rem;
  display: grid;
  gap: 0.65rem;
}

.case-study-side-panel h2 {
  font-size: 1.2rem;
}

.case-study-content-section {
  padding-top: 0.4rem;
}

.case-study-story-grid {
  display: grid;
  gap: 0.9rem;
}

.case-study-story-block {
  background: linear-gradient(128deg, rgba(12, 99, 206, 0.04), transparent 38%), var(--surface);
}

.case-study-story-block h2 {
  margin-top: 0.2rem;
}

.case-study-highlight-block {
  border-color: #b9d6c6;
  background: linear-gradient(128deg, rgba(17, 166, 125, 0.14), transparent 42%), #f6fcf9;
}

.case-study-quote-block {
  border-left: 4px solid var(--primary);
}

.case-study-quote {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.6;
}

.service-hero-line {
  margin-top: 0.85rem;
  max-width: 56ch;
  color: var(--text);
  font-weight: 600;
}

.outcome-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.7rem;
}

.outcome-item {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.85rem;
  background: var(--surface-alt);
}

.outcome-item h3 {
  font-size: 1.35rem;
  color: var(--primary);
  margin: 0.35rem 0;
}

.outcome-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--muted);
  font-weight: 700;
}

.approach-list {
  margin-top: 0.7rem;
  padding-left: 1.25rem;
  color: var(--muted);
}

.approach-list li {
  margin-bottom: 0.55rem;
}

.detail-cta {
  background:
    linear-gradient(130deg, rgba(12, 99, 206, 0.08), transparent 46%),
    linear-gradient(315deg, rgba(17, 166, 125, 0.08), transparent 40%), var(--surface);
}

.banner {
  padding: 0.6rem 0 4rem;
}

.banner-wrap {
  padding: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background:
    linear-gradient(120deg, rgba(12, 99, 206, 0.12), transparent 45%),
    linear-gradient(300deg, rgba(17, 166, 125, 0.1), transparent 30%), var(--surface-alt);
}

.form-shell {
  max-width: 640px;
}

.form-shell.wide {
  max-width: 760px;
}

.enterprise-hero {
  padding-bottom: 1.5rem;
}

.enterprise-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
  align-items: start;
}

.enterprise-points {
  margin-top: 1rem;
  display: grid;
  gap: 0.7rem;
}

.enterprise-point {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.enterprise-point h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.enterprise-form-card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.1rem;
}

.enterprise-form-card h2 {
  font-size: 1.2rem;
}

.enterprise-form {
  margin-top: 0.8rem;
}

.enterprise-trust {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.enterprise-trust-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.enterprise-trust-grid > div {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface-alt);
  padding: 0.85rem;
}

.form-card {
  margin-top: 1rem;
  padding: 1.25rem;
  display: grid;
  gap: 0.55rem;
}

label {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 700;
}

input,
textarea,
select {
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
  color: var(--text);
  background: #fff;
}

textarea {
  resize: vertical;
}

.helper-text {
  margin-top: 0.8rem;
  font-size: 0.9rem;
}

.helper-text a {
  color: var(--primary);
  font-weight: 700;
}

/* Cloudflare Turnstile Widget Styling */
.cf-turnstile-container {
  width: 100%;
  margin-bottom: 1rem;
}

.cf-turnstile-container > div {
  width: 100% !important;
  max-width: 100% !important;
}

.cf-turnstile-container iframe {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 0.6rem;
}

.status {
  color: var(--primary-strong);
  background: #eef5ff;
  border-color: #c7daf2;
}

.status-form {
  min-width: 160px;
  display: grid;
  gap: 0.4rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
  align-items: center;
}

.dashboard-category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
}

.dashboard-category-link {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.48rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-category-link:hover {
  color: var(--text);
  border-color: #b9cae2;
}

.dashboard-category-link.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-tab-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-tab-btn:hover {
  color: var(--text);
  border-color: #b9cae2;
}

.admin-tab-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.admin-tabs label {
  margin-right: 0.2rem;
}

.admin-tabs select {
  min-width: 260px;
  max-width: 100%;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.inline-form label {
  margin: 0;
  font-weight: 600;
}

.audit-log-table {
  display: grid;
  gap: 0.4rem;
}

.audit-log-row {
  display: grid;
  grid-template-columns: 1.4fr 1.2fr 0.8fr 1.2fr 1.4fr 0.9fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.audit-log-head {
  font-weight: 700;
  color: var(--muted);
}

.audit-log-meta {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0 0 0.6rem;
  border-bottom: 1px dashed var(--border);
  margin-bottom: 0.4rem;
}

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

.admin-tab-panel {
  display: grid;
  gap: 0.9rem;
}

.admin-tab-panel[hidden] {
  display: none !important;
}

.customer-actions {
  display: grid;
  gap: 0.7rem;
  width: min(420px, 100%);
}

.compact-form {
  margin-top: 0;
  padding: 0.9rem;
  gap: 0.45rem;
  box-shadow: none;
  background: var(--surface-alt);
}

.availability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.service-rule-card {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  background: var(--surface-alt);
  padding: 0.9rem;
  display: grid;
  gap: 0.5rem;
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem;
}

.metric-card {
  padding: 1.1rem;
}

.metric-card h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.metric-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}

.metric-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 0.5rem;
  color: var(--muted);
}

.metric-list strong {
  color: var(--text);
}

.status-chart-card {
  grid-column: 1 / -1;
}

.status-chart-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.45rem;
  background: var(--surface-alt);
}

#bookingStatusChart,
#conversionTrendChart,
#responseTrendChart,
#cancellationTrendChart,
#topServicesTrendChart {
  width: 100%;
  min-width: 560px;
  height: 280px;
  display: block;
}

.top-gap {
  padding-top: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.64);
}

.footer-wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  padding: 1.7rem 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-col {
  display: grid;
  gap: 0.4rem;
}

.footer-col h3 {
  font-size: 1rem;
  color: var(--text);
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

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

.compact {
  padding-top: 3.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .enterprise-grid,
  .enterprise-trust-grid {
    grid-template-columns: 1fr;
  }

  .case-study-shell,
  .case-study-kpi-strip {
    grid-template-columns: 1fr;
  }

  .case-study-editorial-card {
    grid-template-columns: 1fr;
  }

  .case-study-editorial-meta {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .case-study-flow {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .listing-card,
  .banner-wrap,
  .footer-wrap {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .stack-actions {
    align-items: stretch;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .services-catalog-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .page-hero,
  .services,
  .services-listing,
  .service-detail-section,
  .banner {
    padding: 2.6rem 0;
  }

  .hero-actions,
  .inline-actions,
  .stack-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}

/* ========================================
   Dashboard Sidebar Layout (GitHub-inspired)
   ======================================== */

.dashboard-layout {
  padding: 0;
  background: #f6f8fa;
  min-height: calc(100vh - 180px);
}

.dashboard-container {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  min-height: calc(100vh - 180px);
}

/* Sidebar */
.dashboard-sidebar {
  background: #ffffff;
  border-right: 1px solid #d0d7de;
  padding: 2rem 0;
  position: sticky;
  top: 0;
  height: calc(100vh - 180px);
  overflow-y: auto;
}

.sidebar-header {
  padding: 0 1.5rem 1.5rem;
  border-bottom: 1px solid #d0d7de;
  margin-bottom: 1rem;
}

.sidebar-header h2 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: #24292f;
}

.sidebar-header .pill {
  font-size: 0.75rem;
  text-transform: capitalize;
}

.sidebar-nav {
  padding: 0;
}

.sidebar-section {
  padding: 0.75rem 1.5rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #57606a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1rem;
}

.sidebar-section:first-child {
  margin-top: 0;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  color: #24292f;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition:
    background-color 0.2s,
    color 0.2s;
  border-left: 2px solid transparent;
}

.nav-item-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-icon {
  flex-shrink: 0;
  color: #57606a;
  transition: color 0.2s;
}

.sidebar-nav-item:hover {
  background-color: #f6f8fa;
  color: #0969da;
}

.sidebar-nav-item:hover .nav-icon {
  color: #0969da;
}

.sidebar-nav-item.active {
  background-color: #fff;
  color: #0969da;
  border-left-color: #0969da;
  font-weight: 600;
}

.sidebar-nav-item.active .nav-icon {
  color: #0969da;
}

.sidebar-nav-item .badge {
  background: #eaeef2;
  color: #57606a;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
}

.sidebar-nav-item.active .badge {
  background: #ddf4ff;
  color: #0969da;
}

.sidebar-nav-item .badge.badge-warning {
  background: #fff3e0;
  color: #f57c00;
  font-weight: 700;
}

/* Sidebar Item (Button-based navigation for customer dashboard) */
.sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.5rem;
  color: #24292f;
  font-size: 0.875rem;
  font-weight: 500;
  background: transparent;
  border: none;
  border-left: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  text-align: left;
}

.sidebar-item svg {
  flex-shrink: 0;
  color: #57606a;
  transition: color 0.2s;
}

.sidebar-item:hover {
  background-color: #f6f8fa;
  color: #0969da;
}

.sidebar-item:hover svg {
  color: #0969da;
}

.sidebar-item[aria-current='true'] {
  background-color: #fff;
  color: #0969da;
  border-left-color: #0969da;
  font-weight: 600;
}

.sidebar-item[aria-current='true'] svg {
  color: #0969da;
}

.sidebar-badge {
  background: #eaeef2;
  color: #57606a;
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
  border-radius: 12px;
  font-weight: 600;
}

.sidebar-item[aria-current='true'] .sidebar-badge {
  background: #ddf4ff;
  color: #0969da;
}

.sidebar-link {
  text-decoration: none;
}

/* Main Content */
.dashboard-content {
  background: #ffffff;
  padding: 2rem;
  overflow-y: auto;
}

.tab-panel {
  display: none;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel:not([hidden]) {
  display: block;
}

.panel-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d0d7de;
}

.panel-header h1 {
  font-size: 1.75rem;
  color: #24292f;
  margin: 0 0 0.5rem;
}

.panel-header p {
  color: #57606a;
  margin: 0;
}

.dashboard-content .section-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d0d7de;
}

.dashboard-content .section-header h2 {
  font-size: 1.5rem;
  color: #24292f;
  margin: 0;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #57606a;
}

.empty-state h2 {
  color: #24292f;
  margin-bottom: 0.5rem;
}

/* Hide old navigation */
.dashboard-category-nav,
.admin-tabs {
  display: none;
}

/* Responsive Design */
@media (max-width: 968px) {
  .dashboard-container {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #d0d7de;
  }

  .sidebar-nav-item {
    padding: 0.75rem 1.5rem;
  }
}

@media (max-width: 560px) {
  .dashboard-content {
    padding: 1rem;
  }

  .sidebar-header {
    padding: 0 1rem 1rem;
  }

  .sidebar-nav-item {
    padding: 0.75rem 1rem;
  }

  .sidebar-section {
    padding: 0.75rem 1rem 0.5rem;
  }
}

/* ========================================
   Availability Management Form
   ======================================== */

.availability-form {
  max-width: 100%;
}

.form-section {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-section h3 {
  font-size: 1.125rem;
  color: #24292f;
  margin: 0 0 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #d0d7de;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: #24292f;
  margin-bottom: 0.5rem;
}

.form-group input[type='text'],
.form-group input[type='number'],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background: #ffffff;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  cursor: pointer;
}

.checkbox-label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.service-rule-card {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.service-rule-card:last-child {
  margin-bottom: 0;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid #d0d7de;
  margin-top: 1.5rem;
}

.helper-text {
  font-size: 0.8125rem;
  color: #57606a;
  margin: 0.25rem 0 0;
}

/* Customer Dashboard */
.appointment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.appointment-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.appointment-details {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #d0d7de;
}

.appointment-details p {
  margin: 0;
}

.appointment-actions {
  margin-top: 1rem;
  border-top: 1px solid #d0d7de;
  padding-top: 1rem;
}

.appointment-actions summary {
  cursor: pointer;
  font-weight: 600;
  color: #0969da;
  padding: 0.5rem 0;
  user-select: none;
}

.appointment-actions summary:hover {
  color: #0550ae;
}

.action-forms {
  display: grid;
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #d0d7de;
}

.action-forms h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #24292f;
}

.calendar-actions {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #d0d7de;
}

.calendar-actions strong {
  display: block;
  margin-bottom: 0.5rem;
}

.feedback-display {
  margin-top: 1rem;
  padding: 1rem;
  background: #f6f8fa;
  border-radius: 6px;
}

.feedback-display p {
  margin-top: 0.5rem;
}

.payment-notice {
  padding: 1rem;
  background: #fff8c5;
  border: 1px solid #d4a72c;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.payment-notice p {
  margin: 0;
}

.status-pending {
  background: #fff8c5;
  color: #7d6608;
}

.status-confirmed {
  background: #dafbe1;
  color: #1a7f37;
}

.status-completed {
  background: #ddf4ff;
  color: #0969da;
}

.status-cancelled {
  background: #ffebe9;
  color: #cf222e;
}

/* Feedback Overview */
.feedback-overview {
  display: grid;
  gap: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.stat-card {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 1.5rem;
}

.stat-card h3 {
  font-size: 0.875rem;
  color: #57606a;
  margin: 0 0 0.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #24292f;
  margin: 0 0 0.25rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #57606a;
  margin: 0;
}

.nps-breakdown {
  display: grid;
  gap: 1rem;
}

.nps-category {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  background: #f6f8fa;
  border-radius: 6px;
}

.nps-label {
  font-weight: 600;
  color: #24292f;
  min-width: 100px;
}

.nps-count {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0969da;
}

.nps-percentage {
  color: #57606a;
  font-size: 0.875rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #d0d7de;
}

.data-table th {
  background: #f6f8fa;
  font-weight: 600;
  color: #24292f;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tr:hover {
  background: #f6f8fa;
}

.feedback-date {
  font-size: 0.875rem;
  color: #57606a;
}

/* Appointments Table and Filters */
.appointments-filters {
  background: #f6f8fa;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.filter-form {
  width: 100%;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #24292f;
}

.filter-group select,
.filter-group input[type='text'] {
  padding: 0.5rem;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 0.875rem;
  background: #ffffff;
}

.filter-group select:focus,
.filter-group input[type='text']:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
  align-items: end;
}

.appointments-table-container {
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  overflow-x: auto;
}

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

.appointments-table thead {
  background: #f6f8fa;
  border-bottom: 2px solid #d0d7de;
}

.appointments-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: #57606a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.appointments-table tbody tr.appointment-row {
  border-bottom: 1px solid #d0d7de;
  transition: background-color 0.2s;
}

.appointments-table tbody tr.appointment-row:hover {
  background: #f6f8fa;
}

.appointments-table td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  vertical-align: middle;
}

.customer-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.customer-cell strong {
  color: #24292f;
}

.customer-email {
  font-size: 0.75rem;
  color: #57606a;
}

.pill-small {
  font-size: 0.75rem;
  padding: 0.125rem 0.5rem;
}

.status-pending {
  background: #fff8c5;
  color: #7d6608;
}

.status-confirmed {
  background: #dafbe1;
  color: #1a7f37;
}

.status-completed {
  background: #ddf4ff;
  color: #0969da;
}

.status-cancelled {
  background: #ffebe9;
  color: #cf222e;
}

.btn-icon {
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  color: #57606a;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  color: #0969da;
}

.btn-ghost {
  background: none;
  border: 1px solid #d0d7de;
  color: #24292f;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-ghost:hover {
  background: #f6f8fa;
  border-color: #0969da;
  color: #0969da;
}

.appointment-details td {
  background: #f6f8fa;
  padding: 1.5rem;
}

.details-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.details-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.details-section h4 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #24292f;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.details-section p {
  margin: 0;
  font-size: 0.875rem;
  color: #24292f;
}

.details-actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid #d0d7de;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.inline-form label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #24292f;
  white-space: nowrap;
}

.inline-form select {
  padding: 0.5rem;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-section {
    padding: 1rem;
  }

  .appointment-header {
    flex-direction: column;
  }

  .dashboard-container {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #d0d7de;
  }
}

/* ========================================
   Legal Pages (Privacy, Cookie, Terms)
   ======================================== */

.legal-page {
  background: var(--bg);
  padding: 3rem 0;
  min-height: calc(100vh - 200px);
}

.legal-header {
  text-align: center;
  padding: 2rem 0 3rem;
  border-bottom: 2px solid var(--border);
  margin-bottom: 3rem;
}

.legal-header h1 {
  font-size: 2.5rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.effective-date,
.last-updated {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.25rem 0;
}

.legal-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--surface);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.legal-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 3rem;
}

.toc {
  background: var(--bg-soft);
  padding: 2rem;
  border-radius: 6px;
  margin-bottom: 3rem;
  border-left: 4px solid var(--primary);
}

.toc h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.toc ol {
  margin-left: 1.5rem;
  line-height: 2;
}

.toc a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

.toc a:hover {
  color: var(--primary-strong);
  text-decoration: underline;
}

.legal-content section {
  margin-bottom: 3rem;
  scroll-margin-top: 2rem;
}

.legal-content h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border);
}

.legal-content h3 {
  font-size: 1.3rem;
  color: var(--text);
  margin: 2rem 0 1rem;
}

.legal-content h4 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
}

.legal-content p {
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
  margin: 1rem 0 1.5rem 2rem;
  line-height: 1.8;
}

.legal-content li {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.legal-content strong {
  color: var(--text);
  font-weight: 600;
}

.legal-content a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.legal-content a:hover {
  border-bottom-color: var(--primary);
}

.legal-content code {
  background: var(--bg-soft);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
}

.info-box {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.warning-box {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.info-box strong,
.warning-box strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.data-table th,
.data-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: var(--bg-soft);
  font-weight: 600;
  color: var(--text);
}

.data-table tr:hover {
  background: var(--surface-alt);
}

.contact-info {
  background: var(--bg-soft);
  padding: 2rem;
  border-radius: 6px;
  margin-top: 2rem;
}

.contact-info h3 {
  margin-top: 0;
  color: var(--primary);
}

.acknowledgment {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 4px;
}

.acknowledgment p {
  margin: 0.5rem 0;
  font-weight: 500;
  color: var(--text);
}

.policy-acknowledgment {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 1.5rem;
  margin-top: 2rem;
  border-radius: 4px;
}

.policy-acknowledgment p {
  margin: 0;
  font-weight: 500;
  color: var(--text);
}

@media (max-width: 768px) {
  .legal-page {
    padding: 2rem 0;
  }

  .legal-content {
    padding: 1.5rem;
  }

  .legal-header h1 {
    font-size: 2rem;
  }

  .legal-content h2 {
    font-size: 1.5rem;
  }

  .legal-content h3 {
    font-size: 1.2rem;
  }

  .toc {
    padding: 1.5rem;
  }

  .data-table {
    font-size: 0.9rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem;
  }
}

/* ========================================
   MOBILE RESPONSIVENESS IMPROVEMENTS
   Added: May 12, 2026
   ======================================== */

/* Prevent horizontal scrolling */
html {
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  width: 100%;
}

/* Ensure all media scales properly */
img,
video,
iframe,
embed,
object {
  max-width: 100%;
  height: auto;
}

/* Scrollable code blocks */
pre,
code {
  overflow-x: auto;
  max-width: 100%;
}

/* Scrollable tables on mobile */
table {
  max-width: 100%;
}

@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Touch-friendly minimum sizes (44px Apple, 48px Google) */
.btn,
button,
input[type="submit"],
input[type="button"],
.nav-links a,
.nav-cta,
.nav-ghost,
.pill {
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Form inputs - touch friendly and prevent zoom on iOS */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="url"],
select,
textarea {
  min-height: 44px;
  font-size: 16px; /* Prevents iOS zoom on focus */
  -webkit-appearance: none;
  appearance: none;
}

/* Responsive typography - scales smoothly */
html {
  font-size: 16px; /* Never go below 16px on mobile */
}

h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.3;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.4;
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

/* ========================================
   MOBILE HAMBURGER MENU
   ======================================== */

/* Hide mobile toggle on desktop */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: relative;
  z-index: 1002;
  margin-left: auto;
}

/* Hamburger icon */
.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, top 0.3s ease;
  left: 0;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Animated hamburger to X when open */
.mobile-menu-open .hamburger {
  background: transparent;
}

.mobile-menu-open .hamburger::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-open .hamburger::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Mobile menu styles */
@media (max-width: 760px) {
  /* Show mobile toggle */
  .mobile-menu-toggle {
    display: block;
  }

  /* Hide nav by default on mobile */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 1001;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    padding: 5rem 0 2rem; /* Space for close button */
    pointer-events: none; /* Disable when hidden */
  }

  /* Enable pointer events when menu is open */
  .mobile-menu-open .main-nav {
    pointer-events: auto;
  }

  /* Show nav when open */
  .mobile-menu-open .main-nav {
    right: 0;
  }

  /* Overlay backdrop */
  .mobile-menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    animation: fadeIn 0.3s ease;
    pointer-events: none;
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* Stack nav links vertically */
  .nav-links {
    flex-direction: column;
    width: 100%;
    padding: 0;
    margin: 0;
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
    width: 100%;
    min-height: 48px;
    text-align: left;
  }

  .nav-links a:hover {
    background: var(--hover-bg);
  }

  /* Dropdown menus in mobile */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown summary {
    padding: 1rem 1.5rem;
    cursor: pointer;
    user-select: none;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    margin: 0;
    width: 100%;
    background: var(--hover-bg);
    border-left: 3px solid var(--primary);
  }

  .nav-dropdown-menu a {
    padding-left: 2.5rem;
  }

  /* Nav actions */
  .nav-actions {
    width: 100%;
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-top: 2px solid var(--border);
    margin-top: 1rem;
  }

  .nav-cta,
  .nav-ghost {
    width: 100%;
    text-align: center;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* User dropdown in mobile menu */
  .user-dropdown {
    width: 100%;
  }

  .user-dropdown summary {
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .user-dropdown-menu {
    position: static;
    box-shadow: none;
    width: 100%;
    margin-top: 0.5rem;
  }

  /* Adjust nav-wrap for mobile */
  .nav-wrap {
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
  }
}

/* ========================================
   MOBILE-SPECIFIC IMPROVEMENTS
   ======================================== */

@media (max-width: 760px) {
  /* Better spacing for mobile */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Larger tap targets for buttons */
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  /* Form improvements */
  .form-card {
    padding: 1.5rem 1rem;
  }

  label {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }

  /* Readable line length on mobile */
  p {
    max-width: 100%;
    line-height: 1.6;
  }

  /* Adjust hero sections */
  .hero,
  .page-hero {
    padding: 2rem 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  /* Stack cards on mobile */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Improve detail cards on mobile */
  .detail-card {
    padding: 1.25rem;
    margin-bottom: 1rem;
  }

  /* Better flash messages */
  .flash {
    margin: 1rem;
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/* Extra small devices (< 560px) */
@media (max-width: 560px) {
  /* Even more compact spacing */
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Adjust font sizes */
  body {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  h2 {
    font-size: clamp(1.35rem, 6vw, 1.75rem);
  }

  h3 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  /* Full-width actions */
  .hero-actions,
  .inline-actions,
  .stack-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-actions .btn,
  .inline-actions .btn,
  .stack-actions .btn {
    width: 100%;
  }

  /* Compact tables */
  .data-table {
    font-size: 0.85rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.5rem 0.25rem;
  }
}

/* Landscape phone optimization */
@media (max-width: 760px) and (orientation: landscape) {
  .main-nav {
    max-height: 100vh;
    overflow-y: auto;
  }

  .hero,
  .page-hero {
    padding: 1.5rem 0;
  }
}

/* Print styles - hide mobile menu */
@media print {
  .mobile-menu-toggle,
  .mobile-menu-open::before {
    display: none !important;
  }

  .main-nav {
    position: static !important;
    width: auto !important;
  }
}

/* Focus visible for keyboard navigation */
.mobile-menu-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Smooth scrolling for better UX */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
