/* ============================================================
   VibeSheets — Design System Stylesheet
   ============================================================ */

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

/* ============================================================
   CSS Custom Properties
   ============================================================ */
:root {
  --primary:        #049C5B;
  --primary-dark:   #037A47;
  --primary-light:  #ECFDF5;
  --primary-hover:  #038850;
  --accent:         #0D9488;
  --accent-light:   #D1FAE5;
  --text:           #111827;
  --text-muted:     #6B7280;
  --text-light:     #9CA3AF;
  --border:         #E5E7EB;
  --border-dark:    #D1D5DB;
  --bg:             #FFFFFF;
  --bg-alt:         #F9FAFB;
  --bg-section:     #F3F4F6;
  --shadow-sm:      0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow:         0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md:      0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg:      0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
  --radius:         8px;
  --radius-lg:      12px;
  --radius-xl:      16px;
  --transition:     150ms ease;
  --max-width:      1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  padding-top: 64px; /* offset fixed nav */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
}

/* ============================================================
   Typography Scale
   ============================================================ */
.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }
.text-2xl  { font-size: 1.5rem; }
.text-3xl  { font-size: 1.875rem; }
.text-4xl  { font-size: 2.25rem; }

.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }

.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }

/* ============================================================
   Layout
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-sm {
  padding-top: 48px;
  padding-bottom: 48px;
}

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

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

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

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

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

/* ============================================================
   Navigation
   ============================================================ */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}

.nav-wrapper.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

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

.nav-logo:hover {
  opacity: 0.88;
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  font-size: 0.875rem;
  padding: 8px 18px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  transition: background-color var(--transition);
}

.hamburger:hover {
  background-color: var(--bg-alt);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 24px 20px;
  gap: 4px;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu a:hover {
  color: var(--text);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), box-shadow var(--transition),
              transform var(--transition);
  border: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1.4;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--primary);
  color: #fff;
  padding: 11px 20px;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #fff;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  padding: 11px 20px;
}

.btn-secondary:hover {
  background-color: var(--primary-light);
}

.btn-accent {
  background-color: var(--accent);
  color: #fff;
  padding: 11px 20px;
}

.btn-accent:hover {
  background-color: #047857;
  color: #fff;
}

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

.btn-sm {
  font-size: 0.8125rem;
  padding: 7px 14px;
  font-weight: 600;
}

.btn-full {
  width: 100%;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-hover {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), border-color var(--transition),
              transform 0.2s ease;
}

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

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background-color: var(--bg);
  padding-top: 96px;
  padding-bottom: 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 50%, var(--accent) 100%);
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.03em;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  line-height: 1.7;
}

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

.hero-meta {
  font-size: 0.8125rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-meta .dot {
  width: 3px;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 50%;
  flex-shrink: 0;
}

/* ============================================================
   Spreadsheet Preview Component
   ============================================================ */
.spreadsheet-preview-wrapper {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  background-color: var(--bg);
  font-family: 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', monospace;
}

.spreadsheet-toolbar {
  background-color: #F1F3F5;
  border-bottom: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.toolbar-dots span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.toolbar-dot-red    { background-color: #FF5F57; }
.toolbar-dot-yellow { background-color: #FEBC2E; }
.toolbar-dot-green  { background-color: #28C840; }

.toolbar-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

.spreadsheet-scroll {
  overflow-x: auto;
  max-height: 320px;
  overflow-y: auto;
}

.spreadsheet-table {
  border-collapse: collapse;
  min-width: 100%;
  font-size: 0.75rem;
  font-family: 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', monospace;
}

.spreadsheet-table .col-header-row th {
  background-color: #F1F3F5;
  color: var(--text-light);
  border: 1px solid #E2E4E7;
  text-align: center;
  padding: 4px 8px;
  font-weight: 500;
  position: sticky;
  top: 0;
  z-index: 1;
  font-family: 'Inter', sans-serif;
}

.spreadsheet-table .row-num {
  background-color: #F1F3F5;
  color: var(--text-light);
  border: 1px solid #E2E4E7;
  text-align: center;
  padding: 4px 8px;
  min-width: 40px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  position: sticky;
  left: 0;
  z-index: 1;
}

.spreadsheet-table .data-header td {
  background-color: var(--primary);
  color: #fff;
  font-weight: 600;
  padding: 6px 12px;
  border: 1px solid var(--primary-dark);
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.spreadsheet-table td {
  border: 1px solid #E2E4E7;
  padding: 5px 12px;
  white-space: nowrap;
  font-family: 'Menlo', 'Monaco', 'Consolas', monospace;
}

.spreadsheet-table .example-row:nth-child(even) td:not(.row-num) {
  background-color: #F9FAFB;
}

/* Status / badge cells */
.cell-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: 'Inter', sans-serif;
}

.cell-status-active    { background-color: #D1FAE5; color: #065F46; }
.cell-status-pending   { background-color: #FEF3C7; color: #92400E; }
.cell-status-prospect  { background-color: #DBEAFE; color: #1E40AF; }
.cell-status-completed { background-color: #F3F4F6; color: #374151; }
.cell-status-inactive  { background-color: #F3F4F6; color: #6B7280; }
.cell-status-high      { background-color: #FEE2E2; color: #991B1B; }
.cell-status-medium    { background-color: #FEF3C7; color: #92400E; }
.cell-status-low       { background-color: #D1FAE5; color: #065F46; }
.cell-status-planning  { background-color: #DBEAFE; color: #1E40AF; }
.cell-status-inprogress{ background-color: #FEF3C7; color: #92400E; }
.cell-status-onhold    { background-color: #F3E8FF; color: #6D28D9; }
.cell-status-paid      { background-color: #D1FAE5; color: #065F46; }
.cell-status-overdue   { background-color: #FEE2E2; color: #991B1B; }
.cell-status-draft     { background-color: #F3F4F6; color: #374151; }

/* Sheet Tabs */
.sheet-tabs {
  background-color: #F1F3F5;
  border-top: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
}

.sheet-tab {
  padding: 6px 16px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-bottom: none;
  border-left: none;
  font-family: 'Inter', sans-serif;
  transition: background-color var(--transition), color var(--transition);
  user-select: none;
}

.sheet-tab:hover {
  background-color: var(--bg);
}

.sheet-tab.active {
  background-color: var(--bg);
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  font-weight: 600;
}

/* Tab panels for preview section */
.preview-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.preview-tab-btn {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
  font-family: 'Inter', sans-serif;
}

.preview-tab-btn:hover {
  color: var(--text);
}

.preview-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.sheet-panel {
  display: none;
}

.sheet-panel.active {
  display: block;
}

/* ============================================================
   Products Grid
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}

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

.product-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.product-card.featured:hover {
  box-shadow: var(--shadow-lg);
}

.featured-label {
  position: absolute;
  top: -1px;
  right: 24px;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  padding: 4px 12px;
  border-radius: 0 0 6px 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-card-header {
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.product-card.featured .product-card-header {
  background-color: var(--primary-light);
}

.product-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 4px;
}

.product-card.featured .product-card-tag {
  background-color: rgba(255,255,255,0.7);
}

.product-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 8px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.product-card-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-top: 8px;
  letter-spacing: -0.02em;
  line-height: 1;
}

.product-card-price sup {
  font-size: 1rem;
  vertical-align: top;
  margin-top: 6px;
  font-weight: 700;
}

.product-card-price-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.product-card-body {
  padding: 20px 24px;
  flex: 1;
}

.product-card-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
  line-height: 1.65;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 5px 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li .check-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  color: var(--accent);
}

.feature-list-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 12px;
  padding: 8px 12px;
  background-color: var(--bg-alt);
  border-radius: var(--radius);
  border-left: 3px solid var(--border-dark);
  line-height: 1.5;
}

.product-card-footer {
  padding: 0 24px 24px;
  margin-top: auto;
}

.product-card-footer .download-note {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 8px;
  text-align: center;
}

/* ============================================================
   How It Works — Steps
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--border) 0%, var(--primary-light) 50%, var(--border) 100%);
  z-index: 0;
}

.step {
  text-align: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--primary-light);
}

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

.step-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================================
   Features Grid
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: 24px;
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--transition), transform 0.2s ease;
}

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

.feature-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
}

.feature-title {
  font-weight: 700;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  color: var(--text);
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============================================================
   Section Headers
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* ============================================================
   FAQ Accordion
   ============================================================ */
.faq-list {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

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

.faq-question:hover {
  color: var(--primary);
}

.faq-icon {
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease;
  width: 20px;
  text-align: center;
}

.faq-question.open .faq-icon,
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  color: var(--primary);
}

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

.faq-answer.open,
.faq-item.is-open .faq-answer {
  max-height: 800px;
}

.faq-answer p {
  padding-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-answer ul {
  padding-left: 20px;
  padding-bottom: 16px;
  list-style: disc;
}

.faq-answer li {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 4px;
}

.faq-link {
  text-align: center;
  margin-top: 32px;
}

.faq-link a {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.faq-link a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background-color: #111827;
  color: #fff;
  padding-top: 64px;
  padding-bottom: 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 260px;
}

.footer-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.footer-logo img {
  height: 28px;
  width: auto;
  max-width: 150px;
  display: block;
  object-fit: contain;
}

.footer-tagline {
  color: #9CA3AF;
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer-links-columns {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-links-group h4 {
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 16px;
  letter-spacing: 0.01em;
}

.footer-links-group a {
  color: #9CA3AF;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 8px;
  transition: color var(--transition);
}

.footer-links-group a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: #6B7280;
  font-size: 0.8125rem;
  line-height: 1.5;
}

/* ============================================================
   Product Detail Pages
   ============================================================ */
.product-hero {
  padding-top: 48px;
  padding-bottom: 64px;
  background-color: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.product-hero-breadcrumb {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 32px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.product-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.product-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.product-description {
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.75;
  font-size: 1.0125rem;
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.product-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.product-price sup {
  font-size: 1.25rem;
  vertical-align: top;
  margin-top: 8px;
  font-weight: 700;
}

.price-note {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.purchase-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.product-cta-group .btn {
  align-self: stretch;
}

.product-policy-link {
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
  width: 100%;
}

.product-policy-link a {
  color: var(--primary);
  transition: color var(--transition);
}

.product-policy-link a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Product Detail Body */
.product-detail-body {
  padding-top: 64px;
  padding-bottom: 64px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

.detail-section {
  margin-bottom: 40px;
}

.detail-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.detail-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.includes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.includes-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  line-height: 1.5;
}

.includes-list li:last-child {
  border-bottom: none;
}

.includes-list li:nth-child(even) {
  background-color: var(--bg-alt);
}

.includes-list li .check-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 1px;
}

.use-case-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.use-case-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.use-case-list li:last-child {
  border-bottom: none;
}

.use-case-list li::before {
  content: '→';
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}

.how-to-list {
  list-style: none;
  padding: 0;
  counter-reset: steps;
}

.how-to-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 10px 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  counter-increment: steps;
}

.how-to-list li:last-child {
  border-bottom: none;
}

.how-to-list li::before {
  content: counter(steps);
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* Product Notice */
.product-notice {
  border-left: 4px solid var(--accent);
  background-color: var(--accent-light);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.875rem;
  color: #065F46;
  line-height: 1.6;
  margin-bottom: 24px;
}

.product-notice.warning {
  border-left-color: #F59E0B;
  background-color: #FEF3C7;
  color: #92400E;
}

.product-notice strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}

/* Product Summary Sidebar */
.product-summary-box {
  border: 1px solid var(--border);
  background-color: var(--bg-alt);
  padding: 24px;
  border-radius: var(--radius-lg);
  position: sticky;
  top: 80px;
}

.summary-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--text);
}

.summary-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}

.summary-price sup {
  font-size: 0.9rem;
  vertical-align: top;
  margin-top: 5px;
  font-weight: 700;
}

.summary-payment-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.summary-divider {
  height: 1px;
  background-color: var(--border);
  margin: 16px 0;
}

.summary-files-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.summary-file-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 6px 0;
}

.file-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #D1FAE5;
  color: #065F46;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.summary-digital-notice {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.summary-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.summary-links a {
  color: var(--primary);
  transition: color var(--transition);
}

.summary-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.summary-links .sep {
  color: var(--text-light);
}

/* Value comparison */
.value-comparison {
  background-color: var(--primary-light);
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
}

.value-comparison h3 {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.value-comparison p {
  font-size: 0.9rem;
  color: var(--primary);
  line-height: 1.6;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.breadcrumb .sep {
  color: var(--text-light);
}

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-primary {
  background-color: var(--primary-light);
  color: var(--primary);
}

.badge-accent {
  background-color: var(--accent-light);
  color: #065F46;
}

.badge-neutral {
  background-color: var(--bg-section);
  color: var(--text-muted);
}

/* ============================================================
   Utilities
   ============================================================ */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }

.text-center { text-align: center; }

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================
   Responsive — Mobile First
   ============================================================ */

/* Tablet and up (768px+) */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-right .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid::before {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-links-columns {
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .product-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-summary-box {
    position: static;
  }
}

/* Mobile (< 480px) */
@media (max-width: 480px) {
  .nav-logo img {
    height: 28px;
    max-width: 135px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Large (1024px+) */
@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Locked Checkout / Payment Paused Styles --- */
.btn-locked {
  background-color: #9CA3AF !important;
  color: #FFFFFF !important;
  border-color: #9CA3AF !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
  opacity: 0.85;
}

.btn-locked:hover {
  background-color: #9CA3AF !important;
  color: #FFFFFF !important;
}

.locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
