/*
 * My SiteBrain AI marketing landing styles.
 * Separate from console/platform (firmbot.css).
 */

:root {
  --radius: 0.75rem;

  --background: #0a1219;
  --foreground: #e8eef3;
  --panel: #111c26;
  --panel-raised: #16232f;
  --card: #111c26;
  --card-foreground: #e8eef3;
  --primary: #0e7490;
  --primary-hover: #0891b2;
  --primary-deep: #155e75;
  --primary-foreground: #ecfeff;
  --muted: #0d1620;
  --muted-foreground: #8ba3b5;
  --accent: #0891b2;
  --accent-foreground: #ecfeff;
  --destructive: #f87171;
  --warning: #f59e0b;
  --success: #34d399;
  --border: #1e2d3d;
  --ring: rgba(14, 116, 144, 0.45);

  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;

  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 18px 60px -20px rgba(14, 116, 144, 0.55);

  --gradient-shell:
    radial-gradient(1200px 600px at 10% -10%, rgba(14, 116, 144, 0.16), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(21, 94, 117, 0.12), transparent 50%),
    #0a1219;
  --gradient-accent: linear-gradient(135deg, var(--primary-deep), var(--primary-hover));
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--gradient-shell);
  background-attachment: fixed;
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

pre,
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

::selection {
  background: var(--primary);
  color: var(--primary-foreground);
}

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
  border-radius: 8px;
}

/* Layout */

.sm-section {
  margin-inline: auto;
  width: 100%;
  max-width: 72rem;
  padding: 3rem 1.125rem;
}

@media (min-width: 768px) {
  .sm-section {
    padding-block: 6rem;
  }
}

.sm-section--tight-top {
  padding-top: 2.25rem;
}

@media (min-width: 768px) {
  .sm-section--tight-top {
    padding-top: 5rem;
  }
}

.sm-section--py-0 {
  padding-block: 0;
}

.sm-section--py-10 {
  padding-block: 2.5rem;
}

.sm-section--py-14 {
  padding-block: 3.5rem;
}

.sm-max-3xl {
  max-width: 48rem;
}

.sm-max-2xl {
  max-width: 42rem;
}

.sm-max-xl {
  max-width: 36rem;
}

.sm-mx-auto {
  margin-inline: auto;
}

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

/* Header */

.sm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--background) 80%, transparent);
  backdrop-filter: blur(20px);
}

.sm-header.is-open {
  z-index: 100000;
}

.sm-header__inner {
  margin-inline: auto;
  display: flex;
  height: 4rem;
  width: 100%;
  max-width: 72rem;
  align-items: center;
  justify-content: space-between;
  padding-inline: 1.25rem;
  gap: 1rem;
}

.sm-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.sm-brand__mark {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0;
  background: transparent;
}

.sm-brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.sm-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.sm-nav__action {
  display: none;
}

.sm-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-raised);
  color: var(--foreground);
  cursor: pointer;
}

.sm-menu-btn__bars,
.sm-menu-btn__bars::before,
.sm-menu-btn__bars::after {
  display: block;
  width: 1rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  position: relative;
}

.sm-menu-btn__bars::before,
.sm-menu-btn__bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.sm-menu-btn__bars::before {
  top: -5px;
}

.sm-menu-btn__bars::after {
  top: 5px;
}

.sm-header.is-open .sm-menu-btn__bars {
  background: transparent;
}

.sm-header.is-open .sm-menu-btn__bars::before {
  top: 0;
  transform: rotate(45deg);
}

.sm-header.is-open .sm-menu-btn__bars::after {
  top: 0;
  transform: rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .sm-menu-btn__bars,
  .sm-menu-btn__bars::before,
  .sm-menu-btn__bars::after {
    transition: none;
  }
}

@media (max-width: 959px) {
  .sm-menu-btn {
    display: inline-flex;
  }

  .sm-header__actions .sm-cta--ghost,
  .sm-header__actions .sm-cta--secondary {
    display: none;
  }

  .sm-header.is-open .sm-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 40;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    gap: 0.15rem;
    padding: 0.5rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--background);
    backdrop-filter: blur(20px);
  }

  .sm-header.is-open .sm-nav a {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.65rem 0.25rem;
    font-size: 1rem;
  }

  .sm-header.is-open .sm-nav__action {
    display: block;
  }
}

@media (min-width: 960px) {
  .sm-nav {
    display: flex;
  }
}

.sm-nav a {
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  transition: color 0.15s ease;
}

.sm-nav a:hover,
.sm-nav a[aria-current="page"] {
  color: var(--foreground);
}

.sm-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 420px) {
  .sm-header__inner {
    padding-inline: 0.75rem;
    gap: 0.5rem;
  }

  .sm-brand {
    min-width: 0;
  }

  .sm-brand__name {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sm-header__actions .sm-cta--sm {
    padding-inline: 0.7rem;
  }
}

/* CTAs */

.sm-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.sm-cta--sm {
  padding: 0.5rem 1rem;
}

.sm-cta--full {
  width: 100%;
}

.sm-cta--primary {
  background: var(--gradient-accent);
  color: var(--primary-foreground);
  border-color: var(--primary-hover);
  box-shadow: var(--shadow-glow);
}

.sm-cta--primary:hover {
  filter: brightness(1.1);
}

.sm-cta--secondary {
  background: var(--panel-raised);
  color: var(--foreground);
  border-color: var(--border);
}

.sm-cta--secondary:hover {
  border-color: var(--primary);
  color: var(--accent);
}

.sm-cta--ghost {
  color: var(--muted-foreground);
  background: transparent;
}

.sm-cta--ghost:hover {
  color: var(--accent);
}

.sm-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Typography helpers */

.sm-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.sm-h1 {
  margin-top: 1.25rem;
  font-size: clamp(1.85rem, 4.2vw + 0.85rem, 2.75rem);
  line-height: 1.08;
}

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

.sm-h1--md {
  font-size: 2.5rem;
  line-height: 1.1;
}

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

.sm-h2 {
  margin-top: 1rem;
  font-size: clamp(1.55rem, 2vw + 1rem, 1.875rem);
  line-height: 1.18;
}

@media (min-width: 768px) {
  .sm-h2 {
    font-size: 2.6rem;
  }
}

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

@media (min-width: 768px) {
  .sm-h2--lg {
    font-size: 2.25rem;
  }
}

.sm-h3 {
  font-size: 1.125rem;
  line-height: 1.3;
}

.sm-h3--xl {
  font-size: 1.25rem;
}

.sm-lead {
  margin-top: 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

@media (min-width: 768px) {
  .sm-lead {
    font-size: 1.25rem;
  }
}

.sm-lead--wide {
  max-width: 42rem;
}

.sm-muted {
  color: var(--muted-foreground);
}

.sm-body {
  margin-top: 1rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.sm-text-sm {
  font-size: 0.875rem;
  line-height: 1.625;
}

.sm-text-xs {
  font-size: 0.75rem;
}

.sm-accent {
  color: var(--accent);
}

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

/* Panels */

.sm-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.sm-panel-lg {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.sm-panel--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.sm-panel--hover:hover {
  border-color: var(--primary);
}

.sm-p-5 {
  padding: 1.25rem;
}

.sm-p-6 {
  padding: 1.5rem;
}

.sm-p-7 {
  padding: 1.75rem;
}

.sm-p-8 {
  padding: 2rem;
}

.sm-p-10 {
  padding: 2.5rem;
}

@media (min-width: 768px) {
  .sm-p-12-md {
    padding: 3rem;
  }

  .sm-p-14-md {
    padding: 3.5rem;
  }
}

/* Grids */

.sm-grid {
  display: grid;
  gap: 1rem;
}

/* Prevent media / long text from blowing out adjacent grid tracks */
.sm-grid > * {
  min-width: 0;
}

.sm-grid--3 {
  gap: 0.75rem;
}

.sm-mt-3 {
  margin-top: 0.75rem;
}
.sm-mt-4 {
  margin-top: 1rem;
}
.sm-mt-5 {
  margin-top: 1.25rem;
}
.sm-mt-6 {
  margin-top: 1.5rem;
}
.sm-mt-7 {
  margin-top: 1.75rem;
}
.sm-mt-8 {
  margin-top: 2rem;
}
.sm-mt-10 {
  margin-top: 2.5rem;
}
.sm-mt-12 {
  margin-top: 3rem;
}
.sm-mt-14 {
  margin-top: 3.5rem;
}

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

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

@media (min-width: 1024px) {
  .sm-grid-lg-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sm-grid-lg-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sm-grid-lg-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .sm-grid-lg-hero {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    align-items: start;
    gap: 2rem;
  }
  .sm-grid-lg-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 2.5rem;
  }
  .sm-grid-lg-cta {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
  .sm-order-2-lg {
    order: 2;
  }
}

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

@media (min-width: 640px) {
  .sm-flex-between {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sm-flex-cta-banner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .sm-flex-cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sm-h-full {
  height: 100%;
}

.sm-flex-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sm-flex-1 {
  flex: 1;
}

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

/* Evidence / checklist */

.sm-evidence__label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.sm-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: var(--success);
  flex-shrink: 0;
}

.sm-dot--accent {
  background: var(--primary-hover);
}

.sm-dot--warn {
  background: var(--warning);
  margin-top: 0.5rem;
}

.sm-check {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: color-mix(in srgb, var(--foreground) 90%, transparent);
}

.sm-check svg {
  margin-top: 0.125rem;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--success);
}

.sm-checklist {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.sm-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.sm-pill-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sm-proof {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.sm-stage {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}

.sm-stat-n {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--accent);
}

.sm-stat-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.sm-stat-row > :last-child {
  min-width: 0;
}

.sm-price {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
}

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

.sm-badge {
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 0.25rem 0.625rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.sm-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sm-label-caps {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.sm-label-caps--muted {
  color: var(--muted-foreground);
  letter-spacing: 0.16em;
}

/* Code panel */

.sm-code-panel {
  overflow: hidden;
}

.sm-code-panel__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.25rem;
}

.sm-code-panel__bar span:first-child {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}

.sm-code-panel__bar span:last-child {
  font-size: 0.75rem;
  color: var(--accent);
}

.sm-code-panel pre {
  margin: 0;
  overflow-x: auto;
  padding: 1.25rem;
  font-size: 13px;
  line-height: 1.625;
  color: color-mix(in srgb, var(--foreground) 90%, transparent);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

/* Marketing visuals */

.sm-video {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.sm-video__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: var(--panel);
}

.sm-video__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-video:hover .sm-video__image {
  filter: brightness(1.06);
}

.sm-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.sm-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
}

.sm-slider__dots {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  gap: 0.45rem;
  padding: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 15, 26, 0.72);
  backdrop-filter: blur(8px);
}

.sm-slider__dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.sm-slider__dot::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 200ms ease, background-color 200ms ease;
}

.sm-slider__dot:hover::before,
.sm-slider__dot:focus-visible::before {
  background: rgba(255, 255, 255, 0.8);
}

.sm-slider__dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.sm-slider__dot.is-active {
  width: 2.75rem;
}

.sm-slider__dot.is-active::before {
  width: 1.35rem;
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .sm-slider__slide,
  .sm-slider__dot::before {
    transition: none;
  }
}

.sm-video figcaption {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.sm-video-wrap,
.sm-video-wrap--sm {
  width: 100%;
  min-width: 0;
  margin-inline: auto;
}

.sm-video-wrap {
  max-width: min(760px, 100%);
}

.sm-video-wrap--sm {
  max-width: min(640px, 100%);
}

/* FAQ */

.sm-faq {
  margin-top: 2.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}

.sm-faq details {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.sm-faq details:last-child {
  border-bottom: none;
}

@media (min-width: 768px) {
  .sm-faq details {
    padding-inline: 1.5rem;
  }
}

.sm-faq summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  cursor: pointer;
  list-style: none;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
}

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

.sm-faq summary span {
  color: var(--accent);
  transition: transform 0.2s ease;
}

.sm-faq details[open] summary span {
  transform: rotate(45deg);
}

.sm-faq p {
  margin-top: 0.75rem;
  max-width: 48rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* Footer */

.sm-footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--panel) 40%, transparent);
}

.sm-footer__grid {
  margin-inline: auto;
  display: grid;
  width: 100%;
  max-width: 72rem;
  gap: 2.5rem;
  padding: 3.5rem 1.25rem;
}

@media (min-width: 768px) {
  .sm-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.sm-footer__blurb {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

.sm-footer h3 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted-foreground);
}

.sm-footer ul {
  margin-top: 1rem;
  display: grid;
  gap: 0.625rem;
}

.sm-footer a {
  font-size: 0.875rem;
  color: color-mix(in srgb, var(--foreground) 80%, transparent);
  transition: color 0.15s ease;
}

.sm-footer a:hover {
  color: var(--accent);
}

.sm-footer__bottom {
  border-top: 1px solid var(--border);
}

.sm-footer__bottom-inner {
  margin-inline: auto;
  display: flex;
  width: 100%;
  max-width: 72rem;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem 1.25rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

@media (min-width: 640px) {
  .sm-footer__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.sm-divider-top {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  margin-top: 1.75rem;
}

.sm-center-note {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.sm-center-cta {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.sm-agency-kicker {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: color-mix(in srgb, var(--foreground) 90%, transparent);
}

.sm-not-included li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--muted-foreground);
}

/* Get Started modal */

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

.sm-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

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

.sm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 16, 0.72);
  backdrop-filter: blur(4px);
}

.sm-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  max-height: min(92vh, 40rem);
  overflow: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow-card);
  padding: 1.75rem 1.5rem 1.5rem;
}

.sm-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  border: 0;
  background: transparent;
  color: var(--muted-foreground);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.4rem;
}

.sm-modal__close:hover {
  color: var(--foreground);
}

.sm-modal__panel h2 {
  font-size: 1.35rem;
  padding-right: 1.5rem;
}

.sm-modal__lead {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.sm-modal__form {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.9rem;
}

.sm-field {
  display: grid;
  gap: 0.4rem;
}

.sm-field span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-foreground);
}

.sm-field input,
.sm-field select {
  width: 100%;
  min-height: 2.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--foreground);
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 1rem;
}

.sm-field input:focus,
.sm-field select:focus {
  outline: none;
  border-color: var(--primary-hover);
  box-shadow: 0 0 0 3px var(--ring);
}

.sm-field-row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 480px) {
  .sm-field-row {
    grid-template-columns: 1fr 1fr;
  }
}

.sm-modal__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 0.35rem;
}

.sm-modal__error {
  margin: 0;
  font-size: 0.875rem;
  color: var(--destructive);
}

.sm-modal__success {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--success);
}

button.sm-cta {
  font: inherit;
  cursor: pointer;
}

.earn-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .earn-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.earn-controls,
.earn-result {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.earn-field {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-inline-size: 0;
}

fieldset.earn-field {
  border: 0;
  margin: 0;
  padding: 0;
}

.earn-field__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.earn-field output {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--accent);
}

.earn-range {
  width: 100%;
  height: 2.75rem;
  margin: 0;
  accent-color: var(--primary-hover);
}

.earn-usage {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border: 0;
  margin: 0;
  padding: 0;
}

.earn-usage button {
  font: inherit;
  cursor: pointer;
  flex: 1 1 calc(50% - 0.5rem);
  min-height: 2.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel-raised);
  color: var(--foreground);
  padding: 0.45rem 0.75rem;
}

.earn-usage button[aria-pressed="true"] {
  background: var(--primary);
  border-color: var(--primary-hover);
  color: var(--primary-foreground);
  font-weight: 600;
}

.earn-total {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--success);
}

.earn-total.is-short {
  color: var(--destructive);
}

.earn-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.earn-stats .sm-panel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.earn-stats .sm-price {
  margin-top: 0;
}

@media (min-width: 520px) {
  .earn-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .earn-stats .sm-panel {
    display: block;
  }

  .earn-stats .sm-price {
    margin-top: 1.25rem;
  }
}

.earn-bar {
  display: flex;
  height: 0.75rem;
  overflow: hidden;
  border-radius: 999px;
}

.earn-bar span:nth-child(1) { background: var(--success); }
.earn-bar span:nth-child(2) { background: var(--primary-hover); }
.earn-bar span:nth-child(3) { background: var(--warning); }
.earn-bar span:nth-child(4) { background: var(--muted-foreground); }

.earn-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.earn-legend i {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  vertical-align: middle;
}

/* Phones and small tablets */

img {
  max-width: 100%;
}

@media (max-width: 767px) {
  body {
    background-attachment: scroll;
  }

  .sm-mt-10 {
    margin-top: 1.75rem;
  }

  .sm-mt-12 {
    margin-top: 2rem;
  }

  .sm-mt-14 {
    margin-top: 2.25rem;
  }

  .sm-p-8,
  .sm-p-10 {
    padding: 1.25rem;
  }

  .sm-footer {
    margin-top: 3.5rem;
  }

  .sm-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 1.25rem;
    padding-block: 2.5rem;
  }

  .sm-footer__grid > :first-child {
    grid-column: 1 / -1;
  }

  .sm-footer ul {
    gap: 0.15rem;
  }

  .sm-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }

  .sm-footer__bottom-inner {
    padding-bottom: calc(1.5rem + 4.75rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 639px) {
  .sm-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .sm-cta-row .sm-cta,
  .sm-flex-between .sm-cta,
  .sm-flex-col > .sm-cta,
  .sm-center-cta .sm-cta,
  .sm-panel-lg > .sm-cta,
  .sm-mt-6 .sm-cta,
  .sm-mt-7 .sm-cta {
    width: 100%;
  }

  .sm-flex-cta-banner .sm-cta-row {
    width: 100%;
  }

  .sm-modal {
    align-items: end;
    padding: 0;
  }

  .sm-modal__panel {
    width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }

  .sm-modal__actions {
    flex-direction: column-reverse;
  }

  .sm-modal__actions .sm-cta {
    width: 100%;
  }
}
