/* Main Street Ad Kits — draft storefront. Business: Main Street Ad Kits (not Gevan-RE, not VHS). */
:root {
  --bg: #050505;
  --bg-alt: #080808;
  --bg-elev: #111111;
  --bg-card: #111111;
  --bg-hover: #171717;
  --bg-header: rgba(5, 5, 5, 0.72);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: #b8b8b8;
  --muted-2: #8a8a8a;
  --muted-3: #6a6a6a;
  --red: #E10600;
  --red-hover: #C10500;
  --link: #FF8A84;
  --red-soft: #FF8A84;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius: 16px;
  --radius-pill: 999px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-red: 0 8px 24px rgba(225, 6, 0, 0.28);
  --max: 1120px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/geist-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/geist-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/geist-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/geist-mono-latin-500.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: Geist, system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-weight: 600; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--red-soft); }
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--red);
  color: var(--text);
  padding: 8px 12px;
  z-index: 100;
  border-radius: var(--radius-sm);
}
.skip:focus { top: 12px; }

.draft-banner {
  background: var(--bg-elev);
  color: var(--muted);
  font-size: 0.8125rem;
  text-align: center;
  padding: 0.45rem 1rem;
  border-bottom: 1px solid var(--line);
}
.draft-banner strong { color: var(--text); font-weight: 500; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  background: var(--bg-header);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - 2rem));
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--text); }
.mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--red);
  display: grid;
  place-items: center;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text);
}
.nav { display: flex; gap: 1.25rem; align-items: center; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav a:hover { color: var(--text); }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.65rem;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) + 1.8rem);
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.6rem 0.4rem; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius-pill);
  padding: 0.8rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--red);
  color: var(--text);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover {
  background: var(--red-hover);
  color: var(--text);
  box-shadow: 0 0 24px rgba(225, 6, 0, 0.35), var(--shadow-red);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-hover); color: var(--text); border-color: var(--text); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.875rem; }
.btn:active { transform: translateY(1px); }

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 20% auto -10%;
  height: 420px;
  background: radial-gradient(closest-side, rgba(225, 6, 0, 0.16), transparent 70%);
  pointer-events: none;
}
.kicker {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin: 0 0 1rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 1rem;
  max-width: 22ch;
}
.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 0 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.fine {
  margin: 1.25rem 0 0;
  color: var(--muted-2);
  font-size: 0.875rem;
  max-width: 40rem;
}

section { padding: 3.5rem 0; }
.section-head { margin-bottom: 1.75rem; }
.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}
.section-head p { margin: 0; color: var(--muted); max-width: 40rem; }

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; }
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease);
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
}
.card.featured {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
}
.price {
  font-size: 2.25rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0;
  color: var(--text);
}
.price span { font-size: 0.95rem; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.card h3 { margin: 0; font-size: 1.15rem; letter-spacing: -0.02em; }
.card .desc { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card ul {
  margin: 0 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9375rem;
}
.card li { padding-left: 0; }
.card li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  background: var(--muted-2);
  border-radius: 1px;
  transform: translateY(-1px);
}
.card .btn { width: 100%; margin-top: 0.4rem; }

.product {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}
.product + .product { margin-top: 3.5rem; padding-top: 3.5rem; border-top: 1px solid var(--line); }
@media (max-width: 800px) {
  .product { grid-template-columns: 1fr; }
}
.product h3 { font-size: 1.6rem; letter-spacing: -0.03em; margin: 0 0 0.4rem; }
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.chip {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.55rem;
  color: var(--muted);
}
.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.gallery img, .frame img {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg);
}
.gallery figure, .frame { margin: 0; }
.gallery figcaption, .frame figcaption {
  font-size: 0.75rem;
  color: var(--muted-2);
  margin-top: 0.35rem;
}
.frame.hero-shot { margin-bottom: 0.65rem; }
.ads-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}
@media (max-width: 800px) {
  .ads-grid { grid-template-columns: repeat(2, 1fr); }
}
.ads-grid figure { margin: 0; }
.ads-grid img { border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--bg); aspect-ratio: 1 / 1; object-fit: cover; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; } }
.step {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  background: var(--bg-elev);
}
.step .n {
  font-family: "Geist Mono", ui-monospace, monospace;
  color: var(--link);
  font-size: 0.8rem;
}
.step h3 { margin: 0.35rem 0 0.4rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.faq { display: grid; gap: 0.55rem; }
details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.15rem 1rem;
}
summary {
  cursor: pointer;
  font-weight: 500;
  padding: 0.85rem 0;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  float: right;
  color: var(--muted);
  font-weight: 400;
}
details[open] summary::after { content: "\2013"; }
details p { margin: 0 0 1rem; color: var(--muted); }

footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted-2);
  font-size: 0.875rem;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }
footer h2 { font-size: 0.95rem; color: var(--text); margin: 0 0 0.5rem; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer p a,
footer li a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer p a:hover,
footer li a:hover { color: var(--red-soft); }
.legal { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }

.toast {
  position: fixed;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--bg-elev);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  z-index: 80;
  max-width: min(32rem, calc(100% - 2rem));
  font-size: 0.9rem;
}
.toast:empty { display: none; }
.toast.show { transform: translateX(-50%) translateY(0); transition: transform 0.35s var(--ease); }
.bg-alt { background: var(--bg-alt); }

.copy ul { margin: 0 0 1rem; padding-left: 1.1rem; color: var(--muted); }
.copy li { margin: 0.3rem 0; }
.copy p { color: var(--muted); }
.copy p, .copy li { font-size: 0.98rem; }

/* Buy buttons + refund microcopy */
.buy-block { margin-top: 0.35rem; }
.card .buy-block .btn { width: 100%; }
.refund-note {
  margin: 0.55rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted-2);
  line-height: 1.4;
}
.hero-actions.buy-block { flex-wrap: wrap; }
.hero-actions.buy-block .refund-note { flex-basis: 100%; }

/* Keep our button look if Gumroad injects .gumroad-button styles.
   If gumroad.js is blocked, these are ordinary links with the same href. */
a.btn.gumroad-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-family: Geist, system-ui, sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.9375rem !important;
  text-decoration: none !important;
  line-height: 1.2 !important;
  box-sizing: border-box !important;
}
a.btn-primary.gumroad-button {
  background: var(--red) !important;
  color: var(--text) !important;
  border: 1px solid transparent !important;
}
a.btn-primary.gumroad-button:hover {
  background: var(--red-hover) !important;
  color: var(--text) !important;
  box-shadow: 0 0 24px rgba(225, 6, 0, 0.35), var(--shadow-red) !important;
}
a.btn-ghost.gumroad-button {
  background: transparent !important;
  color: var(--text) !important;
  border: 1px solid var(--line-strong) !important;
}
a.btn-ghost.gumroad-button:hover {
  background: var(--bg-hover) !important;
  color: var(--text) !important;
  border-color: var(--text) !important;
}
a.btn.gumroad-button img,
a.btn.gumroad-button svg,
a.btn.gumroad-button .gumroad-button-logo {
  display: none !important;
}

.nav a[aria-current="page"] { color: var(--text); }

/* Homepage product-line grid */
.line-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 860px) {
  .line-grid { grid-template-columns: 1fr; }
}
.line-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}
.line-card figure { margin: 0; }
.line-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--bg);
}
.line-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.line-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.line-card .line-cta { margin-top: auto; }
.line-card .line-cta .btn { width: 100%; }
.line-card.is-soon {
  background: var(--bg-elev);
}
.badge-soon {
  align-self: flex-start;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.5rem;
}

/* Template fill-ins — only used on /_template/ */
.fill-in {
  display: inline;
  background: rgba(225, 6, 0, 0.12);
  border-bottom: 1px dashed var(--red);
  color: var(--text);
  padding: 0 0.15em;
}
.template-note {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.tagline {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  margin: -0.15rem 0 1rem;
  max-width: 36rem;
}
.for-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .for-grid { grid-template-columns: 1fr 1fr; }
}
.for-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}
.for-card h3 { margin: 0 0 0.75rem; font-size: 1.1rem; letter-spacing: -0.02em; }
.for-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.for-card li { color: var(--muted); padding-left: 0; }
.for-card li::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  background: var(--muted-2);
  border-radius: 1px;
  transform: translateY(-1px);
}
.prose { max-width: 42rem; }
.prose h2 { margin: 2rem 0 0.75rem; font-size: 1.25rem; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.prose .draft-note { color: var(--muted-2); font-size: 0.875rem; }
