:root {
  --paper: #f2e7cf;
  --paper-2: #ecdcb8;
  --card: #fbf4e1;
  --ink: #1b1714;
  --muted: #5f574a;
  --line: #1b1714;
  --red: #e24e2b;
  --mustard: #f2b417;
  --teal: #128a7d;
  --forest: #1d4a3a;
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-lg: 9px 9px 0 var(--ink);
  --radius: 14px;
  --multi-map-paper: #fbfaf6;
  --multi-map-ink: #172335;
  --multi-map-muted: #69717a;
  --multi-map-border: #dde2e3;
  --multi-map-radius: 10;
  --multi-map-gap: 9;
  --classic-heatmap-bg: #061b13;
  --classic-heatmap-bg-soft: #0b281d;
  --classic-heatmap-cream: #f1dfbd;
  --classic-heatmap-gold: #c99c2d;
  --classic-heatmap-green: #557b42;
  --classic-heatmap-muted: #9eae91;
  --classic-heatmap-border: #c99c2d;
  --single-ride-bg: #0b1010;
  --single-ride-bg-soft: #151b1b;
  --single-ride-text: #f4f1e9;
  --single-ride-muted: #a5aaa5;
  --single-ride-accent: #c8a85a;
  --single-ride-frame: #333a37;
  --single-ride-route: #fffdf7;
  --single-ride-glow: #f7f5ee;
  font-family: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(var(--paper-2) 1.4px, transparent 1.6px);
  background-size: 22px 22px;
  position: relative;
}

/* Film grain overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

h1,
h2,
h3 {
  font-family: "Archivo Black", "Arial Black", Impact, sans-serif;
  font-weight: 400;
}

.hl {
  background: var(--mustard);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0 0.1em;
  border-radius: 3px;
}

/* ---------- Header ---------- */
.site-header {
  align-items: center;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 70px;
  padding: 12px clamp(18px, 4vw, 56px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: "Archivo Black", "Arial Black", sans-serif;
  font-size: 1.05rem;
  gap: 10px;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: var(--red);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  color: var(--paper);
  display: inline-flex;
  font-size: 0.82rem;
  height: 38px;
  justify-content: center;
  width: 38px;
  transform: rotate(-6deg);
}

.nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  justify-content: center;
}

.nav a {
  color: var(--ink);
  font-weight: 700;
  position: relative;
}

.nav a:hover {
  color: var(--red);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 3px;
  background: var(--red);
  transition: width 160ms ease;
}

.nav a:hover::after {
  width: 100%;
}

/* ---------- Buttons ---------- */
.header-cta,
.button {
  align-items: center;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 46px;
  padding: 11px 20px;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.header-cta {
  background: var(--ink);
  color: var(--paper);
}

.button.primary {
  background: var(--red);
  color: var(--paper);
}

.button.secondary {
  background: var(--card);
}

.button.checkout-link {
  background: var(--ink);
  color: var(--paper);
  width: 100%;
}

.button.full-button {
  width: 100%;
}

.button:hover,
.header-cta:hover {
  box-shadow: var(--shadow);
  transform: translate(-2px, -2px);
}

.button:active,
.header-cta:active {
  box-shadow: 1px 1px 0 var(--ink);
  transform: translate(2px, 2px);
}

/* ---------- Sections ---------- */
.section-band {
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
  position: relative;
}

.band-mustard {
  background: var(--mustard);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

.band-teal {
  background: var(--teal);
  color: var(--paper);
  border-bottom: 3px solid var(--ink);
}

.band-teal .eyebrow {
  color: var(--mustard);
}

.band-teal .section-heading p,
.band-teal .two-column p {
  color: rgba(247, 243, 234, 0.86);
}

.eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 40px;
}

.section-heading h2,
.two-column h2 {
  font-size: clamp(2.2rem, 5.5vw, 4.4rem);
  line-height: 0.98;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.section-heading p,
.two-column p,
.price-card p,
.faq-list p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 1.02rem;
}

/* ---------- Hero ---------- */
.hero {
  align-items: center;
  display: grid;
  gap: clamp(34px, 5vw, 64px);
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  padding: clamp(48px, 7vw, 96px) clamp(18px, 5vw, 72px) clamp(40px, 5vw, 72px);
}

.hero h1 {
  font-size: clamp(2.9rem, 8vw, 6.4rem);
  line-height: 0.94;
  margin: 0;
  text-transform: uppercase;
}

.hero-lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.55;
  margin: 26px 0;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.hero-badges li {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 7px 14px;
}

.hero-visual {
  margin: 0;
  position: relative;
}

.hero-visual img {
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-height: 340px;
  object-fit: cover;
  width: 100%;
  transform: rotate(2deg);
}

.hero-sticker {
  position: absolute;
  top: -18px;
  left: -18px;
  background: var(--mustard);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-family: "Archivo Black", sans-serif;
  font-size: 0.95rem;
  height: 78px;
  width: 78px;
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(-12deg);
}

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
  padding: 12px 0;
}

.marquee-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  font-family: "Archivo Black", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding-right: 1.4rem;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Generic cards ---------- */
.price-card,
.editor-panel,
.checkout-box,
details {
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- Editor ---------- */
.editor-band {
  background: var(--paper-2);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}

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

.editor-panel {
  padding: 22px;
  position: sticky;
  top: 90px;
}

label {
  color: var(--ink);
  display: grid;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 14px;
}

input,
select {
  background: #fffdf8;
  border: 2px solid var(--ink);
  border-radius: 9px;
  color: var(--ink);
  min-height: 44px;
  padding: 10px 12px;
  width: 100%;
}

input:focus,
select:focus {
  outline: 3px solid var(--mustard);
  outline-offset: 1px;
}

input[type="range"] {
  min-height: 0;
  padding: 0;
  accent-color: var(--red);
}

input[type="checkbox"] {
  accent-color: var(--red);
  height: 18px;
  min-height: 0;
  width: 18px;
}

.small-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 12px 0 0;
}

.mode-toggle {
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 999px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
  padding: 4px;
}

.mode-btn {
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 700;
  min-height: 36px;
  transition: background 140ms ease, color 140ms ease;
}

.mode-btn.active {
  background: var(--ink);
  color: var(--paper);
}

.wizard-tabs {
  border-bottom: 1.5px solid rgba(27, 23, 20, 0.18);
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
  padding-bottom: 16px;
}

.wizard-tab {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 700;
  min-height: 34px;
  padding: 5px 4px;
  text-align: center;
  transition: background 140ms ease, color 140ms ease;
}

.wizard-tab:hover {
  background: rgba(27, 23, 20, 0.07);
  color: var(--ink);
}

.wizard-tab.active {
  background: var(--red);
  border-color: var(--ink);
  color: var(--paper);
}

.wizard-pane[data-step="4"] {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wizard-pane[data-step="4"] label {
  margin-bottom: 0;
}

.wizard-pane[data-step="4"] .checkout-link {
  margin-top: 4px;
}

.wizard-footer {
  border-top: 1.5px solid rgba(27, 23, 20, 0.18);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
}

.step-label {
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 16px 0 8px;
  text-transform: uppercase;
}

.step-label:first-child {
  margin-top: 0;
}

.upload-actions {
  margin-bottom: 12px;
}

.file-dropzone {
  align-items: center;
  background: transparent;
  border: 1.5px dashed rgba(27, 23, 20, 0.35);
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  padding: 14px 12px;
  text-align: center;
  transition: background 140ms ease, border-color 140ms ease;
}

.file-dropzone:hover,
.file-dropzone.drag-over {
  background: rgba(27, 23, 20, 0.04);
  border-color: var(--ink);
}

.file-dropzone input[type="file"] {
  display: none;
}

.dropzone-icon {
  color: var(--muted);
  height: 22px;
  width: 22px;
}

.dropzone-label {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.dropzone-hint {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 400;
}

.activity-list {
  display: grid;
  gap: 6px;
  margin: 0 0 10px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.activity-card,
.style-card {
  background: #fffdf8;
  border: 2px solid var(--ink);
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  padding: 12px;
  text-align: left;
  width: 100%;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.activity-card {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 62px;
}

.activity-card:hover,
.style-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translate(-1px, -1px);
}

.activity-card b,
.style-card span {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.activity-card small,
.style-card small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 4px;
}

.activity-card em {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.activity-card.active {
  background: var(--card);
  border-left: 4px solid var(--red);
  box-shadow: var(--shadow-sm);
}

.style-card.active {
  background: var(--mustard);
  box-shadow: var(--shadow-sm);
}

.activity-pagination {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.activity-pagination .button {
  font-size: 0.76rem;
  min-height: 32px;
  padding: 4px 10px;
}

.page-info {
  color: var(--muted);
  flex: 1;
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
}

.demo-badge {
  display: inline-block;
  background: var(--ink);
  color: #fffdf8;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

.activity-card.active .demo-badge {
  background: var(--ink);
}

.season-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.season-mode-header {
  margin-bottom: 12px;
}

.style-options {
  display: grid;
  gap: 8px;
  margin: 8px 0 16px;
}

.template-cards {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 4px;
}

.template-card {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 9px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.template-card[hidden] {
  display: none;
}

.template-card:hover {
  background: rgba(27, 23, 20, 0.05);
  transform: translateY(-2px);
}

.template-card.active {
  background: var(--mustard);
  border-color: var(--ink);
}

.template-card svg {
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  display: block;
  width: 100%;
  height: auto;
}

.template-card-label {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.template-card.active .template-card-label {
  color: var(--ink);
}

.theme-swatches {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.theme-swatch {
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  cursor: pointer;
  height: 30px;
  transition: transform 120ms ease;
  width: 30px;
}

.theme-swatch:nth-child(1) { background: #2f8f63; }
.theme-swatch:nth-child(2) { background: #c46b3d; }
.theme-swatch:nth-child(3) { background: #3f7d92; }
.theme-swatch:nth-child(4) { background: #e24e2b; }

.theme-swatch:hover {
  transform: scale(1.16) rotate(-6deg);
}

.theme-swatch.active {
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5.5px var(--ink);
}

.range-label {
  color: var(--ink);
  display: grid;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 8px;
  margin-top: 4px;
}

.stat-fieldset {
  border: 2px solid var(--ink);
  border-radius: 9px;
  margin: 6px 0 0;
  padding: 12px 14px 14px;
}

fieldset label {
  align-items: center;
  display: flex;
  flex-direction: row;
  font-weight: 600;
  gap: 10px;
}

legend {
  font-family: "Archivo Black", sans-serif;
  font-size: 0.82rem;
  padding: 0 6px;
}

/* ---------- Poster stage ---------- */
.poster-stage {
  align-items: center;
  background-color: var(--ink);
  background-image: radial-gradient(rgba(242, 231, 207, 0.16) 1.5px, transparent 1.6px);
  background-size: 24px 24px;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  min-height: 760px;
  overflow: auto;
  padding: clamp(18px, 4vw, 42px);
}

.poster-preview {
  aspect-ratio: 0.707 / 1;
  max-width: min(620px, 100%);
  width: 100%;
}

.poster-preview svg {
  background: white;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-lg);
  display: block;
  height: auto;
  width: 100%;
}

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

.price-card {
  padding: 24px;
  position: relative;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.price-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translate(-3px, -3px);
}

.price-card--featured {
  background: var(--ink);
  color: var(--paper);
}

.price-card--featured .price,
.price-card--featured p {
  color: var(--paper);
}

.price-tag {
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--paper);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  padding: 4px 11px;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.price-card--featured .price-tag {
  background: var(--mustard);
  color: var(--ink);
}

.price-card h3 {
  font-size: 1.2rem;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.price {
  color: var(--red);
  font-family: "Archivo Black", sans-serif;
  font-size: 2.4rem;
  margin: 4px 0 12px;
}

/* ---------- Two-column / checkout ---------- */
.two-column {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
}

.checkout-box {
  padding: 24px;
}

.gift-output {
  background: var(--paper);
  border: 2px dashed var(--ink);
  border-radius: 9px;
  color: var(--ink);
  display: block;
  font-weight: 700;
  margin-top: 16px;
  padding: 14px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

details {
  padding: 18px 22px;
  transition: box-shadow 140ms ease, transform 140ms ease;
}

details[open] {
  box-shadow: var(--shadow-lg);
}

summary {
  cursor: pointer;
  font-family: "Archivo Black", sans-serif;
  font-size: 1rem;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  float: right;
  font-size: 1.3rem;
  line-height: 1;
  transition: transform 160ms ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 3px solid var(--ink);
  padding: 40px clamp(18px, 5vw, 72px);
}

.footer-top {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.site-footer .brand {
  color: var(--paper);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}

.footer-nav a {
  color: var(--paper);
  font-weight: 600;
}

.footer-nav a:hover {
  color: var(--mustard);
}

.footer-fine {
  color: rgba(242, 231, 207, 0.7);
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero,
  .two-column,
  .editor-layout {
    grid-template-columns: 1fr;
  }

  .editor-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .section-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav {
    gap: 4px 14px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .poster-stage {
    min-height: 520px;
    padding: 12px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
