/* Project-specific overrides on top of Tailwind. */

/* ============================================================
   App shell (sidebar + topbar layout for authenticated pages)
   ============================================================ */

.app-shell {
  display: flex;
  min-height: 100vh;
  background-color: #f1f1ef;
}

.app-sidebar {
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f4;
  border-right: 1px dashed #d6d3d1;
  position: sticky;
  top: 0;
  height: 100vh;
}

@media (max-width: 860px) {
  .app-shell {
    flex-direction: column;
  }
  .app-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px dashed #d6d3d1;
  }
  .app-sidebar__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem;
  }
  .app-sidebar__section + .app-sidebar__section {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .nav-section-label {
    display: none;
  }
  .app-sidebar__footer {
    display: none;
  }
  .app-content {
    padding: 1.25rem;
  }
  .instance-card {
    grid-template-columns: 1fr;
  }
}

.app-sidebar__brand {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  border-bottom: 1px dashed #e7e5e4;
}

.app-sidebar__brand-mark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1c1917;
}

.app-sidebar__brand-suffix {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #78716c;
}

.app-sidebar__nav {
  flex: 1;
  padding: 0.75rem 0.5rem;
  overflow-y: auto;
}

.app-sidebar__section + .app-sidebar__section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed #e7e5e4;
}

.nav-section-label {
  display: block;
  padding: 0.25rem 0.75rem 0.375rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a8a29e;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #44403c;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.nav-item:hover {
  background-color: #ffffff;
  color: #1c1917;
}

.nav-item--active {
  background-color: #ffffff;
  color: #1e3a8a;
  border-color: #c7d2fe;
  border-style: dashed;
}

.nav-item__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: currentColor;
}

.nav-item__badge {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.0625rem 0.375rem;
  border-radius: 9999px;
  background-color: #fef3c7;
  color: #92400e;
}

.app-sidebar__footer {
  padding: 0.75rem;
  border-top: 1px dashed #e7e5e4;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem;
  border-radius: 0.625rem;
  border: 1px dashed #d6d3d1;
  background-color: #ffffff;
}

.user-chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #1e40af;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-chip__email {
  font-size: 0.75rem;
  color: #44403c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}

.user-chip__action {
  font-size: 0.75rem;
  color: #78716c;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.25rem;
}

.user-chip__action:hover {
  color: #1c1917;
  background-color: #f5f5f4;
}

/* ---- Main column ---- */

.app-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.75rem;
  background-color: #f1f1ef;
  border-bottom: 1px dashed #d6d3d1;
  gap: 1rem;
}

.app-topbar__left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: #78716c;
}

.breadcrumb a {
  color: #57534e;
}

.breadcrumb a:hover {
  color: #1c1917;
}

.breadcrumb__sep {
  color: #d6d3d1;
}

.breadcrumb__current {
  color: #1c1917;
  font-weight: 500;
}

.app-content {
  flex: 1;
  padding: 1.75rem;
  overflow-x: hidden;
}

.app-content__inner {
  max-width: 1180px;
  margin: 0 auto;
}

/* ============================================================
   Surfaces
   ============================================================ */

.panel-card {
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 1rem;
}

.tile {
  background-color: #ffffff;
  border: 1px dashed #d6d3d1;
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
}

.tile-link {
  display: block;
  background-color: #ffffff;
  border: 1px dashed #d6d3d1;
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  transition: border-color 120ms ease, background-color 120ms ease, transform 120ms ease;
}

.tile-link:hover {
  border-color: #1e40af;
  background-color: #f8fafc;
}

/* ============================================================
   Hero / page header
   ============================================================ */

.page-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.page-hero__title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1c1917;
  line-height: 1.15;
}

.page-hero__subtitle {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: #57534e;
  max-width: 56ch;
}

.page-hero__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ============================================================
   KPI strip
   ============================================================ */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  position: relative;
  background-color: #ffffff;
  border: 1px dashed #d6d3d1;
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  overflow: hidden;
}

.kpi-card__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #78716c;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.kpi-card__value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #1c1917;
  line-height: 1;
}

.kpi-card__value-unit {
  font-size: 0.875rem;
  font-weight: 500;
  color: #78716c;
  margin-left: 0.25rem;
}

.kpi-card__hint {
  font-size: 0.75rem;
  color: #78716c;
}

.kpi-card__accent {
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  border-radius: 0 0.875rem 0 9999px;
  background: linear-gradient(135deg, transparent 0%, transparent 45%, rgba(30, 64, 175, 0.08) 100%);
  pointer-events: none;
  z-index: 0;
}

.kpi-card > *:not(.kpi-card__accent) {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Instance cards
   ============================================================ */

.instance-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.instance-card {
  background-color: #ffffff;
  border: 1px dashed #d6d3d1;
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 1.25rem;
  align-items: center;
  transition: border-color 120ms ease;
}

.instance-card:hover {
  border-color: #1e40af;
}

@media (max-width: 720px) {
  .instance-card {
    grid-template-columns: 1fr;
  }
}

.instance-card__primary {
  min-width: 0;
}

.instance-card__title {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.instance-card__hostname {
  font-weight: 600;
  color: #1c1917;
  font-size: 0.9375rem;
}

.instance-card__hostname:hover {
  color: #1e40af;
}

.instance-card__meta {
  margin-top: 0.375rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: #78716c;
}

.instance-card__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.instance-card__actions {
  display: flex;
  gap: 0.375rem;
  justify-content: flex-end;
}

/* ============================================================
   Progress bar (storage / quota)
   ============================================================ */

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

.progress__head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #57534e;
}

.progress__head-label {
  color: #78716c;
}

.progress__head-value {
  font-weight: 500;
  color: #1c1917;
  font-variant-numeric: tabular-nums;
}

.progress__track {
  height: 6px;
  border-radius: 9999px;
  background-color: #f5f5f4;
  overflow: hidden;
  border: 1px dashed #e7e5e4;
}

.progress__fill {
  height: 100%;
  background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
  border-radius: 9999px;
}

.progress__fill--warn {
  background: linear-gradient(90deg, #b45309 0%, #f59e0b 100%);
}

.progress__fill--danger {
  background: linear-gradient(90deg, #991b1b 0%, #dc2626 100%);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background-color: #1e40af;
  color: #ffffff;
  font-weight: 500;
  border: 1px solid #1e40af;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.btn-primary:hover {
  background-color: #1e3a8a;
  border-color: #1e3a8a;
}

.btn-primary:focus-visible {
  outline: 2px solid #1e3a8a;
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.8125rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #292524;
  font-weight: 500;
  border: 1px dashed #a8a29e;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.btn-secondary:hover {
  background-color: #fafaf9;
  border-color: #57534e;
}

.btn-secondary[data-variant="warning"] {
  color: #92400e;
  border-color: #fbbf24;
}

.btn-secondary[data-variant="warning"]:hover {
  background-color: #fffbeb;
  border-color: #b45309;
}

.btn-secondary[data-variant="success"] {
  color: #065f46;
  border-color: #34d399;
}

.btn-secondary[data-variant="success"]:hover {
  background-color: #ecfdf5;
  border-color: #047857;
}

.btn-secondary[data-variant="danger"] {
  color: #b91c1c;
  border-color: #fca5a5;
}

.btn-secondary[data-variant="danger"]:hover {
  background-color: #fef2f2;
  border-color: #b91c1c;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background-color: #dc2626;
  color: #ffffff;
  font-weight: 500;
  border: 1px solid #dc2626;
  transition: background-color 120ms ease;
}

.btn-danger:hover {
  background-color: #b91c1c;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.625rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: #57534e;
  background: transparent;
  border: 1px solid transparent;
  transition: background-color 120ms ease, color 120ms ease;
}

.btn-ghost:hover {
  background-color: #f5f5f4;
  color: #1c1917;
}

/* ============================================================
   Inputs
   ============================================================ */

.input-console,
input[type="text"].input-console,
input[type="email"].input-console,
input[type="password"].input-console,
input[type="search"].input-console,
select.input-console,
textarea.input-console {
  width: 100%;
  display: block;
  background-color: #ffffff;
  color: #1c1917;
  border: 1px dashed #a8a29e;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  transition: border-color 120ms ease;
}

.input-console:focus,
.input-console:focus-visible {
  outline: none;
  border-style: solid;
  border-color: #1e40af;
}

.input-console::placeholder {
  color: #a8a29e;
}

form .form-field input[type="email"],
form .form-field input[type="password"],
form .form-field input[type="text"],
form .form-field select,
form .form-field textarea {
  width: 100%;
  background-color: #ffffff;
  color: #1c1917;
  border: 1px dashed #a8a29e;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

form .form-field input:focus,
form .form-field select:focus,
form .form-field textarea:focus {
  outline: none;
  border-style: solid;
  border-color: #1e40af;
}

/* Django password validators emit <ul><li>… — keep markup valid (no <p> wrapper). */
.field-help-text ul {
  margin: 0;
  padding-left: 1.125rem;
  list-style-type: disc;
}

.field-help-text li {
  padding-left: 0.125rem;
}

.field-help-text li + li {
  margin-top: 0.375rem;
}

/* ============================================================
   Tabs (section navigation)
   ============================================================ */

.tab-row {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px dashed #d6d3d1;
  margin-bottom: 1.25rem;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem 0.5rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #78716c;
  border: 1px dashed transparent;
  border-bottom: none;
  margin-bottom: -1px;
}

.tab:hover {
  color: #1c1917;
}

.tab--active {
  color: #1e3a8a;
  border-color: #d6d3d1;
  background-color: #ffffff;
}

.tab__count {
  font-size: 0.6875rem;
  padding: 0.0625rem 0.375rem;
  border-radius: 9999px;
  background-color: #f5f5f4;
  color: #57534e;
  font-weight: 600;
}

.tab--active .tab__count {
  background-color: #eef2ff;
  color: #1e3a8a;
}

/* ============================================================
   Section helpers
   ============================================================ */

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1c1917;
  letter-spacing: -0.005em;
}

.section-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #a8a29e;
}

.divider-dashed {
  border-top: 1px dashed #d6d3d1;
}

/* ============================================================
   Tables
   ============================================================ */

.table-console {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.875rem;
  border: 1px dashed #d6d3d1;
  border-radius: 0.875rem;
  overflow: hidden;
  background-color: #ffffff;
}

.table-console thead th {
  background-color: #f5f5f4;
  color: #57534e;
  text-align: left;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px dashed #d6d3d1;
}

.table-console tbody td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px dashed #e7e5e4;
}

.table-console tbody tr:last-child td {
  border-bottom: none;
}

.table-console tbody tr:hover td {
  background-color: #fafaf9;
}

/* ============================================================
   Status pills + tags
   ============================================================ */

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  border-width: 1px;
  border-style: dashed;
}

.status-pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background-color: currentColor;
}

.status-running { color: #047857; border-color: #6ee7b7; background-color: #ecfdf5; }
.status-provisioning { color: #1d4ed8; border-color: #93c5fd; background-color: #eff6ff; }
.status-requested { color: #57534e; border-color: #d6d3d1; background-color: #fafaf9; }
.status-suspended { color: #b45309; border-color: #fcd34d; background-color: #fffbeb; }
.status-deleting { color: #be185d; border-color: #f9a8d4; background-color: #fdf2f8; }
.status-deleted { color: #6b7280; border-color: #d1d5db; background-color: #f3f4f6; }
.status-errored { color: #b91c1c; border-color: #fca5a5; background-color: #fef2f2; }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.0625rem 0.4375rem;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #57534e;
  background-color: #f5f5f4;
  border: 1px dashed #d6d3d1;
}

/* ============================================================
   Empty state
   ============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: #ffffff;
  border: 1px dashed #d6d3d1;
  border-radius: 1rem;
}

.empty-state__glyph {
  width: 48px;
  height: 48px;
  border-radius: 0.875rem;
  background-color: #eef2ff;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  border: 1px dashed #c7d2fe;
}

.empty-state__title {
  font-size: 1rem;
  font-weight: 600;
  color: #1c1917;
  margin-bottom: 0.25rem;
}

.empty-state__body {
  font-size: 0.875rem;
  color: #57534e;
  max-width: 42ch;
  margin-bottom: 1rem;
}

/* ============================================================
   Auth split (centered card for unauthenticated routes)
   ============================================================ */

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f1f1ef;
}

.auth-shell__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.125rem 1.5rem;
}

.auth-shell__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}

.auth-card {
  width: 100%;
  max-width: 26rem;
  background-color: #ffffff;
  border: 1px solid #e7e5e4;
  border-radius: 1.25rem;
  padding: 2rem;
}

/* ============================================================
   Modal (only place where shadow is permitted)
   ============================================================ */

.modal-card {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   Public index / landing
   ============================================================ */

.landing {
  min-height: 100vh;
  background-color: #f1f1ef;
  color: #1c1917;
  overflow-x: hidden;
}

.landing-skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 40;
  padding: 0.5rem 0.75rem;
  background: #ffffff;
  border: 1px dashed #1e40af;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.landing-skip:focus {
  top: 1rem;
}

.landing-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: rgba(241, 241, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px dashed #d6d3d1;
}

.landing-nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.landing-nav__brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.landing-nav__word {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1c1917;
}

.landing-nav__links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #57534e;
  margin-left: 0.5rem;
}

.landing-nav__links a:hover {
  color: #1c1917;
}

.landing-nav__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.landing-hero {
  position: relative;
  padding: 3.5rem 0 0;
  background-image:
    linear-gradient(to right, rgba(214, 211, 209, 0.55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(214, 211, 209, 0.55) 1px, transparent 1px);
  background-size: 44px 44px;
  background-position: center top;
  border-bottom: 1px dashed #d6d3d1;
}

.landing-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(12rem, 0.65fr);
  gap: 2.5rem;
  align-items: end;
}

.landing-hero__title {
  margin-top: 0.75rem;
  font-size: clamp(2.35rem, 5.4vw, 4.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: #1c1917;
}

.landing-hero__title em {
  display: block;
  font-style: normal;
  color: #1e40af;
}

.landing-hero__lead {
  margin-top: 1.25rem;
  max-width: 46ch;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #44403c;
}

.landing-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-top: 1.75rem;
}

.landing-btn {
  padding: 0.7rem 1.1rem;
  font-size: 0.9375rem;
}

.landing-hero__aside {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: #78716c;
  max-width: 48ch;
}

.landing-index {
  list-style: none;
  margin: 0;
  padding: 0 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-left: 1px dashed #d6d3d1;
  padding-left: 1.25rem;
}

.landing-index li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1c1917;
}

.landing-index span {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a8a29e;
  width: 1.5rem;
}

.landing-stage {
  padding: 3rem 0 4.5rem;
}

.landing-stage__inner {
  position: relative;
  max-width: 1180px;
}

.landing-window {
  background-color: #ffffff;
  border: 1px dashed #d6d3d1;
  border-radius: 1.15rem;
  overflow: hidden;
}

.landing-window img {
  display: block;
  width: 100%;
  height: auto;
}

.landing-window__bar {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px dashed #e7e5e4;
  background-color: #fafaf9;
}

.landing-window__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d6d3d1;
}

.landing-window__url {
  margin-left: 0.5rem;
  font-size: 0.6875rem;
  color: #78716c;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-window--hero {
  position: relative;
  z-index: 1;
}

.landing-window--offset {
  position: absolute;
  z-index: 2;
  width: min(46%, 28rem);
  right: 1.25rem;
  bottom: 1.5rem;
}

.landing-band {
  padding: 5rem 0;
}

.landing-band--alt {
  background-color: #f5f5f4;
  border-top: 1px dashed #d6d3d1;
  border-bottom: 1px dashed #d6d3d1;
}

.landing-section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.landing-h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.landing-h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #1c1917;
}

.landing-lead {
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.55;
  color: #57534e;
}

.landing-split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.landing-split--reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
}

.landing-split--reverse .landing-split__copy {
  order: 2;
}

.landing-split__copy p {
  margin-top: 0.75rem;
  color: #57534e;
  line-height: 1.55;
}

.landing-features {
  list-style: none;
  margin: 0;
  padding: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  border-top: 1px dashed #d6d3d1;
}

.landing-features li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.landing-features svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: #1e40af;
}

.landing-features h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.landing-features p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #57534e;
}

.landing-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.landing-steps li {
  background-color: #ffffff;
  border: 1px dashed #d6d3d1;
  border-radius: 0.875rem;
  padding: 1.25rem 1.15rem 1.35rem;
}

.landing-steps__n {
  display: block;
  font-size: 0.75rem;
  color: #a8a29e;
  margin-bottom: 0.75rem;
}

.landing-steps h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.landing-steps p {
  margin-top: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #57534e;
}

.landing-pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.landing-price-card {
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}

.landing-price-card p:not(.section-eyebrow) {
  color: #57534e;
  font-size: 0.9375rem;
  line-height: 1.5;
  flex: 1;
}

.landing-price-card .landing-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.landing-finale {
  padding: 4.5rem 0 5rem;
  text-align: center;
  border-top: 1px dashed #d6d3d1;
  background-image:
    linear-gradient(to right, rgba(214, 211, 209, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(214, 211, 209, 0.45) 1px, transparent 1px);
  background-size: 44px 44px;
}

.landing-finale .landing-h2 {
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.landing-finale .landing-hero__cta {
  justify-content: center;
}

.landing-footer {
  border-top: 1px dashed #d6d3d1;
  padding: 1.25rem 0 1.75rem;
  font-size: 0.8125rem;
  color: #57534e;
}

.landing-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.landing-footer a {
  color: #44403c;
}

.landing-footer a:hover {
  color: #1c1917;
}

@media (max-width: 960px) {
  .landing-hero__grid,
  .landing-split,
  .landing-split--reverse,
  .landing-features,
  .landing-steps,
  .landing-pricing__grid {
    grid-template-columns: 1fr;
  }

  .landing-split--reverse .landing-split__copy {
    order: 0;
  }

  .landing-nav__links {
    display: none;
  }

  .landing-index {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    padding-left: 0;
    gap: 0.75rem 1.25rem;
  }

  .landing-window--offset {
    display: none;
  }

  .landing-stage {
    padding-bottom: 3rem;
  }
}

@media (max-width: 560px) {
  .landing-nav__actions .btn-ghost {
    display: none;
  }

  .landing-hero {
    padding-top: 2.25rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html:has(.landing) {
    scroll-behavior: smooth;
    scroll-padding-top: 4.75rem;
  }

  .landing-hero__copy > *,
  .landing-index {
    animation: landing-rise 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .landing-hero__copy > *:nth-child(1) { animation-delay: 30ms; }
  .landing-hero__copy > *:nth-child(2) { animation-delay: 90ms; }
  .landing-hero__copy > *:nth-child(3) { animation-delay: 150ms; }
  .landing-hero__copy > *:nth-child(4) { animation-delay: 210ms; }
  .landing-hero__copy > *:nth-child(5) { animation-delay: 270ms; }
  .landing-index { animation-delay: 180ms; }

  .landing-window--hero {
    animation: landing-fade 900ms cubic-bezier(0.22, 1, 0.36, 1) 220ms both;
  }

  .landing-window--offset {
    animation: landing-fade 900ms cubic-bezier(0.22, 1, 0.36, 1) 360ms both;
  }
}

@keyframes landing-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes landing-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
