/* SoftCofee Enterprise Website - Clean Light Professional Theme */

:root {
  /* Light Professional Palette */
  --sc-bg-dark: #FFFFF0;
  --sc-bg-section: #FAFAF5;
  --sc-bg-card: #FFFFF0;
  --sc-border: #E2E8F0;
  --sc-text: #1A1A2E;
  --sc-text-muted: #4A5568;
  --sc-primary: #7C3AED;
  --sc-primary-dark: #6D28D9;
  --sc-primary-light: rgba(124, 58, 237, 0.08);
  --sc-secondary: #8B5CF6;
  --sc-accent: #06B6D4;
  --sc-gradient: linear-gradient(135deg, #7C3AED 0%, #8B5CF6 50%, #06B6D4 100%);
  
  /* Typography */
  --sc-font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --sc-spacing-xs: 0.5rem;
  --sc-spacing-sm: 1rem;
  --sc-spacing-md: 2rem;
  --sc-spacing-lg: 4rem;
  --sc-spacing-xl: 6rem;
  
  /* Border Radius */
  --sc-radius: 12px;
  --sc-radius-lg: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--sc-font-main);
  color: var(--sc-text);
  line-height: 1.7;
  font-size: 16px;
  background: var(--sc-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sc-spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--sc-font-main);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  background: var(--sc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 {
  font-size: 4rem;
  margin-bottom: var(--sc-spacing-sm);
}

h2 {
  font-size: 3rem;
  margin-bottom: var(--sc-spacing-md);
}

h3 {
  font-size: 1.5rem;
  margin-bottom: var(--sc-spacing-xs);
  -webkit-text-fill-color: var(--sc-text);
  background: none;
}

p {
  color: var(--sc-text-muted);
  margin-bottom: var(--sc-spacing-sm);
}

a {
  color: var(--sc-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--sc-secondary);
}

/* Header & Navigation */
header {
  background: rgba(255, 255, 240, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sc-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: var(--sc-spacing-sm) 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sc-spacing-xs);
  font-weight: 800;
  font-size: 1.5rem;
  background: var(--sc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-brand img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--sc-spacing-md);
  align-items: center;
}

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

.nav-links a:hover {
  color: var(--sc-primary);
}

.nav-cta {
  background: var(--sc-gradient);
  color: white !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--sc-radius);
  font-weight: 600;
  border: none;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.3);
}

/* Hero Section */
.hero {
  padding: var(--sc-spacing-xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--sc-bg-dark);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.06) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-subtitle {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--sc-primary-light);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 50px;
  color: var(--sc-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--sc-spacing-md);
}

.hero h1 {
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto var(--sc-spacing-md);
}

.hero-cta {
  display: flex;
  gap: var(--sc-spacing-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--sc-radius);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--sc-gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.35);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--sc-text);
  border: 2px solid var(--sc-border);
}

.btn-secondary:hover {
  border-color: var(--sc-primary);
  color: var(--sc-primary);
  transform: translateY(-3px);
  background: var(--sc-primary-light);
}

/* Features & Services Grid */
.features {
  padding: var(--sc-spacing-xl) 0;
  background: var(--sc-bg-section);
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: var(--sc-spacing-xs);
}

.section-subtitle {
  text-align: center;
  color: var(--sc-text-muted);
  font-size: 1.125rem;
  margin-bottom: var(--sc-spacing-lg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  /* min(Npx, 100%) lets the track shrink below N when the container is
     narrower than N, which a bare minmax(320px, 1fr) cannot do. */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: var(--sc-spacing-md);
  margin-top: var(--sc-spacing-md);
}

.feature-card {
  background: var(--sc-bg-card);
  padding: var(--sc-spacing-md);
  border-radius: var(--sc-radius-lg);
  border: 1px solid var(--sc-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--sc-gradient);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--sc-primary);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.12);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: var(--sc-spacing-sm);
  display: block;
}

.product-logo {
  width: 48px;
  height: 48px;
  margin-bottom: var(--sc-spacing-xs);
}

.feature-card h3 {
  margin-bottom: var(--sc-spacing-xs);
  color: var(--sc-primary);
}

.feature-card p {
  line-height: 1.7;
  color: var(--sc-text-muted);
}

.feature-card-actions {
  display: flex;
  flex-direction: column;
  gap: var(--sc-spacing-xs);
  margin-top: var(--sc-spacing-sm);
}

.btn-row {
  display: flex;
  gap: var(--sc-spacing-xs);
}

.btn-full {
  width: 100%;
  text-align: center;
}

.feature-card-actions .btn {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

/* Pricing Section */
.pricing {
  padding: var(--sc-spacing-xl) 0;
  background: var(--sc-bg-section);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--sc-spacing-md);
  margin-top: var(--sc-spacing-md);
}

.pricing-card {
  background: var(--sc-bg-card);
  padding: var(--sc-spacing-md);
  border-radius: var(--sc-radius-lg);
  border: 2px solid var(--sc-border);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: var(--sc-primary);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.12);
}

.pricing-card.featured {
  border-color: var(--sc-primary);
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.pricing-card h3 {
  font-size: 1.75rem;
  margin-bottom: var(--sc-spacing-xs);
}

.price {
  font-size: 3.5rem;
  font-weight: 800;
  background: var(--sc-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: var(--sc-spacing-sm) 0;
}

.price span {
  font-size: 1rem;
  color: var(--sc-text-muted);
  font-weight: 400;
}

.original-price {
  text-decoration: line-through;
  color: var(--sc-text-muted);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.pricing-card ul {
  list-style: none;
  margin: var(--sc-spacing-md) 0;
  text-align: left;
}

.pricing-card li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sc-border);
  color: var(--sc-text-muted);
}

.pricing-card li:before {
  content: "✓";
  color: var(--sc-accent);
  font-weight: bold;
  margin-right: 0.5rem;
}

.pricing-card .btn {
  width: 100%;
  margin-top: var(--sc-spacing-sm);
}

/* Content Pages (Privacy, Terms, Help) */
.content-page {
  padding: var(--sc-spacing-xl) 0;
  background: var(--sc-bg-dark);
}

.content-page h1 {
  font-size: 3rem;
  margin-bottom: var(--sc-spacing-sm);
}

.content-page h2 {
  font-size: 2rem;
  margin-top: var(--sc-spacing-md);
  margin-bottom: var(--sc-spacing-sm);
}

.content-page h3 {
  font-size: 1.5rem;
  margin-top: var(--sc-spacing-sm);
  margin-bottom: var(--sc-spacing-xs);
}

.content-page ul {
  margin: var(--sc-spacing-sm) 0;
  padding-left: var(--sc-spacing-md);
}

.content-page li {
  margin-bottom: 0.5rem;
  color: var(--sc-text-muted);
}

.content-page code {
  background: var(--sc-bg-section);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  color: var(--sc-primary);
}

/* Footer */
footer {
  background: var(--sc-bg-section);
  border-top: 1px solid var(--sc-border);
  padding: var(--sc-spacing-lg) 0 var(--sc-spacing-md);
  margin-top: var(--sc-spacing-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--sc-spacing-md);
  margin-bottom: var(--sc-spacing-md);
}

.footer-col h4 {
  font-size: 1.125rem;
  margin-bottom: var(--sc-spacing-sm);
  color: var(--sc-text);
  -webkit-text-fill-color: var(--sc-text);
  background: none;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: var(--sc-spacing-xs);
}

.footer-col a {
  color: var(--sc-text-muted);
}

.footer-col a:hover {
  color: var(--sc-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--sc-spacing-md);
  border-top: 1px solid var(--sc-border);
  color: var(--sc-text-muted);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2, .section-title {
    font-size: 2rem;
  }
  
  .hero {
    padding: var(--sc-spacing-lg) 0;
  }
  
  .hero p {
    font-size: 1.125rem;
  }
  
  .nav-links {
    gap: var(--sc-spacing-sm);
    font-size: 0.875rem;
  }
  
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mt-lg {
  margin-top: var(--sc-spacing-lg);
}

.mb-lg {
  margin-bottom: var(--sc-spacing-lg);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-card,
.pricing-card {
  animation: fadeInUp 0.5s ease-out;
}

/* Help Center Layout Styles */
.help-content {
  padding: var(--sc-spacing-lg) 0;
  min-height: calc(100vh - 200px);
  background: var(--sc-bg-dark);
}

.help-header {
  text-align: center;
  margin-bottom: var(--sc-spacing-lg);
  padding: var(--sc-spacing-md) 0;
}

.help-header h1 {
  font-size: 2.5rem;
  margin-bottom: var(--sc-spacing-xs);
}

.help-header p {
  font-size: 1.1rem;
  color: var(--sc-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.help-container {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: var(--sc-spacing-lg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sc-spacing-md);
}

.help-sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
  background: var(--sc-bg-card);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-lg);
  padding: var(--sc-spacing-md);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.help-sidebar h3 {
  font-size: 1.1rem;
  margin-bottom: var(--sc-spacing-sm);
}

.help-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.help-sidebar li {
  margin-bottom: 0.5rem;
}

.help-sidebar a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--sc-text-muted);
  text-decoration: none;
  border-radius: var(--sc-radius);
  transition: all 0.2s;
  font-size: 0.95rem;
}

.help-sidebar a:hover {
  background: var(--sc-primary-light);
  color: var(--sc-primary);
}

.help-sidebar a.active {
  background: var(--sc-gradient);
  color: white;
  font-weight: 600;
}

.help-article {
  background: var(--sc-bg-card);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-lg);
  padding: var(--sc-spacing-lg);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.help-article h2 {
  font-size: 2rem;
  margin-top: var(--sc-spacing-md);
  margin-bottom: var(--sc-spacing-sm);
  border-bottom: 2px solid var(--sc-border);
  padding-bottom: 0.5rem;
}

.help-article h3 {
  font-size: 1.5rem;
  margin-top: var(--sc-spacing-md);
  margin-bottom: var(--sc-spacing-sm);
}

.help-article h4 {
  font-size: 1.2rem;
  margin-top: var(--sc-spacing-sm);
  margin-bottom: var(--sc-spacing-xs);
}

.help-article ul,
.help-article ol {
  margin-bottom: var(--sc-spacing-sm);
  padding-left: 2rem;
}

.help-article li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.help-article code {
  background: var(--sc-bg-section);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--sc-primary);
  font-family: 'Courier New', monospace;
}

.help-article pre {
  background: #1E1E2E;
  color: #E0E0E8;
  padding: 1rem 1.5rem;
  border-radius: var(--sc-radius);
  overflow-x: auto;
  margin: 1rem 0;
  border: 1px solid var(--sc-border);
}

.help-article pre code {
  background: none;
  color: inherit;
  padding: 0;
}

.help-nav {
  display: flex;
  justify-content: space-between;
  margin-top: var(--sc-spacing-lg);
  padding-top: var(--sc-spacing-md);
  border-top: 1px solid var(--sc-border);
}

.help-nav-prev,
.help-nav-next {
  padding: 0.75rem 1.5rem;
  background: var(--sc-bg-card);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  text-decoration: none;
  color: var(--sc-primary);
  font-weight: 600;
  transition: all 0.3s;
}

.help-nav-prev:hover,
.help-nav-next:hover {
  background: var(--sc-gradient);
  color: white;
  border-color: transparent;
}

/* Responsive help layout */
@media (max-width: 768px) {
  .help-container {
    grid-template-columns: 1fr;
  }
  
  .help-sidebar {
    position: static;
    margin-bottom: var(--sc-spacing-md);
  }
  
  .help-article {
    padding: var(--sc-spacing-md);
  }
  
  .help-header h1 {
    font-size: 2rem;
  }
}

/* ===========================================================================
   RESPONSIVE LAYER
   Additive only: nothing above this line was changed, so removing this whole
   block returns the site to its previous behaviour.

   Why these rules exist (measured, not assumed): at a 375px viewport 24 of 26
   public pages were wider than their own viewport (213px to 689px of overflow),
   and the dominant offender was UL.nav-links, a rigid flex row that no page has
   a hamburger for. One page (help/delivery-best-practices) overflowed for a
   different reason: a grid item defaults to min-width:auto, so a wide table
   inside the article forced the whole sidebar column to 1032px.
   ========================================================================= */

/* Nothing may exceed the box that holds it. These are media-independent, so
   they also protect desktop, where they are currently no-ops. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  /* long unbreakable tokens: URLs, worker hostnames, email addresses */
  overflow-wrap: break-word;
}

img,
video,
iframe {
  max-width: 100%;
  height: auto;
}

/* svg is capped in width only: no page sets width/height attributes on its
   images, but the hero artwork relies on its own intrinsic ratio. */
svg {
  max-width: 100%;
}

table {
  max-width: 100%;
}

/* only .help-article pre had this; 11 <pre> blocks sit outside that scope */
pre {
  overflow-x: auto;
  max-width: 100%;
}

/* Allow flex/grid children to shrink below their content's min-content width.
   This is the fix for the 1032px help sidebar, which overflowed even at 768px. */
.nav > *,
.hero-cta > *,
.features-grid > *,
.pricing-grid > *,
.footer-grid > *,
.help-container > * {
  min-width: 0;
}

/* Horizontal scroll container for genuinely wide tables (comparison matrices).
   The page stays put; the table swipes. */
.tbl-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Fluid type. Every upper bound equals the size desktop uses today, so the
   1280px rendering is unchanged; only narrow screens scale down. */
h1 {
  font-size: clamp(2rem, 1.15rem + 4.2vw, 4rem);
}

h2,
.section-title {
  font-size: clamp(1.6rem, 1rem + 3.1vw, 3rem);
}

.content-page h1 {
  font-size: clamp(1.75rem, 1.1rem + 3.2vw, 3rem);
}

.content-page h2 {
  font-size: clamp(1.4rem, 1.05rem + 1.9vw, 2rem);
}

.help-header h1 {
  font-size: clamp(1.75rem, 1.15rem + 3.1vw, 2.5rem);
}

.hero p {
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.25rem);
}

.price {
  font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem);
}

/* Phones and small tablets: stack the header instead of letting the link row
   drive the page width. Breakpoint is 768px because the single-row nav already
   fits at 769px and above, and that look is worth preserving. */
@media (max-width: 768px) {
  header {
    padding: 0.4rem 0;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav-brand {
    justify-content: center;
    font-size: 1.25rem;
  }

  .nav-brand img {
    height: 32px;
  }

  /* Links WRAP onto two rows instead of forming a swipeable strip. A strip kept
     the document inside the viewport (which is what the harness measured) but on a
     real phone the last items were cut off mid-word, so the bar still read as
     wider than the screen. Wrapping costs header height and shows everything. */
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem 0.4rem;
    padding-bottom: 0.2rem;
    font-size: 0.9rem;
  }

  .nav-links li {
    flex: 0 0 auto;
  }

  /* 44px is the minimum comfortable tap target */
  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
    padding: 0 0.55rem;
    font-size: 0.9rem;
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1rem;
  }

  .container,
  .help-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .hero {
    padding: var(--sc-spacing-md) 0;
  }

  .features,
  .content-page {
    padding: var(--sc-spacing-lg) 0;
  }

  footer {
    margin-top: var(--sc-spacing-lg);
  }
}

/* Found during the Phase 5 sweep, not by design: iPad portrait reports 810-820px
   of CSS width, which is ABOVE the 768px breakpoint, so it kept the single-row
   nav. That row needs ~805px (brand + 7 links + CTA) and overflowed trial.html
   and trial-request.html by 20px at a 785px clientW; the same pages are clean
   from 845px up. The nav gets exactly the phone treatment in this band and
   nothing else changes, so the desktop look is untouched. */
@media (min-width: 769px) and (max-width: 830px) {
  header {
    padding: 0.4rem 0;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .nav-brand {
    justify-content: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.1rem 0.4rem;
    padding-bottom: 0.2rem;
    font-size: 0.9rem;
  }

  .nav-links li {
    flex: 0 0 auto;
  }

  .nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
    padding: 0 0.55rem;
  }

  .nav-cta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1rem;
  }
}

/* Small phones: single-column footer (the 768px rule gives 2 columns, which is
   cramped for 5 columns of links), tighter gutters and card padding. */
@media (max-width: 560px) {
  /* The wrapped link rows make the header roughly 130px tall on a phone, which a
     sticky bar would then hold over the content forever. Let it scroll away. */
  header {
    position: static;
  }

  .container,
  .help-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sc-spacing-sm);
  }

  .feature-card,
  .pricing-card,
  .help-article {
    padding: var(--sc-spacing-sm);
  }

  .hero .btn,
  .btn {
    width: 100%;
    max-width: 100%;
  }

  .hero-cta {
    gap: var(--sc-spacing-xs);
  }

  .help-nav {
    flex-direction: column;
    gap: var(--sc-spacing-xs);
  }

  .help-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Help-centre sidebar. Below 560px it sits above the article (the 768px rule
     stacks the two columns), so a 10-item vertical list pushed the actual answer
     about half a screen down. As a swipeable chip row it costs one line. CSS-only
     on purpose: a collapsed <details> would need markup on all 11 pages. */
  .help-sidebar {
    padding: var(--sc-spacing-sm);
  }

  .help-sidebar h3 {
    font-size: 0.95rem;
    margin-bottom: var(--sc-spacing-xs);
  }

  .help-sidebar ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  .help-sidebar ul::-webkit-scrollbar {
    display: none;
  }

  .help-sidebar li {
    flex: 0 0 auto;
    margin-bottom: 0;
  }

  .help-sidebar a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
    padding: 0 1rem;
    border: 1px solid var(--sc-border);
    border-radius: 999px;
    font-size: 0.9rem;
  }

  .help-sidebar a.active {
    border-color: transparent;
  }
}

/* Respect the OS setting that asks for less movement. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
