/* StallSmart — shared site styles. Dark charcoal + gold, system fonts, no frameworks. */

:root {
  --bg: #121110;
  --bg-soft: #1a1916;
  --card: #201e1a;
  --card-line: #35322b;
  --gold: #c9a24b;
  --gold-bright: #e6cb7d;
  --gold-dim: #8a713a;
  --text: #f3efe6;
  --muted: #b6ae9e;
  --faint: #8d8676;
  --error: #e08a7a;
  --success: #a8d5a2;
  --radius: 14px;
  --maxw: 1060px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(18, 17, 16, 0.94);
  border-bottom: 1px solid var(--card-line);
  backdrop-filter: blur(6px);
}

header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.2px;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: block;
}
.brand .gold { color: var(--gold); }

nav.main {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
nav.main a {
  color: var(--muted);
  font-size: 0.98rem;
}
nav.main a:hover { color: var(--text); text-decoration: none; }
nav.main a.cta {
  color: #171410;
  background: var(--gold);
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
}
nav.main a.cta:hover { background: var(--gold-bright); color: #171410; }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(201, 162, 75, 0.14), transparent 70%),
    var(--bg);
}
.hero img.logo {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.55);
}
.hero h1 {
  font-size: 2.9rem;
  line-height: 1.12;
  margin: 26px auto 14px;
  max-width: 720px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero h1 .gold { color: var(--gold); }
.hero p.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 30px;
}
.hero .note {
  margin-top: 16px;
  color: var(--faint);
  font-size: 0.98rem;
}
.hero .beta-note {
  margin-top: 6px;
  color: var(--faint);
  font-size: 0.98rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 1.02rem;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold); color: #171410; }
.btn-gold:hover { background: var(--gold-bright); color: #171410; }
.btn-outline {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--gold-dim);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ---------- Sections ---------- */

section { padding: 56px 0; }
section.alt { background: var(--bg-soft); border-top: 1px solid var(--card-line); border-bottom: 1px solid var(--card-line); }

h2.section-title {
  font-size: 2rem;
  margin: 0 0 10px;
  letter-spacing: -0.3px;
}
p.section-sub {
  color: var(--muted);
  max-width: 640px;
  margin: 0 0 34px;
  font-size: 1.05rem;
}
.center { text-align: center; }
.center p.section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Feature grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 1.13rem;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.card p { margin: 0; color: var(--muted); font-size: 0.99rem; }

.badge-pro {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #171410;
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 9px;
}

/* ---------- Comparison table ---------- */

.table-scroll { overflow-x: auto; border: 1px solid var(--card-line); border-radius: var(--radius); }
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: var(--card);
}
table.compare th, table.compare td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--card-line);
  font-size: 1rem;
}
table.compare thead th {
  background: #28251f;
  font-size: 1.05rem;
}
table.compare thead th.plan-pro { color: var(--gold-bright); }
table.compare td.yes, table.compare th.yes { text-align: center; width: 130px; }
table.compare td.yes { color: var(--gold-bright); font-weight: 700; }
table.compare td.no { text-align: center; color: var(--faint); width: 130px; }
table.compare tr:last-child td { border-bottom: none; }
table.compare tr.price td { font-weight: 700; background: #28251f; }

/* ---------- Story ---------- */

.story {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.story p { color: var(--muted); font-size: 1.08rem; }
.story p strong { color: var(--text); }

/* ---------- Tutorial steps ---------- */

ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  max-width: 780px;
}
ol.steps > li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 24px 24px 24px 78px;
  margin-bottom: 16px;
  position: relative;
}
ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold);
  color: #171410;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}
ol.steps h3 { margin: 4px 0 8px; font-size: 1.18rem; }
ol.steps p { margin: 0 0 8px; color: var(--muted); }
ol.steps ul { margin: 6px 0 4px; padding-left: 20px; color: var(--muted); }
ol.steps ul li { margin-bottom: 4px; }

/* ---------- Forms ---------- */

.form-card {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 640px;
}
label.field {
  display: block;
  font-weight: 600;
  margin: 18px 0 6px;
  font-size: 0.99rem;
}
label.field:first-of-type { margin-top: 0; }
label.field .optional { color: var(--faint); font-weight: 400; }
input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--card-line);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 1rem;
  font-family: inherit;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  outline: 2px solid var(--gold-dim);
  border-color: var(--gold);
}
textarea { min-height: 130px; resize: vertical; }
button.submit {
  margin-top: 22px;
  background: var(--gold);
  color: #171410;
  border: none;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 13px 28px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
button.submit:hover { background: var(--gold-bright); }
button.submit:disabled { opacity: 0.55; cursor: default; }
.form-msg { margin-top: 16px; font-size: 1rem; display: none; }
.form-msg.ok { color: var(--success); display: block; }
.form-msg.err { color: var(--error); display: block; }

/* ---------- Legal / prose pages ---------- */

.prose { max-width: 760px; }
.prose h1 { font-size: 2.1rem; margin: 0 0 6px; }
.prose h2 { font-size: 1.3rem; margin: 30px 0 8px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose .updated { color: var(--faint); font-size: 0.95rem; margin-bottom: 8px; }
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: 2.2rem; margin: 0 0 10px; }
.page-head p { color: var(--muted); max-width: 640px; font-size: 1.06rem; }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--card-line);
  background: var(--bg-soft);
  padding: 38px 0 30px;
  margin-top: 0;
}
footer.site .cols {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
footer.site .brandline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 8px;
}
footer.site .brandline img { width: 30px; height: 30px; border-radius: 8px; }
footer.site p { color: var(--faint); font-size: 0.94rem; margin: 4px 0; max-width: 340px; }
footer.site nav { display: flex; flex-direction: column; gap: 8px; }
footer.site nav a { color: var(--muted); font-size: 0.97rem; }
footer.site nav a:hover { color: var(--text); }
footer.site .fineprint {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--card-line);
  color: var(--faint);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 2.1rem; }
  .hero p.lede { font-size: 1.08rem; }
  section { padding: 40px 0; }
  h2.section-title { font-size: 1.6rem; }
  nav.main { gap: 14px; }
  ol.steps > li { padding: 20px 18px 20px 70px; }
  table.compare td.yes, table.compare td.no { width: 84px; }
}
