/* Student Business Hub website: same colors and font as the app, light and dark. */
:root {
  --bg: #f6f7f4;
  --card: #ffffff;
  --text: #1c211e;
  --muted: #66706a;
  --primary: #3f7d63;
  --on-primary: #ffffff;
  --accent: #dceadf;
  --on-accent: #24452e;
  --border: #dde2dc;
  --shadow: 0 10px 30px rgba(28, 33, 30, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #2e312f;
    --card: #373b38;
    --text: #e8ebe8;
    --muted: #aab2ac;
    --primary: #7db898;
    --on-primary: #10261a;
    --accent: #38503f;
    --on-accent: #cfe6d6;
    --border: #4a4f4b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  padding: 20px 0;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  font-size: 17px;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav {
  display: flex;
  gap: 18px;
  font-size: 14px;
}

.nav a {
  color: var(--muted);
}

.nav a[aria-current='page'] {
  color: var(--primary);
}

/* Page content */
main {
  padding: 12px 0 48px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
}

h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 19px;
  margin: 32px 0 8px;
}

p,
ul {
  margin: 0 0 14px;
}

ul {
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

.updated {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.note {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
}

.note a {
  color: inherit;
  text-decoration: underline;
}

/* Home page */
.hero {
  text-align: center;
  padding: 32px 0 8px;
}

.hero-logo {
  width: 132px;
  height: 132px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero h1 {
  font-size: 40px;
  margin-top: 24px;
}

.hero .lead {
  max-width: 520px;
  margin: 0 auto 22px;
}

.pill {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 15px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 40px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
}

.feature .icon {
  font-size: 26px;
}

.feature h3 {
  font-size: 16px;
  margin: 8px 0 4px;
}

.feature p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}

/* Support page */
.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
  margin: 18px 0 8px;
}

.contact strong {
  display: block;
}

.contact span {
  color: var(--muted);
  font-size: 14px;
}

details {
  border-top: 1px solid var(--border);
  padding: 14px 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--border);
}

summary {
  cursor: pointer;
  font-weight: 700;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Shared business page (/business/<id>) */
.business-card {
  text-align: center;
}

.biz-photo {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}

.biz-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.biz-kicker {
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.business-card .lead {
  max-width: 480px;
  margin: 0 auto 14px;
}

.biz-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.biz-chip {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 14px;
  font-weight: 600;
}

.biz-chip.accent {
  background: var(--accent);
  color: var(--on-accent);
  border-color: transparent;
}

.biz-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.biz-actions a.pill:hover {
  text-decoration: none;
  opacity: 0.92;
}

.pill.secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.biz-note {
  color: var(--muted);
  font-size: 14px;
  margin: 18px 0 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.site-footer nav {
  display: flex;
  gap: 16px;
}

.site-footer a {
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .card {
    padding: 22px;
    border-radius: 20px;
  }

  h1 {
    font-size: 27px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .features {
    grid-template-columns: 1fr;
  }
}
