:root {
  color-scheme: light;
  --ink: #121417;
  --muted: #5f6975;
  --line: #d8dee5;
  --panel: #ffffff;
  --soft: #f4f7f9;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --gold: #d39b2a;
  --red: #b42318;
  --radius: 8px;
  --shadow: 0 18px 60px rgba(16, 24, 40, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f7f9fb;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.top-nav,
.hero-actions {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--ink);
  border-radius: 6px;
  font-size: 13px;
}

.top-nav {
  justify-content: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.top-nav a,
.header-cta,
.primary-action,
.secondary-action {
  text-decoration: none;
}

.header-cta,
.primary-action,
.primary-button,
.secondary-button,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.header-cta,
.primary-action,
.primary-button {
  color: #fff;
  background: var(--accent);
}

.header-cta:hover,
.primary-action:hover,
.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-action,
.secondary-button {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.secondary-button:disabled,
.primary-button:disabled {
  cursor: wait;
  opacity: .62;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: clamp(42px, 8vw, 96px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(110deg, rgba(15, 118, 110, .10), transparent 38%),
    linear-gradient(180deg, #fff, #eef4f7);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 620px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

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

.hero-preview {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.browser-bar {
  display: flex;
  gap: 7px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #f9fafb;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9aa4af;
}

.mock-site {
  padding: 28px;
}

.mock-site--publisher {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 22px;
  align-items: start;
}

.mock-sidebar {
  display: grid;
  gap: 12px;
}

.mock-sidebar-ad {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 12px;
  color: #fff;
  text-align: center;
  background: linear-gradient(135deg, var(--accent), #1f2937);
  border-radius: 6px;
  font-weight: 800;
}

.mock-side-line {
  height: 12px;
  background: #dce4ea;
  border-radius: 6px;
}

.mock-side-line.short {
  width: 66%;
}

.mock-nav,
.mock-lines i {
  display: block;
  height: 14px;
  border-radius: 6px;
  background: #dce4ea;
}

.mock-nav {
  width: 68%;
  margin-bottom: 28px;
}

.mock-ad-slot {
  display: grid;
  place-items: center;
  aspect-ratio: 728 / 90;
  width: 100%;
  margin-bottom: 28px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #1f2937 65%, var(--gold));
  border-radius: 6px;
  font-weight: 800;
}

.mock-lines {
  display: grid;
  gap: 12px;
}

.mock-lines i:nth-child(2) {
  width: 82%;
}

.mock-lines i:nth-child(3) {
  width: 54%;
}

.info-band,
.booking-section,
.process-section {
  padding: clamp(48px, 7vw, 84px) clamp(18px, 5vw, 72px);
}

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

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

.slot-item,
.process-grid article,
.booking-form,
.summary-panel,
.status-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.slot-item {
  padding: 18px;
}

.slot-item span,
.summary-block span,
.summary-price span,
label span,
.ad-preview-box span,
.payment-panel label span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.slot-item strong {
  display: block;
  font-size: 18px;
}

.booking-section {
  background: #eef3f6;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  gap: 24px;
  align-items: start;
}

.booking-form,
.summary-panel {
  padding: clamp(18px, 3vw, 30px);
}

fieldset {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 800;
}

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

label {
  display: block;
  margin-bottom: 14px;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd7df;
  border-radius: 6px;
  font: inherit;
}

textarea {
  min-height: 96px;
  resize: vertical;
  word-break: break-all;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(15, 118, 110, .16);
}

.upload-box {
  display: grid;
  gap: 3px;
  padding: 18px;
  background: #f8fafb;
  border: 1px dashed #9aa9b6;
  border-radius: var(--radius);
  cursor: pointer;
}

.upload-box input {
  min-height: auto;
  padding: 8px 0 0;
  border: 0;
  background: transparent;
}

.cropper-shell {
  margin: 16px 0;
}

.cropper-frame {
  max-height: 460px;
  overflow: hidden;
  background: #0f172a;
  border-radius: var(--radius);
}

.cropper-frame img {
  display: block;
  max-width: 100%;
}

.cropper-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.ad-preview-box {
  padding: 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

#ad-preview-empty,
#ad-preview-image {
  display: grid;
  place-items: center;
  aspect-ratio: 728 / 90;
  width: 100%;
  color: var(--muted);
  background: #e5edf2;
  border-radius: 6px;
  font-weight: 800;
}

#ad-preview-image {
  object-fit: cover;
}

.summary-panel {
  position: sticky;
  top: 86px;
  box-shadow: var(--shadow);
}

.summary-block,
.summary-price {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.summary-block strong,
.summary-price strong {
  display: block;
  font-size: 28px;
}

.summary-price {
  padding-top: 18px;
}

.summary-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.summary-list dt {
  color: var(--muted);
}

.summary-list dd {
  margin: 0;
  font-weight: 800;
}

.payment-panel {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.payment-panel[hidden],
[hidden] {
  display: none !important;
}

.payment-panel img {
  width: min(100%, 320px);
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.payment-status {
  margin: 0;
  padding: 10px 12px;
  color: #714b00;
  background: #fff4d6;
  border-radius: 6px;
  font-weight: 800;
}

.payment-status.is-paid {
  color: #0f5132;
  background: #d9f4e6;
}

.form-message {
  min-height: 24px;
  margin-bottom: 14px;
  color: var(--muted);
  font-weight: 700;
}

.form-message.is-error {
  color: var(--red);
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-grid article {
  padding: 22px;
}

.process-grid article span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-weight: 800;
}

.process-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.status-page {
  min-height: calc(100vh - 64px);
  padding: clamp(36px, 8vw, 80px) clamp(18px, 5vw, 72px);
  background: #eef3f6;
}

.status-panel {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 36px);
}

.status-panel h1 {
  font-size: clamp(34px, 6vw, 58px);
}

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

.status-grid div {
  padding: 14px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.status-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.status-grid strong {
  overflow-wrap: anywhere;
}

.status-payment {
  max-width: 420px;
}

.landing-placements .placement-showcase,
.integration-panel,
.auth-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.placement-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 24px;
  padding: clamp(20px, 4vw, 34px);
}

.showcase-copy p,
.integration-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.showcase-specs {
  display: grid;
  gap: 12px;
}

.showcase-specs div {
  padding: 16px;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.showcase-specs span,
.publisher-stats span,
.publisher-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 5px;
}

.showcase-specs strong {
  display: block;
  font-size: 22px;
}

.auth-page,
.publisher-page {
  min-height: calc(100vh - 64px);
  padding: clamp(32px, 6vw, 72px) clamp(18px, 5vw, 72px);
  background: #eef3f6;
}

.auth-panel {
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 36px);
}

.auth-panel--wide {
  max-width: 760px;
}

.auth-panel h1 {
  font-size: clamp(34px, 5vw, 52px);
}

.auth-note {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.publisher-hero,
.publisher-section {
  max-width: 1180px;
  margin: 0 auto 34px;
}

.publisher-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(40px, 6vw, 70px);
}

.publisher-stats,
.publisher-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.publisher-stats article,
.publisher-card,
.booking-table,
.integration-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.publisher-stats article,
.publisher-card,
.integration-panel {
  padding: 18px;
}

.publisher-stats strong {
  display: block;
  font-size: 26px;
}

.publisher-card h3 {
  margin-bottom: 8px;
}

.publisher-card p {
  color: var(--muted);
  line-height: 1.5;
}

.publisher-card textarea {
  min-height: 118px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.booking-table {
  overflow-x: auto;
}

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

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

td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  overflow-wrap: anywhere;
}

pre {
  overflow-x: auto;
  margin: 0;
  padding: 16px;
  background: #111827;
  color: #f9fafb;
  border-radius: 6px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero-section,
  .booking-layout,
  .placement-showcase {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

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

  .publisher-stats,
  .publisher-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .top-nav {
    display: none;
  }

  .field-grid,
  .slot-grid,
  .process-grid,
  .status-grid,
  .mock-site--publisher {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: auto;
  }

  h1 {
    font-size: 42px;
  }
}
