:root {
  /* Var names kept from the forked template; only the values are SushiHounds.
     --brand-red = primary (deep indigo), --brand-gold = accent (warm coral). */
  --brand-red: #243044;
  --brand-dark: #1B222E;
  --brand-cream: #F7F4EF;
  --brand-gold: #E1604A;
  --text-dark: #20262E;
  --text-light: #FBF9F4;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--brand-cream);
  line-height: 1.6;
}

a { color: inherit; }

.hero {
  background: linear-gradient(160deg, var(--brand-red), #141b26);
  color: var(--text-light);
  padding-bottom: 4rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  opacity: 0.9;
}

.nav-links a:hover { opacity: 1; }

.btn-outline {
  border: 1px solid var(--text-light);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero-banner {
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding: 0 1.5rem;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 3.5rem 1.5rem 0;   /* padding, not margin -- avoids collapsing through .hero and showing the body bg */
}

.hero-mascot {
  width: 200px;
  height: auto;
  margin: 0 auto 1.25rem;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.4));
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.tagline {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions.center { margin-top: 2rem; }

.android-beta {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.18);
}

.android-beta-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold);
  opacity: 0.95;
  margin-bottom: 0.6rem;
}

.android-beta-heading {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.android-beta-copy {
  font-size: 1.05rem;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
  opacity: 0.88;
}

.beta-cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.beta-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--brand-gold);
  color: var(--text-light);
  border: none;
  cursor: pointer;
  padding: 0.65rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  font-family: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.beta-cta-btn:hover,
.beta-cta-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}

.beta-cta-btn:focus-visible {
  outline: 2px solid var(--text-light);
  outline-offset: 3px;
}

.beta-cta-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.35), 0 0 0 2px rgba(255,255,255,0.25);
  display: block;
}

@media (max-width: 600px) {
  .hero-mascot { width: 150px; }
  .android-beta-heading { font-size: 2.2rem; }
}

.btn-primary {
  background: var(--brand-gold);
  color: var(--text-light);
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }

.btn-secondary {
  text-decoration: none;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.6);
}

.section {
  max-width: 860px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section.alt {
  background: #fff;
  max-width: 100%;
  padding: 4rem 1.5rem;
}

.section.alt > * {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  font-size: 2rem;
  color: var(--brand-red);
  margin-bottom: 1.5rem;
}

.section p { margin-bottom: 1rem; }

.app-cta-banner {
  background: var(--brand-gold);
  color: var(--text-light);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  text-align: center;
}

.app-cta-banner p { margin: 0; max-width: 480px; }

.app-cta-banner .btn-primary {
  background: var(--text-light);
  color: var(--brand-gold);
  white-space: nowrap;
}

.app-cta-banner .btn-primary:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.35); }

.membership-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature {
  background: var(--brand-cream);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.06);
}

.feature h3 {
  color: var(--brand-red);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.contact-email a {
  color: var(--brand-red);
  font-weight: 600;
  text-decoration: none;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.social-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--brand-red);
}

footer {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--brand-dark);
  color: var(--text-light);
}

footer a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 600;
}

@media (max-width: 600px) {
  .hero-content h1 { font-size: 2.2rem; }
  .navbar { justify-content: center; text-align: center; }
  .app-cta-banner { flex-direction: column; }
}

/* Legal pages (privacy.html / terms.html) -- compact hero, no CTA buttons */
.legal-hero { padding-bottom: 2rem; }

.legal-hero-content { margin-top: 1.5rem; }

.legal-hero-content h1 { font-size: 2.25rem; }

.legal-hero-content .tagline { font-size: 1rem; opacity: 0.8; margin-bottom: 0; }

.section.legal { max-width: 760px; }

.section.legal h2 {
  font-size: 1.4rem;
  color: var(--brand-red);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.section.legal h3 {
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.section.legal ul {
  margin: 0 0 1rem 1.25rem;
}

.section.legal li { margin-bottom: 0.4rem; }

.section.legal a {
  color: var(--brand-red);
  font-weight: 600;
}

/* Tester signup modal (opened via the app-icon button in the navbar) */
.signup-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 15, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
}

.signup-modal-backdrop[hidden] {
  display: none;
}

.signup-modal {
  position: relative;
  background: #fff;
  color: var(--text-dark);
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  padding: 2.25rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.signup-modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  margin-bottom: 0.75rem;
}

.signup-modal h2 {
  color: var(--brand-red);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.signup-modal p {
  font-size: 0.92rem;
  opacity: 0.85;
  margin-bottom: 1.25rem;
}

.signup-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: none;
  background: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-dark);
  opacity: 0.5;
  cursor: pointer;
  padding: 0.25rem;
}

.signup-modal-close:hover { opacity: 0.9; }

#tester-signup-form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
}

#tester-signup-email {
  flex: 1 1 220px;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 999px;
  font-size: 0.95rem;
  font-family: inherit;
}

#tester-signup-email:focus {
  outline: none;
  border-color: var(--brand-gold);
  box-shadow: 0 0 0 3px rgba(225, 96, 74, 0.18);
}

#tester-signup-form .btn-primary {
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}

#tester-signup-form .btn-primary:disabled {
  opacity: 0.65;
  cursor: default;
  transform: none;
}

.signup-modal-status {
  min-height: 1.2em;
  margin: 0.9rem 0 0;
  font-size: 0.88rem;
}

.signup-modal-status.success { color: var(--brand-gold); font-weight: 600; }
.signup-modal-status.error { color: #a3221e; font-weight: 600; }

@media (max-width: 600px) {
  #tester-signup-form { flex-direction: column; }
  #tester-signup-email, #tester-signup-form .btn-primary { width: 100%; }
}

/* --- SushiHounds landing-page components --------------------------------- */

.lede {
  font-size: 1.1rem;
  max-width: 38rem;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.fineprint {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 1rem;
}

.section em { font-style: italic; }

/* Item-grade example card (#items section) */
.grade-card {
  max-width: 460px;
  margin: 2rem auto 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  text-align: left;
}

.grade-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 0.5rem;
}

.grade-card-name { font-weight: 800; font-size: 1.15rem; color: var(--brand-red); }
.grade-card-meta { font-size: 0.82rem; opacity: 0.6; }

.grade-list { list-style: none; margin: 0; padding: 0; }

.grade-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-weight: 500;
}

.grade-list li:last-child { border-bottom: none; }

/* Letter-grade badge -- mirrors backend/grading.py's A+ … E scale */
.grade-badge {
  display: inline-block;
  min-width: 2.1rem;
  text-align: center;
  padding: 0.15rem 0.5rem;
  border-radius: 7px;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.grade-a-plus, .grade-a          { background: #1f9d55; }
.grade-a-minus, .grade-b-plus    { background: #57a639; }
.grade-b, .grade-b-minus         { background: #b7920f; }
.grade-c-plus, .grade-c, .grade-c-minus { background: #c9721c; }
.grade-d-plus, .grade-d, .grade-d-minus, .grade-e { background: #b23b32; }

/* Rankings teaser list (#rankings) */
.rankings-list {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.6rem 1.5rem;
}

.rankings-list li {
  padding: 0.7rem 1rem;
  background: var(--brand-cream);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 9px;
  font-weight: 600;
}
