/* ==========================================================================
   GrumbleCo Hardware AI — Unified Apple-Inspired Design System
   Shared across mystudytool.org, mystudytool.com, and smbknowledge.com
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --border: #d2d2d7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: #eef6ff;
  --badge-bg: #f5f5f7;
  --badge-text: #1d1d1f;
  --dark-card: #1d1d1f;
  --dark-card-text: #f5f5f7;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.08);
  --max-w: 1080px;
}

/* Audience Theme 1: Personal Student (Vibrant Indigo-Blue) */
body.theme-student {
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --badge-bg: #dbeafe;
  --badge-text: #1e40af;
}

/* Audience Theme 2: Universities & Institutions (Authoritative Oxford Navy) */
body.theme-uni {
  --accent: #0f294a;
  --accent-hover: #1e3a8a;
  --accent-soft: #f1f5f9;
  --badge-bg: #e2e8f0;
  --badge-text: #0f172a;
}

/* Audience Theme 3: SMB Trade & Workshop (Industrial Graphite & Amber) */
body.theme-smb {
  --bg: #fafafa;
  --bg-alt: #f0f0f2;
  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-soft: #fffbeb;
  --badge-bg: #fef3c7;
  --badge-text: #92400e;
  --dark-card: #18181b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 17px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  text-decoration: underline;
}

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

/* Top Ecosystem Bar */
.ecosystem-bar {
  background: #111113;
  color: #a1a1aa;
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #27272a;
}

.ecosystem-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ecosystem-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ecosystem-links a {
  color: #e4e4e7;
  font-weight: 500;
}

.ecosystem-links a.active-domain {
  color: #ffffff;
  text-decoration: underline;
}

/* Main Sticky Nav */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.brand {
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--badge-bg);
  color: var(--badge-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 500;
}

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

.nav-links a:hover,
.nav-links a.current {
  color: var(--accent);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: #e8e8ed;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

/* Hero Section */
.hero {
  padding: 72px 0 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.1rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  max-width: 860px;
  margin: 0 auto 20px;
}

.hero .tagline {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.hero p.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Hardware Showcase Card */
.hardware-stage {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 36px 24px 24px;
  max-width: 860px;
  margin: 0 auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: center;
}

.hardware-item {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.hardware-item svg {
  width: 100%;
  max-width: 240px;
  height: 130px;
  margin: 0 auto 12px;
  display: block;
}

.hardware-caption {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
}

/* Sections */
section {
  padding: 72px 0;
}

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

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
}

.bento-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card.dark {
  background: var(--dark-card);
  color: var(--dark-card-text);
  border: none;
}

.bento-card.dark p {
  color: #a1a1aa;
}

.bento-card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 1rem;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
}

.bento-card.dark .stat-number {
  color: #ffffff;
}

/* Pricing / Model Cards */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.model-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.model-card.featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-md);
  position: relative;
}

.model-pill {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.model-card h3 {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.model-price {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
}

.model-price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.model-spec-tag {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
  flex-grow: 1;
}

.feature-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.98rem;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.feature-list li.excluded {
  color: var(--text-muted);
}

.feature-list li.excluded::before {
  content: "—";
  color: #a1a1aa;
}

/* Honest Limitations Callout */
.honesty-box {
  background: var(--surface);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
}

.honesty-box h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.honesty-box ul {
  padding-left: 20px;
  color: var(--text-muted);
}

.honesty-box li {
  margin-bottom: 8px;
}

/* Breakout Banner ("Go to this page for more details") */
.breakout-banner {
  background: var(--dark-card);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.breakout-banner h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.breakout-banner p {
  color: #a1a1aa;
  max-width: 560px;
}

/* Spec Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.spec-table th,
.spec-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid #e5e5ea;
}

.spec-table th {
  background: var(--bg-alt);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Contact Card */
.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 44px;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

/* Footer */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0 36px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col h4 {
  color: var(--text);
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid #d2d2d7;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 680px) {
  .nav-links {
    gap: 14px;
    font-size: 13px;
  }
  .hero {
    padding: 48px 0 36px;
  }
  .breakout-banner {
    padding: 28px;
  }
}
