/* ==========================================================================
   EZPinSaver - Luxury PromptWise-Inspired Design System (V2)
   Exact 2 Fonts: Times New Roman (Headings ONLY) + Cabin (Everything Else)
   Color Palette: Pure White #FFFFFF, Warm Off-White #FAF8F5, Hero Cream #FDF8F1,
                  Deep Charcoal #111827, Slate Grey #4B5563, Red #E60023, Green #15803D
   NO GREY SECTION BACKGROUNDS. Floating Pill Header. Blur-to-Sharp Animations.
   ========================================================================== */

:root {
  --bg-main: #FFFFFF;
  --bg-warm: #FAF8F5;
  --bg-hero-cream: #FDF8F1;
  
  --text-heading: #111827;
  --text-body: #4B5563;
  --text-muted: #6B7280;
  
  --accent-red: #E60023;
  --accent-red-hover: #CC001F;
  --accent-red-light: #FDE8EA;
  
  --btn-black: #111827;
  --btn-black-hover: #1F2937;
  
  --accent-green: #15803D;
  --accent-green-light: #EBF8F0;
  
  --border-light: #E5E7EB;
  --border-card: #EBE8E2;
  
  --font-serif: "Times New Roman", Times, Georgia, serif;
  --font-sans: "Cabin", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-card: 20px;
  --radius-pill: 9999px;
  --radius-input: 14px;
  --radius-button: 12px;
  
  --shadow-floating: 0 10px 30px -4px rgba(17, 24, 39, 0.08), 0 4px 12px -2px rgba(17, 24, 39, 0.04);
  --shadow-card: 0 12px 32px -4px rgba(17, 24, 39, 0.06), 0 2px 8px -2px rgba(17, 24, 39, 0.03);
  --shadow-hover: 0 20px 40px -6px rgba(17, 24, 39, 0.12);
  --container-max: 1140px;
}

/* -------------------------------- Reset & Base -------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-main);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* -------------------------------- Typography -------------------------------- */
/* STRICT RULE: Headings ONLY - Times New Roman */
h1, h2 {
  font-family: var(--font-serif);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

/* Everything else - Cabin */
h3, h4, h5, h6, p, a, span, button, input, textarea, select, table, th, td, label, li {
  font-family: var(--font-sans);
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
}

p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.65;
}

a {
  color: var(--accent-red);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-red-hover);
  text-decoration: underline;
}

code {
  font-family: var(--font-sans);
  background: #FAF8F5;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
  overflow-wrap: anywhere;
  word-break: break-all;
  white-space: normal;
  display: inline;
}

/* -------------------------------- Layout Containers -------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-wrapper {
  padding: 48px 0;
  background-color: var(--bg-main);
}

/* Alternating Warm Off-White (Never grey) */
.section-wrapper.bg-warm {
  background-color: var(--bg-warm);
  border-top: 1px solid var(--border-card);
  border-bottom: 1px solid var(--border-card);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 28px auto;
}

.section-header h2 {
  font-size: 2.35rem;
  margin-bottom: 14px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-body);
}

/* -------------------------------- Floating Pill Header -------------------------------- */
.header-outer-wrapper {
  position: sticky;
  top: 16px;
  z-index: 1000;
  width: 100%;
  padding: 0 16px;
  pointer-events: none;
  display: flex;
  justify-content: center;
}

.floating-header-pill {
  pointer-events: auto;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px 0 24px;
  gap: 16px;
  white-space: nowrap;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.logo-link:hover {
  text-decoration: none !important;
}

.logo-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.logo-link img {
  display: block;
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-footer .logo-link img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-shrink: 0;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 0.94rem;
  font-weight: 700;
  color: #374151;
  text-decoration: none !important;
  transition: color 0.15s ease;
  padding: 6px 4px;
  white-space: nowrap;
}

.nav-link:hover {
  color: #E60023 !important;
  text-decoration: none !important;
}

.header-action {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Black pill button (PromptWise pattern) */
.btn-pill-black {
  background: #111827 !important;
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 22px;
  border-radius: 999px !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.btn-pill-black:hover {
  background: #000000 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.25);
}

.btn-pill-black .btn-icon-arrow {
  transition: transform 0.2s ease;
}

.btn-pill-black:hover .btn-icon-arrow {
  transform: translateX(3px);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: #111827;
  border-radius: 50%;
  padding: 0;
}

/* -------------------------------- Hero Section (Warm Cream Exception) -------------------------------- */
.hero-section {
  background-color: #FDF8F1 !important;
  padding: 36px 0 52px 0;
  border-bottom: 1px solid #E5E7EB;
  text-align: center;
  position: relative;
}

/* Eyebrow trust badge (PromptWise pattern with 3 green checks) */
.hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  padding: 6px 18px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.eyebrow-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
}

.eyebrow-sep {
  color: #9CA3AF;
  font-size: 0.8rem;
}

.hero-headline {
  max-width: 860px;
  margin: 0 auto 32px auto;
}

.brand-micro-tag {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-red);
  margin-bottom: 10px;
  display: block;
}

.hero-headline h1 {
  font-size: 2.85rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.hero-subhead {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.6;
}

/* -------------------------------- Tool Card -------------------------------- */
.tool-card {
  max-width: 760px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  text-align: left;
}

/* Clean text tabs with red underline on active tab */
.tool-mode-tabs {
  display: flex;
  gap: 28px;
  margin-bottom: 18px;
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 0;
}

.tool-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 0 8px 10px 8px;
  font-family: var(--font-sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.tool-tab-btn:hover {
  color: #111827;
}

.tool-tab-btn.active {
  color: #E60023 !important;
  border-bottom-color: #E60023 !important;
  background: none;
  box-shadow: none;
}

.direct-source-link {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: #6B7280;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.direct-source-link:hover {
  color: #E60023;
}

/* Row 1: Full-width input on its OWN line */
.tool-input-line {
  margin-bottom: 12px;
}

.tool-input-clean {
  width: 100%;
  height: 54px;
  border: 1.5px solid #D1D5DB;
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  color: #111827;
  background: #FFFFFF;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tool-input-clean:focus {
  outline: none;
  border-color: #E60023;
  box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.12);
}

/* Row 2: Actions row */
.tool-actions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}

.actions-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-action-pill {
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  color: #374151;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-action-pill:hover {
  background: #FAF8F5;
  border-color: #9CA3AF;
  color: #111827;
}

.actions-right {
  display: flex;
  align-items: center;
}

.example-link-btn {
  background: none;
  border: none;
  color: #E60023;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.example-link-btn:hover {
  color: #B8001C;
}

/* Row 3: Submit row */
.tool-submit-row {
  margin-bottom: 14px;
}

.btn-download-primary {
  height: 52px;
  padding: 0 32px;
  background: #E60023;
  color: #FFFFFF;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(230, 0, 35, 0.25);
  box-sizing: border-box;
}

.btn-download-primary:hover {
  background: #CC001F;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(230, 0, 35, 0.35);
}

.tool-quick-links {
  font-size: 0.85rem;
  color: #6B7280;
  margin-top: 8px;
}
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-download-primary:hover {
  background: var(--accent-red-hover);
  transform: scale(1.02);
  box-shadow: 0 8px 22px rgba(230, 0, 35, 0.28);
}

.btn-download-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tool-quick-links {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.example-link-btn {
  background: none;
  border: none;
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.example-link-btn:hover {
  color: var(--accent-red-hover);
}

/* -------------------------------- Status, Loading, Errors -------------------------------- */
.tool-status-container {
  margin-top: 20px;
}

.tool-loading {
  display: none;
  padding: 24px;
  text-align: center;
  background: var(--bg-warm);
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

.tool-loading.active {
  display: block;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border-light);
  border-top-color: var(--accent-red);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 12px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.tool-loading-text {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 1rem;
}

.tool-error {
  display: none;
  padding: 16px 20px;
  background: #FFF5F5;
  border: 1.5px solid #FEB2B2;
  border-radius: 12px;
  color: #C53030;
  font-size: 0.95rem;
  margin-top: 16px;
  line-height: 1.5;
}

.tool-error.active {
  display: block;
}

/* -------------------------------- Preview Card (Filename Display) -------------------------------- */
.tool-preview-card {
  display: none;
  margin-top: 24px;
  padding: 24px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-card);
  border-radius: 16px;
  animation: fadeIn 0.3s ease;
}

.tool-preview-card.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.preview-grid {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.preview-media-box {
  width: 120px;
  max-width: 120px;
  aspect-ratio: 9/16;
  max-height: 220px;
  background: var(--bg-warm);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preview-info-box {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.preview-badge {
  display: inline-block;
  background: var(--bg-warm);
  color: var(--text-heading);
  border: 1px solid var(--border-light);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
  align-self: flex-start;
}

.preview-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

/* Filename indicator (FIX 2) */
.preview-filename-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.preview-filename-badge span {
  white-space: nowrap !important;
  font-weight: 600;
  color: #4B5563;
}

.preview-filename-badge strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  word-break: break-all;
  color: var(--text-heading);
}

.btn-copy-filename {
  min-width: 140px !important;
  white-space: nowrap !important;
  padding: 8px 16px !important;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-copy-filename:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
  color: #111827;
}

/* Mismatch Notice (FIX 2) */
.mismatch-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: #92400E;
}

.mismatch-text {
  font-weight: 600;
}

.btn-mismatch-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #B45309;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.btn-mismatch-link:hover {
  background: #78350F;
}

/* After-Download Guidance & Download Another (FIX 5) */
.preview-guidance-box {
  margin-top: 16px;
  padding: 12px 14px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #4B5563;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.preview-guidance-box .guidance-line strong {
  color: #111827;
}

.download-another-row {
  margin-top: 14px;
  display: flex;
  justify-content: flex-start;
}

.btn-download-another {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-download-another:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
  color: #111827;
}
  border-color: #9CA3AF;
  color: #111827;
}

.preview-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.download-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-warm);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  transition: all 0.15s ease;
}

.download-option-row:hover {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.option-meta-text {
  display: flex;
  flex-direction: column;
}

.option-label {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-heading);
}

.option-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-option-download {
  background: var(--accent-red);
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.15s ease, transform 0.1s ease;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-option-download:hover {
  background: var(--accent-red-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

/* -------------------------------- Trust Row -------------------------------- */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-heading);
}

.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--accent-green);
  flex-shrink: 0;
}

.honest-disclaimer-note {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}

/* -------------------------------- Steps Grid (3 Cards) -------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 34px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: #D1D5DB;
  box-shadow: var(--shadow-card);
}

.step-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-red);
  margin-bottom: 12px;
}

.step-card h3 {
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.96rem;
  line-height: 1.6;
}

/* -------------------------------- Features Grid (6 Cards) -------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 32px 26px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: #D1D5DB;
  box-shadow: var(--shadow-card);
}

.feature-icon-box {
  width: 46px;
  height: 46px;
  background: var(--bg-warm);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  margin-bottom: 18px;
}

.feature-card h3 {
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.96rem;
}

/* -------------------------------- Formats Table -------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.formats-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.formats-table th {
  background: #FFFFFF !important;
  color: var(--text-heading);
  font-weight: 700;
  font-size: 0.94rem;
  padding: 14px 20px;
  border-bottom: 1px solid #E5E7EB !important;
}

.formats-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-card);
  font-size: 0.96rem;
  color: var(--text-body);
}

.formats-table tr:last-child td {
  border-bottom: none;
}

.format-badge {
  display: inline-block;
  padding: 4px 9px;
  background: var(--bg-warm);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-heading);
}

.table-note-box {
  margin-top: 20px;
  padding: 18px 24px;
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB;
  border-left: 3px solid #E60023 !important;
  border-radius: 16px;
  font-size: 0.94rem;
  color: var(--text-body);
}

/* -------------------------------- Device Guides (3 Columns) -------------------------------- */
.devices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.device-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 26px 22px;
}

.device-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.device-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1px solid var(--border-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-heading);
}

.device-steps-list {
  list-style: none;
  counter-reset: device-step;
}

.device-steps-list li {
  counter-increment: device-step;
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  font-size: 0.95rem;
  line-height: 1.55;
}

.device-steps-list li::before {
  content: counter(device-step);
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  background: var(--bg-warm);
  color: var(--text-heading);
  border-radius: 50%;
  border: 1px solid var(--border-card);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------- SEO Content Section -------------------------------- */
.seo-article {
  max-width: 820px;
  margin: 0 auto;
}

.seo-block {
  margin-bottom: 24px;
}

.seo-block h2 {
  font-size: 2rem;
  margin-bottom: 14px;
  padding-top: 6px;
}

.seo-block p {
  margin-bottom: 14px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.seo-bullets {
  list-style: none;
  margin: 14px 0;
}

.seo-bullets li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  font-size: 1.02rem;
  line-height: 1.6;
}

.seo-bullets li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
}

/* -------------------------------- Two-Column FAQ (PromptWise Pattern) -------------------------------- */
.faq-two-column-layout {
  display: grid;
  grid-template-columns: 35% 65%;
  gap: 40px;
  align-items: start;
}

.faq-left-col {
  position: sticky;
  top: 96px;
}

.faq-left-col h2 {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.faq-left-col p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 20px;
  line-height: 1.6;
}

.faq-link-red {
  color: #E60023 !important;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: underline !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}

.faq-link-red:hover {
  color: #CC001F !important;
}

.faq-stack-right {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  background: #FFFFFF !important;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
}

.faq-question:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: -2px;
}

/* PromptWise + / - rotation */
.faq-icon-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 400;
  color: var(--text-heading);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.faq-item.open .faq-icon-toggle {
  transform: rotate(45deg); /* + rotates to × */
  color: var(--accent-red);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 22px 20px 22px;
  color: var(--text-body);
  font-size: 1rem;
  line-height: 1.65;
}

/* -------------------------------- Related Tools (Disabled) -------------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tool-card-disabled {
  background: #FFFFFF !important;
  border: 1px dashed #E5E7EB !important;
  border-radius: 16px;
  padding: 26px 22px;
  opacity: 0.85;
  cursor: not-allowed;
  user-select: none;
}

.badge-coming-soon {
  display: inline-block;
  background: var(--bg-warm);
  border: 1px solid var(--border-card);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
}

.tool-card-disabled h3 {
  color: #6B7280;
  margin-bottom: 8px;
}

.tool-card-disabled p {
  color: #9CA3AF;
  font-size: 0.92rem;
}

/* -------------------------------- Final CTA Band (White / Warm Off-White) -------------------------------- */
.final-cta-section {
  padding: 56px 0;
  background-color: #FAF8F5 !important;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  text-align: center;
}

.cta-box {
  max-width: 680px;
  margin: 0 auto;
}

.cta-box h2 {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 28px;
}

.btn-cta-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-red);
  color: #FFFFFF !important;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-cta-large:hover {
  background: var(--accent-red-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 0, 35, 0.28);
  text-decoration: none;
}

/* -------------------------------- Breadcrumbs & Content Pages -------------------------------- */
.page-hero-header {
  padding: 56px 0 40px 0;
  background: var(--bg-hero-cream);
  border-bottom: 1px solid var(--border-card);
  text-align: center;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.92rem;
  margin-bottom: 14px;
  color: var(--text-muted);
}

.breadcrumb-nav a {
  color: var(--text-muted);
}

.breadcrumb-nav a:hover {
  color: var(--accent-red);
}

.page-hero-header h1 {
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.page-hero-header p {
  font-size: 1.1rem;
  color: var(--text-body);
  max-width: 680px;
  margin: 0 auto;
}

.content-page-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 20px 88px 20px;
}

.content-page-article h2 {
  font-size: 1.85rem;
  margin: 40px 0 16px 0;
  padding-top: 8px;
  border-top: 1px solid var(--border-card);
}

.content-page-article h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

.content-page-article h3 {
  font-size: 1.25rem;
  margin: 24px 0 10px 0;
}

.content-page-article p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-page-article ul, .content-page-article ol {
  margin: 16px 0 20px 24px;
}

.content-page-article li {
  margin-bottom: 10px;
  font-size: 1.02rem;
  line-height: 1.6;
}

/* Contact Form */
.contact-form-card {
  background: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  margin-top: 32px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-heading);
  background: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.12);
}

.form-error-msg {
  display: none;
  color: #C53030;
  font-size: 0.85rem;
  margin-top: 6px;
}

.form-success-banner {
  display: none;
  padding: 18px 24px;
  background: var(--accent-green-light);
  border: 1px solid #86EFAC;
  border-radius: 12px;
  color: var(--accent-green);
  font-weight: 700;
  margin-bottom: 24px;
}

/* -------------------------------- Footer -------------------------------- */
.site-footer {
  background: #FFFFFF !important;
  border-top: 1px solid #E5E7EB !important;
  padding: 56px 0 32px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 12px;
  color: #4B5563;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #4B5563 !important;
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #E60023 !important;
  text-decoration: underline;
}

.footer-badge {
  font-size: 0.72rem;
  padding: 2px 7px;
  background: var(--bg-warm);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  margin-left: 4px;
}

.footer-bottom {
  border-top: 1px solid #E5E7EB;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* -------------------------------- Live Tool Cards & Blog Styles -------------------------------- */
.tool-card-live {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 16px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tool-card-live:hover {
  transform: translateY(-3px);
  border-color: #D1D5DB !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.tool-card-live h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: #111827;
}

.tool-card-live p {
  color: #4B5563;
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 20px;
}

.btn-pill-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #111827;
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none !important;
  width: fit-content;
  transition: all 0.15s ease;
}

.btn-pill-tool:hover {
  background: #E60023;
  color: #FFFFFF !important;
}

/* Blog Index & Post Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: #D1D5DB;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  text-decoration: none;
}

.blog-card-graphic {
  background: #FDF8F1;
  border-bottom: 1px solid #E5E7EB;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.blog-card-graphic img {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.blog-card-graphic .graphic-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
}

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.blog-card-meta {
  font-size: 0.82rem;
  color: #6B7280;
  margin-bottom: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #111827;
  line-height: 1.4;
}

.blog-card-content p {
  color: #4B5563;
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.blog-card-link {
  color: #E60023;
  font-weight: 700;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.blog-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #E5E7EB;
}

.blog-featured-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #E5E7EB;
  margin-bottom: 28px;
  display: block;
}

.related-guides-box {
  background: #FAF8F5;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 24px 28px;
  margin: 36px 0;
}

.related-guides-box h3 {
  font-size: 1.25rem;
  margin-bottom: 14px;
  color: #111827;
}

.related-guides-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-guides-list li {
  margin-bottom: 10px;
}

.related-guides-list li:last-child {
  margin-bottom: 0;
}

.related-guides-list a {
  color: #111827;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #E60023;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.related-guides-list a:hover {
  color: #E60023;
}

.tool-card-compact {
  max-width: 720px;
  margin: 32px auto 40px auto;
  box-shadow: 0 4px 18px rgba(0,0,0,0.04);
}

/* Single Blog Post Article */
.blog-post-article {
  max-width: 820px;
  margin: 0 auto;
}

.blog-post-header {
  text-align: center;
  margin-bottom: 36px;
}

.blog-post-header h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  line-height: 1.25;
}

.blog-post-meta {
  color: #6B7280;
  font-size: 0.92rem;
}

.blog-post-featured-box {
  background: #FDF8F1;
  border: 1px solid #E5E7EB;
  border-radius: 18px;
  padding: 48px 32px;
  text-align: center;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blog-post-featured-box img {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.blog-post-featured-box .featured-headline {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: #111827;
  max-width: 600px;
  line-height: 1.35;
}

.blog-content-body h2 {
  font-size: 1.75rem;
  margin: 36px 0 14px 0;
  padding-top: 10px;
  border-top: 1px solid #E5E7EB;
}

.blog-content-body h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

.blog-content-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #374151;
  margin-bottom: 18px;
}

.blog-content-body ol, .blog-content-body ul {
  margin: 16px 0 24px 24px;
}

.blog-content-body li {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #374151;
  margin-bottom: 10px;
}

.blog-cta-box {
  background: #FAF8F5;
  border: 1.5px solid #E5E7EB;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  margin-top: 48px;
}

.blog-cta-box h3 {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.blog-cta-box p {
  font-size: 1.02rem;
  color: #4B5563;
  margin-bottom: 20px;
}

/* -------------------------------- PromptWise Blur-To-Sharp Animations -------------------------------- */
.reveal {
  opacity: 0;
  filter: blur(5px);
  transform: translateY(16px);
  transition: opacity 0.5s ease, filter 0.5s ease, transform 0.5s ease;
  will-change: opacity, filter, transform;
}

.reveal.active {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* -------------------------------- Responsive Breakpoints (Mobile First QA 390px) -------------------------------- */
@media (max-width: 992px) {
  .features-grid,
  .steps-grid,
  .devices-grid,
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .faq-two-column-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .faq-left-col {
    position: static;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hero-headline h1 {
    font-size: 2.2rem;
  }
  .section-header h2 {
    font-size: 1.85rem;
  }
  .features-grid,
  .steps-grid,
  .devices-grid,
  .tools-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
  .header-outer-wrapper {
    padding: 0 10px;
    top: 8px;
  }
  
  .floating-header-pill {
    height: 58px;
    padding: 0 10px 0 18px;
  }
  
  .site-nav {
    display: none;
    position: fixed;
    top: 76px;
    left: 12px;
    right: 12px;
    background: #FFFFFF;
    border: 1px solid var(--border-card);
    border-radius: 18px;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-floating);
    z-index: 1001;
  }
  
  .site-nav.open {
    display: flex;
  }
  
  .mobile-toggle {
    display: flex;
  }
  
  .tool-input-row {
    flex-direction: column;
  }
  
  .btn-download-primary {
    width: 100%;
  }
  
  .preview-grid {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
  }
  
  .preview-media-box {
    width: 100px;
    max-width: 100px;
    max-height: 180px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 44px 0 56px 0;
  }
  
  .hero-headline h1 {
    font-size: 1.85rem;
  }
  
  .hero-subhead {
    font-size: 1rem;
  }
  
  .tool-card {
    padding: 20px 16px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .tool-mode-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    margin-bottom: 16px;
    border-bottom: 1px solid #E5E7EB;
  }

  .tool-tab-btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 15px;
    padding: 8px 4px 10px 4px;
  }
  
  .trust-row {
    gap: 16px;
    font-size: 0.85rem;
  }
  
  .trust-item {
    font-size: 0.85rem;
  }

  .preview-filename-badge {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .btn-copy-filename {
    min-width: 140px;
    white-space: nowrap;
    padding: 8px 16px;
    justify-content: center;
  }
}


/* ===================================================
   V10 ENHANCEMENTS: LIGHTBOX, COPY LINK, PHONE MOCKUP
=================================================== */

.preview-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.btn-copy-link {
  min-width: 110px !important;
  white-space: nowrap !important;
  padding: 8px 16px !important;
  background: #FFFFFF;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  line-height: 1;
}

.btn-copy-link:hover {
  background: #F3F4F6;
  border-color: #9CA3AF;
  color: #111827;
}

/* Lightbox Modal (V10 FIX 3) */
.preview-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.preview-lightbox-modal.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
}

.lightbox-content {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #FFFFFF;
  font-size: 32px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Mobile-First How-To Section (V10 FIX 1) */
.mobile-howto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

@media (max-width: 900px) {
  .mobile-howto-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    gap: 40px;
  }
}

.mobile-step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.phone-mockup {
  position: relative;
  width: 280px;
  max-width: 100%;
  background: #18181B;
  border: 4px solid #27272A;
  border-radius: 38px;
  padding: 10px 8px 12px 8px;
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1);
  margin-bottom: 24px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  transition: transform 0.2s ease;
}

.phone-mockup:hover {
  transform: translateY(-4px);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 12px;
  background: #09090B;
  border-radius: 10px;
  z-index: 10;
}

.phone-screen {
  border-radius: 28px;
  overflow: hidden;
  background: #FFFFFF;
  line-height: 0;
  display: block;
}

.phone-screen img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.phone-placeholder-screen {
  background: #FDFBF7;
  height: 420px;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  line-height: 1.5;
  box-sizing: border-box;
}

.phone-placeholder-icon {
  width: 56px;
  height: 56px;
  background: #FEE2E2;
  color: #E60023;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.phone-placeholder-text {
  font-size: 0.92rem;
  color: #4B5563;
  line-height: 1.5;
}

.mobile-step-meta {
  width: 100%;
  max-width: 290px;
}

.step-badge-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #E60023;
  color: #FFFFFF;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 12px;
}

.mobile-step-meta h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.mobile-step-meta p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Mobile option row: stack button full-width inside card (V9 FIX 6 / V10 FIX 4) */
@media (max-width: 540px) {
  .download-option-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px !important;
  }

  .download-option-row .option-meta-text {
    width: 100% !important;
  }

  .btn-option-download {
    width: 100% !important;
    justify-content: center !important;
    padding: 11px 16px !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   Language Selector Component (V14 FIX 3)
   ========================================================================== */
.lang-selector-wrapper {
  position: relative;
  display: inline-block;
}

.btn-lang {
  cursor: pointer;
  padding: 8px 16px !important;
  font-size: 0.88rem !important;
  gap: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-lang:hover {
  background: #1F2937 !important;
}

.btn-lang .globe-icon {
  flex-shrink: 0;
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 215px;
  max-height: 310px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  display: none;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
}

.lang-dropdown.open {
  display: flex;
}

.lang-dropdown-header {
  padding: 6px 6px 4px 6px;
  border-bottom: 1px solid #F3F4F6;
  background: #FAFAFA;
}

.lang-dropdown-header .lang-option {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4B5563;
  padding: 8px 10px;
  border-radius: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-dropdown-header .lang-option:hover {
  background: #F3F4F6;
  color: #111827;
}

.lang-dropdown-list {
  padding: 6px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 250px;
}

.lang-dropdown-list::-webkit-scrollbar {
  width: 6px;
}
.lang-dropdown-list::-webkit-scrollbar-thumb {
  background: #D1D5DB;
  border-radius: 3px;
}

.lang-dropdown-list .lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: #374151;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s ease;
  text-align: left;
}

.lang-dropdown-list .lang-option:hover {
  background: #F3F4F6;
  color: #111827;
}

.lang-dropdown-list .lang-option.active {
  background: #FEE2E2;
  color: #E60023;
  font-weight: 700;
}

.lang-dropdown-list .lang-code {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9CA3AF;
  text-transform: uppercase;
}

.lang-dropdown-list .lang-option.active .lang-code {
  color: #E60023;
}

/* Hide any legacy translation banners */
body {
  top: 0px !important;
  position: static !important;
}

/* EZTag Callout Line (V14 FIX 4) */
.hashtag-callout-line {
  margin: 22px auto 0 auto;
  text-align: center;
}

.hashtag-callout-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: #4B5563;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}

.hashtag-callout-link:hover {
  border-color: #E60023;
  color: #E60023;
  box-shadow: 0 4px 12px rgba(230, 0, 35, 0.08);
  transform: translateY(-1px);
}

.hashtag-callout-link strong {
  color: #111827;
  font-weight: 700;
}
.hashtag-callout-link:hover strong {
  color: #E60023;
}

@media (max-width: 640px) {
  .lang-dropdown {
    right: 0;
    width: 195px;
    max-height: 270px;
  }
  .hashtag-callout-link {
    font-size: 0.84rem;
    padding: 8px 14px;
    line-height: 1.4;
  }
}
