/*
Theme Name: switalk
Theme URI: https://switalk.com
Author: Switalk Ltd
Author URI: https://switalk.com
Description: A minimal, modern WordPress theme for switalk — a unified inbox product for creators and solopreneurs. Built with clean typography, lots of whitespace, and a professional-yet-approachable design language. Zero stock photos. SVG illustrations only.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: switalk
Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
*/

/* ============================================
   switalk — Theme Styles
   Minimal, clean, professional. Think Linear.
   ============================================ */

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

:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --orange: #f97316;
  --orange-hover: #ea580c;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }

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

/* --- Container --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Logo --- */
.logo {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 28px;
  width: auto;
  display: block;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}

.nav a:hover,
.nav .current-menu-item > a,
.nav .current_page_item > a {
  color: var(--black);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* WordPress menu reset */
.nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li { list-style: none; }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 1px;
  transition: all 0.3s ease;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  padding: 10px 20px;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.9375rem;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--gray-300);
}

.btn-outline:hover {
  border-color: var(--black);
  background: var(--gray-50);
}

/* --- Hero --- */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto 60px;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--gray-500);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color var(--transition);
}

.hero-link:hover {
  color: var(--black);
}

.arrow-down {
  display: inline-block;
  transition: transform 0.3s ease;
}

.hero-link:hover .arrow-down {
  transform: translateY(3px);
}

/* --- Mockup --- */
.mockup-window {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 880px;
  margin: 0 auto;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-300);
}

.mockup-dots span:first-child { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:last-child { background: #28c840; }

.mockup-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-500);
  flex: 1;
  text-align: center;
  margin-right: 56px;
}

.mockup-body {
  display: flex;
  min-height: 360px;
}

.mockup-sidebar {
  width: 280px;
  border-right: 1px solid var(--gray-200);
  flex-shrink: 0;
}

.mockup-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  cursor: default;
  transition: background 0.15s;
}

.mockup-contact.active {
  background: var(--gray-50);
}

.contact-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.contact-avatar.small {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
}

.contact-info {
  flex: 1;
  min-width: 0;
}

.contact-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--black);
}

.contact-preview {
  font-size: 0.75rem;
  color: var(--gray-400);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-badge {
  background: var(--orange);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.chat-name {
  font-size: 0.8125rem;
  font-weight: 600;
}

.chat-channel {
  font-size: 0.6875rem;
  color: var(--gray-400);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.8125rem;
  line-height: 1.5;
  position: relative;
}

.chat-bubble.incoming {
  background: var(--gray-100);
  color: var(--black);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.outgoing {
  background: var(--orange);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.bubble-time {
  display: block;
  font-size: 0.625rem;
  margin-top: 4px;
  opacity: 0.6;
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

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

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  text-align: center;
}

.section-headline {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 48px;
  color: var(--black);
}

.section-text {
  font-size: 1.05rem;
  color: var(--gray-500);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* --- Problem Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--black);
}

.card-text {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
}

/* --- Channels --- */
.channels {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.channel-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.channel-icon span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-500);
}

/* --- Timeline mockup --- */
.timeline-mockup {
  max-width: 520px;
  margin: 0 auto;
}

.timeline-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}

.timeline-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.timeline-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.timeline-sub {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.timeline-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.timeline-meta {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 2px;
}

.timeline-meta strong {
  color: var(--gray-600);
}

.timeline-msg {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* --- Steps --- */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  max-width: 260px;
  padding: 0 16px;
}

.step-connector {
  display: flex;
  align-items: center;
  padding-top: 24px;
  flex-shrink: 0;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--black);
}

.step-text {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 920px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pricing-card.popular {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: white;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.pricing-price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
}

.pricing-price .price-amount {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--black);
}

.pricing-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.pricing-note {
  font-size: 0.95rem;
  color: var(--gray-500);
  text-align: center;
  margin-top: 32px;
  font-style: italic;
}

.pricing-features {
  text-align: left;
  margin-bottom: 28px;
}

.pricing-features li {
  font-size: 0.85rem;
  color: var(--gray-600);
  padding: 7px 0;
  border-bottom: 1px solid var(--gray-100);
  padding-left: 22px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pricing-card .btn {
  width: 100%;
}

/* --- Cost Comparison --- */
.compare-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 780px;
  margin: 0 auto;
}

.compare-stack {
  flex: 1;
  max-width: 380px;
}

.compare-item {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.compare-item:first-child {
  border-top: 1px solid var(--gray-200);
  border-radius: var(--radius) var(--radius) 0 0;
}

.compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.compare-service {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
}

.compare-tool {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-top: 2px;
}

.compare-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-600);
  white-space: nowrap;
}

.compare-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
}

.compare-total {
  background: var(--gray-100);
  padding: 16px 20px;
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid var(--gray-200);
  border-top: 2px solid var(--gray-300);
}

.compare-total-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
}

.compare-total-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gray-600);
  text-decoration: line-through;
  text-decoration-color: #ef4444;
  text-decoration-thickness: 2px;
}

.compare-total-price span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
  text-decoration: none;
}

.compare-vs {
  flex-shrink: 0;
}

.compare-switalk {
  text-align: center;
  flex: 0 0 auto;
  padding: 36px 32px;
  background: var(--white);
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.08), var(--shadow-lg);
}

.compare-switalk-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
}

.compare-switalk-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.compare-switalk-price span {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-400);
}

.compare-savings {
  font-size: 0.85rem;
  font-weight: 600;
  color: #16a34a;
}

.compare-footnote {
  font-size: 0.75rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 28px;
  line-height: 1.5;
  font-style: italic;
}

/* --- Footer SVG Logo --- */
.footer-logo-svg {
  display: block;
}

/* --- FAQ --- */
.faq-list {
  max-width: 640px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--gray-200);
}

.faq-item:first-child {
  border-top: 1px solid var(--gray-200);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--black);
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
  padding-bottom: 20px;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--black);
  text-align: center;
}

.cta-headline {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.cta-sub {
  font-size: 1.05rem;
  color: var(--gray-400);
  margin-bottom: 36px;
}

.waitlist-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 10px;
}

.form-input {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-700);
  border-radius: var(--radius-sm);
  background: var(--gray-800);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
}

.form-input::placeholder {
  color: var(--gray-500);
}

.form-input:focus {
  border-color: var(--orange);
}

.form-message {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 24px;
}

.form-message.success {
  color: #34d399;
}

.form-message.error {
  color: #f87171;
}

.cta-note {
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-top: 20px;
}

/* --- Footer --- */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 40px 24px 20px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--black);
}

/* WordPress footer menu reset */
.footer-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li { list-style: none; }

.footer-nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--black);
}

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

.footer-social a {
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-social a:hover {
  color: var(--black);
}

.footer-bottom {
  border-top: 1px solid var(--gray-200);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 0.75rem;
  color: var(--gray-400);
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-legal a:hover {
  color: var(--gray-600);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.15s;
}

.reveal-delay-2 {
  transition-delay: 0.3s;
}

/* ============================================
   BLOG & CONTENT PAGES
   ============================================ */

/* --- Archive / Blog Listing --- */
.archive-header {
  padding: 140px 0 60px;
  text-align: center;
}

.archive-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--black);
  margin-bottom: 12px;
}

.archive-description {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding-bottom: 80px;
}

.post-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.post-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-card-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--gray-100);
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.03);
}

.post-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
}

.post-card-image-placeholder svg {
  opacity: 0.3;
}

.post-card-body {
  padding: 24px;
}

.post-card-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.post-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 10px;
}

.post-card-title a {
  color: inherit;
  transition: color var(--transition);
}

.post-card-title a:hover {
  color: var(--orange);
}

.post-card-excerpt {
  font-size: 0.875rem;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray-400);
}

.post-card-readmore {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--orange);
  transition: color var(--transition);
}

.post-card-readmore:hover {
  color: var(--orange-hover);
}

/* --- Pagination --- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0 80px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.pagination a:hover {
  border-color: var(--black);
  color: var(--black);
}

.pagination .current {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 16px;
}

/* --- Single Post --- */
.single-header {
  padding: 140px 0 40px;
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.single-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.single-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 20px;
}

.single-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--gray-400);
}

.single-meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gray-300);
}

.single-featured-image {
  max-width: 880px;
  margin: 0 auto 48px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.single-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Post Content Typography --- */
.post-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 60px;
}

.post-content p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 24px;
}

.post-content h2 {
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--black);
  margin-top: 36px;
  margin-bottom: 12px;
  line-height: 1.35;
}

.post-content h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--black);
  margin-top: 28px;
  margin-bottom: 10px;
}

.post-content ul,
.post-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
  list-style: disc;
}

.post-content ol {
  list-style: decimal;
}

.post-content li {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 8px;
  list-style: inherit;
}

.post-content blockquote {
  margin: 32px 0;
  padding: 20px 24px;
  border-left: 3px solid var(--orange);
  background: var(--gray-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.post-content blockquote p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 0;
}

.post-content code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
  font-size: 0.875em;
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--orange-hover);
}

.post-content pre {
  margin: 28px 0;
  padding: 20px 24px;
  background: var(--gray-800);
  border-radius: var(--radius);
  overflow-x: auto;
}

.post-content pre code {
  background: none;
  color: var(--gray-200);
  padding: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.post-content img {
  border-radius: var(--radius);
  margin: 28px 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  font-size: 0.9rem;
}

.post-content table th,
.post-content table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.post-content table th {
  font-weight: 600;
  color: var(--black);
  background: var(--gray-50);
}

.post-content table td {
  color: var(--gray-600);
}

.post-content a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.post-content a:hover {
  color: var(--orange-hover);
}

.post-content figure {
  margin: 28px 0;
}

.post-content figcaption {
  font-size: 0.8125rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 10px;
}

/* --- Post CTA Banner --- */
.post-cta {
  background: var(--black);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.post-cta h3 {
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.post-cta p {
  font-size: 0.95rem;
  color: var(--gray-400);
  margin-bottom: 24px;
}

.post-cta .btn {
  display: inline-flex;
}

/* --- Post Navigation --- */
.post-navigation {
  max-width: 680px;
  margin: 0 auto 60px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.post-nav-link {
  padding: 20px 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.post-nav-link:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.post-nav-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 6px;
}

.post-nav-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  line-height: 1.4;
}

.post-nav-link.next {
  text-align: right;
}

/* --- Related Posts --- */
.related-posts {
  max-width: 1120px;
  margin: 0 auto;
  padding: 60px 24px 80px;
  border-top: 1px solid var(--gray-200);
}

.related-posts-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 28px;
  text-align: center;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* --- Page Template --- */
.page-header {
  padding: 140px 0 40px;
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.page-header h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--black);
}

.page-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* Inherit same typography from post-content */
.page-content p,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content ul,
.page-content ol,
.page-content li,
.page-content blockquote,
.page-content code,
.page-content pre,
.page-content img,
.page-content table,
.page-content th,
.page-content td,
.page-content a,
.page-content figure,
.page-content figcaption {
  /* All rules inherited via .post-content — we duplicate selectors */
}

.page-content p { font-size: 1.0625rem; line-height: 1.8; color: var(--gray-700); margin-bottom: 24px; }
.page-content h2 { font-size: 1.625rem; font-weight: 800; color: var(--black); letter-spacing: -0.02em; margin-top: 48px; margin-bottom: 16px; line-height: 1.3; }
.page-content h3 { font-size: 1.25rem; font-weight: 700; color: var(--black); margin-top: 36px; margin-bottom: 12px; }
.page-content h4 { font-size: 1.0625rem; font-weight: 700; color: var(--black); margin-top: 28px; margin-bottom: 10px; }
.page-content ul, .page-content ol { margin-bottom: 24px; padding-left: 24px; list-style: disc; }
.page-content ol { list-style: decimal; }
.page-content li { font-size: 1.0625rem; line-height: 1.8; color: var(--gray-700); margin-bottom: 8px; list-style: inherit; }
.page-content blockquote { margin: 32px 0; padding: 20px 24px; border-left: 3px solid var(--orange); background: var(--gray-50); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.page-content blockquote p { font-style: italic; color: var(--gray-600); margin-bottom: 0; }
.page-content a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.page-content a:hover { color: var(--orange-hover); }
.page-content img { border-radius: var(--radius); margin: 28px 0; }

/* --- 404 Page --- */
.error-404 {
  padding: 180px 0 120px;
  text-align: center;
}

.error-404-code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800;
  color: var(--gray-200);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
}

.error-404 h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 12px;
}

.error-404 p {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.error-404 .search-form {
  max-width: 400px;
  margin: 0 auto 24px;
}

/* --- Search Form --- */
.search-form {
  display: flex;
  gap: 10px;
}

.search-form .search-field {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--black);
  font-family: inherit;
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
}

.search-form .search-field:focus {
  border-color: var(--orange);
}

.search-form .search-submit {
  padding: 12px 20px;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition);
}

.search-form .search-submit:hover {
  background: var(--orange-hover);
}

/* --- Screen Reader Text (accessibility) --- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

/* --- WordPress specific --- */
.wp-caption { max-width: 100%; margin: 28px 0; }
.wp-caption img { border-radius: var(--radius); }
.wp-caption-text { font-size: 0.8125rem; color: var(--gray-400); text-align: center; margin-top: 10px; }
.aligncenter { display: block; margin: 28px auto; }
.alignleft { float: left; margin: 0 24px 24px 0; }
.alignright { float: right; margin: 0 0 24px 24px; }
.wp-block-image figcaption { font-size: 0.8125rem; color: var(--gray-400); text-align: center; margin-top: 10px; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 600px;
  }

  .related-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
  }

  .nav.open {
    display: flex;
  }

  .nav ul {
    flex-direction: column;
    gap: 20px;
  }

  .nav a {
    font-size: 1rem;
  }

  .mobile-toggle {
    display: flex;
  }

  .header-actions .btn {
    display: none;
  }

  .hero {
    padding: 110px 0 60px;
  }

  .hero-headline br {
    display: none;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .mockup-sidebar {
    display: none;
  }

  .mockup-body {
    min-height: 260px;
  }

  .channels {
    gap: 24px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .step-connector {
    display: none;
  }

  .step {
    max-width: 320px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .compare-grid {
    flex-direction: column;
    gap: 24px;
  }

  .compare-stack {
    max-width: 100%;
  }

  .compare-vs {
    transform: rotate(90deg);
  }

  .compare-switalk {
    width: 100%;
    max-width: 380px;
  }

  .section-headline br {
    display: none;
  }

  .form-group {
    flex-direction: column;
  }

  .form-group .btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links,
  .footer-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Blog responsive */
  .posts-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .post-navigation {
    grid-template-columns: 1fr;
  }

  .post-nav-link.next {
    text-align: left;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .post-cta {
    padding: 36px 24px;
    margin-left: 24px;
    margin-right: 24px;
  }

  .single-header {
    padding: 110px 24px 32px;
  }

  .archive-header {
    padding: 110px 24px 48px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 72px 0;
  }

  .hero-headline {
    font-size: 1.75rem;
  }

  .section-headline {
    font-size: 1.375rem;
  }

  .mockup-window {
    border-radius: var(--radius);
  }

  .channels {
    gap: 16px;
  }

  .channel-icon svg {
    width: 24px;
    height: 24px;
  }

  .channel-icon span {
    font-size: 0.6875rem;
  }

  .post-content,
  .page-content {
    padding: 0 16px 60px;
  }
}
