/* Memagen — single static stylesheet. No build step. Mobile-first. */

:root {
  --bg: #0b0f17;
  --bg-alt: #111827;
  --bg-soft: #161e2c;
  --fg: #e5e7eb;
  --fg-soft: #c2c8d2;
  --fg-muted: #9aa3b2;
  --border: #1f2937;
  --border-strong: #2a3548;
  --accent: #818cf8;
  --accent-2: #22d3ee;
  --accent-fg: #0b0f17;
  --warn: #fbbf24;
  --max-width: 1080px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  --transition: 150ms ease;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fbfbfd;
    --bg-alt: #f3f4f6;
    --bg-soft: #ffffff;
    --fg: #0f172a;
    --fg-soft: #1f2937;
    --fg-muted: #475569;
    --border: #e5e7eb;
    --border-strong: #d1d5db;
    --accent: #4f46e5;
    --accent-2: #0ea5b8;
    --accent-fg: #ffffff;
    --warn: #b45309;
    --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--fg);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 5.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 700;
}

h3 {
  font-size: 1.125rem;
  font-weight: 600;
}

p {
  margin: 0 0 1em;
  color: var(--fg-soft);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  z-index: 100;
}

.skip-link:focus {
  top: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand:hover,
.brand:focus-visible {
  text-decoration: none;
}

.brand-mark {
  flex: 0 0 auto;
}

.brand-name {
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--fg-soft);
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--fg);
  background: var(--bg-alt);
  text-decoration: none;
}

.site-nav .nav-cta {
  border: 1px solid var(--border-strong);
  color: var(--fg);
}

@media (max-width: 480px) {
  .site-nav a:not(.nav-cta) {
    display: none;
  }
}

/* Hero */
.hero {
  padding: clamp(48px, 9vw, 96px) 0 clamp(32px, 6vw, 64px);
  background: radial-gradient(
      1100px 500px at 20% -10%,
      color-mix(in oklab, var(--accent) 22%, transparent),
      transparent 60%
    ),
    radial-gradient(
      900px 400px at 100% 0%,
      color-mix(in oklab, var(--accent-2) 18%, transparent),
      transparent 60%
    );
}

.hero-inner {
  max-width: 780px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin: 0 0 14px;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-soft);
}

.lede {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--fg-soft);
  max-width: 64ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition),
    border-color var(--transition);
  text-decoration: none;
  min-height: 44px;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: color-mix(in oklab, var(--accent) 86%, white);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--bg-alt);
}

.hero-meta {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 0.92rem;
  color: var(--fg-muted);
}

.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-2);
}

/* Sections */
.section {
  padding: clamp(48px, 8vw, 80px) 0;
  border-top: 1px solid var(--border);
}

.section-alt {
  background: var(--bg-alt);
}

.section-lede {
  max-width: 64ch;
  color: var(--fg-soft);
  margin-bottom: 28px;
}

/* Feature grid */
.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

.feature {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius);
}

.feature h3 {
  margin-top: 0;
}

.feature p {
  margin-bottom: 0;
  color: var(--fg-soft);
}

/* Cards (specialty packages) */
.card-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 720px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-head h3 {
  margin: 0;
}

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
}

.badge-live {
  color: var(--accent-2);
  border-color: color-mix(in oklab, var(--accent-2) 60%, var(--border-strong));
}

.badge-soon {
  color: var(--warn);
  border-color: color-mix(in oklab, var(--warn) 50%, var(--border-strong));
}

.card-body {
  color: var(--fg-soft);
  margin: 0;
}

.card-price {
  margin: auto 0 0;
  font-weight: 600;
  color: var(--fg);
}

/* Pricing table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 540px;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
  vertical-align: top;
  color: var(--fg-soft);
}

.pricing-table thead th {
  background: var(--bg-alt);
  color: var(--fg);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-table tbody th {
  font-weight: 600;
  color: var(--fg);
  background: transparent;
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.fineprint {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--fg-muted);
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  counter-reset: step;
}

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

.step {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 700;
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 6px;
}

.step p {
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.builtby {
  margin: 0;
  color: var(--fg);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-nav a {
  color: var(--fg-soft);
  font-size: 0.95rem;
}

.copy {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.88rem;
}

@media (max-width: 480px) {
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn:hover {
    transform: none;
  }
}
