/* The parody home page (W8, W9): glossy gradient SaaS, on top of styles.css.
   The company footer at the bottom keeps the plain look from styles.css (W3). */

:root {
  --h-bg: #fff7e8;
  --h-blob-1: rgba(255, 210, 90, 0.75);
  --h-blob-2: rgba(255, 150, 200, 0.55);
  --h-blob-3: rgba(170, 140, 255, 0.55);
  --h-text: #16121f;
  --h-sub: #4b4458;
  --h-glass: rgba(255, 255, 255, 0.62);
  --h-glass-edge: rgba(255, 255, 255, 0.85);
  --h-shadow: 0 1px 2px rgba(40, 20, 60, 0.06), 0 12px 32px -8px rgba(80, 30, 120, 0.18);
  --h-grad-text: linear-gradient(100deg, #6d28d9 0%, #a21caf 50%, #be185d 100%);
  --h-btn: linear-gradient(100deg, #6d28d9 0%, #9d174d 100%);
  --h-btn-text: #ffffff;
  --h-ghost: rgba(255, 255, 255, 0.7);
  --h-ghost-edge: rgba(60, 30, 90, 0.18);
  --h-pill: rgba(255, 255, 255, 0.75);
  --h-accent: #6d28d9;
  --h-up: #047857;
  --h-chart-line: #7c3aed;
  --h-chart-fill: rgba(124, 58, 237, 0.16);
  --h-pot: #4b4458;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --h-bg: #0e0b1a;
    --h-blob-1: rgba(161, 98, 7, 0.45);
    --h-blob-2: rgba(157, 23, 77, 0.5);
    --h-blob-3: rgba(91, 33, 182, 0.6);
    --h-text: #f6f3ff;
    --h-sub: #c4bdd6;
    --h-glass: rgba(255, 255, 255, 0.06);
    --h-glass-edge: rgba(255, 255, 255, 0.14);
    --h-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
    --h-grad-text: linear-gradient(100deg, #fde68a 0%, #f9a8d4 55%, #c4b5fd 100%);
    --h-ghost: rgba(255, 255, 255, 0.08);
    --h-ghost-edge: rgba(255, 255, 255, 0.22);
    --h-pill: rgba(255, 255, 255, 0.1);
    --h-accent: #c4b5fd;
    --h-up: #6ee7b7;
    --h-chart-line: #c4b5fd;
    --h-chart-fill: rgba(196, 181, 253, 0.18);
    --h-pot: #c4bdd6;
  }
}

:root[data-theme="dark"] {
  --h-bg: #0e0b1a;
  --h-blob-1: rgba(161, 98, 7, 0.45);
  --h-blob-2: rgba(157, 23, 77, 0.5);
  --h-blob-3: rgba(91, 33, 182, 0.6);
  --h-text: #f6f3ff;
  --h-sub: #c4bdd6;
  --h-glass: rgba(255, 255, 255, 0.06);
  --h-glass-edge: rgba(255, 255, 255, 0.14);
  --h-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -12px rgba(0, 0, 0, 0.6);
  --h-grad-text: linear-gradient(100deg, #fde68a 0%, #f9a8d4 55%, #c4b5fd 100%);
  --h-ghost: rgba(255, 255, 255, 0.08);
  --h-ghost-edge: rgba(255, 255, 255, 0.22);
  --h-pill: rgba(255, 255, 255, 0.1);
  --h-accent: #c4b5fd;
  --h-up: #6ee7b7;
  --h-chart-line: #c4b5fd;
  --h-chart-fill: rgba(196, 181, 253, 0.18);
  --h-pot: #c4bdd6;
}

/* Room for the banner while it shows, so it never hides the company footer. */
.home {
  padding-bottom: var(--banner-space, 0px);
}

.wrap-wide {
  max-width: calc(72rem + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 30;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
}

.skip:focus {
  top: 12px;
}

/* The gradient world: everything above the company footer */

.hero-bg {
  background:
    radial-gradient(40rem 30rem at 12% 8%, var(--h-blob-1), transparent 70%),
    radial-gradient(36rem 28rem at 92% 4%, var(--h-blob-2), transparent 70%),
    radial-gradient(44rem 34rem at 70% 38%, var(--h-blob-3), transparent 70%),
    radial-gradient(40rem 30rem at 6% 70%, var(--h-blob-2), transparent 70%),
    radial-gradient(44rem 34rem at 96% 92%, var(--h-blob-1), transparent 70%),
    var(--h-bg);
  color: var(--h-text);
  padding-bottom: 88px;
}

.hero-bg a:not(.btn) {
  color: var(--h-text);
}

.hero-bg main {
  padding: 0;
}

.glass {
  background: var(--h-glass);
  border: 1px solid var(--h-glass-edge);
  border-radius: 24px;
  box-shadow: var(--h-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.grad-text {
  background: var(--h-grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--h-btn);
  color: var(--h-btn-text);
  box-shadow: 0 8px 20px -8px rgba(109, 40, 217, 0.7);
}

.hero-bg .btn-primary,
.cheese-banner .btn-primary {
  color: var(--h-btn-text);
}

.btn-ghost {
  background: var(--h-ghost);
  border-color: var(--h-ghost-edge);
  color: var(--h-text);
}

.hero-bg .btn-ghost {
  color: var(--h-text);
}

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-large {
  min-height: 52px;
  padding: 14px 26px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Nav */

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.hero-bg .logo {
  color: var(--h-text);
}

.logo-mark {
  width: 34px;
  height: 34px;
}

.nav nav {
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding-top: 56px;
  padding-bottom: 72px;
}

.pill {
  display: inline-flex;
  gap: 8px;
  margin: 0 0 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--h-pill);
  border: 1px solid var(--h-glass-edge);
  box-shadow: var(--h-shadow);
  font-size: 0.875rem;
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2.75rem, 6.2vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 850;
}

.hero h1:focus {
  outline: none;
}

.hero-sub {
  max-width: 34rem;
  margin: 0 0 28px;
  font-size: 1.1875rem;
  color: var(--h-sub);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-fine {
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--h-sub);
}

/* The made-up dashboard */

.dash {
  padding: 16px;
  transform: rotate(-1.5deg);
}

.dash-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 2px 4px 14px;
  font-size: 0.75rem;
  color: var(--h-sub);
}

.dash-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--h-ghost-edge);
}

.dash-bar span {
  margin-left: 8px;
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi,
.chart {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border-radius: 16px;
  background: var(--h-glass);
  border: 1px solid var(--h-glass-edge);
}

.chart {
  grid-column: 1 / -1;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--h-sub);
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.kpi-delta {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--h-up);
}

.chart svg {
  width: 100%;
  height: 96px;
  margin: 8px 0 4px;
}

.chart-line {
  fill: none;
  stroke: var(--h-chart-line);
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  stroke-linejoin: round;
}

.chart-area {
  fill: var(--h-chart-fill);
}

.chart-note {
  font-size: 0.75rem;
  color: var(--h-sub);
}

/* Section headings */

.eyebrow {
  margin: 0 0 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--h-accent);
}

.section-title {
  max-width: 40rem;
  margin: 0 0 32px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.section-sub {
  margin: -20px 0 32px;
  color: var(--h-sub);
  font-size: 1.125rem;
}

/* Trusted by */

.trusted {
  padding-top: 8px;
  padding-bottom: 72px;
  text-align: center;
}

.trusted .eyebrow {
  color: var(--h-sub);
}

.logo-wall {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 48px;
  margin: 12px 0 10px;
  color: var(--h-pot);
  opacity: 0.85;
}

.logo-wall svg {
  width: 48px;
  height: 48px;
  fill: currentColor;
}

.trusted-note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--h-sub);
}

/* Features */

.features,
.testimonials {
  padding-bottom: 88px;
}

.feature-grid,
.quote-grid {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature {
  padding: 24px;
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: var(--h-pill);
  border: 1px solid var(--h-glass-edge);
  font-size: 1.5rem;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.feature p {
  margin: 0;
  color: var(--h-sub);
  font-size: 0.9875rem;
}

/* Testimonials */

.quote-grid {
  grid-template-columns: repeat(4, 1fr);
}

.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.quote blockquote {
  margin: 0;
}

.quote blockquote p {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 650;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--h-sub);
}

.who strong {
  color: var(--h-text);
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--h-pill);
  border: 1px solid var(--h-glass-edge);
  font-size: 1.25rem;
}

/* Pricing */

.pricing {
  text-align: center;
}

.pricing .section-title,
.pricing .section-sub {
  margin-left: auto;
  margin-right: auto;
}

.plan {
  max-width: 26rem;
  margin: 0 auto;
  padding: 32px 28px 24px;
  text-align: left;
}

.plan-badge {
  display: inline-block;
  margin: 0 0 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--h-btn);
  color: var(--h-btn-text);
  font-size: 0.8125rem;
  font-weight: 700;
}

.plan-name {
  margin: 0;
  font-size: 1.25rem;
}

.plan-price {
  margin: 4px 0 0;
  font-size: 2.75rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.plan-per {
  margin: 4px 0 20px;
  color: var(--h-sub);
  font-size: 0.9375rem;
}

.plan-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding: 6px 0 6px 30px;
}

.plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 6px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--h-btn);
  color: var(--h-btn-text);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
}

.plan-fine {
  margin: 14px 0 0;
  text-align: center;
  color: var(--h-sub);
  font-size: 0.875rem;
}

/* The sincere company footer: plain on purpose (W3, W8) */

.company {
  padding: 56px 0 40px;
  background: var(--page);
  color: var(--text);
}

.company h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.company-lede {
  margin: 0 0 20px;
  color: var(--text-sub);
}

.company .card {
  margin-bottom: 20px;
}

.company-legal {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.875rem;
}

.company-legal a {
  color: var(--text-sub);
}

/* The cheese banner */

.cheese-banner {
  position: fixed;
  z-index: 20;
  left: 50%;
  bottom: 16px;
  width: min(30rem, calc(100% - 2 * var(--gutter)));
  transform: translateX(-50%);
  padding: 20px 22px 16px;
  color: var(--h-text);
  background: var(--h-bg);
  background: color-mix(in srgb, var(--h-bg) 82%, transparent);
}

.cheese-banner[hidden] {
  display: none;
}

.cheese-title {
  margin: 0 36px 6px 0;
  font-size: 1.0625rem;
}

.cheese-banner p {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  color: var(--h-sub);
}

.cheese-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.cheese-actions .btn {
  flex: 1 1 auto;
}

.cheese-banner .cheese-fine {
  margin: 0;
  font-size: 0.8125rem;
}

.cheese-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--h-sub);
  font: inherit;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.cheese-close:hover {
  background: var(--h-ghost);
  color: var(--h-text);
}

.cheese-close:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 0;
}

.toast {
  position: fixed;
  z-index: 25;
  left: 50%;
  bottom: 24px;
  max-width: calc(100% - 2 * var(--gutter));
  transform: translate(-50%, 12px);
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--text);
  color: var(--page);
  font-size: 0.9375rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-showing {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Phone and tablet */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 32px;
  }

  .dash {
    transform: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quote-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nav {
    gap: 12px;
  }

  .nav nav {
    display: none;
  }

  .logo {
    margin-right: auto;
  }

  .hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-sub {
    font-size: 1.0625rem;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .dash-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .kpi {
    padding: 10px;
  }

  .kpi-value {
    font-size: 1.375rem;
  }

  .feature-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .logo-wall {
    gap: 16px 28px;
  }

  .logo-wall svg {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .toast {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}
