/*
 * Bidding Star marketing site.
 *
 * The palette below is copied from web/src/index.css, which is the source of
 * truth. Four static pages do not justify a Tailwind build, so the tokens are
 * restated as plain custom properties. If the app's palette changes, change it
 * there first and mirror it here.
 */

:root {
  --background: #f8f8f5;
  --foreground: #181711;
  --card: #ffffff;
  --primary: #f4d125;
  --primary-foreground: #181711;
  --secondary: #f5f4f0;
  --muted: #f5f4f0;
  --muted-foreground: #8a8360;
  --border: #e5e4e0;
  --ring: #f4d125;
  --radius: 0.5rem;

  --container: 1280px;
  --prose: 44rem;

  color-scheme: light;
}

/*
 * Light only, deliberately. The app pins <html class="light">, and the logo
 * artwork carries an opaque light background baked into the SVG, so it reads
 * as a white tile on a dark header. web/src/index.css already defines a full
 * dark palette; enable it here once the logo has a dark variant.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    "Plus Jakarta Sans",
    "Noto Sans",
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-inline: 2rem;
  }
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s;
}

.brand:hover {
  opacity: 0.8;
}

.brand svg {
  width: 2.5rem;
  height: 2.5rem;
  display: block;
}

.brand span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

@media (max-width: 480px) {
  .brand span {
    display: none;
  }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav a {
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav a:hover {
  background: var(--secondary);
}

.site-nav a[aria-current="page"] {
  color: var(--muted-foreground);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.5rem;
  border-radius: calc(var(--radius) - 2px);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.15s,
    opacity 0.15s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  background: var(--background);
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--secondary);
}

:where(a, button, summary):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: calc(var(--radius) - 2px);
}

/* ---------- Layout ---------- */

main {
  flex: 1;
}

section {
  padding-block: 4rem;
}

section.tint {
  background: var(--card);
  border-block: 1px solid var(--border);
}

.prose {
  max-width: var(--prose);
}

.hero {
  padding-block: 5rem 4rem;
  text-align: center;
}

.hero h1 {
  margin: 0 auto 1.25rem;
  max-width: 20ch;
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero p.lede {
  margin: 0 auto 2rem;
  max-width: 46ch;
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* ---------- Steps and cards ---------- */

.steps {
  display: grid;
  gap: 1.5rem;
  padding: 0;
  margin: 2rem 0 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }
}

.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-weight: 700;
  font-size: 0.875rem;
}

.steps strong {
  display: block;
  margin-bottom: 0.25rem;
}

.steps p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.price-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.price-card .amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  display: block;
  margin-bottom: 0.5rem;
}

.price-card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
}

.callout {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}

.callout > :last-child {
  margin-bottom: 0;
}

/*
 * Spacing utilities. These exist because the site's CSP omits 'unsafe-inline',
 * so a style="" attribute is silently dropped rather than failing loudly.
 */

.mt-lg {
  margin-top: 2rem;
}

.mt-xl {
  margin-top: 2.5rem;
}

/* ---------- Tables and lists ---------- */

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-weight: 700;
  background: var(--secondary);
}

ul.checks {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

ul.checks li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.625rem;
}

ul.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: var(--primary);
}

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

.legal {
  padding-block: 3rem 4rem;
}

.legal h1 {
  font-size: clamp(1.875rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.legal .updated {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.375rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal h3 {
  font-size: 1.0625rem;
}

.legal ul {
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.5rem;
}

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

.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding-block: 3rem;
  margin-top: 3rem;
  font-size: 0.9375rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-brand {
  max-width: 24rem;
}

.footer-brand p {
  color: var(--muted-foreground);
  margin: 0.75rem 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-links a {
  color: var(--foreground);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
}

.footer-bottom p {
  margin: 0;
}
