/* Moved from templates/maintenance.html for strict CSP style-src. */
:root {
  color-scheme: light;
  --ink: #0f172a;
  --text: #26364f;
  --muted: #64748b;
  --line: #dfe7f2;
  --line-strong: #ccd8ea;
  --paper: rgba(255, 255, 255, 0.86);
  --paper-solid: #ffffff;
  --soft: #f6f8fc;
  --violet: #4f46e5;
  --violet-dark: #3730a3;
  --cyan: #0891b2;
  --green: #079455;
  --green-soft: #ecfdf3;
  --yellow: #f59e0b;
  --red: #dc2626;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(105deg, rgba(79, 70, 229, 0.11), transparent 32%),
    linear-gradient(245deg, rgba(8, 145, 178, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f3f7ff 46%, #effdf7 100%);
}

a { color: inherit; }

.page {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
  padding: 22px 0 14px;
}

.brand {
  position: relative;
  min-width: 0;
  text-align: center;
}

.brand-logo {
  position: absolute;
  right: calc(100% + 14px);
  top: 0.08em;
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  transition: transform 0.16s ease;
  transform: translateX(var(--brand-logo-shift, 0px));
}

.brand-logo:hover {
  transform: translateX(var(--brand-logo-shift, 0px)) scale(1.03);
}

.brand-logo img {
  display: block;
  width: 34px;
  height: 34px;
}

.brand-copy {
  display: inline-block;
  max-width: 100%;
  position: relative;
  vertical-align: top;
}

.brand-title {
  display: inline-block;
  padding-bottom: 0.08em;
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 700;
  line-height: 1.16;
  text-decoration: none;
  background: linear-gradient(90deg, #4f46e5, #c026d3, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.brand-channel {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  width: max-content;
  margin-left: auto;
  margin-top: -0.3em;
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transform: translateX(var(--brand-channel-shift, 0px));
}

.brand-channel span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-link {
  position: absolute;
  top: 22px;
  right: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: 44px 0 96px;
}

.hero-copy {
  width: min(100%, 1040px);
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 999px;
  background: rgba(250, 232, 255, 0.88);
  color: #86198f;
  font-size: 12px;
  font-weight: 800;
}

h1 {
  max-width: 780px;
  margin: 24px auto 0;
  font-size: clamp(42px, 6.35vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.accent { color: var(--green); }

.lead {
  max-width: 760px;
  margin: 30px auto 0;
  color: #475569;
  font-size: clamp(18px, 1.85vw, 23px);
  line-height: 1.58;
}

.lead strong {
  display: block;
  margin-top: 12px;
  color: #0f172a;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 18px 46px rgba(79, 70, 229, 0.24);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: #334155;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.proof-strip span {
  display: inline-flex;
  min-height: 31px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #e4ebf6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: #475569;
  font-size: 12px;
  font-weight: 700;
}

.profit-board {
  border: 1px solid rgba(204, 216, 234, 0.9);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.13);
}

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5edf8;
  background: linear-gradient(90deg, rgba(238, 242, 255, 0.96), rgba(236, 253, 243, 0.78));
}

.board-head strong {
  display: block;
  font-size: 15px;
}

.board-head small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.board-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #dcfae6;
  color: #067647;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.board-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

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

.summary-card {
  min-height: 112px;
  padding: 15px;
  border: 1px solid #e5edf8;
  border-radius: 19px;
  background: #ffffff;
}

.summary-card span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.summary-card strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(24px, 3.2vw, 38px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.green { color: var(--green); }
.yellow { color: var(--yellow); }
.red { color: var(--red); }

.mini-table {
  border: 1px solid #e5edf8;
  border-radius: 22px;
  overflow: hidden;
  background: #ffffff;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(130px, 1.15fr) 0.72fr 0.78fr 0.72fr;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 0 14px;
  border-bottom: 1px solid #eef3fa;
  font-size: 13px;
}

.mini-row:last-child { border-bottom: 0; }

.mini-row.head {
  min-height: 48px;
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.sku {
  min-width: 0;
  overflow: hidden;
  color: #172554;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.formula {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid #e5edf8;
  border-radius: 20px;
  overflow: hidden;
  background: #e5edf8;
}

.formula-item {
  min-height: 92px;
  padding: 13px;
  background: #ffffff;
}

.formula-item small {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.formula-item b {
  display: block;
  margin-top: 10px;
  color: #334155;
  font-size: 14px;
  line-height: 1.25;
}

.formula-item.final {
  background: #ecfdf3;
}

.formula-item.final b {
  color: #067647;
}

.section {
  padding: 84px 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 30px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4.3vw, 56px);
  line-height: 1;
}

.section-head p {
  margin: 0;
  color: #475569;
  line-height: 1.65;
}

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

.expense {
  min-height: 196px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.055);
}

.expense small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 11px;
  font-weight: 800;
}

.expense strong {
  display: block;
  margin-top: 22px;
  font-size: 20px;
  line-height: 1.18;
}

.expense p {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 20px;
  align-items: stretch;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.problem-panel {
  max-width: 920px;
  margin: 0 auto;
}

.panel-content {
  padding: 26px;
}

.panel h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.panel p {
  margin: 14px 0 0;
  color: #64748b;
  line-height: 1.58;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.check-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
}

.check {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #dcfae6;
  color: #067647;
  font-size: 14px;
  font-weight: 900;
}

.creator-section {
  padding-top: 24px;
}

.creator-card {
  display: grid;
  grid-template-columns: minmax(360px, 0.86fr) minmax(0, 1fr);
  align-content: start;
  gap: 0;
  height: 100%;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(79, 70, 229, 0.08), transparent 44%),
    #ffffff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.07);
}

.creator-photo {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  border-right: 1px solid #dce6f4;
  background: #eaf1fb;
}

.creator-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: 52% 42%;
}

.creator-content {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 34px;
}

.creator-kicker {
  color: #4338ca;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.creator-top {
  display: flex;
  gap: 16px;
  align-items: center;
}

.creator-top strong {
  display: block;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.04;
}

.creator-top span {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
}

.creator-content p {
  margin: 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.64;
}

.creator-link {
  justify-self: start;
  color: #4338ca;
  font-weight: 800;
  text-underline-offset: 4px;
}

.final-note {
  max-width: 820px;
  margin: 64px auto 0;
  padding: 0;
  text-align: center;
}

.final-note strong {
  display: block;
  color: #067647;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
}

.final-note p {
  margin: 18px 0 0;
  color: #475569;
  font-size: 17px;
  line-height: 1.62;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--line);
}

.step {
  min-height: 194px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.84);
}

.step b {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--violet);
  color: #ffffff;
  font-size: 14px;
}

.step strong {
  display: block;
  margin-top: 22px;
  font-size: 18px;
}

.step p {
  margin: 10px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.faq {
  display: grid;
  gap: 10px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
}

.faq p {
  margin: 0;
  padding: 0 20px 18px;
  color: #64748b;
  line-height: 1.58;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 82px 0 0;
  padding: 34px;
  border: 1px solid rgba(79, 70, 229, 0.14);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.98), rgba(236, 253, 243, 0.92));
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
}

.cta h2 {
  font-size: clamp(28px, 3.7vw, 48px);
}

.cta p {
  margin: 10px 0 0;
  color: #64748b;
}

footer {
  width: min(1240px, calc(100% - 32px));
  margin: 76px auto 0;
  padding: 26px 0 24px;
  border-top: 1px solid var(--line);
  color: #64748b;
  font-size: 12px;
  line-height: 1.6;
}

footer strong {
  color: #334155;
}

footer a {
  color: #4338ca;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

@media (max-width: 1080px) {
  .hero,
  .section-head,
  .split,
  .cta {
    grid-template-columns: 1fr;
  }

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

  .creator-card {
    grid-template-columns: 1fr;
  }

  .creator-photo {
    min-height: 320px;
    border-right: 0;
    border-bottom: 1px solid #dce6f4;
  }
}

@media (max-width: 760px) {
  .page,
  footer {
    width: min(100% - 24px, 1240px);
  }

  .topbar {
    flex-direction: column;
    gap: 12px;
    align-items: center;
    padding-top: 16px;
  }

  .brand-copy {
    max-width: min(100%, calc(100vw - 96px));
  }

  .brand-logo,
  .brand-logo img {
    width: 30px;
    height: 30px;
  }

  .brand-title {
    max-width: min(100%, 520px);
    font-size: clamp(22px, 8vw, 34px);
    white-space: normal;
    text-wrap: balance;
  }

  .service-link {
    position: static;
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero {
    min-height: auto;
    padding: 42px 0 58px;
  }

  .actions,
  .cta {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .board-body {
    padding: 14px;
  }

  .summary-grid,
  .formula,
  .expense-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .mini-row {
    grid-template-columns: minmax(118px, 1.2fr) 0.72fr 0.72fr;
  }

  .mini-row > :nth-child(3) {
    display: none;
  }

  .section {
    padding: 58px 0;
  }

  .creator-photo,
  .creator-photo img {
    min-height: 230px;
  }

  .creator-content {
    padding: 24px;
  }

  .cta {
    padding: 24px;
  }
}
