/* KuickKonvert -- "Royal Purple & Gold" brand palette (matches live site,
   finalized 2026-08-25) + ahaconvert.com-inspired layout refresh (2026-08-27):
   sticky header w/ mobile menu, trust strip, how-it-works, format badges,
   why-us/security section, multi-column footer. */
:root {
  --color-bg: #f7f5fb;
  --color-surface: #ffffff;
  --color-text: #201a2e;
  --color-text-muted: #5f5a70;
  --color-border: #e6e0ef;
  --color-primary: #5f2585;
  --color-primary-dark: #401a5c;
  --color-primary-tint: #efe4f6;
  --color-accent: #d4a72c;
  --color-accent-dark: #9a7a1c;
  --color-accent-tint: #f4ecd2;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(40, 20, 60, 0.07), 0 1px 2px rgba(40, 20, 60, 0.09);
  --shadow-md: 0 8px 24px rgba(64, 26, 92, 0.12);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow {
  max-width: 640px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
}
.brand-name {
  font-size: 18px;
  font-weight: 400;
}
.brand-name strong { font-weight: 700; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.site-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--color-primary); }

/* Nav tab background chips -- added 2026-08-29. The header nav tabs
   (Documents/Images/PDF Tools/How it works/FAQ/About/Contact) were plain
   text with no background, so the shimmer-sweep animation chosen for "Nav
   Tabs & buttons" had nothing to sweep across and was effectively
   invisible on them (it was only wired onto the .nav-cta button). Giving
   each tab a light tint "chip" (the existing --color-primary-tint color,
   already used elsewhere for badges, so this stays inside the established
   palette) gives the shimmer a surface to travel over. .nav-cta is
   excluded via :not() -- it keeps its own solid-purple background/shimmer
   defined below, untouched. */
.site-nav a:not(.nav-cta) {
  position: relative;
  overflow: hidden;
  background: var(--color-primary-tint);
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.site-nav a:not(.nav-cta):hover {
  background: var(--color-accent-tint);
}
.nav-cta {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--color-primary-dark); color: #fff !important; }

/* Shimmer sweep -- chosen 2026-08-29 from the animation-options demo (option
   B2) for "Nav Tabs & buttons": a light diagonal highlight glides across
   the element face every ~2.6s, like a subtle polish pass. Applies to the
   header CTA, the tool-page "Convert" button, and (added 2026-08-29 after
   the initial deploy only wired it onto the CTA button) every header nav
   tab now that each has a tint-chip background for the highlight to sweep
   across -- see .site-nav a:not(.nav-cta) above. Switched off for anyone
   with prefers-reduced-motion set, same policy as the ad-slot flash
   effect. Nav tabs get a small nth-child stagger so all seven don't shimmer
   in perfect unison. */
@media (prefers-reduced-motion: no-preference) {
  .nav-cta::after,
  .btn-primary::after,
  .site-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    top: 0; left: -60%;
    width: 40%; height: 100%;
    background: linear-gradient(115deg, transparent, rgba(255,255,255,0.55), transparent);
    animation: btn-shimmer 2.6s ease-in-out infinite;
  }
  .site-nav a:not(.nav-cta):nth-of-type(1)::after { animation-delay: 0s; }
  .site-nav a:not(.nav-cta):nth-of-type(2)::after { animation-delay: 0.3s; }
  .site-nav a:not(.nav-cta):nth-of-type(3)::after { animation-delay: 0.6s; }
  .site-nav a:not(.nav-cta):nth-of-type(4)::after { animation-delay: 0.9s; }
  .site-nav a:not(.nav-cta):nth-of-type(5)::after { animation-delay: 1.2s; }
  .site-nav a:not(.nav-cta):nth-of-type(6)::after { animation-delay: 1.5s; }
  .site-nav a:not(.nav-cta):nth-of-type(7)::after { animation-delay: 1.8s; }
}
@keyframes btn-shimmer {
  0% { left: -60%; }
  35%, 100% { left: 130%; }
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  cursor: pointer;
}
.nav-toggle svg { display: block; }

/* Hero */
.hero {
  padding: 56px 0 32px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 12px;
}
.hero-sub {
  color: var(--color-text-muted);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto;
}

/* Trust strip */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 28px 0 8px;
  padding: 0;
  list-style: none;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.trust-strip .trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  flex-shrink: 0;
}
.trust-strip .trust-icon svg { width: 14px; height: 14px; }

/* How it works */
.how-it-works {
  padding: 40px 0 8px;
}
.how-it-works h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 32px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  text-align: center;
  padding: 0 12px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}
.steps h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.steps p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Tool sections */
.tool-section { padding: 24px 0 40px; }
.tool-section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--color-border);
  margin-bottom: 16px;
}
.tool-section:first-of-type .tool-section-head { border-top: none; }
.tool-section-head h2 {
  font-size: 20px;
  margin: 0;
}
.tool-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  flex-shrink: 0;
}
.tool-section-icon svg { width: 17px; height: 17px; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.tool-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--color-primary);
  transform: translateY(-1px);
}
.tool-card-formats {
  display: flex;
  align-items: center;
  gap: 6px;
}
.format-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #fff;
}
.format-badge-arrow {
  color: var(--color-text-muted);
  font-size: 12px;
}
.badge-doc { background: #2b579a; }
.badge-xls { background: #1d7a46; }
/* .badge-ppt and .badge-png were darkened slightly from their original
   shades (#d24726 -> #ce4625, #159c8f -> #128378) to clear the WCAG AA
   4.5:1 text-contrast minimum against the white badge text -- confirmed via
   PageSpeed Insights accessibility audit on 2026-08-29 (was 4.50:1 and
   3.40:1, now 4.66:1 and 4.61:1). Same hue, barely visible change. */
.badge-ppt { background: #ce4625; }
.badge-pdf { background: #e2231a; }
.badge-jpg { background: #8e44ad; }
.badge-png { background: #128378; }

.tool-card-name { font-weight: 600; font-size: 15px; }
.tool-card-desc { font-size: 13px; color: var(--color-text-muted); }

/* Why KuickKonvert / security section */
.why-section {
  padding: 8px 0 48px;
}
.why-section h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 8px;
}
.why-section .section-sub {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0 auto 32px;
  max-width: 520px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.why-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
}
.why-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent-dark);
  margin-bottom: 14px;
}
.why-card-icon svg { width: 20px; height: 20px; }
.why-card h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.why-card p {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0;
}

/* Ad slots -- deliberately styled with visible spacing, a border, and a
   plain "Advertisement" label so they can never be mistaken for site
   navigation, a menu, or a download link (an explicit AdSense policy
   requirement). Reserves height up front so a real ad loading in later
   doesn't shift the page layout. Empty until a real ad unit is inserted --
   see the HTML comment inside each .ad-slot for how to activate it. */
.ad-slot {
  margin: 32px 0;
  padding: 10px;
  border: none;
  border-radius: var(--radius);
  background: var(--color-primary);
  text-align: center;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

/* House message -- shown in these slots ONLY while there is no live
   AdSense ad to display (account created 2026-08-29, currently under
   Google's review). Deliberately does NOT use the word "Advertisement":
   that label should only ever describe real, paid third-party ad content,
   never KuickKonvert's own promotional text. Once AdSense is approved and
   a real <ins class="adsbygoogle"> unit is dropped into one of these
   slots (see the existing HTML comments in index.html / tool.html for
   exactly where), remove that slot's .ad-slot-house block and restore its
   <span class="ad-slot-label">Advertisement</span> + aria-label, matching
   the pattern still used for that swap-in today. */
.ad-slot-house {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 20px;
  text-align: center;
}
.ad-slot-house-line {
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
}
.ad-slot-house-line--main { font-size: 15px; font-weight: 700; }
.ad-slot-house-line--sub { font-size: 12.5px; font-weight: 500; color: rgba(255,255,255,0.88); }
.ad-slot--rail .ad-slot-house { gap: 12px; }
.ad-slot--rail .ad-slot-house-line { font-size: 12px; }
.ad-slot--tool { margin: 20px 0 28px; min-height: 90px; }
.ad-slot--top { margin: 20px 0 8px; }

/* "Flash" attention effect on the whole board, per request. The board's
   own fill stays solid brand purple at all times (never changes color) --
   what pulses is a soft gold (the logo's own accent color) glow, so the
   box always satisfies "background = KK's color" while still visibly
   flashing. Strengthened per feedback that the original single, tight
   6px ring was too subtle to read as a "flash": now a bright inner ring
   plus a wider, softer outer bloom, with a very slight scale pop (a
   transform, so it never shifts surrounding layout). Kept at a 1.6s cycle
   (~0.6 flashes/second) -- clearly readable as pulsing while staying well
   under the ~3-flashes/second photosensitive-seizure threshold -- and
   switched off for anyone with prefers-reduced-motion set.
   Performance note (2026-09-26): the glow used to be produced by animating
   box-shadow directly, which PageSpeed flagged as a "non-composited
   animation" (box-shadow repaints on every frame). The same gold glow now
   lives, fully drawn, on an ::after layer and only its opacity is
   animated; the scale pop stays a transform. Opacity and transform are
   both compositor-only, so the look is unchanged but the browser no
   longer repaints the board on each frame. .ad-slot--rail (defined
   further down) overrides position: relative with position: absolute,
   which still anchors the ::after layer correctly. */
.ad-slot { position: relative; }
.ad-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 8px rgba(212, 167, 44, 0.8), 0 0 26px 10px rgba(212, 167, 44, 0.5);
  opacity: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .ad-slot {
    animation: ad-slot-pop 1.6s ease-in-out infinite;
  }
  .ad-slot::after {
    animation: ad-slot-glow 1.6s ease-in-out infinite;
  }
}
@keyframes ad-slot-pop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}
@keyframes ad-slot-glow {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Vertical rail ("skyscraper") ad slots -- flank the hero + first banner-ad
   zone on wide desktop screens only. The content column tops out at 1120px
   (see .wrap), so a 160px rail with real breathing room only actually fits
   once the viewport is comfortably wider than that -- below the breakpoint
   there simply isn't room, so these are hidden outright rather than shrunk
   or overlapped onto the tool UI. .hero-rail-zone is the positioning
   context; each rail stretches to that zone's full height and scrolls away
   naturally once the visitor scrolls past the hero, rather than staying
   pinned down the whole page. */
.hero-rail-zone { position: relative; }
.ad-slot--rail {
  display: none;
  position: absolute;
  top: 0;
  bottom: 24px;
  width: 150px;
  margin: 0;
}
.ad-slot--rail-left { left: 16px; }
.ad-slot--rail-right { right: 16px; }

/* Breakpoint note: the content column (.wrap) tops out at 1120px + 24px
   padding/side = 1168px, so each rail needs ~166px of clear margin per
   side (150px rail + 16px offset from the viewport edge). 1500px is the
   lowest viewport width that reliably clears that -- chosen deliberately
   low enough to cover the very common case of a 1920px display running at
   Windows' default 125% scaling (which reports an effective/logical
   viewport of 1536px, confirmed via live inspection 2026-08-28), while
   still hiding cleanly on unscaled 1366/1440px laptop screens, where
   there genuinely isn't room. */
@media (min-width: 1500px) {
  .ad-slot--rail { display: flex; }
}

/* FAQ section */
.faq-section { padding: 8px 0 56px; }
.faq-section h2 {
  text-align: center;
  font-size: 22px;
  margin-bottom: 24px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 18px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  color: var(--color-primary);
  font-weight: 700;
}
.faq-item[open] summary::before { content: "\2212"; }
.faq-item p {
  margin: 10px 0 2px 16px;
  font-size: 13.5px;
  color: var(--color-text-muted);
}

/* Tool page */
.tool-page { padding: 40px 0 80px; }
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--color-text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--color-primary); text-decoration: underline; }
.breadcrumb span[aria-hidden] { color: var(--color-border); }
.breadcrumb span[aria-current] { color: var(--color-text); font-weight: 600; }
.tool-page h1 { margin-bottom: 6px; }
.tool-page-desc { color: var(--color-text-muted); margin-bottom: 28px; }

/* Tool page -- expanded SEO/content sections below the converter */
.tool-info { margin-top: 48px; padding-top: 8px; border-top: 1px solid var(--color-border); }
.tool-info h2 { font-size: 18px; margin: 32px 0 12px; }
.tool-info h2:first-child { margin-top: 24px; }
.tool-info p { color: var(--color-text-muted); font-size: 14.5px; line-height: 1.6; }
.how-to-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}
.how-to-steps li { margin-bottom: 4px; }
.format-table {
  border-collapse: collapse;
  font-size: 14px;
  margin: 4px 0;
}
.format-table th, .format-table td {
  text-align: left;
  padding: 8px 20px 8px 0;
  border-bottom: 1px solid var(--color-border);
}
.format-table th { color: var(--color-text-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.why-list, .use-case-list, .related-tools-list, .related-guides-list {
  margin: 0;
  padding-left: 20px;
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.8;
}
.related-tools-list, .related-guides-list { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.related-tools-list a, .related-guides-list a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}
.related-tools-list a:hover, .related-guides-list a:hover { text-decoration: underline; }
.tool-info .faq-list { margin-top: 4px; }

/* Guides index (/guides) */
.guides-list { list-style: none; margin: 28px 0 0; padding: 0; }
.guides-list-item { padding: 22px 0; border-bottom: 1px solid var(--color-border); }
.guides-list-item:first-child { padding-top: 0; }
.guides-list-item h2 { font-size: 19px; margin: 0 0 6px; }
.guides-list-item h2 a { color: var(--color-text); text-decoration: none; }
.guides-list-item h2 a:hover { color: var(--color-primary); text-decoration: underline; }
.guides-list-item p { color: var(--color-text-muted); font-size: 14.5px; line-height: 1.6; margin: 0; }

/* Homepage guides teaser */
.guides-teaser { padding: 56px 0; border-top: 1px solid var(--color-border); }
.guides-teaser-list { list-style: none; margin: 20px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.guides-teaser-list a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.guides-teaser-list a:hover { color: var(--color-primary); text-decoration: underline; }
.guides-teaser-more { color: var(--color-primary); font-weight: 600; text-decoration: none; font-size: 14.5px; }
.guides-teaser-more:hover { text-decoration: underline; }

.dropzone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 40px 20px;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone.dragover {
  border-color: var(--color-primary);
  background: var(--color-primary-tint);
}
.dropzone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary-tint);
  color: var(--color-primary);
  margin-bottom: 14px;
}
.dropzone-icon svg { width: 22px; height: 22px; }
.dropzone-hint {
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  color: #fff;
  margin-top: 20px;
}
.btn-primary:hover:not(:disabled) { background: var(--color-primary-dark); }
.btn-primary:disabled { background: #cbb6dc; cursor: not-allowed; }
.btn-primary:disabled::after { display: none; } /* no shimmer while the Convert button isn't clickable yet */
.btn-secondary {
  background: var(--color-primary-tint);
  color: var(--color-primary-dark);
}
.btn-secondary:hover { background: #e1cdef; }

.file-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 13px;
}
.file-list .file-remove {
  color: var(--color-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  font-size: 13px;
}
.file-list .file-remove:hover { color: #c0392b; }

.tool-fields {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field-row { display: flex; flex-direction: column; gap: 4px; }
.field-row label { font-size: 13px; font-weight: 600; color: var(--color-text-muted); }
.field-row input, .field-row select {
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 14px;
  font-family: inherit;
}

.status { margin-top: 16px; font-size: 14px; }
.status.error { color: #c0392b; }
.status.success { color: var(--color-accent-dark); }
.status .spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid var(--color-primary-tint);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.legal h2 { font-size: 17px; margin-top: 28px; }
.legal p { color: var(--color-text-muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 40px 0 20px;
  color: var(--color-text-muted);
  font-size: 13px;
  background: var(--color-surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-text);
  margin-bottom: 10px;
}
.footer-tagline {
  margin: 0 0 4px;
  max-width: 320px;
}
.footer-credit {
  margin: 0;
  font-size: 12px;
}
.footer-col h3 {
  font-size: 13px;
  color: var(--color-text);
  margin: 0 0 12px;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.footer-bottom a { color: var(--color-text-muted); }

@media (max-width: 780px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .trust-strip { gap: 18px; }
}

@media (max-width: 560px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 18px;
  }
  .site-nav.nav-open { display: flex; }
  .site-nav a { padding: 8px 0; width: 100%; }
  .site-nav a:not(.nav-cta) { padding: 10px 14px; margin-bottom: 2px; }
  .nav-cta { margin-top: 4px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* "You might also need" suggestions under the Convert button -- hidden
   until a conversion succeeds (see static/js/main.js). */
.next-steps {
  margin: 16px 0 8px;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
}
.next-steps[hidden] { display: none; }
.next-steps-title { margin: 0 0 6px; font-weight: 600; }
.next-steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.next-steps-list a { color: var(--color-primary); font-weight: 600; }

/* "Featured on" line in the footer brand column. Links sit inside a line
   of text, so they keep an underline -- colour alone isn't enough to tell
   them apart (WCAG 1.4.1 / Lighthouse "links distinguishable"). */
.footer-featured {
  margin: 8px 0 0;
  font-size: 12px;
  max-width: 320px;
}
.footer-col .footer-featured a { text-decoration: underline; }

/* Third-party listing badges in the footer (e.g. LaunchNest). */
.footer-badges { margin: 12px 0 0; }
.footer-badges img { display: block; max-width: 100%; height: auto; }

/* Guide pages: author/date line and data tables (added 30 Sept 2026).
   Tables reuse .format-table; the wrapper lets wide tables scroll sideways
   on phones instead of squeezing the columns. */
.guide-meta { color: var(--color-text-muted); font-size: 13px; margin: -4px 0 12px; }
.guide-table-wrap { overflow-x: auto; margin: 8px 0 4px; -webkit-overflow-scrolling: touch; }
.guide-table { width: 100%; min-width: 520px; }
.guide-table caption { caption-side: top; text-align: left; font-weight: 600; font-size: 14px; color: var(--color-text); padding: 0 0 8px; }
.guide-table th[scope="row"] { vertical-align: top; color: var(--color-text); font-weight: 600; font-size: 14px; text-transform: none; letter-spacing: 0; }
.guide-table td { color: var(--color-text-muted); vertical-align: top; }
.guide-table-note { font-size: 13px !important; margin-top: 6px; }
