.site-body {
  background: #f7f9fc;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 104px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.site-logo-link img {
  display: block;
  width: clamp(220px, 24vw, 360px);
  max-height: 82px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a,
.site-button-secondary {
  color: var(--ink);
  text-decoration: none;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-button-secondary:hover {
  border-color: var(--line);
  background: white;
}

.site-nav-cta,
.site-button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--accent);
  color: white !important;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid var(--accent) !important;
}

.apple-hero,
.site-hero {
  min-height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(320px, 1.08fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(36px, 7vw, 90px) clamp(18px, 5vw, 72px);
}

.apple-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.site-kicker {
  color: var(--accent);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
}

.site-hero h1,
.apple-hero h1,
.site-section h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: 0;
}

.apple-hero h1 {
  font-size: clamp(48px, 7vw, 92px);
  max-width: 980px;
}

.site-section h2 {
  font-size: clamp(30px, 4vw, 48px);
}

.site-lead,
.pricing-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

.site-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-video-shell {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(20, 32, 51, .18);
  background: #0b1220;
  aspect-ratio: 16 / 10;
}

.hero-video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.showcase-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.showcase-strip article {
  min-height: 132px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  background: white;
  text-align: center;
}

.showcase-strip strong {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

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

.site-trust-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.site-trust-row span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: white;
  color: var(--muted);
  font-size: 14px;
}

.site-product-shot {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot-toolbar {
  height: 48px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.shot-toolbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.shot-content {
  padding: 28px;
  display: grid;
  gap: 20px;
}

.shot-content strong {
  font-size: 26px;
}

.shot-content p {
  color: var(--muted);
}

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

.shot-grid span,
.shot-total {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
}

.shot-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.site-section {
  padding: clamp(42px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.site-section-head {
  margin-bottom: 28px;
}

.site-section-head.center {
  text-align: center;
  display: grid;
  justify-items: center;
}

.visual-grid {
  display: grid;
  grid-template-columns: 1.35fr .8fr;
  gap: 16px;
}

.visual-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
}

.visual-large {
  grid-row: span 2;
}

.visual-card h3 {
  margin: 18px 0 8px;
}

.visual-card p {
  color: var(--muted);
  line-height: 1.55;
}

.mock-window {
  background: #f2f5f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.mock-bar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mock-invoice {
  min-height: 430px;
  margin: 26px auto;
  width: min(78%, 460px);
  background: white;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 50px rgba(20, 32, 51, .12);
  padding: 26px;
}

.mock-logo {
  width: 120px;
  height: 46px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2346, #1c8dff);
}

.mock-lines {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.mock-lines b {
  font-size: 24px;
}

.mock-lines i,
.mock-table span {
  display: block;
  height: 12px;
  border-radius: 999px;
  background: #d7dee9;
}

.mock-table {
  display: grid;
  grid-template-columns: 1.5fr .7fr .7fr .7fr;
  gap: 10px;
  margin-top: 34px;
}

.mock-total {
  margin: 34px 0 0 auto;
  width: fit-content;
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
}

.mini-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

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

.mini-dashboard strong {
  font-size: 28px;
}

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

.doc-pills span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fbfcfe;
}

.workflow-grid,
.feature-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.workflow-grid article,
.feature-wall article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.workflow-grid span {
  color: var(--accent);
  font-weight: 900;
}

.workflow-grid p,
.feature-wall p {
  color: var(--muted);
  line-height: 1.55;
}

.security-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 560px);
  gap: 28px;
  align-items: center;
  background: #101828;
  color: white;
}

.security-section .site-kicker,
.security-copy h2 {
  color: white;
}

.security-copy p {
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.65;
}

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

.security-grid article {
  display: grid;
  gap: 8px;
  min-height: 112px;
  align-content: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  padding: 18px;
}

.security-grid strong {
  font-size: 22px;
}

.security-grid span {
  color: #cbd5e1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article,
.price-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.feature-grid h3,
.price-card h3 {
  margin-top: 0;
}

.feature-grid p,
.price-card p,
.price-card li {
  color: var(--muted);
  line-height: 1.55;
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: center;
}

.price-card {
  position: relative;
}

.price-badge {
  display: inline-flex;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  margin-bottom: 12px;
}

.price {
  font-size: 46px;
  font-weight: 900;
  margin: 16px 0 4px;
}

.price small {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.price-card ul {
  padding-left: 20px;
}

.price-card .site-button-primary {
  width: 100%;
  margin-top: 12px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  color: var(--muted);
  margin-left: 12px;
}

.legal-page {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 36px 0 72px;
}

.legal-page img {
  width: min(320px, 86vw);
  max-height: 96px;
  object-fit: contain;
}

.legal-page h1 {
  font-size: clamp(34px, 5vw, 56px);
}

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

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 520px);
  display: grid;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-card img {
  width: min(320px, 82vw);
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
}

.auth-card h1 {
  margin: 4px 0 0;
}

.auth-card p {
  color: var(--muted);
  line-height: 1.55;
}

.auth-card .site-button-primary {
  border: 0;
  width: 100%;
}

.auth-switch {
  text-align: center;
}

.admin-page {
  padding: clamp(24px, 5vw, 56px);
  display: grid;
  gap: 22px;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
}

.admin-hero p {
  color: var(--muted);
  max-width: 760px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-stats article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.admin-stats span,
.admin-table small {
  display: block;
  color: var(--muted);
}

.admin-stats strong {
  display: block;
  margin-top: 6px;
  font-size: 34px;
}

.admin-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 220px) minmax(170px, auto) auto;
  gap: 12px;
  align-items: end;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.admin-settings-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, .8fr);
  gap: 12px;
}

.admin-settings-card {
  display: grid;
  gap: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 18px;
}

.admin-settings-card h2 {
  margin: 0;
}

.admin-settings-card p {
  color: var(--muted);
  line-height: 1.55;
}

.admin-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--ink);
}

.admin-toggle input {
  width: auto;
  min-height: auto;
}

.module-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.module-legend span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  background: #fbfcfe;
  color: var(--muted);
  font-size: 12px;
}

.admin-table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  background: #f8fafc;
  font-size: 13px;
  color: var(--muted);
}

.status-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef2f7;
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
}

.status-trial { background: #e8f2fb; color: #1769aa; }
.status-active { background: #e8f7ef; color: #11845b; }
.status-past_due { background: #fff4e5; color: #a15c00; }
.status-cancelled { background: #fff0f0; color: #b42318; }

.inline-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.module-details {
  margin-top: 8px;
}

.module-details summary,
.delete-details summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent);
}

.module-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 6px 10px;
  margin-top: 10px;
}

.module-form label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink);
}

.module-form input {
  width: auto;
  min-height: auto;
}

.module-form button {
  grid-column: 1 / -1;
  min-height: 36px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: white;
}

.delete-details {
  margin-top: 8px;
}

.delete-details summary {
  color: var(--danger);
}

.delete-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #f1b8b2;
  border-radius: 8px;
  background: #fff5f4;
}

.delete-form button {
  min-height: 36px;
  border: 1px solid var(--danger);
  border-radius: 8px;
  background: var(--danger);
  color: white;
}

.inline-actions select,
.inline-actions button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 0 8px;
}

@media (max-width: 980px) {
  .site-hero,
  .apple-hero,
  .pricing-section,
  .feature-grid,
  .visual-grid,
  .workflow-grid,
  .feature-wall,
  .security-section {
    grid-template-columns: 1fr;
  }
  .admin-settings-grid,
  .admin-filters,
  .admin-stats {
    grid-template-columns: 1fr;
  }
  .visual-large {
    grid-row: auto;
  }
  .showcase-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .site-logo-link img {
    width: min(320px, 88vw);
  }
  .site-nav {
    width: 100%;
  }
  .site-nav a {
    flex: 1 1 auto;
  }
  .site-footer {
    flex-direction: column;
  }
  .showcase-strip,
  .security-grid {
    grid-template-columns: 1fr;
  }
  .mock-invoice {
    width: 92%;
  }
  .mock-table {
    grid-template-columns: 1fr 1fr;
  }
}
