:root {
  --ink: #10110f;
  --paper: #f3f0e6;
  --lime: #c8ff1a;
  --coral: #ff5c35;
  --blue: #3667ff;
  --line: rgba(16, 17, 15, 0.2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
  min-height: 80px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  border-bottom: 2px solid var(--ink);
  position: relative;
  z-index: 20;
  background: var(--paper);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 28px;
  font: 16px/0.86 "Archivo Black", sans-serif;
  text-decoration: none;
  letter-spacing: -0.04em;
}
.brand-mark {
  width: 34px;
  aspect-ratio: 1;
  background:
    linear-gradient(90deg, transparent 47%, var(--paper) 47% 53%, transparent 53%),
    linear-gradient(transparent 47%, var(--paper) 47% 53%, transparent 53%), var(--ink);
}
.sale-ticker {
  min-width: 380px;
  border-inline: 2px solid var(--ink);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 22px;
  font: 11px "IBM Plex Mono", monospace;
  text-transform: uppercase;
}
.sale-ticker b { font-size: 13px; font-variant-numeric: tabular-nums; }
.ticker-line { height: 5px; background: rgba(16,17,15,.15); overflow: hidden; }
.ticker-line i { display: block; width: 0.2847%; min-width: 4px; height: 100%; background: var(--coral); }
.header-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 230px;
  padding: 0 28px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font: 13px "IBM Plex Mono", monospace;
  letter-spacing: .04em;
  transition: background .16s ease, color .16s ease;
}
.header-cta:hover { background: var(--lime); color: var(--ink); }
.header-cta span { font-size: 28px; }

.hero {
  min-height: 730px;
  padding: 42px clamp(24px, 5vw, 76px) 34px;
  position: relative;
  border-bottom: 2px solid var(--ink);
  background:
    linear-gradient(rgba(16,17,15,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,17,15,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  width: 38vw;
  height: 38vw;
  min-width: 420px;
  min-height: 420px;
  right: -13vw;
  top: 5%;
  background: var(--lime);
  border-radius: 50%;
  z-index: 0;
  mix-blend-mode: multiply;
}
.hero-kicker, .eyebrow {
  font: 11px "IBM Plex Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.hero-kicker { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; }
.hero-kicker span { background: var(--coral); color: white; padding: 6px 8px; }
.hero h1 {
  position: relative;
  z-index: 2;
  margin: 42px 0 26px;
  max-width: 1100px;
  font: clamp(58px, 9.3vw, 148px)/.79 "Archivo Black", sans-serif;
  letter-spacing: -.075em;
  text-wrap: balance;
}
.hero h1 em { font-family: Georgia, serif; font-weight: 400; letter-spacing: -.06em; }
.hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: end;
  gap: 36px;
  margin-left: min(35vw, 500px);
}
.hero-bottom p { max-width: 490px; margin: 0; font-size: 18px; line-height: 1.45; text-wrap: pretty; }
.round-arrow {
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 28px;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.round-arrow:hover { transform: translateY(5px); background: var(--ink); color: var(--lime); }
.hero-stamp {
  position: absolute;
  z-index: 3;
  right: clamp(22px, 8vw, 140px);
  bottom: 44px;
  width: 145px;
  height: 145px;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transform: rotate(8deg);
  box-shadow: 7px 7px 0 var(--ink);
}
.hero-stamp strong { font: 54px "Archivo Black"; letter-spacing: -.08em; }
.hero-stamp span { font: 11px/1.2 "IBM Plex Mono"; }

.canvas-section { padding: 74px clamp(18px, 4vw, 64px) 90px; background: #dcd7ca; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 26px; }
.section-heading h2, .manifesto h2, .checkout-modal h2 {
  margin: 8px 0 0;
  font: clamp(46px, 6vw, 90px)/.9 "Archivo Black", sans-serif;
  letter-spacing: -.065em;
}
.canvas-help { max-width: 360px; margin: 0; font: 11px/1.5 "IBM Plex Mono"; text-transform: uppercase; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(330px, .65fr); border: 2px solid var(--ink); background: var(--paper); box-shadow: 10px 10px 0 var(--ink); }
.board-shell {
  min-height: 650px;
  position: relative;
  overflow: hidden;
  border-right: 2px solid var(--ink);
  background: #b8b6ae;
  cursor: crosshair;
  touch-action: none;
}
#tileCanvas { width: 100%; height: 100%; display: block; }
.canvas-coordinate {
  position: absolute;
  left: 14px;
  top: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 7px 9px;
  font: 10px "IBM Plex Mono";
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.zoom-controls { position: absolute; top: 14px; right: 14px; display: flex; border: 1px solid var(--ink); }
.zoom-controls button {
  width: 38px;
  height: 38px;
  border: 0;
  border-right: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font: 20px "IBM Plex Mono";
}
.zoom-controls button:last-child { border: 0; }
.zoom-controls button:hover { background: var(--lime); }
.drag-hint { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); background: var(--lime); border: 1px solid var(--ink); padding: 9px 14px; font: 10px "IBM Plex Mono"; white-space: nowrap; pointer-events: none; }

.claim-panel { padding: 28px; display: flex; flex-direction: column; min-width: 0; }
.panel-step { font: 10px "IBM Plex Mono"; color: rgba(16,17,15,.55); }
.claim-panel h3 { margin: 12px 0 24px; font: 34px/.95 "Archivo Black"; letter-spacing: -.055em; }
.selection-summary { display: grid; grid-template-columns: 1fr 1fr 1.2fr; border-block: 1px solid var(--ink); margin-bottom: 22px; }
.selection-summary > div { padding: 13px 10px; border-right: 1px solid var(--ink); }
.selection-summary > div:first-child { padding-left: 0; }
.selection-summary > div:last-child { border: 0; }
.selection-summary span, .field-row label > span { display: block; margin-bottom: 4px; font: 9px "IBM Plex Mono"; color: rgba(16,17,15,.55); }
.selection-summary strong { font: 18px "IBM Plex Mono"; font-variant-numeric: tabular-nums; }
.selection-summary strong i { font-style: normal; }
.price-cell { background: var(--lime); padding-left: 12px !important; }
.price-cell.is-unavailable { background: var(--coral); color: white; }
.upload-box {
  min-height: 195px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1.5px dashed var(--ink);
  background:
    linear-gradient(45deg, rgba(16,17,15,.045) 25%, transparent 25%) 0 0 / 14px 14px,
    linear-gradient(45deg, transparent 75%, rgba(16,17,15,.045) 75%) 0 0 / 14px 14px;
  overflow: hidden;
  cursor: pointer;
  transition: background .16s ease;
}
.upload-box:hover, .upload-box.is-dragging { background-color: var(--lime); }
.upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.upload-box img { display: none; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; cursor: grab; user-select: none; touch-action: none; will-change: transform; }
.upload-box.has-image img { display: block; }
.upload-box img.is-cropping { cursor: grabbing; }
.upload-box.has-image .upload-placeholder,
.upload-box.has-image:hover .upload-placeholder { opacity: 0; pointer-events: none; }
.crop-badge { display: none; position: absolute; z-index: 2; left: 50%; bottom: 10px; transform: translateX(-50%); padding: 6px 9px; color: white; background: rgba(16,17,15,.78); font: 9px "IBM Plex Mono"; white-space: nowrap; pointer-events: none; }
.upload-box.has-image .crop-badge { display: block; }
.crop-tools { display: none; padding: 11px 0 3px; border-bottom: 1px solid var(--ink); }
.crop-tools.show { display: block; }
.crop-tools-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font: 9px "IBM Plex Mono"; }
.crop-tools-header button { border: 0; padding: 4px 7px; background: var(--ink); color: var(--paper); font: 8px "IBM Plex Mono"; cursor: pointer; }
.crop-tools-header button:hover { background: var(--coral); }
.zoom-control { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 8px; font: 9px "IBM Plex Mono"; }
.zoom-control input { width: 100%; accent-color: var(--coral); cursor: ew-resize; }
.upload-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; transition: opacity .16s ease; }
.upload-placeholder b { font: 38px/1 "DM Sans"; }
.upload-placeholder strong { font: 12px "IBM Plex Mono"; }
.upload-placeholder small { font: 8px "IBM Plex Mono"; opacity: .55; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
.field-row label > span i { float: right; font-style: normal; }
.field-row input { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 6px 0 9px; outline: none; border-radius: 0; }
.field-row input:focus { border-bottom-width: 3px; padding-bottom: 7px; }
.claim-button, .confirm-button {
  margin-top: auto;
  min-height: 62px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  cursor: pointer;
  font: 12px "IBM Plex Mono";
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.claim-button:not(:disabled):hover, .confirm-button:hover { background: var(--lime); color: var(--ink); transform: translateY(-2px); }
.claim-button:disabled { opacity: .35; cursor: not-allowed; }
.claim-button b { font-size: 24px; }
.fine-print { text-align: center; font-size: 9px; opacity: .55; margin: 10px 0 0; }

.manifesto { padding: 90px clamp(24px, 6vw, 92px) 110px; background: var(--ink); color: var(--paper); }
.manifesto .eyebrow { color: var(--lime); }
.manifesto-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 8vw; margin-top: 40px; }
.manifesto h2 { font-size: clamp(44px, 6.4vw, 100px); }
.manifesto h2 span { color: var(--coral); font-family: Georgia, serif; font-weight: 400; }
.manifesto ol { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(243,240,230,.4); }
.manifesto li { display: grid; grid-template-columns: 45px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid rgba(243,240,230,.4); }
.manifesto li b { color: var(--lime); font: 11px "IBM Plex Mono"; }
.manifesto li span { font-size: 15px; line-height: 1.5; }
.manifesto li strong { display: block; font-size: 18px; margin-bottom: 5px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(16,17,15,.75); display: grid; place-items: center; padding: 20px; }
.modal-backdrop[hidden] { display: none; }
.checkout-modal { width: min(480px, 100%); position: relative; background: var(--paper); border: 2px solid var(--ink); padding: 30px; box-shadow: 12px 12px 0 var(--lime); animation: modal-in .22s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) rotate(-1deg); } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 1px solid var(--ink); background: transparent; cursor: pointer; font-size: 22px; }
.modal-close:hover { background: var(--coral); color: white; }
.checkout-modal h2 { font-size: 50px; }
.checkout-preview { height: 190px; margin: 22px 0; background: #ddd; overflow: hidden; border: 1px solid var(--ink); }
.checkout-preview img { width: 100%; height: 100%; object-fit: cover; }
.checkout-line { display: flex; justify-content: space-between; padding: 15px 0; border-block: 1px solid var(--ink); font: 13px "IBM Plex Mono"; }
.checkout-line strong { font-size: 22px; }
.demo-note { font-size: 12px; background: #dedad0; padding: 10px; }
.confirm-button { width: 100%; margin-top: 18px; }
.toast { position: fixed; z-index: 110; right: 24px; bottom: 24px; width: min(360px, calc(100vw - 48px)); background: var(--lime); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 16px 18px; display: flex; flex-direction: column; transform: translateY(130%); transition: transform .24s ease; }
.toast.show { transform: translateY(0); }
.toast b { font: 12px "IBM Plex Mono"; }
.toast span { font-size: 13px; margin-top: 4px; }

@media (max-width: 1000px) {
  .sale-ticker { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero { min-height: 650px; }
  .hero-bottom { margin-left: 15vw; }
  .workspace { grid-template-columns: 1fr; }
  .board-shell { border-right: 0; border-bottom: 2px solid var(--ink); min-height: 560px; }
  .claim-button { margin-top: 24px; }
  .manifesto-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .site-header { min-height: 66px; }
  .brand { padding: 10px 14px; font-size: 13px; }
  .brand-mark { width: 28px; }
  .header-cta { min-width: auto; padding: 0 16px; font-size: 10px; }
  .header-cta span { margin-left: 12px; }
  .hero { min-height: 620px; padding: 28px 18px; }
  .hero h1 { margin-top: 52px; font-size: clamp(54px, 17vw, 84px); }
  .hero::after { right: -300px; top: 180px; }
  .hero-bottom { margin: 44px 0 0; align-items: center; }
  .hero-bottom p { font-size: 15px; }
  .round-arrow { width: 50px; height: 50px; }
  .hero-stamp { width: 105px; height: 105px; right: 20px; bottom: 18px; }
  .hero-stamp strong { font-size: 38px; }
  .canvas-section { padding-block: 54px 70px; }
  .section-heading { display: block; }
  .canvas-help { margin-top: 15px; }
  .workspace { box-shadow: 5px 5px 0 var(--ink); }
  .board-shell { min-height: 420px; }
  .drag-hint { display: none; }
  .claim-panel { padding: 22px 18px; }
  .manifesto { padding: 70px 20px; }
  .checkout-modal { padding: 24px 20px; box-shadow: 7px 7px 0 var(--lime); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
