:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-raised: #0d1828;
  --surface: #111f32;
  --surface-muted: #17263a;
  --text: #f6f8fb;
  --muted: #a8b4c3;
  --line: #26384e;
  --primary: #19a7a1;
  --primary-strong: #5eead4;
  --accent: #f4b34e;
  --accent-blue: #5aa7ff;
  --danger: #ff6b5f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

.site-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 32px;
  background: rgba(8, 17, 31, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

nav a,
nav button,
a {
  color: var(--primary-strong);
}

nav form {
  margin: 0;
}

nav button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.site-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0;
}

.site-main.wide {
  width: min(1360px, calc(100% - 40px));
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 190px);
  padding: 64px 0 88px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 710px;
}

.eyebrow {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 5.8vw, 6.4rem);
  line-height: 1;
  margin: 0 0 22px;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 3vw, 3.25rem);
  line-height: 1.05;
}

.lede {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.65;
}

.actions,
.provider-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #041014;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button.secondary {
  background: var(--surface-muted);
  color: var(--text);
  border-color: var(--line);
}

.button:hover,
nav a:hover,
nav button:hover {
  filter: brightness(1.08);
}

.button.small {
  min-height: 34px;
  padding: 0 12px;
}

.button.muted,
button:disabled {
  background: var(--surface-muted);
  border-color: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-points span {
  padding: 9px 12px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 8px;
  background: rgba(17, 31, 50, 0.72);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

.hero-art {
  position: absolute;
  inset: 18px 0 24px 46%;
  z-index: 1;
  pointer-events: none;
}

.app-showcase {
  position: absolute;
  right: 0;
  top: 92px;
  width: min(640px, 46vw);
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 8px;
  background: rgba(12, 25, 41, 0.92);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.showcase-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.showcase-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.showcase-top span:nth-child(2) {
  background: var(--primary);
}

.showcase-top span:nth-child(3) {
  background: var(--accent-blue);
}

.showcase-top strong {
  margin-left: auto;
  color: var(--text);
  font-size: 0.92rem;
}

.showcase-main {
  display: grid;
  grid-template-columns: 160px 1fr;
  min-height: 390px;
}

.showcase-main aside {
  padding: 24px 18px;
  border-right: 1px solid var(--line);
  background: #0a1423;
}

.showcase-main aside b {
  display: block;
  margin-bottom: 22px;
  color: var(--text);
}

.showcase-main aside em {
  display: block;
  height: 12px;
  margin: 16px 0;
  border-radius: 8px;
  background: #26384e;
}

.showcase-main aside em:nth-child(3) {
  width: 76%;
}

.showcase-main aside em:nth-child(4) {
  width: 88%;
}

.showcase-main aside em:nth-child(5) {
  width: 62%;
}

.showcase-main aside .active-line {
  width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
}

.showcase-main section {
  padding: 24px;
}

.drop-graphic {
  display: grid;
  place-items: center;
  min-height: 176px;
  border: 2px dashed #128a86;
  border-radius: 8px;
  background: #0b2230;
  text-align: center;
}

.upload-arrow {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border: 3px solid #728096;
  border-top: 0;
  border-radius: 0 0 8px 8px;
  position: relative;
}

.upload-arrow::before,
.upload-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  background: #728096;
  transform: translateX(-50%);
}

.upload-arrow::before {
  bottom: 14px;
  width: 4px;
  height: 42px;
}

.upload-arrow::after {
  bottom: 45px;
  width: 22px;
  height: 22px;
  border-left: 4px solid #728096;
  border-top: 4px solid #728096;
  background: transparent;
  transform: translateX(-50%) rotate(45deg);
}

.drop-graphic strong,
.drop-graphic span {
  display: block;
}

.drop-graphic strong {
  color: var(--text);
}

.drop-graphic span {
  margin-top: 6px;
  color: var(--muted);
}

.progress-graphic {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.progress-graphic div {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.progress-graphic span {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
}

.progress-graphic strong {
  font-size: 0.94rem;
}

.progress-graphic em {
  color: var(--accent);
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 900;
}

.doc-swarm {
  position: absolute;
  right: 555px;
  top: 70px;
}

.doc-card {
  position: absolute;
  display: grid;
  place-items: center;
  width: 92px;
  height: 118px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0c1826;
  font-weight: 900;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
}

.doc-card::after {
  content: "";
  position: absolute;
  inset: 16px 16px auto;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.14;
  box-shadow: 0 18px 0 currentColor, 0 36px 0 currentColor, 0 54px 0 currentColor;
}

.doc-card.word {
  color: #155eef;
  transform: rotate(-9deg);
}

.doc-card.sheet {
  left: 74px;
  top: 72px;
  color: #07864b;
  transform: rotate(7deg);
}

.doc-card.deck {
  left: 4px;
  top: 160px;
  color: #d95b21;
  transform: rotate(-4deg);
}

.before-after {
  position: absolute;
  right: 0;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: min(430px, 32vw);
}

.before-after div {
  padding: 16px;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: 8px;
  background: rgba(17, 31, 50, 0.9);
}

.before-after span {
  display: block;
  margin-bottom: 12px;
  color: var(--primary-strong);
  font-weight: 900;
}

.before-after i {
  display: block;
  height: 8px;
  margin-top: 9px;
  border-radius: 999px;
  background: #31445c;
}

.before-after div:last-child i {
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
}

.product-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f1b2b;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.preview-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.preview-toolbar span:nth-child(2) {
  background: var(--primary);
}

.preview-toolbar span:nth-child(3) {
  background: var(--accent-blue);
}

.preview-toolbar strong {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.85rem;
}

.preview-dropzone {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px;
  padding: 28px;
  border: 2px dashed #118d88;
  border-radius: 8px;
  background: #0b2230;
}

.preview-dropzone h2 {
  margin-bottom: 6px;
}

.preview-dropzone p {
  margin: 0;
  color: var(--muted);
}

.upload-mark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 94px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0c1826;
  font-weight: 900;
}

.preview-grid,
.proof-strip {
  display: grid;
  gap: 12px;
}

.preview-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 18px 18px;
}

.preview-grid div,
.proof-strip div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.preview-grid strong,
.proof-strip strong {
  display: block;
}

.preview-grid span,
.proof-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.preview-grid span {
  color: var(--primary-strong);
}

.preview-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.preview-status span {
  color: var(--primary-strong);
  font-weight: 800;
}

.preview-status em {
  font-style: normal;
}

.proof-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: -42px 0 76px;
  position: relative;
  z-index: 3;
}

.section-heading {
  max-width: 840px;
  margin-bottom: 22px;
}

.section-heading.compact {
  margin-top: 58px;
}

.section-heading p:last-child,
.workflow p,
.pricing-teaser p,
.final-cta p,
.privacy-section p {
  color: var(--muted);
  line-height: 1.7;
}

.band,
.pricing-grid,
.two-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.band > div,
.band > article,
.plan-card,
.panel,
.auth-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.page-heading {
  margin-bottom: 28px;
}

.page-heading p,
.plan-card p,
.panel p {
  color: var(--muted);
}

.workflow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-raised);
}

.workflow > div {
  max-width: 720px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  counter-reset: steps;
}

.workflow-steps article {
  position: relative;
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(17, 31, 50, 0.94), rgba(13, 24, 40, 0.94));
  overflow: hidden;
}

.workflow-steps article::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 24px;
  height: 56px;
  border-radius: 8px;
  background: repeating-linear-gradient(90deg, rgba(94, 234, 212, 0.28) 0 42px, rgba(255, 255, 255, 0.06) 42px 52px);
  opacity: 0.72;
}

.workflow-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 8px;
  background: rgba(25, 167, 161, 0.16);
  color: var(--primary-strong);
  font-weight: 900;
}

.workflow-steps h3 {
  margin: 0 0 10px;
  font-size: 1.28rem;
}

.workflow-steps p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}

.feature-grid article::after {
  content: "";
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 112px;
  height: 78px;
  border-radius: 8px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  background:
    linear-gradient(#5eead4 0 0) 18px 20px / 66px 5px no-repeat,
    linear-gradient(#31445c 0 0) 18px 38px / 78px 5px no-repeat,
    linear-gradient(#31445c 0 0) 18px 56px / 48px 5px no-repeat,
    rgba(255, 255, 255, 0.03);
  opacity: 0.9;
}

.feature-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 34px;
  padding: 0 10px;
  margin-bottom: 18px;
  border: 1px solid rgba(94, 234, 212, 0.35);
  border-radius: 8px;
  color: var(--primary-strong);
  font-weight: 900;
}

.feature-grid h3 {
  margin: 0 0 10px;
  max-width: 280px;
  font-size: 1.2rem;
}

.feature-grid p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  margin-top: 32px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b2230;
}

.privacy-visual {
  position: relative;
  min-height: 260px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25, 167, 161, 0.18), rgba(90, 167, 255, 0.12)),
    #0a1423;
  overflow: hidden;
}

.shield-shape {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 150px;
  height: 180px;
  background: linear-gradient(180deg, #5eead4, #19a7a1);
  clip-path: polygon(50% 0, 90% 16%, 82% 72%, 50% 100%, 18% 72%, 10% 16%);
  transform: translate(-50%, -50%);
}

.shield-shape::after {
  content: "";
  position: absolute;
  inset: 42px 44px;
  border-right: 12px solid #06111f;
  border-bottom: 12px solid #06111f;
  transform: rotate(42deg);
}

.local-lines {
  position: absolute;
  inset: auto 28px 30px;
  display: grid;
  gap: 10px;
}

.local-lines span {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.text-link {
  display: inline-flex;
  margin-top: 10px;
  color: var(--primary-strong);
  font-weight: 900;
  text-decoration: none;
}

.pricing-teaser {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 32px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 179, 78, 0.13), rgba(25, 167, 161, 0.08)),
    #111f32;
}

.pricing-teaser h2 {
  margin-bottom: 0;
}

.mini-plans {
  display: grid;
  gap: 8px;
}

.mini-plans span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 800;
}

.mini-plans em {
  color: var(--accent);
  font-style: normal;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-top: 32px;
  padding: 42px;
  border: 1px solid rgba(94, 234, 212, 0.24);
  border-radius: 8px;
  background: #07101e;
}

.final-cta h2 {
  max-width: 760px;
}

.final-cta p {
  max-width: 680px;
}

.plan-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.price {
  font-size: 2.25rem;
  font-weight: 900;
}

.price span {
  margin-left: 4px;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
}

.auth-panel {
  width: min(480px, 100%);
  margin: 0 auto;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: var(--surface);
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid rgba(94, 234, 212, 0.35);
  outline-offset: 2px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

dl {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

.error {
  color: var(--danger);
  font-weight: 700;
}

.site-footer {
  padding: 28px 32px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
}

.saas-topbar {
  position: sticky;
  top: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 42px;
  padding: 0 16px;
  background: #0b1625;
  color: #f6f8fb;
  border-bottom: 1px solid #26384e;
  font: 14px/1.4 Inter, ui-sans-serif, system-ui, sans-serif;
}

.saas-topbar a {
  color: #5eead4;
  font-weight: 700;
  text-decoration: none;
}

.saas-topbar em {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #17263a;
  color: #5eead4;
  font-style: normal;
}

.saas-topbar-spacer {
  flex: 1;
}

@media (max-width: 860px) {
  .site-header,
  nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    padding: 18px 20px;
  }

  .band,
  .pricing-grid,
  .two-column,
  .proof-strip,
  .workflow-steps,
  .feature-grid,
  .pricing-teaser,
  .privacy-section,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 40px 0 320px;
  }

  .hero-art {
    inset: auto -20px 20px 8%;
    height: 300px;
  }

  .app-showcase {
    right: 0;
    top: 26px;
    width: min(560px, 92vw);
  }

  .showcase-main {
    grid-template-columns: 112px 1fr;
    min-height: 250px;
  }

  .showcase-main aside {
    padding: 18px 12px;
  }

  .showcase-main section {
    padding: 16px;
  }

  .drop-graphic {
    min-height: 126px;
  }

  .before-after,
  .doc-swarm {
    display: none;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 10.5vw, 3.25rem);
    overflow-wrap: break-word;
  }

  .lede {
    max-width: 31ch;
    font-size: 1.08rem;
  }

  .workflow,
  .preview-status,
  .final-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .proof-strip {
    margin-top: -12px;
  }

  .saas-topbar {
    flex-wrap: wrap;
    padding: 8px 12px;
  }
}

.hero {
  justify-content: space-between;
  gap: 42px;
  min-height: min(760px, calc(100vh - 72px));
  padding: clamp(42px, 7vh, 76px) 0 72px;
}

.hero-copy {
  flex: 0 0 min(52%, 710px);
}

.hero-media,
.privacy-visual {
  margin: 0;
}

.hero-media {
  position: relative;
  flex: 1 1 520px;
  min-width: 360px;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 8% -3% -4% 8%;
  z-index: -1;
  border-radius: 8px;
  background: radial-gradient(circle at 45% 42%, rgba(94, 234, 212, 0.34), transparent 48%);
  filter: blur(28px);
}

.hero-media img,
.privacy-visual img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(94, 234, 212, 0.16);
  border-radius: 8px;
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.48);
}

.hero-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.proof-strip {
  margin: 8px 0 76px;
}

.privacy-visual {
  min-height: 0;
  background: transparent;
}

.panel-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 22px;
}

.panel-heading p {
  margin: 0;
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.status-pill {
  display: grid;
  gap: 3px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.9rem;
}

.status-pill strong {
  color: var(--text);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status-pill.ready {
  border-color: rgba(94, 234, 212, 0.34);
  color: var(--primary-strong);
}

.status-pill.missing {
  border-color: rgba(255, 107, 95, 0.36);
  color: #ffb0aa;
}

.status-pill em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.settings-form {
  display: grid;
  gap: 20px;
}

fieldset {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

legend {
  padding: 0 8px;
  color: var(--primary-strong);
  font-weight: 900;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.settings-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 8px;
}

input[type="checkbox"] {
  width: auto;
  min-height: 0;
}

.inline-check {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.field-note {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.field-note code {
  color: var(--primary-strong);
  overflow-wrap: anywhere;
}

.settings-actions {
  display: flex;
  justify-content: flex-end;
}

.success {
  padding: 12px 14px;
  border: 1px solid rgba(94, 234, 212, 0.32);
  border-radius: 8px;
  background: rgba(25, 167, 161, 0.12);
  color: var(--primary-strong);
  font-weight: 800;
}

.admin-console {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 88px;
  border: 1px solid rgba(94, 234, 212, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(25, 167, 161, 0.08), transparent 38%),
    #0b1524;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.admin-sidebar-title {
  display: grid;
  gap: 4px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.admin-sidebar-title strong {
  color: var(--text);
  font-size: 1.05rem;
}

.admin-sidebar-title span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-nav {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 800;
}

.admin-nav a:hover,
.admin-nav a.active {
  border-color: rgba(94, 234, 212, 0.24);
  background: rgba(94, 234, 212, 0.09);
  color: var(--text);
}

.admin-nav svg,
.admin-setting-card svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  color: var(--primary-strong);
}

.admin-workspace {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.admin-workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 6px;
}

.admin-workspace-header h1 {
  max-width: 780px;
  margin-bottom: 10px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.admin-workspace-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.admin-identity {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 210px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.admin-identity a {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-decoration: none;
}

.admin-kpis,
.admin-grid {
  display: grid;
  gap: 16px;
}

.admin-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-subscription-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.admin-side-stack {
  display: grid;
  gap: 16px;
}

.admin-side-stack .admin-form-grid {
  grid-template-columns: 1fr;
}

.admin-kpis article,
.admin-panel,
.admin-setting-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(90, 167, 255, 0.07), transparent 42%),
    var(--surface);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.18);
}

.admin-kpis article {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
}

.admin-kpis span,
.admin-panel-head span,
.admin-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-kpis strong {
  color: var(--text);
  font-size: 2.1rem;
  line-height: 1;
}

.admin-kpis em {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: normal;
}

.admin-panel {
  padding: 20px;
}

.admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.2;
}

.admin-panel-head a {
  font-weight: 900;
  text-decoration: none;
}

.admin-muted {
  color: var(--muted);
  line-height: 1.65;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.admin-form-grid label,
.admin-form-grid button {
  margin-bottom: 0;
}

.admin-form-grid .button {
  min-height: 42px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  min-width: 960px;
}

.admin-table th {
  background: rgba(255, 255, 255, 0.025);
}

.admin-table th,
.admin-table td {
  white-space: nowrap;
}

.admin-table td strong,
.admin-table td small {
  display: block;
}

.admin-table td small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.admin-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid rgba(244, 179, 78, 0.32);
  border-radius: 999px;
  background: rgba(244, 179, 78, 0.1);
  color: #ffdca0;
  font-size: 0.78rem;
  font-weight: 900;
}

.status-pill.mini {
  display: inline-flex;
  min-width: 86px;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 0.8rem;
}

.inline-admin-form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}

.inline-admin-form select {
  min-width: 125px;
}

.inline-admin-form button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: rgba(25, 167, 161, 0.18);
  color: var(--primary-strong);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.admin-setting-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  min-height: 170px;
  padding: 22px;
  color: var(--text);
  text-decoration: none;
}

.admin-setting-card strong,
.admin-setting-card span,
.admin-setting-card em {
  grid-column: 2;
}

.admin-setting-card strong {
  font-size: 1.24rem;
}

.admin-setting-card span {
  color: var(--muted);
  line-height: 1.55;
}

.admin-setting-card em {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.1);
  color: var(--primary-strong);
  font-style: normal;
  font-weight: 900;
}

.account-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.metric-card {
  display: grid;
  gap: 6px;
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(94, 234, 212, 0.08), transparent 44%),
    var(--surface);
}

.metric-card span,
.metric-card em,
small {
  color: var(--muted);
}

.metric-card span {
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 1.85rem;
  line-height: 1;
}

.metric-card em {
  font-size: 0.9rem;
  font-style: normal;
}

.account-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mfa-setup {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(94, 234, 212, 0.26);
  border-radius: 8px;
  background: rgba(25, 167, 161, 0.08);
}

.mfa-setup img {
  width: 180px;
  height: 180px;
  border-radius: 8px;
  background: #fff;
}

.mfa-setup code {
  display: block;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--primary-strong);
  overflow-wrap: anywhere;
}

.admin-analytics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.grant-form {
  align-items: end;
}

.mail-test-form {
  margin-top: 18px;
  align-items: end;
}

@media (max-width: 980px) {
  .site-header,
  nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .site-header {
    gap: 16px;
    padding: 16px 20px;
  }

  nav {
    gap: 14px;
  }

  .hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    gap: 22px;
    padding: 28px 0 42px;
  }

  .hero-copy,
  .hero-media {
    flex: none;
    width: 100%;
    max-width: none;
    min-width: 0;
    order: -1;
  }

  .hero-media img {
    max-height: 250px;
    object-fit: cover;
    object-position: center;
  }

  .proof-strip {
    margin-top: 0;
  }

  .panel-heading,
  .status-strip,
  .settings-grid,
  .settings-grid.compact,
  .account-overview,
  .account-grid,
  .admin-console,
  .admin-kpis,
  .admin-grid.two,
  .admin-subscription-layout,
  .admin-form-grid,
  .admin-analytics {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-workspace-header {
    flex-direction: column;
  }

  .admin-identity {
    justify-items: start;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  h1 {
    max-width: 10ch;
    font-size: 2.28rem;
    line-height: 1.08;
    overflow-wrap: normal;
  }

  .admin-workspace-header h1 {
    max-width: 100%;
    font-size: 2rem;
    overflow-wrap: break-word;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }

  .lede {
    max-width: 31ch;
    font-size: 1.02rem;
  }
}
