/* Cart Duel — shared styles. Plain CSS, no build step. */

:root {
  --red: #e4402a;
  --text: #151515;
  --bg: #ffffff;
  --panel: #f6f3ef;
  --green: #1d7a3e;
  --yellow: #ffd23f;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 17px;
}

h1, h2, h3 {
  font-family: inherit;
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2rem);
}

h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--red);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

a:hover,
a:focus {
  text-decoration-thickness: 2px;
}

img, svg {
  max-width: 100%;
}

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

/* Header */

.site-header {
  border-bottom: 3px solid var(--text);
  background: var(--bg);
}

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

.brand {
  font-weight: 800;
  font-stretch: condensed;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  color: var(--red);
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  padding: 0.5rem 0.25rem;
}

.site-nav a:hover {
  color: var(--red);
  text-decoration: underline;
}

/* Main content spacing */

main {
  padding: 2.5rem 0 1rem;
}

section {
  margin-bottom: 3rem;
}

/* Buttons */

.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: 6px;
  border: 2px solid var(--red);
}

.btn:hover {
  background: #c7331f;
  border-color: #c7331f;
  text-decoration: none;
}

/* Panels / cards */

.panel {
  background: var(--panel);
  border-radius: 10px;
  padding: 1.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  background: var(--panel);
  border-radius: 10px;
  padding: 1.5rem 1.25rem;
  counter-increment: step;
  position: relative;
}

.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

@media (max-width: 720px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/* Example cards */

.example-badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--text);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.8rem;
  padding: 0.3rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.example-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 1.25rem 0;
}

@media (max-width: 720px) {
  .example-cards {
    grid-template-columns: 1fr;
  }
}

.store-card {
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 10px;
  padding: 1.25rem;
}

.store-card h3 {
  margin-bottom: 0.75rem;
}

.store-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}

.store-card li {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--panel);
}

.store-card .subtotal {
  display: flex;
  justify-content: space-between;
  font-weight: 800;
  color: var(--green);
  padding-top: 0.5rem;
}

.example-total {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--green);
}

/* Footer */

.site-footer {
  border-top: 3px solid var(--text);
  background: var(--panel);
  margin-top: 2rem;
}

.site-footer .wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text);
  font-weight: 700;
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text);
  margin: 0;
}

/* Draft notice (privacy / terms) */

.draft-notice {
  background: var(--yellow);
  border: 2px solid var(--text);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.lawyer-flag {
  color: var(--red);
  font-weight: 800;
}

/* 404 */

.not-found {
  text-align: center;
  padding: 3rem 0;
}
