:root {
  color-scheme: light;
  --ink: #1c2026;
  --muted: #68707c;
  --line: #dce2e8;
  --panel: #ffffff;
  --soft: #f5f7f8;
  --accent: #0f766e;
  --accent-dark: #0b514d;
  --warm: #c46a2b;
  --shadow: 0 18px 55px rgba(28, 32, 38, 0.12);
}

* {
  box-sizing: border-box;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand,
.topbar nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: clamp(156px, 18vw, 230px);
  height: 44px;
  object-fit: contain;
  object-position: left center;
}

.topbar nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: clamp(20px, 4vw, 42px);
  min-height: calc(100vh - 68px);
  padding: clamp(26px, 5vw, 64px);
  background:
    linear-gradient(rgba(12, 18, 24, 0.64), rgba(12, 18, 24, 0.38)),
    url("drafts/Edited-105.jpg") center/cover;
}

.intro {
  align-self: end;
  max-width: 760px;
  color: white;
  padding-bottom: 30px;
}

.hero-logo {
  display: block;
  width: min(420px, 88vw);
  height: auto;
  max-height: 180px;
  margin-bottom: 18px;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.42));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--warm);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.intro .eyebrow {
  color: #ffcb8b;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.intro p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.stats span {
  padding: 10px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}

.cart-panel {
  align-self: start;
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.panel-heading,
.section-heading,
.proof-info,
.total-row,
.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading h2,
.section-heading h2 {
  margin-bottom: 0;
}

.ghost-button,
.filter-button,
.select-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.ghost-button {
  padding: 0 13px;
}

.empty-state {
  margin: 22px 0;
  padding: 18px;
  border: 1px dashed #b7c2cb;
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.selected-list {
  display: grid;
  gap: 10px;
  max-height: 180px;
  margin: 18px 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.selected-list li {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.selected-list img {
  width: 58px;
  height: 46px;
  border-radius: 6px;
  object-fit: cover;
}

.selected-list span {
  min-width: 0;
  font-weight: 800;
}

.selected-list small {
  display: block;
  color: var(--muted);
  font-weight: 600;
}

.remove-button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: #e9eef1;
  color: var(--muted);
  font-size: 1.2rem;
}

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

legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 900;
}

.option-row {
  min-height: 78px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.option-row input {
  accent-color: var(--accent);
}

.option-row span {
  flex: 1;
}

.option-row small {
  display: block;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

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

input {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
}

input:focus,
button:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

.total-row {
  margin: 18px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}

.pay-button {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 900;
}

.pay-button:hover {
  background: var(--accent-dark);
}

.pay-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.confirmation {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--accent-dark);
  font-weight: 800;
}

.setup-alert,
.gallery-empty {
  grid-column: 1 / -1;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #f0d09e;
  border-radius: 8px;
  background: #fff7e8;
  color: #65420d;
  font-weight: 800;
}

.error-message {
  color: #a33223;
}

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

.set-link {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 104px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(28, 32, 38, 0.07);
}

.set-link img {
  width: 88px;
  height: 84px;
  border-radius: 6px;
  object-fit: cover;
}

.set-link span {
  min-width: 0;
}

.set-link strong,
.set-link small {
  display: block;
}

.set-link small {
  color: var(--muted);
  font-weight: 700;
}

.proofs-section {
  padding: clamp(28px, 5vw, 64px);
  background: #f8faf9;
}

.section-heading {
  align-items: end;
  margin-bottom: 24px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.filter-button {
  padding: 0 14px;
}

.filter-button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

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

.proof-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(28, 32, 38, 0.07);
}

.image-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #d8dde0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.proof-card:hover img {
  transform: scale(1.035);
}

.watermark {
  position: absolute;
  inset: auto 14px 12px auto;
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.72);
  color: rgba(28, 32, 38, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.proof-info {
  min-height: 92px;
  padding: 14px;
}

.proof-info h3 {
  margin-bottom: 2px;
  font-size: 1rem;
}

.proof-info p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.select-button {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 0 12px;
}

.select-button.selected {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

@media (max-width: 980px) {
  .workspace,
  .proof-grid {
    grid-template-columns: 1fr 1fr;
  }

  .intro {
    align-self: start;
  }

  .cart-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace,
  .proof-grid,
  .set-browser,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .workspace {
    padding: 24px 16px;
  }

  .proofs-section {
    padding: 30px 16px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    justify-content: flex-start;
  }
}
