/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

* {
  box-sizing: border-box;
}

body.admin-body {
  background: #f1f5f9;
  color: #0f172a;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
}

.admin-topbar {
  align-items: center;
  background: #0f172a;
  color: #fff;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 16px 28px;
}

.brand {
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.admin-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-nav a,
.logout-button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #cbd5e1;
  cursor: pointer;
  font: inherit;
  padding: 8px 12px;
  text-decoration: none;
}

.admin-nav a.active,
.admin-nav a:hover,
.logout-button:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-main {
  margin: 0 auto;
  max-width: 1180px;
  padding: 32px 24px 56px;
}

.admin-flash {
  border-radius: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.admin-flash.notice {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.admin-flash.alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.page-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  padding: 28px;
}

.page-card.narrow {
  max-width: 760px;
}

.page-header {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.eyebrow {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1 {
  font-size: 30px;
  line-height: 1.15;
  margin: 0;
}

.panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
}

.panel p {
  color: #334155;
  line-height: 1.7;
  margin: 0;
}

.stats-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 18px;
}

.stat-card {
  background: #0f172a;
  border-radius: 18px;
  color: #fff;
  padding: 22px;
  text-decoration: none;
}

.stat-card span {
  color: #cbd5e1;
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 34px;
}

.table-card {
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  overflow-x: auto;
}

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

th,
td {
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 16px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

code {
  background: #f1f5f9;
  border-radius: 8px;
  color: #334155;
  padding: 3px 7px;
}

.row-link {
  color: #0f172a;
  font-weight: 750;
  text-decoration: none;
}

.muted-link {
  color: #475569;
}

.actions,
.button-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.actions {
  justify-content: flex-end;
  white-space: nowrap;
}

.primary-button,
.secondary-button {
  border-radius: 12px;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  padding: 10px 14px;
  text-decoration: none;
}

.primary-button {
  background: #0f172a;
  border: 1px solid #0f172a;
  color: #fff;
}

.secondary-button {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.link-button {
  background: transparent;
  border: 0;
  color: #334155;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.danger {
  color: #dc2626;
}

.empty {
  color: #64748b;
  padding: 28px 16px;
  text-align: center;
}

.resource-form {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.resource-form > * {
  min-width: 0;
}

.field label {
  color: #334155;
  display: block;
  font-size: 14px;
  font-weight: 750;
  margin-bottom: 7px;
}

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

.checkbox-field {
  align-items: center;
  color: #334155;
  display: inline-flex;
  font-weight: 750;
  gap: 8px;
}

.checkbox-field input {
  height: 16px;
  width: 16px;
}

.field input {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #0f172a;
  font-size: 16px;
  outline: none;
  padding: 12px 14px;
  width: 100%;
}

.field textarea {
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.5;
  outline: none;
  padding: 12px 14px;
  resize: vertical;
  width: 100%;
}

.field select {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #0f172a;
  font-size: 16px;
  outline: none;
  padding: 12px 14px;
  width: 100%;
}

.field input:focus {
  border-color: #334155;
  box-shadow: 0 0 0 4px rgba(51, 65, 85, 0.12);
}

.field textarea:focus {
  border-color: #334155;
  box-shadow: 0 0 0 4px rgba(51, 65, 85, 0.12);
}

.field select:focus {
  border-color: #334155;
  box-shadow: 0 0 0 4px rgba(51, 65, 85, 0.12);
}

.json-textarea,
.json-block {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.json-block {
  background: #0f172a;
  border-radius: 14px;
  color: #e2e8f0;
  margin: 0;
  max-height: 520px;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
}

.app-config-example {
  font-size: 13px;
  margin-top: 12px;
  overflow-wrap: anywhere;
}

.app-config-example code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.app-config-template {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.app-config-template code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.help-text {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 7px 0 0;
}

.form-errors {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  color: #b91c1c;
  padding: 14px 16px;
}

.details {
  display: grid;
  gap: 12px;
  grid-template-columns: 120px 1fr;
}

.details.wide {
  grid-template-columns: 180px minmax(0, 1fr);
}

.details dt {
  color: #64748b;
  font-weight: 800;
}

.details dd {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.details .details-wide-row {
  grid-column: 1 / -1;
}

.details dt.details-wide-row {
  margin-top: 4px;
}

.subtext {
  color: #64748b;
  font-size: 12px;
  margin-top: 4px;
}

.badge {
  background: #e2e8f0;
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-warning {
  background: #fef3c7;
  color: #92400e;
}

.filter-form {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-form input,
.filter-form select {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  color: #0f172a;
  font: inherit;
  min-width: 180px;
  padding: 9px 12px;
}

.section-title {
  font-size: 18px;
  margin: 28px 0 14px;
}

body.marketing-body {
  background:
    radial-gradient(circle at 16% 8%, rgba(14, 165, 170, 0.28), transparent 34rem),
    radial-gradient(circle at 86% 12%, rgba(0, 155, 210, 0.2), transparent 30rem),
    radial-gradient(circle at 70% 84%, rgba(230, 97, 0, 0.16), transparent 26rem),
    #003747;
  color: #effaf9;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

.marketing-body a {
  color: inherit;
}

.site-header,
.site-footer {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header::before {
  backdrop-filter: blur(18px);
  background: rgba(0, 46, 60, 0.82);
  border-bottom: 1px solid rgba(12, 181, 171, 0.18);
  content: "";
  inset: 0 calc(50% - 50vw);
  position: absolute;
  z-index: -1;
}

.site-brand {
  align-items: center;
  display: inline-flex;
  font-size: 17px;
  font-weight: 850;
  gap: 10px;
  text-decoration: none;
}

.site-logo {
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(10, 178, 170, 0.28);
  display: block;
  height: 38px;
  object-fit: cover;
  width: 38px;
}

.site-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.site-nav a,
.site-footer a {
  color: #b8d6d7;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 11px;
  text-decoration: none;
}

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

.site-nav .site-nav-cta {
  background: rgba(12, 181, 171, 0.16);
  border: 1px solid rgba(12, 181, 171, 0.34);
  border-radius: 999px;
  color: #fff;
}

.hero-section,
.marketing-section,
.cta-section,
.policy-page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 72px 24px;
}

.hero-section {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  min-height: 720px;
}

.marketing-eyebrow {
  color: #8cab00;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.cta-section h2,
.policy-page h1 {
  color: #fff;
  font-size: clamp(42px, 7vw, 82px);
  letter-spacing: -0.06em;
  line-height: 0.96;
  margin: 0;
}

.hero-lede,
.section-heading p,
.cta-section p,
.policy-page p,
.policy-page li,
.support-card p,
.feature-grid p {
  color: #b8d6d7;
  font-size: 17px;
  line-height: 1.75;
}

.hero-lede {
  max-width: 670px;
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 14px;
}

.download-button,
.outline-button {
  border-radius: 16px;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  padding: 14px 18px;
  text-decoration: none;
}

.download-button {
  background: linear-gradient(135deg, #0cb5ab, #0b9ed1);
  box-shadow: 0 18px 40px rgba(12, 181, 171, 0.26);
  color: #fff;
}

.outline-button {
  border: 1px solid rgba(12, 181, 171, 0.38);
  color: #d8f8f5;
}

.availability-note {
  color: #91b8ba;
  font-size: 13px;
}

.availability-note a {
  color: #0cb5ab;
  font-weight: 850;
  text-decoration: none;
}

.availability-note a:hover {
  color: #fff;
}

.availability-note code {
  background: rgba(0, 21, 32, 0.28);
  color: #ea6a00;
}

.device-support {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.device-support span {
  background: rgba(12, 181, 171, 0.11);
  border: 1px solid rgba(12, 181, 171, 0.24);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 13px;
  font-weight: 850;
  padding: 8px 12px;
}

.hero-art {
  align-items: center;
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-art::before {
  background:
    radial-gradient(circle at 48% 42%, rgba(12, 181, 171, 0.22), transparent 58%),
    radial-gradient(circle at 58% 60%, rgba(0, 158, 209, 0.14), transparent 62%);
  content: "";
  filter: blur(12px);
  height: 620px;
  position: absolute;
  width: 620px;
  z-index: -1;
}

.hero-carousel {
  width: min(100%, 560px);
}

.hero-carousel-viewport {
  align-items: center;
  cursor: grab;
  display: flex;
  height: clamp(520px, 62vw, 680px);
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
  transition: height 220ms ease;
  user-select: none;
}

.hero-carousel-viewport:active {
  cursor: grabbing;
}

.hero-carousel-track {
  align-items: center;
  display: flex;
  height: 100%;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
}

.hero-slide {
  align-items: center;
  display: flex;
  flex: 0 0 100%;
  height: 100%;
  justify-content: center;
  padding: 12px;
}

.hero-device-image {
  -webkit-user-drag: none;
  display: block;
  filter: drop-shadow(0 26px 46px rgba(0, 16, 24, 0.3));
  height: auto;
  max-height: 100%;
  max-width: 100%;
}

.hero-carousel-controls {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 18px;
}

.single-slide .hero-carousel-controls {
  display: none;
}

.carousel-button,
.carousel-dot {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.carousel-button {
  align-items: center;
  background: rgba(0, 21, 32, 0.34);
  border: 1px solid rgba(12, 181, 171, 0.3);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 28px;
  height: 42px;
  justify-content: center;
  line-height: 1;
  width: 42px;
}

.carousel-button:hover {
  background: rgba(12, 181, 171, 0.2);
}

.carousel-dots {
  align-items: center;
  display: flex;
  gap: 8px;
}

.carousel-dot {
  background: rgba(184, 214, 215, 0.38);
  border-radius: 999px;
  height: 8px;
  padding: 0;
  width: 8px;
}

.carousel-dot.active {
  background: #0cb5ab;
  width: 24px;
}

.section-heading {
  margin-bottom: 28px;
  max-width: 760px;
}

#features {
  scroll-margin-top: 96px;
}

.section-heading h2,
.cta-section h2,
.policy-page h1 {
  font-size: clamp(34px, 4.4vw, 56px);
}

.feature-grid,
.support-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.feature-grid article,
.support-card,
.policy-card,
.cta-section {
  background: rgba(0, 42, 55, 0.76);
  border: 1px solid rgba(12, 181, 171, 0.16);
  border-radius: 26px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.18);
}

.feature-grid article,
.support-card,
.policy-card {
  padding: 24px;
}

.feature-grid h3,
.support-card h3,
.policy-page h2 {
  color: #fff;
  margin: 0 0 10px;
}

.cta-section {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 60px;
  padding: 36px;
}

.policy-card {
  margin-top: 28px;
}

.policy-card section + section {
  border-top: 1px solid rgba(12, 181, 171, 0.16);
  margin-top: 24px;
  padding-top: 24px;
}

.support-card .download-button,
.support-card .outline-button {
  margin-top: 12px;
}

.site-footer {
  flex-direction: column;
  border-top: 1px solid rgba(12, 181, 171, 0.16);
  color: #91b8ba;
  justify-content: center;
  text-align: center;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 820px) {
  .site-header,
  .site-footer,
  .cta-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .site-footer nav {
    justify-content: center;
  }

  .hero-section {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 52px;
  }

  .hero-device-image {
    max-width: 100%;
  }

}

@media (max-width: 640px) {
  .site-header,
  .site-footer {
    gap: 18px;
    padding: 18px 16px;
  }

  .site-brand {
    font-size: 16px;
  }

  .site-logo {
    border-radius: 10px;
    height: 34px;
    width: 34px;
  }

  .site-nav {
    gap: 6px;
    width: 100%;
  }

  .site-nav a,
  .site-footer a {
    font-size: 13px;
    padding: 8px 9px;
  }

  .hero-section,
  .marketing-section,
  .policy-page {
    padding: 42px 16px;
  }

  .hero-section {
    gap: 28px;
    padding-bottom: 24px;
  }

  .hero-copy h1 {
    font-size: clamp(48px, 15vw, 64px);
  }

  .hero-lede,
  .section-heading p,
  .cta-section p,
  .policy-page p,
  .policy-page li,
  .support-card p,
  .feature-grid p {
    font-size: 15px;
    line-height: 1.65;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 24px;
  }

  .download-button,
  .outline-button {
    width: 100%;
  }

  .device-support span {
    font-size: 12px;
    padding: 7px 10px;
  }

  .hero-art {
    margin-left: -16px;
    margin-right: -16px;
    overflow: hidden;
  }

  .hero-art::before {
    height: 120vw;
    width: 120vw;
  }

  .hero-carousel {
    width: 100vw;
  }

  .hero-carousel-viewport {
    height: auto;
  }

  .hero-carousel-track {
    align-items: flex-start;
  }

  .hero-slide {
    height: auto;
    padding: 0;
  }

  .hero-device-image {
    max-height: none;
    width: 100%;
  }

  .hero-carousel-controls {
    margin-top: 10px;
  }

  .carousel-button {
    font-size: 24px;
    height: 36px;
    width: 36px;
  }

  .carousel-dot {
    height: 7px;
    width: 7px;
  }

  .carousel-dot.active {
    width: 20px;
  }

  .feature-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article,
  .support-card,
  .policy-card {
    border-radius: 20px;
    padding: 20px;
  }

  .cta-section {
    margin: 24px 16px 44px;
    padding: 24px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
