/* =========================================================================
   BurgerParity — design system
   "Diner menu board meets indie SaaS": warm cream canvas, ketchup / mustard /
   charcoal, chunky Bricolage display, hard offset shadows (sticker press),
   and the signature: a detached, floating left rail like a physical menu card.
   ========================================================================= */

:root {
  /* Palette — burger */
  --ketchup: #e4502a;
  --ketchup-deep: #c23c1c;
  --mustard: #f6b42b;
  --cheese: #ffd24d;
  --lettuce: #6ea23c;
  --bun: #f4e2ba;
  --cream: #fbf3e2;
  --cream-deep: #f3e7cd;
  --paper: #fffdf7;
  --char: #211b16;
  --char-soft: #5c5044;

  /* Type */
  --font-display: "Calistoga", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;

  /* Shape & depth */
  --radius: 16px;
  --radius-lg: 26px;
  --border: 2.5px solid var(--char);
  --shadow: 6px 6px 0 var(--char);
  --shadow-sm: 3px 3px 0 var(--char);

  /* Layout */
  --rail-w: 268px;
  --gap: clamp(14px, 2.2vw, 26px);
  --maxw: 1060px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--char);
  background-color: var(--cream);
  background-image:
    radial-gradient(1100px 560px at 10% -10%, #ffe6b0 0%, transparent 55%),
    radial-gradient(820px 520px at 108% 4%, #ffd6c6 0%, transparent 52%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* faint dotted grain over everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: radial-gradient(var(--char) 0.6px, transparent 0.6px);
  background-size: 22px 22px;
}

a { color: inherit; }

/* ---- Layout shell ------------------------------------------------------- */
.shell { position: relative; z-index: 1; }

.rail {
  position: fixed;
  top: var(--gap);
  left: var(--gap);
  bottom: var(--gap);
  width: var(--rail-w);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -.02em;
}
.brand-badge {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  font-size: 22px;
  background: var(--cream);
  border: var(--border);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-4deg);
  object-fit: cover; /* the brand logo image fills the badge */
}
.brand .accent { color: var(--ketchup); }

.rail-tag {
  margin: 18px 2px 20px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--char-soft);
}

.nav { display: flex; flex-direction: column; gap: 6px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  border: 2.5px solid transparent;
  text-decoration: none;
  font-weight: 600;
  color: var(--char);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.nav-link .nav-ico { font-size: 15px; width: 20px; text-align: center; filter: grayscale(.2); }
.nav-link:hover { background: var(--cream-deep); transform: translateX(3px); }
.nav-link.is-active {
  background: var(--cheese);
  border-color: var(--char);
  box-shadow: var(--shadow-sm);
}
.nav-soon {
  margin-left: auto;
  padding: 2px 8px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--char);
  background: var(--mustard);
  border: 2px solid var(--char);
  border-radius: 999px;
}

.rail-foot { margin-top: auto; padding-top: 18px; }
.index-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .01em;
  background: var(--cream-deep);
  border: 2px solid var(--char);
  border-radius: 999px;
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lettuce);
  box-shadow: 0 0 0 0 rgba(110,162,60,.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(110,162,60,.55); }
  70% { box-shadow: 0 0 0 7px rgba(110,162,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(110,162,60,0); }
}
.rail-made { margin: 12px 2px 0; font-size: 12px; color: var(--char-soft); }

.stage {
  margin-left: calc(var(--rail-w) + var(--gap) * 2);
  padding: clamp(24px, 4vw, 56px) var(--gap) var(--gap);
  max-width: calc(var(--maxw) + var(--rail-w));
}

/* ---- Type & primitives -------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: var(--paper);
  border: 2.5px solid var(--char);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6.4vw, 74px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 22px 0 0;
}

.marker {
  position: relative;
  white-space: nowrap;
  color: var(--char);
  z-index: 0;
}
.marker::after {
  content: "";
  position: absolute;
  left: -4px; right: -4px; bottom: .06em;
  height: .34em;
  background: var(--ketchup);
  opacity: .9;
  z-index: -1;
  transform: rotate(-1.4deg);
  border-radius: 3px;
}
.marker-green::after { background: var(--lettuce); }

.lede {
  max-width: 44ch;
  margin: 22px 0 0;
  font-size: clamp(17px, 1.7vw, 20px);
  color: #35291f;
}
.lede strong { font-weight: 800; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: transform .1s ease, box-shadow .1s ease;
}
.btn-primary { background: var(--ketchup); color: #fff; box-shadow: var(--shadow); }
.btn-ghost { background: var(--paper); color: var(--char); box-shadow: var(--shadow-sm); }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--char); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--char); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.proof { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--char-soft); }

/* ---- Hero --------------------------------------------------------------- */
.hero { padding: 8px 0 10px; }
.hero > * { animation: rise .62s cubic-bezier(.2,.75,.25,1) both; }
.hero > *:nth-child(1) { animation-delay: .04s; }
.hero > *:nth-child(2) { animation-delay: .11s; }
.hero > *:nth-child(3) { animation-delay: .18s; }
.hero > *:nth-child(4) { animation-delay: .25s; }
.hero > *:nth-child(5) { animation-delay: .32s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero-slim { min-height: 46vh; }

/* ---- Showcase: receipt + aside ----------------------------------------- */
.showcase {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: center;
  margin: clamp(40px, 6vw, 72px) 0;
}

.receipt {
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px 18px;
  transform: rotate(-1.2deg);
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--char-soft);
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 2.5px dashed var(--char);
}
.receipt-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1.5px dashed #d9c9a6;
}
.receipt-row .flag { font-size: 20px; }
.receipt-row .r-country { font-weight: 600; }
.receipt-row .r-country em { font-style: normal; font-size: 12px; color: var(--lettuce); font-weight: 800; }
.receipt-row .r-price { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.receipt-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--char-soft);
  display: flex; flex-wrap: wrap; gap: 6px;
  justify-content: space-between;
}
.burger-eq { font-weight: 700; color: var(--char); }

.showcase-kicker {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 14px;
}
.showcase-aside p { margin: 0; max-width: 40ch; color: #35291f; }

/* ---- Sections & steps --------------------------------------------------- */
.section { margin: clamp(48px, 7vw, 84px) 0 0; }
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -.025em;
  margin: 0 0 26px;
}
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  position: relative;
  background: var(--paper);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 22px 22px;
  transition: transform .14s ease, box-shadow .14s ease;
}
.step:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.step-n {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: #fff;
  background: var(--char);
  border-radius: 11px;
  margin-bottom: 14px;
}
.step:nth-child(1) .step-n { background: var(--ketchup); }
.step:nth-child(2) .step-n { background: var(--mustard); color: var(--char); }
.step:nth-child(3) .step-n { background: var(--lettuce); }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; }
.step p { margin: 0; font-size: 15px; color: #3d3025; }

.section-cta { margin-top: 30px; }

/* ---- Footer ------------------------------------------------------------- */
.site-foot {
  margin-top: clamp(52px, 8vw, 96px);
  padding-top: 22px;
  border-top: 2.5px solid var(--char);
  font-size: 14px;
  font-weight: 600;
}
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--ketchup); text-decoration: underline; text-underline-offset: 3px; }
.foot-row, .foot-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.foot-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1.5px dashed #d9c9a6;
}
.foot-brand { font-family: var(--font-display); font-weight: 800; }
.foot-legal { display: inline-flex; flex-wrap: wrap; gap: 8px 16px; }
.foot-legal a { color: var(--char-soft); font-weight: 600; }

/* Maker credit: inline initial-avatar (CSP-clean, no external image). */
.foot-credit {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 12px 6px 6px;
  border: 2px solid var(--char);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform .1s ease, box-shadow .1s ease;
}
.foot-credit:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.foot-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--char);
  background: var(--cream-deep);
}
.foot-credit-txt { font-weight: 600; }
.foot-credit-txt b { font-weight: 800; }
.foot-x { width: 15px; height: 15px; color: var(--char); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 980px) {
  .rail {
    position: static;
    width: auto;
    inset: auto;
    margin: var(--gap);
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 14px 16px;
  }
  .rail-tag, .rail-foot { display: none; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 8px; margin-left: auto; }
  .nav-link { padding: 9px 12px; }
  .nav-link:hover { transform: none; }
  .stage {
    margin-left: 0;
    max-width: 100%;
    padding: clamp(20px, 5vw, 40px) var(--gap) var(--gap);
  }
  .showcase { grid-template-columns: 1fr; }
  .receipt { max-width: 380px; }
}

@media (max-width: 620px) {
  .step-grid { grid-template-columns: 1fr; }
  .brand { font-size: 21px; }
  .foot-credit { margin-left: 0; }
}

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