@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --white:   #FFFFFF;
  --light:   #DCE1EB;
  --accent:  #D3431F;
  --navy:    #002147;
  --black:   #000000;
  --muted:   #6b7280;
  --bg:      #FFFFFF;
  --border:  #e8e8e8;
  --sage:    #4a5c4a;
  --sage-hover: #3a4a3a;
  --radius:  4px;
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--black);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ─────────────────────────────────────────────── */

.nav {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 1rem;
}

.nav-brand {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo {
  height: 34px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-brand {
  gap: 0.65rem;
}

.nav-brand-name {
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.78);
  font-size: 0.8rem;
  font-weight: 400;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  transition: all 0.15s;
  letter-spacing: 0.01em;
  position: relative;
}
.nav-dropdown-btn:hover,
.nav-dropdown:hover .nav-dropdown-btn {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-dropdown-btn::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.14);
  min-width: 210px;
  z-index: 200;
  overflow: hidden;
  padding: 0.5rem 0;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  color: var(--black) !important;
  text-decoration: none;
  font-weight: 400;
  transition: background 0.15s;
}
.nav-dropdown-menu a:hover {
  background: var(--light);
  color: var(--navy) !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex: 1;
  justify-content: center;
  flex-wrap: nowrap;
}

.nav-links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 400;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  transition: color 0.15s;
  padding: 0.4rem 0.65rem;
  border-radius: 4px;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.08); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-right a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 400;
  font-family: var(--font-body);
  transition: color 0.15s;
  white-space: nowrap;
}
.nav-right a:hover { color: var(--white); }

.nav-logout {
  background: none;
  border: none;
  color: rgba(255,255,255,0.78);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 400;
  font-family: var(--font-body);
  transition: color 0.15s;
  padding: 0;
}
.nav-logout:hover { color: var(--white); }

/* old nav-left compat */
.nav-left { display: none; }

/* Login button */
.nav-login-btn {
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.38rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 5px;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-login-btn:hover { background: rgba(255,255,255,0.1); color: var(--white) !important; }

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 0.5rem;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy);
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  z-index: 99;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}
.nav-mobile.open { display: flex; }
.nav-mobile a, .nav-mobile button {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.15s;
  font-family: var(--font-body);
}
.nav-mobile a:hover { background: rgba(255,255,255,0.06); color: var(--white); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-social-hide { display: none; }
}

@media (max-width: 480px) {
  .nav-brand-name { display: none; }
  .nav-logo { height: 30px; }
}

/* ── HERO ────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 3rem 5rem;
  gap: 3rem;
}

.hero-text { max-width: 560px; }

.hero-eyebrow {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  display: block;
}

.hero-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 3.7rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 1.75rem;
}

.hero-cta-link {
  display: inline-block;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 1.75rem;
}

.btn-sage {
  display: inline-block;
  background: var(--sage);
  color: var(--white);
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 400;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.15s;
  letter-spacing: 0.01em;
}
.btn-sage:hover { background: var(--sage-hover); }

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

/* ── SECTION ─────────────────────────────────────────── */

.section {
  padding: 5rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-bottom: 2.5rem;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 3rem;
}

/* ── STATS STRIP ─────────────────────────────────────── */

.stats-wrap {
  padding: 3rem 2.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 900px;
  margin: 0 auto;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem;
  background: var(--white);
  text-align: center;
  gap: 0.5rem;
  transition: background 0.15s;
}
.stat-item:hover { background: #f9fafb; }

.stat-icon { font-size: 1.75rem; color: var(--navy); }
.stat-icon-svg { width: 32px; height: 32px; color: var(--navy); opacity: 0.75; margin-bottom: 0.1rem; }

.stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 400;
}

@media (max-width: 640px) {
  .stats-wrap { padding: 2rem 1.25rem; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── FEATURED SECTION ────────────────────────────────── */

.featured-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 6rem 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.featured-image {
  display: flex;
  justify-content: center;
}

.featured-image img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.featured-image-placeholder {
  width: 100%;
  aspect-ratio: 9/16;
  max-height: 460px;
  background: #6B8678;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
}
.featured-image-placeholder svg { width: 56px; height: 56px; }

.featured-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
}

.featured-text h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.featured-text p {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.featured-teaches {
  margin-bottom: 2rem;
}

.featured-teaches strong {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--black);
  display: block;
  margin-bottom: 0.6rem;
}

.featured-teaches ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.featured-teaches li {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.featured-teaches li::before { content: '·'; color: var(--accent); font-weight: 700; }

@media (max-width: 768px) {
  .featured-section { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.5rem; }
}

/* ── CAROUSEL ────────────────────────────────────────── */

.carousel-outer {
  border-top: 1px solid var(--border);
}

.carousel-section {
  padding: 4rem 0;
  overflow: hidden;
  max-width: 1100px;
  margin: 0 auto;
}

.carousel-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 0 2.5rem;
  margin-bottom: 2rem;
}

.carousel-header h2 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.01em;
  margin: 0;
}

.carousel-nav { display: flex; gap: 0.5rem; }

.carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--black);
  transition: all 0.15s;
}
.carousel-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }

.carousel-track-wrap {
  overflow: hidden;
  padding: 0 2.5rem;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.35s ease;
}

.carousel-card {
  flex: 0 0 280px;
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
  background: var(--white);
  overflow: hidden;
}
.carousel-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.carousel-card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #6B8678;
}

.carousel-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s;
}
.carousel-card:hover .carousel-card-img img { transform: scale(1.04); }

.carousel-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: var(--light);
}
.carousel-card-img-placeholder svg { width: 36px; height: 36px; }

.carousel-card-type-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
}

.carousel-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}

.carousel-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
}

.carousel-card p {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.5;
  flex: 1;
}

.carousel-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem; border-top: 1px solid var(--border);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: auto;
}

/* ── TAG FILTER CHIPS ────────────────────────────────── */

.tag-filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.tag-filter-chip:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.tag-filter-chip.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ── CATEGORY TABS ───────────────────────────────────── */

.category-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: var(--font-body);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: -1px;
}
.tab:hover { color: var(--black); }
.tab.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

/* ── CONTENT GRID ────────────────────────────────────── */

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.post-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.15s, transform 0.15s;
}
.post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); opacity: 1; }

.post-card-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.post-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem; border-top: 1px solid var(--border);
}

.post-card-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }

/* ── BADGES ──────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
}

.badge-free     { background: #6B8678; color: #fff; }
.badge-premium  { background: #fff3e0; color: #b45309; }
.badge-draft    { background: #f5f5f5; color: #888; }

.badge-type-rule            { background: #fef2f2; color: #991b1b; }
.badge-type-practice-plan   { background: #f0fdf4; color: #166534; }
.badge-type-drill           { background: #eff6ff; color: #1d4ed8; }
.badge-type-technique       { background: #f5f3ff; color: #6d28d9; }
.badge-type-match-breakdown  { background: #fff7ed; color: #9a3412; }
.badge-type-blog             { background: #f9fafb; color: #374151; }
.badge-type-fundamentals     { background: #ecfdf5; color: #065f46; }
/* legacy */
.badge-type-play     { background: #f5f3ff; color: #6d28d9; }
.badge-type-training { background: #f0fdf4; color: #166534; }
.badge-type-article  { background: #f9fafb; color: #374151; }

.tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  background: #f5f5f5;
  color: var(--muted);
  font-weight: 400;
}

/* ── PAYWALL ─────────────────────────────────────────── */

.paywall {
  margin-top: 3rem;
  padding: 3rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  background: var(--white);
}

.paywall-lock { display: flex; justify-content: center; color: var(--muted); margin-bottom: 1rem; }
.paywall-lock svg { width: 32px; height: 32px; }

.paywall h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.paywall p { color: var(--muted); margin-bottom: 2rem; font-size: 0.95rem; }

.paywall-btns { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

/* ── PRICING ─────────────────────────────────────────── */

.pricing-hero {
  padding: 5rem 2.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 0.75rem;
}

.pricing-hero p { color: var(--muted); font-size: 1rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--white);
}

.pricing-card.featured { border-color: var(--black); border-width: 2px; position: relative; }
.pricing-card.pricing-current-plan { box-shadow: 0 0 0 3px var(--accent); }
.pricing-current-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.75rem;
  border-radius: 2px;
  white-space: nowrap;
}
.pricing-current-label-featured { background: var(--accent); }

.pricing-featured-label {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--black);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.75rem;
  border-radius: 2px;
  white-space: nowrap;
}

.pricing-plan {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.pricing-price { display: flex; align-items: baseline; gap: 0.2rem; }
.pricing-price .amount {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.03em;
}
.pricing-price .currency { font-size: 1.1rem; color: var(--muted); font-weight: 400; }
.pricing-price .period   { font-size: 0.85rem; color: var(--muted); }

.pricing-desc { font-size: 0.85rem; color: var(--muted); }

.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--black);
  font-weight: 300;
}
.pricing-features li::before { content: '✓'; color: var(--sage); font-weight: 600; flex-shrink: 0; }

.pricing-cta { margin-top: auto; }

.btn-plan {
  display: block;
  text-align: center;
  padding: 0.8rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  letter-spacing: 0.01em;
}
.btn-plan-primary { background: var(--black); color: var(--white); }
.btn-plan-primary:hover { background: #222; }
.btn-plan-outline { border: 1px solid var(--black); color: var(--black); background: transparent; }
.btn-plan-outline:hover { background: var(--black); color: var(--white); }

.pricing-guarantee {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.pricing-guarantee svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── DASHBOARD ───────────────────────────────────────── */

.dashboard-header {
  padding: 3.5rem 2.5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.dashboard-header h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--black);
}
.dashboard-header p { color: var(--muted); font-size: 0.9rem; margin-top: 0.25rem; }

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

.dash-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
}

.dash-card-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.dash-card-value {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--black);
}

.status-active { color: var(--sage); }
.status-inactive { color: var(--accent); }
.dash-card-sub { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

.upgrade-banner {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.upgrade-banner h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}
.upgrade-banner p { color: var(--muted); font-size: 0.88rem; }

/* ── POST ────────────────────────────────────────────── */

.post-hero {
  padding: 3.5rem 2.5rem 2rem;
  max-width: 760px;
  margin: 0 auto;
}

.post-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.post-hero a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
}
.post-hero a:hover { color: var(--black); }

.post-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.1em;
  letter-spacing: -0.02em;
}

.post-body {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 2.5rem 5rem;
}

.post-body h2, .post-body h3, .post-body h4 {
  font-family: var(--font-heading);
  color: var(--black);
  margin: 2rem 0 0.6rem;
  letter-spacing: -0.01em;
}
.post-body h2 { font-size: 1.4rem; font-weight: 700; }
.post-body h3 { font-size: 1.15rem; font-weight: 600; }

.post-body p { margin-bottom: 1.1rem; color: var(--black); line-height: 1.75; font-weight: 300; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
.post-body li { margin-bottom: 0.4rem; line-height: 1.75; font-weight: 300; }
.post-body strong { font-weight: 600; }
.post-body img { max-width: 100%; height: auto; border-radius: 6px; display: block; margin: 1.5rem 0; }
.post-body code { background: #f5f5f5; padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.85em; }
.post-body pre { background: #1a1a1a; color: #e8e8e8; padding: 1.25rem; border-radius: 6px; overflow-x: auto; margin-bottom: 1.1rem; }
.post-body blockquote { border-left: 3px solid var(--accent); padding: 0.5rem 1.25rem; background: #fafafa; margin-bottom: 1.1rem; color: var(--muted); font-style: italic; font-weight: 300; }
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.1rem; font-size: 0.9rem; }
.post-body th { background: #f5f5f5; text-align: left; padding: 0.6rem 0.85rem; font-weight: 600; border: 1px solid var(--border); }
.post-body td { padding: 0.6rem 0.85rem; border: 1px solid var(--border); font-weight: 300; }

/* ── AUTH ────────────────────────────────────────────── */

.auth-page {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--white);
}

.auth-card {
  width: 100%;
  max-width: 400px;
}

.auth-card .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  margin-bottom: 2.5rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.auth-card h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.auth-card .subtitle {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 300;
}

/* ── FORMS ───────────────────────────────────────────── */

.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }

label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.01em;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid #d0d0d0;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.15s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--black);
}

textarea { min-height: 280px; font-family: 'Menlo', monospace; font-size: 0.85rem; resize: vertical; }

.checkbox-row { display: flex; align-items: center; gap: 0.6rem; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; font-weight: 400; }

.btn-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--black);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s;
  margin-top: 0.5rem;
  letter-spacing: 0.01em;
}
.btn-submit:hover { background: #222; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--sage);
  color: var(--white);
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--sage-hover); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--black);
  padding: 0.8rem 1.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  border: 1px solid var(--border);
  font-family: var(--font-body);
  transition: all 0.15s;
}
.btn-secondary:hover { border-color: var(--black); }

.error-msg {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

/* ── ADMIN ───────────────────────────────────────────── */

.admin-nav {
  background: var(--navy);
  color: var(--white);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  font-size: 0.85rem;
}
.admin-nav a { color: rgba(255,255,255,0.75); text-decoration: none; }
.admin-nav a:hover { color: var(--white); }
.admin-nav .brand { font-family: var(--font-heading); font-weight: 600; color: var(--white); font-size: 0.9rem; }

.admin-main { max-width: 960px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; }

.admin-main h1 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.btn-admin {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--black);
  color: var(--white);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-admin:hover { background: #222; }
.btn-admin-red { background: transparent; color: #991b1b; font-size: 0.82rem; padding: 0; border: none; cursor: pointer; font-weight: 500; font-family: var(--font-body); }
.btn-admin-red:hover { text-decoration: underline; }

table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; margin-top: 1rem; }
th { background: #fafafa; text-align: left; padding: 0.65rem 1rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); border-bottom: 1px solid var(--border); }
td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.88rem; vertical-align: middle; font-weight: 300; }
tr:last-child td { border-bottom: none; }

.actions { display: flex; align-items: center; gap: 0.75rem; }
.actions a { font-size: 0.82rem; font-weight: 500; color: var(--black); text-decoration: underline; text-underline-offset: 2px; }
.actions a:hover { opacity: 0.6; }

/* ── EMPTY STATE ─────────────────────────────────────── */

.empty-state { text-align: center; padding: 5rem 2rem; color: var(--muted); }
.empty-state .empty-icon { display: flex; justify-content: center; margin-bottom: 1rem; }
.empty-state .empty-icon svg { width: 40px; height: 40px; }
.empty-state p { font-size: 0.9rem; }

/* ── FOOTER ──────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 3.5rem 2.5rem 2rem;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
}

.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--black);
  margin: 0 0 0.25rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--black); }

.footer-col-brand { gap: 0.5rem; }

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin: 0;
}

.footer-col-brand p {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
  margin: 0;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 0.4rem;
}

.footer-socials a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
  display: flex;
  align-items: center;
}
.footer-socials a:hover { color: var(--black); }

.footer-copy {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  padding-top: 1.75rem;
  margin-top: 1.75rem;
  border-top: 1px solid var(--border);
  grid-column: 1 / -1;
}

/* nav social icons */
.nav-social {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: color 0.15s;
}
.nav-social:hover { color: var(--white); }

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-col-brand { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-col-brand { align-items: center; }
  .footer-socials { justify-content: center; }
}

/* ── UTILS ───────────────────────────────────────────── */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.text-muted { color: var(--muted); font-size: 0.85rem; }
.text-center { text-align: center; }

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 2.5rem 1.5rem 3rem; gap: 2rem; }
  .hero-image { order: 1; }
  .hero-image img { max-height: none; width: 85%; margin: 0 auto; }
  .nav { grid-template-columns: auto 1fr auto; padding: 0 1.25rem; }
  .nav-left { gap: 1rem; }
  .section { padding: 3rem 1.5rem; }
  .content-grid { grid-template-columns: 1fr; }
}
