body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f6fb;
  color: #1f2937;
}

/* =========================================================
   TOPBAR
========================================================= */

.topbar {
  background: #0056a3;
  color: white;
  padding: 18px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 8px 24px rgba(15,23,42,.16);
}

.brand {
  font-size: 26px;
  font-weight: 900;
  font-style: italic;
}

.brand span {
  color: #ffbe00;
}

.birthday-card {
  margin-bottom: 32px;
}

.birthday-chip {
  display: inline-flex;
  align-items: center;
  background: #0056a3;
  color: white;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,86,163,.18);
}

.birthday-expanded {
  margin-top: 14px;
  background: linear-gradient(135deg, #0056a3 0%, #0b6cc4 100%);
  color: white;
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 18px 42px rgba(0,86,163,.22);
}

.birthday-card.collapsed .birthday-expanded {
  display: none;
}

.birthday-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.birthday-card h1 {
  color: white;
  margin: 0;
}

.birthday-badge {
  background: rgba(255,255,255,.16);
  color: white;
}

.collapse-button {
  border: 0;
  background: rgba(255,255,255,.18);
  color: white;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.birthday-table {
  background: white;
  color: #1f2937;
  border-radius: 18px;
  overflow: hidden;
}

.birthday-table a {
  color: #0056a3;
  font-weight: 900;
}

.birthday-row {
  cursor: pointer;
}

/* =========================================================
   DASHBOARD
========================================================= */

.topbar-user {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-mail {
  font-size: 14px;
  font-weight: 900;
  color: white;
}

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

.dashboard-card {
  position: relative;
  display: block;
  min-height: 220px;
  background: white;
  border-radius: 26px;
  padding: 26px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15,23,42,.07);
  border-top: 5px solid #0056a3;
  transition: transform .18s ease, box-shadow .18s ease;
  text-decoration: none;
  color: inherit;
}

.dashboard-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15,23,42,.11);
}

.dashboard-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -60px;
  width: 180px;
  height: 180px;
  background: rgba(0,86,163,.045);
  border-radius: 999px;
}

.status-pill {
  display: inline-flex;
  background: #e8f0ff;
  color: #0056a3;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 22px;
}

.card-title {
  font-size: 22px;
  line-height: 1.16;
  font-weight: 900;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
  color: #111827;
}

.card-description {
  color: #5b6474;
  font-size: 15px;
  line-height: 1.6;
  max-width: 92%;
  position: relative;
  z-index: 2;
}

.card-footer {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.card-link {
  color: #0056a3;
  font-size: 15px;
  font-weight: 900;
}

.icon-box {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #edf4ff;
  color: #5b21b6;
  font-size: 15px;
}

/* =========================================================
   DASHBOARD BIRTHDAYS
========================================================= */

.birthday-card {
  margin-bottom: 28px;
}

.birthday-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0056a3;
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,86,163,.22);
  border: 0;
}

.birthday-expanded {
  margin-top: 16px;
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 38px rgba(15,23,42,.08);
  border: 2px solid #e7eefc;
}

.birthday-card.collapsed .birthday-expanded {
  display: none;
}

.birthday-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 18px;
}

.birthday-header h1 {
  margin-top: 8px;
  font-size: 24px;
}

.birthday-badge {
  background: #dbeafe;
  color: #0056a3;
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.birthday-row {
  cursor: pointer;
}

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

.birthday-table a {
  color: #0056a3;
  font-weight: 900;
}

.chip-chevron {
  transition: transform .16s ease;
}

.birthday-card:not(.collapsed) .chip-chevron {
  transform: rotate(180deg);
}

.birthday-status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.birthday-status.open {
  background: #fef3c7;
  color: #92400e;
}

.birthday-status.done {
  background: #dcfce7;
  color: #166534;
}

.birthday-status.ignored {
  background: #e5e7eb;
  color: #374151;
}

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

.birthday-action-button {
  border: 0;
  border-radius: 10px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  background: #e5e7eb;
  color: #374151;
}

.birthday-action-button.open {
  background: #fef3c7;
  color: #92400e;
}

.birthday-action-button.done {
  background: #dcfce7;
  color: #166534;
}

.birthday-action-button.ignored {
  background: #fee2e2;
  color: #991b1b;
}

.reminder-card {
  margin-bottom: 28px;
}

.reminder-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #7c3aed;
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(124,58,237,.22);
  border: 0;
}

.reminder-expanded {
  margin-top: 16px;
  background: white;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 14px 38px rgba(15,23,42,.08);
  border: 2px solid #ede9fe;
}

.reminder-card.collapsed .reminder-expanded {
  display: none;
}

.reminder-card:not(.collapsed) .reminder-chevron {
  transform: rotate(180deg);
}

.reminder-chevron {
  transition: transform .16s ease;
}

.dashboard-note-preview {
  max-height: 90px;
  overflow: hidden;
  color: #374151;
}

.note-reminder-line {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

.reminder-status {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  margin-left: 8px;
}

.reminder-status.open {
  background: #fef3c7;
  color: #92400e;
}

.reminder-status.done {
  background: #dcfce7;
  color: #166534;
}

.small-action-button {
  border: 0;
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  margin-left: 8px;
}

.small-action-button.done {
  background: #dcfce7;
  color: #166534;
}
/* =========================================================
   CUSTOMER DETAIL
========================================================= */

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

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

.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 16px;
  padding: 22px;
  background: #f9fafb;
  text-align: center;
  margin: 14px 0;
  transition: border-color .15s ease, background .15s ease;
}

.dropzone.dragover {
  border-color: #0056a3;
  background: #eaf3fb;
}

.file-row,
.note {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}

.file-title {
  font-weight: 900;
  color: #111827;
  margin-bottom: 6px;
}

.section-spacer {
  margin-top: 22px;
}

.note-meta {
  margin-bottom: 10px;
  font-size: 13px;
  color: #6b7280;
  font-weight: 700;
}

.customer-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.summary-box {
  background: white;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
  border-top: 4px solid #0056a3;
}

.summary-box h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: #0056a3;
}

.summary-box div {
  margin-bottom: 6px;
  color: #374151;
  font-size: 14px;
}

@media (max-width: 900px) {
  .detail-grid,
  .customer-summary {
    grid-template-columns: 1fr;
  }
}
.hidden {
  display: none !important;
}

.wide-toggle-card {
  background: white;
  border-radius: 24px;
  box-shadow: 0 12px 34px rgba(15,23,42,.08);
  border-top: 5px solid #0056a3;
  margin-bottom: 24px;
  overflow: hidden;
}

.wide-toggle-header {
  width: 100%;
  border: 0;
  background: white;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}

.wide-toggle-title {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}

.wide-toggle-meta {
  margin-top: 6px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 700;
}

.wide-toggle-count {
  background: #eaf3fb;
  color: #0056a3;
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.wide-toggle-content {
  padding: 0 26px 26px;
}

.wide-toggle-card.collapsed .wide-toggle-content {
  display: none;
}

.contract-line {
  cursor: pointer;
}

.ai-circle-button {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: #dc2626;
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(220,38,38,.25);
}

.ai-circle-button:hover {
  background: #b91c1c;
}

.ai-token-box {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 13px;
  color: #374151;
}

.ai-summary-content {
  line-height: 1.7;
  color: #1f2937;
}

.ai-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.58);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-loading-box {
  background: white;
  border-radius: 26px;
  padding: 36px;
  width: min(460px, calc(100% - 32px));
  text-align: center;
  box-shadow: 0 24px 60px rgba(15,23,42,.28);
}

.ai-loading-box h2 {
  margin: 18px 0 10px;
  color: #111827;
}

.ai-loading-box p {
  margin: 0;
  color: #6b7280;
  line-height: 1.6;
}

.ai-spinner {
  width: 54px;
  height: 54px;
  border: 5px solid #e5e7eb;
  border-top-color: #dc2626;
  border-radius: 999px;
  margin: 0 auto;
  animation: ai-spin .8s linear infinite;
}

@keyframes ai-spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================================================
   LAYOUT
========================================================= */

main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 42px 24px;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}

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

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

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

/* =========================================================
   TYPOGRAPHY
========================================================= */

h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -.04em;
}

.subtitle {
  margin-top: 8px;
  color: #6b7280;
}

.muted {
  color: #6b7280;
}

.strong {
  font-weight: 900;
  color: #111827;
}

/* =========================================================
   BUTTONS
========================================================= */

.button {
  background: #0056a3;
  color: white;
  text-decoration: none;
  padding: 11px 15px;
  border-radius: 12px;
  font-weight: 800;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  display: inline-block;
}

.button.secondary {
  background: #e5e7eb;
  color: #374151;
}

.button.danger {
  background: #fee2e2;
  color: #991b1b;
}

/* =========================================================
   CARDS
========================================================= */

.card {
  background: white;
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 12px 34px rgba(15,23,42,.08);
  border-top: 5px solid #0056a3;
}

.card h2 {
  margin: 0 0 18px;
  font-size: 22px;
  color: #111827;
}

.table-card {
  background: white;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(15,23,42,.08);
}

.empty {
  background: white;
  border-radius: 22px;
  padding: 42px;
  text-align: center;
  box-shadow: 0 12px 34px rgba(15,23,42,.08);
}

/* =========================================================
   FORMS
========================================================= */

label {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: #374151;
  margin-bottom: 7px;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.editor:focus {
  border-color: #0056a3;
  box-shadow: 0 0 0 4px rgba(0,86,163,.12);
}

.search {
  width: 100%;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid #d1d5db;
  font-size: 16px;
  margin-bottom: 24px;
  outline: none;
}

/* =========================================================
   TABLES
========================================================= */

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

th {
  background: #eaf3fb;
  color: #0056a3;
  text-align: left;
  font-size: 13px;
  padding: 14px 16px;
}

td {
  padding: 15px 16px;
  border-top: 1px solid #e5e7eb;
  font-size: 14px;
  vertical-align: top;
}

tr.hover-row:hover {
  background: #f8fafc;
}

/* =========================================================
   EDITOR
========================================================= */

.editor-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tool {
  border: 0;
  background: #eaf3fb;
  color: #0056a3;
  border-radius: 10px;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
}

.editor {
  min-height: 180px;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  line-height: 1.6;
  outline: none;
}

/* =========================================================
   RESPONSIVE
========================================================= */

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

  .header-row {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 16px 20px;
  }

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

  table {
    min-width: 900px;
  }
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));
  gap: 22px;
}

.description {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.add-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 22px;
}

.value-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.value-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
}

.value-text {
  font-weight: 900;
  color: #111827;
  line-height: 1.6;
}

.value-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.value-pill {
  display: inline-flex;
  background: #eaf3fb;
  color: #0056a3;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

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

  .add-form {
    grid-template-columns: 1fr;
  }

  .value-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
.settings-edit-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
  flex: 1;
}

@media (max-width: 900px) {
  .settings-edit-form {
    grid-template-columns: 1fr;
    width: 100%;
  }
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  padding: 16px 20px;
  border-radius: 16px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(15,23,42,.18);
}

.toast.success {
  background: #dcfce7;
  color: #166534;
}

.toast.error {
  background: #fee2e2;
  color: #991b1b;
}
.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 5px;
  border-radius: 999px;
  background: #eaf3fb;
  color: #0056a3;
  font-size: 11px;
  font-weight: 900;
  cursor: help;
}

.settings-inline-info {
  margin-top: 8px;
  color: #0056a3;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}
/* =========================================================
   FORM PAGES
========================================================= */

main > form {
  background: white;
  border-radius: 24px;
  padding: 30px;
  box-shadow: 0 12px 34px rgba(15,23,42,.08);
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 34px;
}

legend {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 18px;
  color: #0056a3;
}

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

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

.editor-wrapper {
  margin-top: 12px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
  padding-top: 24px;
}

legend .button {
  font-size: 13px;
  padding: 8px 11px;
  border-radius: 10px;
}

.settings-inline-info {
  margin-top: 8px;
  color: #0056a3;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-left: 5px;
  border-radius: 999px;
  background: #eaf3fb;
  color: #0056a3;
  font-size: 11px;
  font-weight: 900;
  cursor: help;
}

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

/* =========================================================
   PUBLIC LANDING PAGE
========================================================= */

.landing-page {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 5%, rgba(202, 151, 58, .16), transparent 30%),
    radial-gradient(circle at 4% 70%, rgba(56, 90, 42, .10), transparent 32%),
    #f7f6f1;
  color: #102844;
}

.landing-page * {
  box-sizing: border-box;
}

.landing-page a {
  text-decoration: none;
}

.landing-navigation {
  width: 100%;
  min-height: 82px;
  padding: 12px clamp(20px, 5vw, 74px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: rgba(255, 255, 255, .9);
  border-bottom: 1px solid rgba(16, 40, 68, .09);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 10;
}

.landing-navigation-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #102844;
}

.landing-navigation-brand img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 22px rgba(16, 40, 68, .16);
}

.landing-navigation-name {
  font-size: 20px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.02em;
}

.landing-navigation-name span {
  color: #bd842b;
}

.landing-navigation-tagline {
  margin-top: 5px;
  color: #64715d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.landing-login {
  padding: 5px 8px;
  border: 1px solid rgba(16, 40, 68, .18);
  border-radius: 8px;
  color: #102844;
  font-size: 10px;
  font-weight: 800;
  opacity: .58;
  transition:
    opacity .16s ease,
    background .16s ease;
}

.landing-login:hover {
  background: #ffffff;
  opacity: 1;
}

.landing-page main.landing-main {
  width: min(1220px, calc(100% - 40px));
  max-width: 1220px;
  margin: 0 auto;
  padding: 68px 0 28px;
}

.landing-hero {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  align-items: center;
  gap: clamp(32px, 7vw, 96px);
}

.landing-hero-content {
  position: relative;
  z-index: 2;
}

.landing-eyebrow,
.landing-section-label {
  color: #ad7625;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 760px;
  margin: 18px 0 22px;
  color: #102844;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.landing-lead {
  max-width: 680px;
  margin: 0;
  color: #566575;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.landing-contact-buttons {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.landing-contact-primary,
.landing-contact-secondary {
  min-height: 58px;
  padding: 10px 20px;
  border-radius: 15px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  font-size: 15px;
  font-weight: 900;
  transition:
    transform .17s ease,
    box-shadow .17s ease;
}

.landing-contact-primary span,
.landing-contact-secondary span {
  font-size: 9px;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .72;
}

.landing-contact-primary {
  background: #102f56;
  color: #ffffff;
  box-shadow: 0 14px 32px rgba(16, 47, 86, .20);
}

.landing-contact-secondary {
  background: rgba(255, 255, 255, .86);
  color: #102844;
  border: 1px solid rgba(16, 40, 68, .10);
  box-shadow: 0 12px 28px rgba(16, 40, 68, .07);
}

.landing-contact-primary:hover,
.landing-contact-secondary:hover {
  transform: translateY(-2px);
}

.landing-hero-logo {
  min-height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.landing-logo-glow {
  position: absolute;
  width: 82%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(202, 151, 58, .22);
  filter: blur(70px);
}

.landing-hero-logo img {
  position: relative;
  z-index: 2;
  width: min(100%, 510px);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 30px 70px rgba(16, 40, 68, .17),
    0 0 0 12px rgba(255, 255, 255, .38);
}

.landing-values {
  margin: 22px 0 76px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.landing-value {
  min-height: 230px;
  padding: 28px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(16, 40, 68, .08);
  border-radius: 24px;
  box-shadow: 0 17px 38px rgba(16, 40, 68, .07);
}

.landing-value-number {
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #c58b32;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  box-shadow: 0 9px 22px rgba(197, 139, 50, .23);
}

.landing-value h2 {
  margin: 4px 0 12px;
  color: #102844;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
}

.landing-value p {
  margin: 0;
  color: #637080;
  font-size: 15px;
  line-height: 1.7;
}

.landing-contact-section {
  margin-bottom: 54px;
  padding: clamp(28px, 5vw, 52px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: #102f56;
  color: #ffffff;
  border-radius: 30px;
  box-shadow: 0 22px 54px rgba(16, 47, 86, .19);
}

.landing-contact-intro h2 {
  margin: 11px 0 14px;
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
}

.landing-contact-intro p {
  max-width: 560px;
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
  line-height: 1.75;
}

.landing-contact-section .landing-section-label {
  color: #e2b564;
}

.landing-contact-details {
  margin: 0;
  display: grid;
  gap: 18px;
  font-style: normal;
}

.landing-contact-detail {
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  color: rgba(255, 255, 255, .9);
  line-height: 1.6;
}

.landing-contact-detail:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.landing-contact-detail span {
  color: #e2b564;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.landing-contact-detail a {
  color: #ffffff;
  font-weight: 800;
}

.landing-footer {
  min-height: 70px;
  padding: 18px clamp(20px, 5vw, 74px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: #0b213d;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
}

.landing-footer-links {
  display: flex;
  align-items: center;
  gap: 17px;
}

.landing-footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .75);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.landing-footer-links button:hover {
  color: #ffffff;
}

.legal-dialog {
  width: min(720px, calc(100% - 30px));
  max-height: min(82vh, 820px);
  padding: 0;
  border: 0;
  border-radius: 24px;
  color: #102844;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .28);
}

.legal-dialog::backdrop {
  background: rgba(8, 24, 45, .72);
  backdrop-filter: blur(4px);
}

.legal-dialog-header {
  padding: 23px 27px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 1px solid #e7e9ec;
}

.legal-dialog-header h2 {
  margin: 6px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
}

.legal-dialog-close {
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 50%;
  background: #edf1f5;
  color: #102844;
  font-size: 24px;
  cursor: pointer;
}

.legal-dialog-content {
  padding: 27px;
  overflow-y: auto;
  color: #4e5d6c;
  font-size: 14px;
  line-height: 1.75;
}

.legal-dialog-content h3 {
  margin: 25px 0 8px;
  color: #102844;
  font-size: 16px;
}

.legal-dialog-content h3:first-child {
  margin-top: 0;
}

.legal-dialog-content a {
  color: #94651f;
  font-weight: 800;
}

.legal-notice {
  margin: 15px 0;
  padding: 14px 16px;
  background: #fff6df;
  border: 1px solid #efd8a4;
  border-radius: 13px;
  color: #785620;
}

.legal-data-list {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 8px 18px;
}

.legal-data-list dt {
  color: #102844;
  font-weight: 900;
}

.legal-data-list dd {
  margin: 0;
}

@media (max-width: 900px) {
  .landing-page main.landing-main {
    padding-top: 38px;
  }

  .landing-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .landing-hero-content {
    order: 2;
  }

  .landing-hero-logo {
    order: 1;
    min-height: 300px;
  }

  .landing-hero-logo img {
    width: min(78vw, 390px);
  }

  .landing-values {
    grid-template-columns: 1fr;
    margin-top: 55px;
  }

  .landing-value {
    min-height: auto;
  }

  .landing-contact-section {
    grid-template-columns: 1fr;
    gap: 34px;
  }
}

@media (max-width: 600px) {
  .landing-navigation {
    min-height: 69px;
  }

  .landing-navigation-brand img {
    width: 47px;
    height: 47px;
  }

  .landing-navigation-name {
    font-size: 16px;
  }

  .landing-navigation-tagline {
    display: none;
  }

  .landing-page main.landing-main {
    width: min(100% - 26px, 1220px);
  }

  .landing-hero h1 {
    font-size: 42px;
  }

  .landing-contact-buttons {
    flex-direction: column;
  }

  .landing-contact-primary,
  .landing-contact-secondary {
    width: 100%;
  }

  .landing-value {
    padding: 22px;
  }

  .landing-contact-detail {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .landing-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-data-list {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .legal-data-list dd {
    margin-bottom: 10px;
  }
}

/* =========================================================
   COMPACT LANDING PAGE OVERRIDES
   Must stay at the end of style.css
========================================================= */

.landing-navigation {
  min-height: 64px;
  padding: 8px clamp(16px, 3vw, 42px);
}

.landing-navigation-brand {
  gap: 10px;
}

.landing-navigation-brand img {
  width: 44px;
  height: 44px;
}

.landing-navigation-name {
  font-size: 18px;
}

.landing-navigation-tagline {
  margin-top: 3px;
  font-size: 9px;
}

.landing-login {
  padding: 4px 7px;
  border-radius: 7px;
  font-size: 9px;
}


/* Main container */

.landing-page main.landing-main {
  width: min(1180px, calc(100% - 32px));
  padding: 30px 0 22px;
}


/* Compact hero */

.landing-hero {
  min-height: 360px;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
  gap: clamp(24px, 4vw, 52px);
  padding-bottom: 26px;
}

.landing-eyebrow {
  font-size: 10px;
  letter-spacing: .16em;
}

.landing-hero h1 {
  max-width: 660px;
  margin: 12px 0 15px;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.01;
}

.landing-lead {
  max-width: 650px;
  font-size: 16px;
  line-height: 1.55;
}

.landing-contact-buttons {
  margin-top: 20px;
  gap: 10px;
}

.landing-contact-primary,
.landing-contact-secondary {
  min-height: 48px;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 13px;
}


/* Smaller logo */

.landing-hero-logo {
  min-height: 300px;
}

.landing-logo-glow {
  width: 70%;
  filter: blur(50px);
}

.landing-hero-logo img {
  width: min(100%, 320px);
  box-shadow:
    0 20px 48px rgba(16, 40, 68, .14),
    0 0 0 8px rgba(255, 255, 255, .35);
}


/* Compact value cards */

.landing-values {
  margin: 0 0 32px;
  gap: 14px;
}

.landing-value {
  min-height: 155px;
  padding: 20px;
  gap: 14px;
  border-radius: 19px;
}

.landing-value-number {
  min-width: 38px;
  height: 38px;
  font-size: 13px;
}

.landing-value h2 {
  margin: 2px 0 8px;
  font-size: 20px;
}

.landing-value p {
  font-size: 13px;
  line-height: 1.55;
}


/* Compact contact block */

.landing-contact-section {
  margin-bottom: 28px;
  padding: 28px;
  gap: 32px;
  border-radius: 23px;
}

.landing-contact-intro h2 {
  margin: 8px 0 10px;
  font-size: 30px;
}

.landing-contact-intro p {
  font-size: 14px;
  line-height: 1.55;
}

.landing-contact-details {
  gap: 12px;
}

.landing-contact-detail {
  padding-bottom: 11px;
  grid-template-columns: 90px 1fr;
  font-size: 13px;
}


/* =========================================================
   TABLET / SMALL NOTEBOOK
========================================================= */

@media (max-width: 900px) {
  .landing-page main.landing-main {
    padding-top: 24px;
  }

  .landing-hero {
    min-height: auto;
    grid-template-columns: minmax(0, 1.15fr) minmax(220px, .85fr);
    gap: 22px;
  }

  .landing-hero-content {
    order: initial;
  }

  .landing-hero-logo {
    order: initial;
    min-height: 250px;
  }

  .landing-hero-logo img {
    width: min(100%, 250px);
  }

  .landing-hero h1 {
    font-size: clamp(34px, 5.2vw, 46px);
  }

  .landing-values {
    margin-top: 0;
  }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {
  .landing-navigation {
    min-height: 58px;
    padding: 7px 12px;
  }

  .landing-navigation-brand {
    gap: 8px;
  }

  .landing-navigation-brand img {
    width: 38px;
    height: 38px;
  }

  .landing-navigation-name {
    font-size: 14px;
  }

  .landing-navigation-tagline {
    display: block;
    font-size: 7px;
    letter-spacing: .12em;
  }

  .landing-login {
    padding: 3px 6px;
    font-size: 8px;
  }

  .landing-page main.landing-main {
    width: calc(100% - 20px);
    padding: 18px 0;
  }

  .landing-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-bottom: 22px;
  }

  .landing-hero-content {
    order: 2;
    width: 100%;
  }

  .landing-hero-logo {
    order: 1;
    min-height: 155px;
    width: 100%;
  }

  .landing-logo-glow {
    width: 170px;
    filter: blur(35px);
  }

  .landing-hero-logo img {
    width: 145px;
    box-shadow:
      0 14px 32px rgba(16, 40, 68, .13),
      0 0 0 5px rgba(255, 255, 255, .38);
  }

  .landing-eyebrow {
    font-size: 9px;
    text-align: center;
  }

  .landing-hero h1 {
    max-width: none;
    margin: 9px 0 12px;
    font-size: clamp(31px, 10vw, 40px);
    line-height: 1.02;
    text-align: center;
  }

  .landing-lead {
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
  }

  .landing-contact-buttons {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .landing-contact-primary,
  .landing-contact-secondary {
    width: 100%;
    min-height: 46px;
    align-items: center;
    text-align: center;
  }

  .landing-values {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 22px;
  }

  .landing-value {
    min-height: auto;
    padding: 17px;
  }

  .landing-value h2 {
    font-size: 19px;
  }

  .landing-contact-section {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 20px;
    padding: 22px 18px;
  }

  .landing-contact-intro h2 {
    font-size: 27px;
  }

  .landing-contact-detail {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .landing-footer {
    min-height: auto;
    padding: 15px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 400px) {
  .landing-navigation-name {
    max-width: 210px;
    font-size: 13px;
  }

  .landing-navigation-tagline {
    display: none;
  }

  .landing-hero-logo {
    min-height: 135px;
  }

  .landing-hero-logo img {
    width: 125px;
  }

  .landing-hero h1 {
    font-size: 30px;
  }

  .landing-value {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 11px;
  }

  .landing-value-number {
    min-width: 34px;
    width: 34px;
    height: 34px;
  }
}