/**
 * Static landing shell styles (home SEO). Tokens mirror src/index.css :root.
 * Scoped to #static-seo-landing so the rest of the SPA is unaffected.
 */

/* Preflight for standalone marketing HTML (no Tailwind on /articles, /support, etc.) */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body:has(#marketing-page),
body:has(#static-seo-landing) {
  background-color: hsl(210 20% 97%);
}

#static-seo-landing {
  --background: 210 20% 97%;
  --foreground: 220 30% 10%;
  --card: 0 0% 100%;
  --primary: 210 90% 42%;
  --primary-foreground: 0 0% 100%;
  --secondary: 160 50% 42%;
  --secondary-foreground: 0 0% 100%;
  --muted-foreground: 215 12% 48%;
  --accent: 24 90% 52%;
  --accent-foreground: 0 0% 100%;
  --border: 215 18% 87%;
  --ring: 210 90% 42%;
  --radius: 0.625rem;
  --shadow-card: 0 1px 3px hsl(220 30% 10% / 0.04), 0 4px 16px hsl(220 30% 10% / 0.06);
  --shadow-card-hover: 0 2px 6px hsl(220 30% 10% / 0.06), 0 8px 28px hsl(220 30% 10% / 0.1);

  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
}

#static-seo-landing h1,
#static-seo-landing h2,
#static-seo-landing h3 {
  font-family: inherit;
  font-weight: 700;
}

html.hide-static-seo-landing #static-seo-landing {
  display: none !important;
}

/* ----- Site header ----- */
#static-seo-landing .sl-site-header {
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
}

#static-seo-landing .sl-brand-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  max-width: 72rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.15s ease;
}

#static-seo-landing .sl-brand-link:hover {
  color: hsl(var(--primary));
}

#static-seo-landing .sl-brand-link img {
  border-radius: 0.375rem;
}

/* ----- Hero ----- */
.sl-hero {
  position: relative;
  display: flex;
  min-height: 90vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem;
}

.sl-hero-grid {
  margin: 0 auto;
  display: flex;
  width: 100%;
  max-width: 72rem;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .sl-hero-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 2rem;
  }
}

.sl-hero-copy {
  text-align: center;
}

@media (min-width: 1024px) {
  .sl-hero-copy {
    grid-column: span 5 / span 5;
    padding-left: 2rem;
    text-align: left;
  }
}

.sl-badge {
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.2);
  background-color: hsl(var(--primary) / 0.05);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
}

.sl-badge svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.sl-hero h1 {
  margin: 0 0 1.25rem;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}

@media (min-width: 640px) {
  .sl-hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 768px) {
  .sl-hero h1 {
    font-size: 3.75rem;
  }
}

.sl-hero-lead {
  margin: 0 auto 2.5rem;
  max-width: 32rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

@media (min-width: 1024px) {
  .sl-hero-lead {
    margin-left: 0;
    margin-right: 0;
  }
}

.sl-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: calc(var(--radius) - 2px);
  height: 2.75rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  transition: background-color 0.15s;
}

.sl-btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.sl-btn-primary svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.sl-hero-tiles-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

@media (min-width: 1024px) {
  .sl-hero-tiles-wrap {
    grid-column: span 7 / span 7;
  }
}

.sl-hero-tiles-group {
  position: relative;
  height: 200px;
  width: 300px;
}

@media (min-width: 640px) {
  .sl-hero-tiles-group {
    height: 260px;
    width: 400px;
  }
}

@media (min-width: 1024px) {
  .sl-hero-tiles-group {
    height: 360px;
    width: 540px;
  }
}

.sl-hero-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  width: 130px;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}

@media (min-width: 640px) {
  .sl-hero-tile {
    width: 175px;
    padding: 1.25rem;
  }
}

@media (min-width: 1024px) {
  .sl-hero-tile {
    width: 230px;
    padding: 1.75rem;
  }
}

.sl-hero-tile p {
  margin: 0;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.375;
}

@media (min-width: 640px) {
  .sl-hero-tile p {
    font-size: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .sl-hero-tile p {
    font-size: 0.875rem;
  }
}

/* Tile positions (match Hero.tsx inline transforms) */
.sl-hero-tile[data-i="0"] {
  z-index: 1;
  background: hsl(210 90% 42%);
  color: #fff;
  --default-transform: translate(-50%, -50%) translate(-60%, 10%) rotate(-8deg);
  --hover-transform: translate(-50%, -50%) translate(-90%, -20%) rotate(-4deg);
  transform: var(--default-transform);
}

.sl-hero-tile[data-i="1"] {
  z-index: 2;
  background: hsl(160 50% 42%);
  color: #fff;
  --default-transform: translate(-50%, -50%) translate(-20%, -15%) rotate(-3deg);
  --hover-transform: translate(-50%, -50%) translate(-30%, -45%) rotate(-1deg);
  transform: var(--default-transform);
}

.sl-hero-tile[data-i="2"] {
  z-index: 3;
  background: hsl(24 90% 52%);
  color: #fff;
  --default-transform: translate(-50%, -50%) translate(20%, 5%) rotate(2deg);
  --hover-transform: translate(-50%, -50%) translate(30%, 25%) rotate(1deg);
  transform: var(--default-transform);
}

.sl-hero-tile[data-i="3"] {
  z-index: 4;
  background: hsl(270 60% 50%);
  color: #fff;
  --default-transform: translate(-50%, -50%) translate(55%, -10%) rotate(7deg);
  --hover-transform: translate(-50%, -50%) translate(90%, -20%) rotate(3deg);
  transform: var(--default-transform);
}

@media (min-width: 1024px) {
  .sl-hero-tiles-group:hover .sl-hero-tile {
    transform: var(--hover-transform) !important;
  }
}

.sl-feature-row {
  position: relative;
  z-index: 10;
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .sl-feature-row {
    margin-top: 5rem;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

.sl-feature-card {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 0.75rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.sl-feature-icon {
  display: flex;
  height: 2rem;
  width: 2rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.sl-feature-icon.sl-fi-primary {
  background-color: hsl(var(--primary) / 0.08);
  color: hsl(var(--primary));
}

.sl-feature-icon.sl-fi-secondary {
  background-color: hsl(var(--secondary) / 0.08);
  color: hsl(var(--secondary));
}

.sl-feature-icon.sl-fi-accent {
  background-color: hsl(var(--accent) / 0.08);
  color: hsl(var(--accent));
}

.sl-feature-icon svg {
  width: 1rem;
  height: 1rem;
}

.sl-feature-card span {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

/* ----- How it works ----- */
.sl-section {
  padding: 5rem 1rem;
}

@media (min-width: 640px) {
  .sl-section {
    padding: 7rem 1rem;
  }
}

.sl-how-inner {
  margin: 0 auto;
  max-width: 56rem;
  text-align: center;
}

.sl-section-title {
  margin: 0 0 1rem;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}

@media (min-width: 640px) {
  .sl-section-title {
    font-size: 2.25rem;
  }
}

.sl-section-sub {
  margin: 0 auto 3.5rem;
  max-width: 32rem;
  color: hsl(var(--muted-foreground));
}

.sl-steps {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .sl-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sl-step-card {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}

.sl-step-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.sl-step-icon {
  margin: 0 auto 1.25rem;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  transition: background-color 0.2s, color 0.2s;
}

.sl-step-card:hover .sl-step-icon {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.sl-step-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.sl-step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.sl-step-card p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

/* ----- How it works: flow demo (Topic → Generate → Publish) ----- */
.sl-how-visual {
  margin-top: 3.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .sl-how-visual {
    margin-top: 4rem;
  }
}

.sl-how-flow-caption {
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

.sl-how-flow {
  position: relative;
  margin: 0 auto;
  height: 200px;
  width: 280px;
}

@media (min-width: 640px) {
  .sl-how-flow {
    height: 240px;
    width: 360px;
  }
}

@media (min-width: 1024px) {
  .sl-how-flow {
    height: 280px;
    width: 440px;
  }
}

.sl-how-flow-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  aspect-ratio: 1;
  width: 118px;
  border-radius: 1rem;
  padding: 0.75rem 0.625rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  text-align: left;
  transition:
    transform 0.5s cubic-bezier(0.33, 1, 0.68, 1),
    box-shadow 0.5s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.35s ease;
}

@media (min-width: 640px) {
  .sl-how-flow-tile {
    width: 150px;
    padding: 0.875rem 0.75rem;
  }
}

@media (min-width: 1024px) {
  .sl-how-flow-tile {
    width: 190px;
    padding: 1rem 0.875rem;
  }
}

.sl-how-flow-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}

@media (min-width: 640px) {
  .sl-how-flow-label {
    font-size: 0.625rem;
    margin-bottom: 0.5rem;
  }
}

.sl-how-flow-tile p {
  margin: 0;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .sl-how-flow-tile p {
    font-size: 0.6875rem;
    line-height: 1.4;
  }
}

@media (min-width: 1024px) {
  .sl-how-flow-tile p {
    font-size: 0.75rem;
  }
}

/* Stacked fan (three tiles); active tile pops forward via .is-active + JS cycle */
.sl-how-flow-tile[data-i="0"] {
  z-index: 1;
  background: hsl(210 90% 42%);
  color: #fff;
  transform: translate(-50%, -50%) translate(-44%, 6%) rotate(-6deg);
}

.sl-how-flow-tile[data-i="1"] {
  z-index: 2;
  background: hsl(160 50% 42%);
  color: #fff;
  transform: translate(-50%, -50%) translate(0%, -8%) rotate(0deg);
}

.sl-how-flow-tile[data-i="2"] {
  z-index: 3;
  background: hsl(24 90% 52%);
  color: #fff;
  transform: translate(-50%, -50%) translate(44%, 4%) rotate(6deg);
}

.sl-how-flow-tile.is-active {
  z-index: 10;
  box-shadow:
    0 20px 25px -5px rgb(0 0 0 / 0.12),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.sl-how-flow-tile[data-i="0"].is-active {
  transform: translate(-50%, -50%) translate(-44%, -4%) rotate(-6deg) scale(1.07);
}

.sl-how-flow-tile[data-i="1"].is-active {
  transform: translate(-50%, -50%) translate(0%, -16%) rotate(0deg) scale(1.07);
}

.sl-how-flow-tile[data-i="2"].is-active {
  transform: translate(-50%, -50%) translate(44%, -6%) rotate(6deg) scale(1.07);
}

.sl-how-flow-tile:not(.is-active) {
  opacity: 0.88;
}

.sl-how-flow-tile.is-active {
  opacity: 1;
}

@media (min-width: 1024px) {
  .sl-how-flow:hover .sl-how-flow-tile[data-i="0"]:not(.is-active) {
    transform: translate(-50%, -50%) translate(-52%, 0%) rotate(-6deg);
  }

  .sl-how-flow:hover .sl-how-flow-tile[data-i="1"]:not(.is-active) {
    transform: translate(-50%, -50%) translate(0%, -14%) rotate(0deg);
  }

  .sl-how-flow:hover .sl-how-flow-tile[data-i="2"]:not(.is-active) {
    transform: translate(-50%, -50%) translate(52%, -2%) rotate(6deg);
  }

  /* Keep active tile transforms when hovering */
  .sl-how-flow:hover .sl-how-flow-tile[data-i="0"].is-active {
    transform: translate(-50%, -50%) translate(-50%, -8%) rotate(-6deg) scale(1.07);
  }

  .sl-how-flow:hover .sl-how-flow-tile[data-i="1"].is-active {
    transform: translate(-50%, -50%) translate(0%, -20%) rotate(0deg) scale(1.07);
  }

  .sl-how-flow:hover .sl-how-flow-tile[data-i="2"].is-active {
    transform: translate(-50%, -50%) translate(50%, -10%) rotate(6deg) scale(1.07);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sl-how-flow-tile {
    transition: none;
  }
}

/* ----- Editorial: use cases, why us, internal links ----- */
.sl-editorial-inner {
  margin: 0 auto;
  max-width: 56rem;
  text-align: center;
}

.sl-editorial-inner > .sl-section-sub {
  margin-bottom: 2.5rem;
}

.sl-use-cases {
  display: grid;
  gap: 1.5rem;
  text-align: left;
}

@media (min-width: 640px) {
  .sl-use-cases {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sl-use-case {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.sl-use-case h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.sl-use-case p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

.sl-editorial-inner.sl-why-text {
  max-width: 42rem;
}

.sl-editorial-inner.sl-why-text .sl-section-title {
  margin-bottom: 1.5rem;
}

.sl-editorial-inner.sl-why-text p {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  line-height: 1.7;
  color: hsl(var(--muted-foreground));
  text-align: left;
}

.sl-editorial-inner.sl-why-text p:last-child {
  margin-bottom: 0;
}

.sl-editorial-inner.sl-why-text strong {
  color: hsl(var(--foreground));
  font-weight: 600;
}

.sl-learn-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 56rem;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 768px) {
  .sl-learn-list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 2.5rem;
  }
}

.sl-learn-list li {
  padding: 1rem 0;
  border-bottom: 1px solid hsl(var(--border));
}

.sl-learn-list li:first-child {
  border-top: 1px solid hsl(var(--border));
}

@media (min-width: 768px) {
  .sl-learn-list li:nth-child(2) {
    border-top: 1px solid hsl(var(--border));
  }
}

.sl-learn-list a {
  color: hsl(var(--primary));
  font-weight: 600;
  text-decoration: none;
}

.sl-learn-list a:hover {
  text-decoration: underline;
}

.sl-learn-desc {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.sl-learn-more-hub {
  margin: 1.5rem auto 0;
  max-width: 56rem;
  text-align: center;
  font-size: 0.9375rem;
}

.sl-learn-more-hub a {
  color: hsl(var(--primary));
  font-weight: 600;
  text-decoration: none;
}

.sl-learn-more-hub a:hover {
  text-decoration: underline;
}

/* ----- FAQ (details) ----- */
.sl-faq-inner {
  margin: 0 auto;
  max-width: 42rem;
}

.sl-faq-inner > .sl-section-title,
.sl-faq-inner > .sl-section-sub {
  text-align: center;
}

.sl-faq-inner .sl-section-sub {
  margin-bottom: 3rem;
}

.sl-faq-list {
  width: 100%;
}

.sl-faq-list details {
  border-bottom: 1px solid hsl(var(--border));
}

.sl-faq-list details:first-of-type {
  border-top: 1px solid hsl(var(--border));
}

.sl-faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 0;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
}

.sl-faq-list summary::-webkit-details-marker {
  display: none;
}

.sl-faq-list summary::after {
  content: "";
  float: right;
  margin-top: 0.35em;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid hsl(var(--muted-foreground));
  border-bottom: 2px solid hsl(var(--muted-foreground));
  transform: rotate(45deg);
  transition: transform 0.2s;
}

.sl-faq-list details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.5em;
}

.sl-faq-answer {
  padding: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

/* ----- Video ----- */
.sl-video-inner {
  margin: 0 auto;
  max-width: 56rem;
}

.sl-video-head {
  margin-bottom: 3rem;
  text-align: center;
}

.sl-video-head .sl-section-sub {
  margin: 0 auto;
  max-width: 42rem;
}

.sl-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  box-shadow: var(--shadow-card);
}

.sl-embed iframe {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  border: 0;
}

/* ----- CTA ----- */
.sl-cta-inner {
  margin: 0 auto;
  max-width: 42rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--primary) / 0.2);
  background-color: hsl(var(--primary) / 0.05);
  padding: 2.5rem;
  text-align: center;
}

@media (min-width: 640px) {
  .sl-cta-inner {
    padding: 4rem;
  }
}

.sl-cta-inner p {
  margin: 0 auto 2rem;
  max-width: 28rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

/* ----- Product Hunt ----- */
.sl-ph {
  display: flex;
  justify-content: center;
  padding-bottom: 3rem;
}

.sl-ph a {
  display: inline-block;
  line-height: 0;
}

.sl-ph img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ===== Static marketing pages (#marketing-page) ===== */
#marketing-page {
  --background: 210 20% 97%;
  --foreground: 220 30% 10%;
  --card: 0 0% 100%;
  --primary: 210 90% 42%;
  --primary-foreground: 0 0% 100%;
  --secondary: 160 50% 42%;
  --muted-foreground: 215 12% 48%;
  --border: 215 18% 87%;
  --radius: 0.625rem;
  --shadow-card: 0 1px 3px hsl(220 30% 10% / 0.04), 0 4px 16px hsl(220 30% 10% / 0.06);
  --shadow-card-hover: 0 2px 6px hsl(220 30% 10% / 0.06), 0 8px 28px hsl(220 30% 10% / 0.1);

  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  min-height: 100vh;
  width: 100%;
}

/* Article pages use .sm-article instead of .sm-page wrapper */
.sm-article {
  padding: 5rem 1rem;
}

@media (min-width: 640px) {
  .sm-article {
    padding: 7rem 1rem;
  }
}

#marketing-page h1,
#marketing-page h2,
#marketing-page h3 {
  font-family: inherit;
  font-weight: 700;
}

.sm-site-header {
  border-bottom: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
}

.sm-brand-link {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
  max-width: 72rem;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-decoration: none;
  transition: color 0.15s ease;
}

.sm-brand-link:hover {
  color: hsl(var(--primary));
}

.sm-brand-link img {
  border-radius: 0.375rem;
}

.sm-page {
  padding: 5rem 1rem;
}

@media (min-width: 640px) {
  .sm-page {
    padding: 7rem 1rem;
  }
}

.sm-container {
  margin: 0 auto;
  max-width: 72rem;
  width: 100%;
}

.sm-container--narrow {
  max-width: 42rem;
}

.sm-container--article {
  max-width: 56rem;
}

.sm-page-header {
  margin-bottom: 3rem;
  text-align: center;
}

.sm-badge {
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.2);
  background-color: hsl(var(--primary) / 0.05);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
}

.sm-badge svg {
  flex-shrink: 0;
}

.sm-h1 {
  margin: 0 0 1rem;
  font-size: 2.25rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}

@media (min-width: 640px) {
  .sm-h1 {
    font-size: 3rem;
  }
}

.sm-meta-line {
  margin: 0 auto;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

.sm-meta-line--lead {
  max-width: 32rem;
}

.sm-lead-wrap {
  margin-bottom: 3rem;
}

.sm-lead {
  font-size: 1.25rem;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

.sm-prose {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}

.sm-prose section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sm-h2 {
  margin: 0;
  font-size: 1.875rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: hsl(var(--foreground));
}

.sm-h2--section {
  font-size: 1.875rem;
}

.sm-h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

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

.sm-p {
  margin: 0;
}

.sm-p--top {
  margin-top: 1rem;
}

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

.sm-p--muted {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.sm-ul {
  margin: 0 0 1rem 1.5rem;
  list-style: disc;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sm-ul strong {
  color: hsl(var(--foreground));
}

.sm-link {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sm-link:hover {
  opacity: 0.9;
}

.sm-callout {
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--primary) / 0.2);
  background-color: hsl(var(--primary) / 0.05);
  padding: 1.5rem;
}

.sm-card {
  border-radius: 1rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.sm-card--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

/* Support email reveal panels wrap content in an inner div */
.sm-card--center > div[hidden] {
  display: none !important;
}

.sm-card--center > div:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.sm-card--cta {
  margin-top: 2rem;
}

.sm-icon-circle {
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.sm-icon-square {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  flex-shrink: 0;
}

.sm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: calc(var(--radius) - 2px);
  height: 2.75rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  transition: background-color 0.15s;
}

.sm-btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

.sm-email-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: hsl(var(--primary));
  text-decoration: none;
}

.sm-email-link:hover {
  text-decoration: underline;
}

.sm-section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.sm-section-heading--spaced {
  margin-top: 2rem;
}

.sm-legal-block {
  margin-bottom: 1.5rem;
}

.sm-legal-block .sm-h3 {
  margin-bottom: 0.5rem;
}

/* Articles grid */
.sm-articles-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .sm-articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .sm-articles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sm-article-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s;
}

.sm-article-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.sm-article-card-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.sm-article-card-title {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: hsl(var(--foreground));
  transition: color 0.15s;
}

.sm-article-card:hover .sm-article-card-title {
  color: hsl(var(--primary));
}

.sm-article-card-desc {
  margin: 0 0 1rem;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sm-article-card-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
}

/* Related reading */
.sm-related {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid hsl(var(--border));
}

.sm-related h2 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: hsl(var(--foreground));
}

.sm-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sm-related-link {
  display: block;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 1rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.sm-related-link:hover {
  border-color: hsl(var(--primary) / 0.5);
  box-shadow: var(--shadow-card);
}

.sm-related-link h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  transition: color 0.15s;
}

.sm-related-link:hover h3 {
  color: hsl(var(--primary));
}

.sm-related-link p {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Back to home CTA */
.sm-back-cta {
  padding: 3rem 1rem;
}

@media (min-width: 640px) {
  .sm-back-cta {
    padding: 4rem 1rem;
  }
}

.sm-back-cta-inner {
  margin: 0 auto;
  max-width: 42rem;
  border-radius: 1rem;
  border: 1px solid hsl(var(--primary) / 0.2);
  background-color: hsl(var(--primary) / 0.05);
  padding: 2rem;
  text-align: center;
}

@media (min-width: 640px) {
  .sm-back-cta-inner {
    padding: 3rem;
  }
}

.sm-back-cta-badge {
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid hsl(var(--primary) / 0.2);
  background-color: hsl(var(--primary) / 0.1);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--primary));
}

.sm-back-cta h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
  color: hsl(var(--foreground));
}

@media (min-width: 640px) {
  .sm-back-cta h2 {
    font-size: 1.875rem;
  }
}

.sm-back-cta p {
  margin: 0 auto 1.5rem;
  max-width: 28rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.625;
}

.sm-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  height: 2.75rem;
  padding: 0 2rem;
  font-size: 1rem;
  font-weight: 600;
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  text-decoration: none;
  transition: background-color 0.15s;
}

.sm-btn-secondary:hover {
  background-color: hsl(var(--primary) / 0.9);
}

/* Footer */
.sm-footer {
  border-top: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  padding: 3.5rem 1rem;
}

.sm-footer-grid {
  margin: 0 auto;
  max-width: 72rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 640px) {
  .sm-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.sm-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sm-footer-brand {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.sm-footer-brand:hover {
  color: hsl(var(--primary));
}

.sm-footer-brand svg {
  width: 1rem;
  height: 1rem;
  color: hsl(var(--primary));
}

.sm-footer-tagline {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.sm-footer-heading {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--foreground));
}

.sm-footer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.sm-footer-nav a,
.sm-footer-nav button {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.sm-footer-nav a:hover,
.sm-footer-nav button:hover {
  color: hsl(var(--primary));
}

.sm-footer-bottom {
  margin: 3rem auto 0;
  max-width: 72rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

@media (min-width: 640px) {
  .sm-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.sm-footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.sm-footer-bottom a {
  color: hsl(var(--primary));
  font-weight: 500;
  text-decoration: none;
}

.sm-footer-bottom a:hover {
  text-decoration: underline;
}

.sm-share-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.sm-share-modal[hidden] {
  display: none !important;
}

body.sm-share-modal-open {
  overflow: hidden;
}

.sm-share-modal__backdrop {
  position: absolute;
  inset: 0;
  background-color: hsl(222 47% 11% / 0.5);
  backdrop-filter: blur(2px);
}

.sm-share-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 24rem;
  border-radius: 0.75rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  animation: sm-share-modal-in 0.18s ease-out;
}

@keyframes sm-share-modal-in {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(0.5rem);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.sm-share-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  height: 2rem;
  width: 2rem;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: hsl(var(--muted-foreground));
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.sm-share-modal__close:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.sm-share-modal__title {
  margin: 0 2rem 0.5rem 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: hsl(var(--foreground));
}

.sm-share-modal__desc {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: hsl(var(--muted-foreground));
}

.sm-share-modal__options {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem 0 1rem;
}

@media (min-width: 640px) {
  .sm-share-modal__options {
    gap: 1rem;
  }
}

.sm-share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  text-decoration: none;
  color: inherit;
}

.sm-share-option__icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background-color: hsl(var(--muted));
  transition: background-color 0.15s ease;
}

.sm-share-option__icon svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.sm-share-option:hover .sm-share-option__icon {
  background-color: hsl(var(--accent));
}

.sm-share-icon--whatsapp {
  color: #25d366;
}

.sm-share-icon--x {
  color: hsl(var(--foreground));
}

.sm-share-icon--facebook {
  color: #1877f2;
}

.sm-share-option__label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.sm-share-modal__copy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--muted) / 0.4);
  padding: 0.5rem 0.75rem;
}

.sm-share-modal__url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
}

.sm-share-modal__copy-btn {
  display: flex;
  height: 1.75rem;
  width: 1.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
}

.sm-share-modal__copy-btn:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--primary));
}

.sm-share-modal__copy-icon,
.sm-share-modal__check-icon {
  width: 1rem;
  height: 1rem;
}

.sm-share-modal__copy-icon[hidden],
.sm-share-modal__check-icon[hidden] {
  display: none !important;
}

.sm-share-modal__check-icon {
  color: hsl(var(--primary));
}

/* Home static footer inside #static-seo-landing */
#static-seo-landing .sm-footer {
  margin-top: 0;
}
