/**
 * 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.
 */

#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;
}

/* ----- 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: 40rem;
  text-align: left;
}

.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));
}

.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));
}

/* ----- 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;
}
