/* Grammar Spy — SEO Hub Pages Shared Styles
   Brand: Navy #16255C · Teal #2CB1A6 · Gold #D4AF37
   Stack: Pure CSS, no frameworks */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #16255C;
  --navy-light: #1e3278;
  --teal: #2CB1A6;
  --teal-dark: #1f8a82;
  --teal-light: #e8f7f6;
  --gold: #D4AF37;
  --gold-light: #faf4e0;
  --bg: #f6fbfa;
  --card-bg: #ffffff;
  --text: #16255C;
  --text-muted: #5a6580;
  --border: #e2e8f0;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 2px 12px -2px rgba(22,37,92,0.08);
  --shadow-card-hover: 0 8px 24px -4px rgba(22,37,92,0.14);
  --shadow-cta: 0 4px 20px -4px rgba(44,177,166,0.35);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max-w: 1100px;
  --gap: 24px;
}

html { scroll-behavior: smooth; }

body.seo-page {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Focus states */
body.seo-page *:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ─── Layout ─── */
.seo-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ─── Header ─── */
.seo-header {
  background: var(--navy);
  border-bottom: 3px solid var(--teal);
  position: sticky;
  top: 0;
  z-index: 100;
}
.seo-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.seo-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}
.seo-logo img { height: 34px; width: auto; }
.seo-nav { display: flex; gap: 8px; align-items: center; }
.seo-nav a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.seo-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.seo-nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  font-weight: 600 !important;
}
.seo-nav-cta:hover { background: var(--teal-dark) !important; }

/* Mobile nav toggle */
.seo-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 8px;
}
.seo-nav-toggle svg { width: 24px; height: 24px; }

/* ─── Hero ─── */
.seo-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--teal-dark) 100%);
  padding: 80px 20px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.seo-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  pointer-events: none;
}
.seo-hero-inner { max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
.seo-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(44,177,166,0.15);
  border: 1px solid rgba(44,177,166,0.3);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.seo-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.seo-hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.seo-hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 28px;
}
.seo-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Buttons ─── */
.seo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  min-height: 48px; /* a11y tap target */
}
.seo-btn:hover { transform: translateY(-1px); }
.seo-btn:active { transform: translateY(0); }

.seo-btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-cta);
}
.seo-btn-primary:hover { background: var(--teal-dark); }

.seo-btn-secondary {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.seo-btn-secondary:hover { background: rgba(255,255,255,0.2); }

.seo-btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 16px -4px rgba(212,175,55,0.4);
}
.seo-btn-gold:hover { background: #c9a430; }

.seo-btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.seo-btn-outline:hover { background: var(--teal-light); }

.seo-btn svg, .seo-btn .seo-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── Trust Strip ─── */
.seo-trust-strip {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
}
.seo-trust-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}
.seo-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.seo-trust-badge .seo-icon {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

/* ─── Section ─── */
.seo-section {
  padding: 64px 20px;
}
.seo-section:nth-child(even) {
  background: var(--card-bg);
}
.seo-section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.seo-section-header {
  text-align: center;
  margin-bottom: 40px;
}
.seo-section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.seo-section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── Activity Cards Grid ─── */
.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--gap);
}
.seo-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.seo-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.seo-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.seo-card-icon.teal { background: var(--teal-light); color: var(--teal-dark); }
.seo-card-icon.gold { background: var(--gold-light); color: var(--gold); }
.seo-card-icon.navy { background: rgba(22,37,92,0.08); color: var(--navy); }

.seo-card-icon svg { width: 22px; height: 22px; }

.seo-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.seo-card p {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.65;
  flex: 1;
}
.seo-card-tag {
  display: inline-block;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  align-self: flex-start;
}
.seo-card-tag.gold { background: var(--gold-light); color: #9a7c1a; }

/* ─── Tip Cards ─── */
.seo-tip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--gap);
}
.seo-tip {
  background: var(--teal-light);
  border-left: 4px solid var(--teal);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 22px 24px;
}
.seo-tip h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.seo-tip h4 .seo-icon { width: 16px; height: 16px; color: var(--teal); }
.seo-tip p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Teacher Note ─── */
.seo-teacher-note {
  background: var(--gold-light);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 40px 0;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.seo-teacher-note-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.seo-teacher-note-icon svg { width: 20px; height: 20px; }
.seo-teacher-note-content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.seo-teacher-note-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Mission CTA Block ─── */
.seo-mission-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  margin: 48px 0;
  position: relative;
  overflow: hidden;
}
.seo-mission-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(44,177,166,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.seo-mission-cta h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
}
.seo-mission-cta p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 24px;
  position: relative;
}
.seo-mission-cta .seo-btn { position: relative; }

/* ─── Bottom Launch Section ─── */
.seo-launch {
  background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal) 60%, #34c7b8 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.seo-launch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='rgba(255,255,255,0.06)' stroke-width='1'/%3E%3C/svg%3E");
  pointer-events: none;
}
.seo-launch-inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.seo-launch-icon {
  width: 64px;
  height: 64px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.seo-launch-icon svg { width: 28px; height: 28px; color: #fff; }
.seo-launch h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}
.seo-launch p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 32px;
}
.seo-launch-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer ─── */
.seo-footer {
  background: var(--navy);
  padding: 40px 20px;
  text-align: center;
}
.seo-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.seo-footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.seo-footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.seo-footer-links a:hover { color: var(--teal); }
.seo-footer-copy {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

/* ─── Numbered List (How-To Steps) ─── */
.seo-steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto;
}
.seo-step {
  counter-increment: step;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
}
.seo-step::before {
  content: counter(step);
  min-width: 36px;
  height: 36px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.seo-step h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.seo-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Feature Row (alternating icon + text) ─── */
.seo-features { display: grid; gap: 20px; }
.seo-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.seo-feature:last-child { border-bottom: none; }
.seo-feature-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  color: var(--teal-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.seo-feature-icon svg { width: 22px; height: 22px; }
.seo-feature h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.seo-feature p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ─── Mobile ─── */
@media (max-width: 768px) {
  .seo-hero { padding: 56px 20px 48px; }
  .seo-hero h1 { font-size: 1.75rem; }
  .seo-hero-sub { font-size: 1rem; }

  .seo-nav { display: none; }
  .seo-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px 20px;
    gap: 4px;
    border-bottom: 2px solid var(--teal);
  }
  .seo-nav.open a { padding: 12px 14px; }
  .seo-nav-toggle { display: block; }

  .seo-card-grid { grid-template-columns: 1fr; }
  .seo-tip-grid { grid-template-columns: 1fr; }

  .seo-teacher-note { flex-direction: column; }

  .seo-mission-cta { padding: 36px 24px; }
  .seo-launch { padding: 56px 20px; }

  .seo-section { padding: 48px 20px; }

  .seo-trust-inner { gap: 16px; }
  .seo-trust-badge { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .seo-hero-actions { flex-direction: column; align-items: center; }
  .seo-btn { width: 100%; justify-content: center; max-width: 320px; }
  .seo-launch-actions { flex-direction: column; align-items: center; }
  .seo-card { padding: 22px; }
}
