/* BundleForge marketing site — "receipt editorial" design.
   Paper + ink + steel blue, Space Grotesk display, Plex Mono for money. */

:root {
  --paper: #f7f8fa;
  --paper-deep: #edf0f4;
  --card: #ffffff;
  --ink: #101828;
  --ink-2: #475467;
  --ink-3: #667085;
  --line: #dde2e9;
  --line-soft: #eaedf2;
  --accent: #1773b0;
  --accent-deep: #10557f;
  --ember: #c65118;
  --ok: #2c7a4b;
  --serif: "Space Grotesk", "Inter", sans-serif; /* display face (was a serif; name kept to avoid churn) */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; } /* keep anchor targets clear of the sticky header */
::selection { background: var(--accent); color: #fff; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16.5px;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- type utilities ---------- */
.overline {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 1rem;
}
.display {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0;
}
.display em { font-style: normal; color: var(--accent); }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 2rem; height: 66px; }
.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.28rem;
  text-decoration: none; letter-spacing: -0.01em;
}
.wordmark b { color: var(--accent); font-weight: 600; }
nav.main { margin-left: auto; display: flex; gap: 1.6rem; align-items: center; }
nav.main a:not(.pill) {
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em;
  text-transform: uppercase; text-decoration: none; color: var(--ink-2);
}
nav.main a:not(.pill):hover { color: var(--accent-deep); }
@media (max-width: 900px) { nav.main a:not(.pill):not(.keep) { display: none; } }

/* ---------- buttons ---------- */
.pill {
  display: inline-block; padding: 0.72rem 1.5rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font-weight: 600; font-size: 0.95rem; line-height: 1.2; border: 1px solid var(--ink);
  transition: background 0.2s ease, transform 0.12s ease;
}
.pill:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.pill:active { transform: translateY(1px); }
.pill-sm { padding: 0.5rem 1.1rem; font-size: 0.86rem; }
.textlink {
  font-weight: 600; text-decoration: none; color: var(--accent-deep);
  border-bottom: 1.5px solid color-mix(in srgb, var(--accent-deep) 35%, transparent);
  padding-bottom: 1px;
}
.textlink:hover { border-bottom-color: var(--accent-deep); }

/* ---------- hero ---------- */
.hero { padding: 4.5rem 0 5rem; border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 4rem; align-items: center; }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; gap: 3rem; } }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4rem); max-width: 12ch; }
.hero .lede { font-size: 1.14rem; color: var(--ink-2); max-width: 46ch; margin: 1.4rem 0 2rem; }
.cta-row { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
.hero .fine {
  font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3);
  margin-top: 1.3rem; letter-spacing: 0.03em;
}

/* ---------- demo widget ---------- */
.demo {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 1px 0 var(--line), 0 24px 48px -24px rgba(16, 24, 40, 0.25);
  overflow: hidden;
}
.demo-tag {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.55rem 1.2rem; border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); background: var(--paper-deep);
}
.demo-tag .dot { color: var(--ok); }
.demo-body { padding: 1.4rem 1.5rem 1.5rem; }
.demo-title { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; margin: 0; }
.demo-priceline { display: flex; align-items: baseline; gap: 0.7rem; margin: 0.2rem 0 1.2rem; }
.demo-priceline .now { font-family: var(--mono); font-size: 1.15rem; font-weight: 500; }
.demo-priceline .was { font-family: var(--mono); font-size: 0.85rem; color: var(--ink-3); text-decoration: line-through; }
.demo-priceline .save {
  font-family: var(--mono); font-size: 0.72rem; color: var(--ember);
  border: 1px solid color-mix(in srgb, var(--ember) 45%, transparent);
  border-radius: 999px; padding: 0.1rem 0.55rem;
}

.slot { padding: 0.9rem 0; border-top: 1px dashed var(--line); }
.slot-label { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.55rem; }
.slot-label b { font-size: 0.95rem; font-weight: 600; }
.slot-label span { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
.optrow { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.optrow:last-child { margin-bottom: 0; }
.optrow .optname { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); width: 3.2rem; text-transform: uppercase; letter-spacing: 0.08em; }

.swatch {
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); padding: 0; position: relative;
  transition: box-shadow 0.15s ease, transform 0.12s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.swatch.strike::after {
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: linear-gradient(to top right, transparent 45%, var(--card) 46%, var(--ink-3) 49%, var(--ink-3) 51%, var(--card) 54%, transparent 55%);
}

.opt {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500; cursor: pointer;
  padding: 0.4rem 0.85rem; border-radius: 6px; background: transparent;
  border: 1px solid var(--line); color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.opt:hover { border-color: var(--ink-2); }
.opt[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.opt.strike { color: var(--ink-3); border-style: dashed; text-decoration: line-through; }
.opt.soldout { color: var(--ink-3); border-style: dashed; text-decoration: line-through; cursor: not-allowed; }

.slot-fixed { display: flex; justify-content: space-between; align-items: baseline; }
.slot-fixed .incl { font-family: var(--mono); font-size: 0.72rem; color: var(--ok); }

.demo-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px dashed var(--line); padding-top: 0.9rem; margin-top: 0.2rem;
}
.demo-total .lbl { font-size: 0.92rem; font-weight: 600; }
.demo-total .amt { font-family: var(--mono); font-size: 1.25rem; font-weight: 500; }
.demo-save { font-family: var(--mono); font-size: 0.78rem; color: var(--ember); text-align: right; margin: 0.15rem 0 0; }
.demo-hint { font-family: var(--mono); font-size: 0.74rem; color: var(--ember); margin: 0.7rem 0 0; min-height: 1.1em; }

.demo-add {
  width: 100%; margin-top: 0.9rem; padding: 0.85rem; border-radius: 8px;
  font-family: var(--sans); font-size: 0.98rem; font-weight: 600; cursor: pointer;
  background: var(--accent); color: #fff; border: none;
  transition: background 0.2s ease, opacity 0.2s ease;
}
.demo-add:hover:not(:disabled) { background: var(--accent-deep); }
.demo-add:disabled { opacity: 0.45; cursor: not-allowed; }

/* demo cart (post-add) */
.demo-cart { border-top: 1px solid var(--line); background: var(--paper-deep); padding: 1.1rem 1.5rem 1.3rem; }
.demo-cart h4 {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin: 0 0 0.6rem; font-weight: 500;
}
.cart-line {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-size: 0.84rem; padding: 0.34rem 0;
  opacity: 0; transform: translateY(6px);
  animation: rise 0.4s ease forwards;
}
.cart-line small { color: var(--ink-3); }
.cart-total {
  display: flex; justify-content: space-between; font-family: var(--mono);
  font-size: 0.92rem; font-weight: 600; border-top: 1px dashed var(--line);
  margin-top: 0.4rem; padding-top: 0.55rem;
}
.cart-note { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-3); margin: 0.7rem 0 0; }
.cart-note button {
  font-family: inherit; font-size: inherit; color: var(--accent-deep);
  background: none; border: none; cursor: pointer; text-decoration: underline; padding: 0;
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
section { padding: 5.5rem 0; }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 60ch; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.section-head p { color: var(--ink-2); font-size: 1.08rem; margin: 1rem 0 0; }

/* ---------- receipts ---------- */
.receipts { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .receipts { grid-template-columns: 1fr; } }
.receipt {
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  padding: 1.6rem 1.7rem; font-family: var(--mono);
  box-shadow: 0 14px 30px -20px rgba(16, 24, 40, 0.28);
}
.receipt h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0 0 0.2rem; }
.receipt .mode-sub { font-size: 0.74rem; color: var(--ink-3); margin: 0 0 1.2rem; line-height: 1.5; }
.r-line { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.86rem; padding: 0.42rem 0; border-bottom: 1px dashed var(--line-soft); }
.r-line .amt { transition: color 0.25s ease; }
.r-line.flash .amt { color: var(--ember); }
.r-total { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 600; padding-top: 0.8rem; }
.r-total .amt { transition: color 0.25s ease; }
.r-total.flash .amt { color: var(--ember); }
.r-badge {
  display: inline-block; margin-top: 0.9rem; font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.22rem 0.65rem; border-radius: 999px;
}
.r-badge.follows { color: var(--accent-deep); border: 1px solid color-mix(in srgb, var(--accent-deep) 40%, transparent); }
.r-badge.locked { color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); }
.sim-row { margin-top: 2.2rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.sim-btn {
  font-family: var(--mono); font-size: 0.8rem; cursor: pointer;
  padding: 0.65rem 1.2rem; border-radius: 999px;
  background: transparent; border: 1.5px solid var(--ink); color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}
.sim-btn:hover { background: var(--ink); color: var(--paper); }
.sim-note { font-family: var(--mono); font-size: 0.74rem; color: var(--ink-3); }

/* ---------- features (editorial list) ---------- */
.featlist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4rem; }
@media (max-width: 860px) { .featlist { grid-template-columns: 1fr; } }
.feat { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1.2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.feat .idx { font-family: var(--mono); font-size: 0.8rem; color: var(--accent-deep); padding-top: 0.3rem; }
.feat h3 { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 0 0 0.35rem; }
.feat p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }

/* ---------- dark statement band ---------- */
.band { background: var(--ink); color: var(--paper); padding: 6rem 0; }
.band .overline { color: color-mix(in srgb, var(--paper) 55%, var(--accent)); }
.band blockquote {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.25;
  margin: 0; max-width: 24ch; letter-spacing: -0.02em;
}
.band blockquote strong { color: #7fc0e8; font-weight: 600; }
.band .expl { color: #aab6bf; max-width: 58ch; margin: 2rem 0 0; font-size: 1.02rem; }

/* ---------- gallery (asset placeholders) ---------- */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr; } }
.frame { grid-column: 1 / -1; }
.shot { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.shot .bar {
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); padding: 0.5rem 1rem; border-bottom: 1px solid var(--line-soft);
  background: var(--paper-deep);
}
.shot .ph {
  display: grid; place-items: center; color: var(--ink-3);
  font-family: var(--mono); font-size: 0.78rem; text-align: center; padding: 1rem;
  background: repeating-linear-gradient(-45deg, var(--card), var(--card) 14px, var(--paper-deep) 14px, var(--paper-deep) 15px);
}
.frame .ph { aspect-ratio: 16 / 9; }
.gallery > .shot:not(.frame) .ph { aspect-ratio: 4 / 3; }
.shot img, .shot video, .shot iframe { display: block; width: 100%; height: auto; border: 0; }

/* ---------- steps ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
@media (max-width: 860px) { .steps3 { grid-template-columns: 1fr; gap: 2rem; } }
.step3 { border-top: 2px solid var(--ink); padding-top: 1.2rem; }
.step3 .idx { font-family: var(--mono); font-size: 0.78rem; color: var(--accent-deep); }
.step3 h3 { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; margin: 0.4rem 0 0.5rem; }
.step3 p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }

/* ---------- pricing ---------- */
.pricing-flex { display: flex; align-items: baseline; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.pricing-flex h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 16ch; }
.pricing-meta { max-width: 380px; }
.pricing-meta ul { list-style: none; margin: 0 0 1.6rem; padding: 0; font-family: var(--mono); font-size: 0.84rem; color: var(--ink-2); }
.pricing-meta li { padding: 0.45rem 0; border-bottom: 1px dashed var(--line); }
.pricing-meta li::before { content: "— "; color: var(--accent); }
.pricing-meta .fine { font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); margin-top: 0.9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; }
details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  font-family: var(--serif); font-size: 1.12rem; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--accent-deep); font-size: 1.1rem; transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--ink-2); margin: 0.8rem 0 0; max-width: 62ch; }

/* ---------- closing CTA + footer ---------- */
.close-cta { text-align: left; }
.close-cta h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18ch; }
.close-cta .cta-row { margin-top: 2rem; }

footer.site { border-top: 1px solid var(--line); padding: 2.2rem 0 2.6rem; }
footer.site .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.04em;
}
footer.site nav { display: flex; gap: 1.5rem; }
footer.site a { color: var(--ink-3); text-decoration: none; text-transform: uppercase; letter-spacing: 0.1em; }
footer.site a:hover { color: var(--accent-deep); }

/* ---------- about page ---------- */
.article { max-width: 720px; padding: 4.5rem 0 5.5rem; }
.article h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 16ch; }
.article .lede { font-size: 1.15rem; color: var(--ink-2); margin: 1.6rem 0 0; }
.article h2 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin: 3rem 0 0.8rem; }
.article p { color: var(--ink-2); }
.article strong { color: var(--ink); }
.article a { color: var(--accent-deep); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
