/* Shipping Store Simulator 2037 — unofficial fan guide
   Teal / slate logistics vibe. Mobile-first. */

:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #5eead4;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --amber: #f59e0b;
  --amber-bg: #fffbeb;
  --red-soft: #fef2f2;
  --red-text: #991b1b;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --max: 720px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--slate-800);
  background: var(--slate-50);
}

a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal); }

img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  background: var(--slate-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.logo {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  display: inline-flex;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--teal);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.logo span { color: var(--teal-light); font-weight: 500; font-size: 0.8rem; display: block; }

.nav-toggle {
  display: none;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  color: var(--white);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
}

.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }

.site-nav a {
  color: var(--slate-200);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--slate-800);
  color: var(--teal-light);
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-bottom: 0.5rem;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.6rem 0.75rem; }
}

/* Layout */
.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.hero {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 50%, var(--teal-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow);
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.hero p { margin: 0; opacity: 0.9; max-width: 36em; }

.badge {
  display: inline-block;
  background: rgba(94, 234, 212, 0.15);
  color: var(--teal-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
}

main h1 {
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

main h2 {
  font-size: 1.25rem;
  color: var(--slate-900);
  margin: 2rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid var(--teal);
  letter-spacing: -0.01em;
}

main h3 {
  font-size: 1.05rem;
  color: var(--slate-800);
  margin: 1.5rem 0 0.5rem;
}

main p, main li { max-width: var(--max); }
main ul, main ol { padding-left: 1.25rem; }
main li { margin-bottom: 0.4rem; }

.lead { font-size: 1.1rem; color: var(--slate-600); max-width: var(--max); }

/* Cards / grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.12);
}

.card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card a:hover { color: inherit; }
.card h3 { margin: 0 0 0.4rem; color: var(--teal-dark); font-size: 1.05rem; }
.card p { margin: 0; font-size: 0.925rem; color: var(--slate-600); }

.panel {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
  max-width: var(--max);
}

/* Callouts */
.note, .warn, .tip, .community {
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
  max-width: var(--max);
  font-size: 0.95rem;
}

.note {
  background: var(--slate-100);
  border-left: 4px solid var(--slate-500);
}

.warn {
  background: var(--red-soft);
  border-left: 4px solid #ef4444;
  color: var(--red-text);
}

.tip {
  background: #f0fdfa;
  border-left: 4px solid var(--teal);
}

.community {
  background: var(--amber-bg);
  border-left: 4px solid var(--amber);
}

.note strong, .warn strong, .tip strong, .community strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 1rem 0; max-width: 100%; }

table {
  width: 100%;
  max-width: var(--max);
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.925rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

th {
  background: var(--slate-800);
  color: var(--white);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tr:last-child td { border-bottom: none; }
tr:nth-child(even) td { background: var(--slate-50); }

.secret { color: var(--slate-500); font-style: italic; }

/* Quick start steps */
.steps { counter-reset: step; list-style: none; padding: 0; max-width: var(--max); }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0.75rem 0.75rem 0.75rem 3rem;
  margin-bottom: 0.5rem;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* FAQ */
.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  max-width: var(--max);
  overflow: hidden;
}

.faq-item summary {
  padding: 0.9rem 1.1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--slate-900);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 1.25rem;
  color: var(--teal);
  font-weight: 700;
}
.faq-item[open] summary::before { content: "−"; }
.faq-item .faq-body {
  padding: 0 1.1rem 1rem;
  color: var(--slate-600);
  border-top: 1px solid var(--slate-100);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--slate-600); }

/* Footer */
.site-footer {
  background: var(--slate-900);
  color: var(--slate-200);
  padding: 2rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
}

.site-footer a { color: var(--teal-light); }
.site-footer .disclaimer {
  opacity: 0.85;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--slate-700);
  max-width: 48em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.5rem;
}

.footer-nav a { text-decoration: none; font-weight: 500; }
.footer-nav a:hover { text-decoration: underline; }

/* Utility */
.meta { font-size: 0.85rem; color: var(--slate-500); margin-bottom: 1.5rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
