/* Stalls website — matches the app: beige tile wall, charcoal stall doors, steel hinges. */
:root {
  --paper: #EFDECD;
  --paper-light: #F7EADC;
  --paper-dark: #E5D3BF;
  --wall: #E7D3BE;
  --grout: rgba(115, 89, 64, 0.10);
  --ink: #141414;
  --ink-soft: #4A4038;
  --frame: #222222;
  --accent: #1E6FD9;
  --green: #2E7D32;
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grout) 2px, transparent 2px),
    linear-gradient(90deg, var(--grout) 2px, transparent 2px);
  background-size: 48px 48px;
}

a { color: var(--accent); }
a:hover { color: #0F4FA8; }

img { max-width: 100%; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-header .logo img { height: 44px; display: block; }
.site-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 999px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(34, 34, 34, 0.08); color: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: "Baloo 2", Inter, system-ui, sans-serif; line-height: 1.1; margin: 0 0 14px; }
h1 { font-size: clamp(44px, 7vw, 76px); font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: clamp(32px, 4.5vw, 46px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 800; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-soft); max-width: 34em; margin: 0 0 28px; }
.scrawl { font-family: "Permanent Marker", cursive; color: var(--accent); font-weight: 400; }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px;
  background: var(--frame); color: #fff;
  font-weight: 800; font-size: 16px; text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}
.button:hover { background: #000; color: #fff; }
.button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--frame); }
.button.ghost:hover { background: rgba(34, 34, 34, 0.06); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.doors { position: relative; height: 520px; }
.doors .door { position: absolute; }
.doors .door:nth-child(1) { left: 2%;  top: 70px;  transform: rotate(-7deg); width: 210px; }
.doors .door:nth-child(2) { left: 31%; top: 0;     transform: rotate(2deg);  width: 240px; z-index: 2; }
.doors .door:nth-child(3) { left: 63%; top: 96px;  transform: rotate(8deg);  width: 200px; }

/* ---------- The stall door card (same as the app's card) ---------- */
.door {
  position: relative;
  aspect-ratio: 5 / 7;
  border-radius: 9%/6.5%;
  background: var(--frame);
  padding: 3%;
  box-shadow: 0 18px 34px rgba(48, 32, 16, 0.3);
}
.door .surface {
  position: relative; width: 100%; height: 100%;
  border-radius: 6%/4.3%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: var(--paper);
}
.door .surface::after { /* light and shade over everything, like the app */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.24), rgba(255,255,255,0) 45%, rgba(89,56,26,0.09));
}
.door .surface svg { position: absolute; left: 12%; top: 9%; width: 76%; height: 78%; }
.door .hinge {
  position: absolute; left: -5%; width: 6.5%; height: 13%;
  border-radius: 4px;
  background: linear-gradient(90deg, #9E9E9E, #F2F2F2 30%, #BDBDBD 55%, #E0E0E0 75%, #949494);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
}
.door .hinge.top { top: 18%; }
.door .hinge.bottom { bottom: 18%; }
.door .plate {
  position: absolute; left: 4%; right: 4%; bottom: 2.5%; height: 8.5%;
  border-radius: 8px;
  background: linear-gradient(180deg, #EDEDED, #D1D1D1 40%, #E6E6E6 60%, #C2C2C2);
  border: 1px solid rgba(115, 115, 115, 0.6);
  display: flex; align-items: center; padding: 0 8%;
  font-size: 11px; font-weight: 800; color: #222; letter-spacing: 0.3px;
  white-space: nowrap; overflow: hidden;
}
.door .num {
  position: absolute; right: 5%; top: 3.5%;
  background: var(--frame); color: #fff;
  font: 700 10px/1 "JetBrains Mono", ui-monospace, monospace;
  padding: 5px 8px; border-radius: 999px;
}
.door.rare { background: linear-gradient(135deg, #FF9AD5, #9AD7FF 22%, #B8FFB0 42%, #FFF3A0 60%, #FFB38A 78%, #C9A2FF); }
.door.rare .surface::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgba(255,130,210,0.32) 38%, rgba(130,215,255,0.34) 47%, rgba(190,255,170,0.32) 55%, rgba(255,240,140,0.32) 63%, transparent 76%);
  background-size: 250% 100%;
  animation: holo 3.6s linear infinite;
}
.door .rare-tag {
  position: absolute; left: 5%; top: 3.5%; z-index: 2;
  background: linear-gradient(90deg, #FF9AD5, #9AD7FF, #B8FFB0, #FFF3A0);
  border: 1px solid #fff; border-radius: 999px;
  font-size: 10px; font-weight: 900; padding: 4px 8px; color: #1A1A1A;
}
@keyframes holo { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .door.rare .surface::before { animation: none; } }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.panel {
  background: var(--paper-light);
  border-radius: var(--radius);
  box-shadow: 0 14px 30px rgba(64, 46, 26, 0.14), inset 0 2px 0 rgba(255, 255, 255, 0.7);
  padding: clamp(28px, 5vw, 56px);
}
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--ink-soft); margin: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step { background: #fff8f0; border-radius: 18px; padding: 24px; box-shadow: 0 6px 16px rgba(64, 46, 26, 0.1); }
.step .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--frame); color: #fff; display: grid; place-items: center; margin-bottom: 14px; }
.step .icon svg { width: 24px; height: 24px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.callout { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.callout .big { font-family: "Baloo 2", sans-serif; font-weight: 800; font-size: clamp(64px, 10vw, 120px); line-height: 0.9; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 4px 0; }
.feature p { margin: 0; color: var(--ink-soft); }

/* ---------- Beta / QR ---------- */
.beta .panel { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.qr {
  width: 220px; height: 220px;
  border-radius: 18px; background: #fff;
  display: grid; place-items: center; text-align: center;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.qr img { width: 100%; height: 100%; object-fit: contain; }
.qr.placeholder { border: 3px dashed #B9A48E; color: var(--ink-soft); font-weight: 700; font-size: 15px; box-shadow: none; background: rgba(255,255,255,0.6); }

/* ---------- Text pages (privacy, terms, support) ---------- */
.doc { padding: 24px 0 80px; }
.doc .panel { max-width: 820px; margin-inline: auto; }
.doc h1 { font-size: clamp(38px, 6vw, 56px); }
.doc h2 { font-size: 26px; margin-top: 36px; }
.doc .updated { color: var(--ink-soft); margin-top: -6px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.faq details { background: #fff8f0; border-radius: 14px; padding: 4px 20px; margin: 10px 0; box-shadow: 0 4px 10px rgba(64, 46, 26, 0.08); }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; min-height: 44px; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); }
.contact-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: #fff8f0; border-radius: 16px; padding: 20px 24px; margin: 18px 0 8px; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 56px; color: var(--ink-soft); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--ink); font-weight: 700; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--ink); }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .doors { height: 420px; max-width: 560px; margin-inline: auto; width: 100%; }
  .doors .door:nth-child(1) { width: 34%; }
  .doors .door:nth-child(2) { width: 39%; }
  .doors .door:nth-child(3) { width: 33%; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .beta .panel { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .callout { grid-template-columns: 1fr; }
  .doors { height: 330px; }
  .door .plate, .door .num, .door .rare-tag { font-size: 8px; }
}
