/* ============================================================
   Spicy Sort — marketing site stylesheet
   ============================================================ */

:root {
  --spice-red: #e94b2c;
  --spice-orange: #f5811f;
  --spice-gold: #ffb703;
  --spice-deep: #7a1f1f;
  --ink: #2a1810;
  --ink-soft: #5c463c;
  --paper: #fffaf3;
  --paper-alt: #fff1de;
  --card: #ffffff;
  --border: #f0ddc8;
  --shadow: 0 12px 30px rgba(122, 31, 31, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max-width: 1140px;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 250, 243, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--spice-red); }

.nav-cta {
  background: linear-gradient(135deg, var(--spice-red), var(--spice-orange));
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(233, 75, 44, 0.35);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--ink);
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 183, 3, 0.25), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(233, 75, 44, 0.2), transparent 40%),
    var(--paper);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper-alt);
  border: 1px solid var(--border);
  color: var(--spice-deep);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--spice-red), var(--spice-gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--spice-red), var(--spice-orange));
  color: #fff;
  box-shadow: 0 10px 24px rgba(233, 75, 44, 0.4);
}

.btn-ghost {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--border);
}

.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-stats div strong {
  display: block;
  font-size: 1.5rem;
  color: var(--spice-deep);
}

.hero-stats div span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-art .phone-frame {
  width: min(320px, 80vw);
  aspect-ratio: 9 / 18;
  border-radius: 42px;
  background: linear-gradient(160deg, var(--spice-deep), #3a1010);
  padding: 16px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-art .phone-frame img {
  width: 62%;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.hero-art .glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle, rgba(255,183,3,0.35), transparent 60%);
  z-index: -1;
}

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

section { padding: 72px 0; }

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.section-head .eyebrow { margin-bottom: 14px; }

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.section-head p {
  color: var(--ink-soft);
  margin: 0;
}

.alt-bg { background: var(--paper-alt); }

/* Feature grid */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--spice-red), var(--spice-gold));
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* How to play */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  padding: 12px;
}

.step .num {
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--spice-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}

.step h3 { margin: 0 0 8px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* Difficulty ladder */

.tier-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 18px;
  scrollbar-width: thin;
}

.tier-chip {
  flex: 0 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  min-width: 140px;
  box-shadow: 0 6px 14px rgba(122,31,31,0.06);
}

.tier-chip .tier-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--spice-orange);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tier-chip .tier-name {
  font-weight: 800;
  font-size: 1.05rem;
  margin: 4px 0 2px;
}

.tier-chip .tier-range {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* CTA banner */

.cta-banner {
  background: linear-gradient(135deg, var(--spice-deep), var(--spice-red));
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  text-align: center;
  color: #fff;
}

.cta-banner h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-banner p {
  margin: 0 0 28px;
  color: rgba(255,255,255,0.85);
  max-width: 50ch;
  margin-inline: auto;
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--spice-deep);
  box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

/* FAQ */

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--spice-orange);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

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

.site-footer {
  background: var(--ink);
  color: #f1e5d8;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand img { width: 34px; height: 34px; border-radius: 10px; }

.site-footer h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c9b6a7;
  margin: 0 0 14px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #f1e5d8; opacity: 0.85; }
.site-footer a:hover { opacity: 1; color: var(--spice-gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  color: #b8a596;
}

/* ---------- Legal pages (privacy / terms) ---------- */

.legal-hero {
  padding: 56px 0 24px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--border);
}

.legal-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.legal-hero .updated {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.legal-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.legal-body h2 {
  font-size: 1.3rem;
  margin: 40px 0 12px;
  color: var(--spice-deep);
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

.legal-body p, .legal-body li {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.legal-body ul, .legal-body ol {
  padding-left: 22px;
}

.legal-body li { margin-bottom: 8px; }

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 28px;
  font-size: 0.92rem;
}

.legal-body th, .legal-body td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
  vertical-align: top;
}

.legal-body th {
  background: var(--paper-alt);
  color: var(--ink);
}

.legal-toc {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 8px;
}

.legal-toc h2 { margin-top: 0 !important; }

.legal-toc ol {
  columns: 2;
  gap: 24px;
}

.legal-toc a { color: var(--spice-deep); font-weight: 600; }

.callout {
  background: var(--paper-alt);
  border-left: 4px solid var(--spice-orange);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.94rem;
  color: var(--ink);
}

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

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-toc ol { columns: 1; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    inset: 64px 16px auto 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: flex-start;
    padding: 18px;
    gap: 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  section { padding: 52px 0; }
  .cta-banner { padding: 40px 24px; }
}
