/* ==========================================================================
   SponsorRateKit — Modern Creator-Economy Editorial Stylesheet
   Palette: Warm Editorial White (#fffbfa), Coral-Rose (#e11d48), Plum (#4c1d95)
   Zero External Dependencies • Responsive • Print-Ready Rate Card
   ========================================================================== */

:root {
  --bg-page: #fffbfa;
  --bg-surface: #ffffff;
  --bg-subtle: #fdf4f5;
  --bg-plum-tint: #f6f2fc;
  --bg-coral-tint: #fff1f3;

  --text-main: #181024;
  --text-secondary: #4a3f5c;
  --text-muted: #756a87;

  --coral: #e11d48;
  --coral-hover: #be123c;
  --coral-soft: #ffe4e8;
  --coral-border: #fda4af;

  --plum: #4c1d95;
  --plum-hover: #3b0764;
  --plum-soft: #ede9fe;
  --plum-border: #c4b5fd;

  --emerald: #059669;
  --emerald-soft: #ecfdf5;

  --border-light: #ece3eb;
  --border-strong: #dfd1df;

  --shadow-xs: 0 1px 2px rgba(24, 16, 36, 0.04);
  --shadow-sm: 0 4px 12px rgba(24, 16, 36, 0.05);
  --shadow-md: 0 12px 30px -6px rgba(76, 29, 149, 0.09), 0 4px 12px -2px rgba(225, 29, 72, 0.05);
  --shadow-lg: 0 20px 44px -10px rgba(76, 29, 149, 0.14);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --container-max: 1180px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(circle at 12% 0%, rgba(225, 29, 72, 0.055) 0%, transparent 38%),
    radial-gradient(circle at 88% 4%, rgba(76, 29, 149, 0.065) 0%, transparent 42%);
  background-repeat: no-repeat;
  color: var(--text-main);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: inline-block;
  vertical-align: middle;
}

a {
  color: var(--coral);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--coral-hover);
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

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

/* ==========================================================================
   SwiftKitHub Global Top Bar & Internal Linking Mesh
   ========================================================================== */
.skh-topbar {
  background: #181024;
  color: #cfc5df;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skh-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  min-height: 38px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.skh-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #9e91b5;
  line-height: 1.4;
}

.skh-breadcrumb a {
  color: #f3eefc;
  font-weight: 600;
  text-decoration: none;
}

.skh-breadcrumb a:hover {
  color: #fda4af;
  text-decoration: underline;
}

.skh-breadcrumb span {
  color: #c5bad8;
  font-weight: 500;
}

.skh-all-tools {
  color: #fda4af;
  font-weight: 700;
  font-size: 0.79rem;
  white-space: nowrap;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(225, 29, 72, 0.16);
  border: 1px solid rgba(253, 164, 175, 0.28);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.skh-all-tools:hover {
  background: var(--coral);
  color: #ffffff;
}

.related-section {
  padding: 44px 0 48px;
  border-top: 1px solid var(--border-light);
  background: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-subtle) 100%);
}

.related-group-label {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--plum);
  margin: 24px 0 12px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 14px;
}

.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  color: var(--text-main);
  text-decoration: none;
  box-shadow: var(--shadow-xs);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: var(--coral-border);
  box-shadow: var(--shadow-sm);
  color: var(--text-main);
}

.related-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.32;
}

.related-card:hover .related-card-title {
  color: var(--coral);
}

.related-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.48;
}

.related-card-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--plum);
  margin-top: 2px;
}

/* ==========================================================================
   Sticky Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 251, 250, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.025em;
  color: var(--text-main);
  text-decoration: none;
}

.brand-logo:hover {
  color: var(--text-main);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--coral) 0%, var(--plum) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.25);
  flex-shrink: 0;
}

.brand-accent {
  color: var(--coral);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: background-color 0.16s ease, color 0.16s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--coral);
  background-color: var(--bg-coral-tint);
}

.nav-cta {
  background: var(--plum) !important;
  color: #ffffff !important;
  padding: 7px 14px !important;
  border-radius: var(--radius-pill) !important;
}

.nav-cta:hover {
  background: var(--plum-hover) !important;
  color: #ffffff !important;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: var(--text-main);
  cursor: pointer;
}

/* ==========================================================================
   AdSense Slots (Hidden unless configured or previewed)
   ========================================================================== */
.ad-slot {
  display: none;
  margin: 18px auto;
  max-width: var(--container-max);
  text-align: center;
}

.ad-slot.ad-slot--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
  border: 1.5px dashed var(--plum-border);
  border-radius: var(--radius-md);
  background: var(--bg-plum-tint);
  color: var(--plum);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 14px 20px;
}

.ad-slot.ad-slot--live {
  display: block;
  min-height: 90px;
  padding: 8px 0;
}

/* ==========================================================================
   Hero Section (Compact & Action-First Above the Fold)
   ========================================================================== */
.hero-section {
  padding: 32px 0 22px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--bg-coral-tint), var(--bg-plum-tint));
  border: 1px solid var(--coral-border);
  color: var(--plum);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.hero-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.hero-title {
  margin: 0 auto 12px;
  max-width: 860px;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.16;
  font-weight: 850;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.hero-title .text-gradient {
  background: linear-gradient(125deg, var(--coral) 10%, var(--plum) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  margin: 0 auto 18px;
  max-width: 700px;
  font-size: 1.04rem;
  color: var(--text-secondary);
}

/* Quick Demo Scenario Pills */
.preset-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.preset-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-right: 4px;
}

.preset-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.16s ease;
}

.preset-chip:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--bg-coral-tint);
}

.preset-chip.active {
  background: var(--plum);
  border-color: var(--plum);
  color: #ffffff;
}

/* ==========================================================================
   Main Calculator Workspace
   ========================================================================== */
.calculator-section {
  padding: 8px 0 36px;
}

/* Platform Tabs */
.platform-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--bg-surface);
  padding: 7px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}

.platform-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 14px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.93rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.platform-tab svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.platform-tab:hover {
  background: var(--bg-subtle);
  color: var(--text-main);
}

.platform-tab[aria-selected="true"] {
  background: linear-gradient(135deg, var(--coral) 0%, #c81442 60%, var(--plum) 100%);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.24);
}

/* Two-Column Grid */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 24px;
  align-items: start;
}

.panel-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.panel-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--plum-soft);
  color: var(--plum);
}

/* Form Controls */
.field-group {
  margin-bottom: 20px;
}

.field-group:last-child {
  margin-bottom: 0;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.field-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.metric-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-control,
.select-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background-color: #ffffff;
  color: var(--text-main);
  font-weight: 600;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input-control:focus,
.select-control:focus,
.email-textarea:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.14);
}

.metric-number-input {
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding-right: 110px;
}

.metric-unit-badge {
  position: absolute;
  right: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--plum);
  background: var(--plum-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  pointer-events: none;
}

.range-slider {
  width: 100%;
  margin-top: 10px;
  accent-color: var(--coral);
  cursor: pointer;
}

.quick-metrics-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.quick-metric-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-metric-btn:hover {
  border-color: var(--coral);
  color: var(--coral);
  background: var(--bg-coral-tint);
}

/* Engagement Segmented Radio Cards */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.engagement-option {
  position: relative;
}

.engagement-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.engagement-card {
  display: flex;
  flex-direction: column;
  padding: 10px 10px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  height: 100%;
}

.engagement-card:hover {
  border-color: var(--plum-border);
  background: var(--bg-plum-tint);
}

.engagement-option input:checked + .engagement-card {
  border-color: var(--coral);
  background: var(--bg-coral-tint);
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.1);
}

.engagement-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.engagement-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.engagement-mult {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--coral);
  margin-top: 4px;
}

/* Add-On Licensing Rights Checkboxes */
.addons-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.addon-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
}

.addon-item:hover {
  border-color: var(--plum-border);
  background: var(--bg-plum-tint);
}

.addon-item.is-checked {
  border-color: var(--plum);
  background: var(--bg-plum-tint);
}

.addon-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.addon-left input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--plum);
  cursor: pointer;
  flex-shrink: 0;
}

.addon-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
}

.addon-pill {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--plum-soft);
  color: var(--plum);
  white-space: nowrap;
}

.addon-item.is-checked .addon-pill {
  background: var(--plum);
  color: #ffffff;
}

/* Personalization Mini Row */
.personalize-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
}

.personalize-grid .input-control {
  padding: 8px 11px;
  font-size: 0.86rem;
}

/* ==========================================================================
   Right Column: Live Rate Card Output + Bundle + Pitch Generator
   ========================================================================== */
.output-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* 3 Pricing Tiers */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tier-box {
  padding: 15px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tier-box--floor {
  background: #fafafa;
}

.tier-box--fair {
  background: linear-gradient(180deg, #fff1f3 0%, #ffffff 100%);
  border-color: var(--coral);
  box-shadow: 0 8px 20px -6px rgba(225, 29, 72, 0.22);
  position: relative;
}

.tier-box--anchor {
  background: linear-gradient(180deg, #f5f0ff 0%, #ffffff 100%);
  border-color: var(--plum-border);
}

.tier-tag {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.tier-box--fair .tier-tag {
  color: var(--coral);
}

.tier-box--anchor .tier-tag {
  color: var(--plum);
}

.tier-price {
  font-size: clamp(1.45rem, 2.3vw, 1.9rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.tier-box--fair .tier-price {
  color: var(--coral);
}

.tier-box--anchor .tier-price {
  color: var(--plum);
}

.tier-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Effective CPM & Breakdown Strip */
.metrics-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  font-size: 0.83rem;
}

.metrics-strip-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
}

.metrics-strip-item strong {
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}

.min-floor-notice {
  display: none;
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 600;
}

.min-floor-notice.visible {
  display: block;
}

/* 3-Integration Bundle Upsell Card */
.bundle-card {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--plum) 0%, #6d28d9 58%, var(--coral) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 10px 24px -6px rgba(76, 29, 149, 0.32);
}

.bundle-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 5px;
}

.bundle-title {
  margin: 0 0 3px;
  font-size: 1rem;
  font-weight: 800;
}

.bundle-sub {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.86);
}

.bundle-pricing {
  text-align: right;
  flex-shrink: 0;
}

.bundle-total {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.bundle-Meta {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 3px;
}

.bundle-strike {
  text-decoration: line-through;
  opacity: 0.72;
  margin-right: 4px;
}

/* Pitch Email Generator Card */
.pitch-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.pitch-mode-tabs {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
}

.pitch-mode-btn {
  border: none;
  background: transparent;
  padding: 5px 11px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pitch-mode-btn.active {
  background: #ffffff;
  color: var(--coral);
  box-shadow: var(--shadow-xs);
}

.subject-line-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: var(--bg-plum-tint);
  border: 1px solid var(--plum-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: 0.84rem;
}

.subject-label {
  font-weight: 800;
  color: var(--plum);
  flex-shrink: 0;
}

.subject-text {
  color: var(--text-main);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.email-textarea {
  width: 100%;
  min-height: 225px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: #fffdfd;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.87rem;
  line-height: 1.55;
  resize: vertical;
}

.action-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.btn-primary {
  flex: 1 1 210px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--coral);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.93rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(225, 29, 72, 0.25);
  transition: background-color 0.16s ease, transform 0.12s ease;
}

.btn-primary:hover {
  background: var(--coral-hover);
  transform: translateY(-1px);
}

.btn-primary.copied {
  background: var(--emerald);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 12px 15px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-secondary:hover {
  border-color: var(--plum);
  color: var(--plum);
  background: var(--bg-plum-tint);
}

/* ==========================================================================
   Recommended Creator Tools & Partner Deals (#recommended-tools)
   ========================================================================== */
.partners-section {
  padding: 28px 0 44px;
}

.partners-wrap {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-plum-tint) 100%);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.partners-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.partners-title {
  margin: 0 0 4px;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.partners-subtitle {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.ftc-pill {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}

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

.affiliate-card {
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.affiliate-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral-border);
}

.affiliate-top {
  margin-bottom: 16px;
}

.affiliate-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.affiliate-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-main);
}

.affiliate-badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--coral-soft);
  color: var(--coral);
  white-space: nowrap;
}

.affiliate-desc {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.affiliate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--plum);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background-color 0.16s ease;
}

.affiliate-cta:hover {
  background: var(--coral);
}

/* ==========================================================================
   SEO Editorial Guide Section (#guide)
   ========================================================================== */
.guide-section {
  padding: 44px 0;
  border-top: 1px solid var(--border-light);
}

.editorial-container {
  max-width: 880px;
  margin: 0 auto;
}

.section-kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral);
  margin-bottom: 8px;
}

.section-heading {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.editorial-prose h3 {
  margin: 30px 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.editorial-prose p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.72;
}

.editorial-prose ul,
.editorial-prose ol {
  margin: 0 0 20px;
  padding-left: 22px;
  color: var(--text-secondary);
}

.editorial-prose li {
  margin-bottom: 9px;
  line-height: 1.65;
}

.editorial-prose li strong {
  color: var(--text-main);
}

.formula-box {
  background: var(--bg-surface);
  border-left: 4px solid var(--coral);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 18px 22px;
  margin: 22px 0;
  box-shadow: var(--shadow-xs);
}

.formula-box-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--plum);
  margin-bottom: 6px;
}

.formula-code {
  font-family: var(--font-mono);
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--text-main);
  background: var(--bg-subtle);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}

/* Responsive Benchmark Table */
.table-wrap {
  overflow-x: auto;
  margin: 22px 0 26px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-xs);
}

.benchmark-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.benchmark-table th {
  background: var(--bg-plum-tint);
  color: var(--plum);
  font-weight: 800;
  padding: 13px 16px;
  border-bottom: 1.5px solid var(--border-light);
  white-space: nowrap;
}

.benchmark-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

.benchmark-table tr:last-child td {
  border-bottom: none;
}

.benchmark-table td:first-child {
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   FAQ Accordion Section (#faq)
   ========================================================================== */
.faq-section {
  padding: 44px 0 56px;
  border-top: 1px solid var(--border-light);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.16s ease;
}

.faq-item.open {
  border-color: var(--coral-border);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 750;
  color: var(--text-main);
  cursor: pointer;
}

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

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--plum);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: var(--coral);
  color: #ffffff;
}

.faq-answer {
  display: none;
  padding: 0 20px 18px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.68;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   Subpages (About, Privacy, Terms, Contact)
   ========================================================================== */
.page-shell {
  padding: 44px 0 64px;
}

.page-card {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.page-breadcrumb {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.page-title {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 850;
  letter-spacing: -0.025em;
}

.page-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
}

.contact-box {
  background: var(--bg-plum-tint);
  border: 1px solid var(--plum-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 20px 0 26px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #160f24;
  color: #d8d0e5;
  padding: 44px 0 32px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand-name {
  color: #ffffff;
  font-weight: 800;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.footer-desc {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: #b2a7c4;
  max-width: 420px;
}

.footer-disclosure {
  font-size: 0.78rem;
  color: #9b8fb0;
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid var(--coral);
  padding: 9px 12px;
  border-radius: 0 6px 6px 0;
  line-height: 1.5;
}

.footer-heading {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #c5bad8;
  font-size: 0.88rem;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: #9488a8;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .calc-grid {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 760px) {
  .platform-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

  .bundle-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .bundle-pricing {
    text-align: left;
  }

  .mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 16px;
  }

  .main-nav.open {
    display: flex;
  }

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

  .page-card {
    padding: 24px 20px;
  }
}

/* ==========================================================================
   Print Rate Card Styles (@media print)
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }

  .skh-topbar,
  .site-header,
  .preset-bar,
  .ad-slot,
  .partners-section,
  .guide-section,
  .faq-section,
  .related-section,
  .site-footer,
  .action-btn-row,
  .pitch-mode-tabs,
  .range-slider,
  .quick-metrics-row {
    display: none !important;
  }

  .hero-section {
    padding: 0 0 12px !important;
  }

  .hero-subtitle,
  .hero-eyebrow {
    display: none !important;
  }

  .calc-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .panel-card {
    box-shadow: none !important;
    border: 1px solid #cccccc !important;
    break-inside: avoid;
  }

  .bundle-card {
    background: #f3e8ff !important;
    color: #181024 !important;
    border: 1.5px solid #4c1d95 !important;
    box-shadow: none !important;
  }

  .bundle-sub,
  .bundle-Meta {
    color: #333333 !important;
  }
}
