/* tAIrot marketing site - mobile-first, minimal dependencies */

:root {
  --bg-deep: #0f0618;
  --bg-card: #1a1028;
  --bg-elevated: #241535;
  --text-primary: #f5f0ff;
  --text-secondary: #c4b5fd;
  --text-muted: #9ca3af;
  --accent: #a855f7;
  --accent-bright: #c084fc;
  --accent-glow: rgba(168, 85, 247, 0.35);
  --border: rgba(196, 181, 253, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */
.site-header {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "logo cta"
    "nav nav";
  gap: 0.75rem;
  align-items: center;
}

.header-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.header-nav a {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
}

.header-nav a:hover {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.14);
  text-decoration: none;
}

.header-nav a[aria-current="page"] {
  color: var(--text-primary);
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.28);
  font-weight: 600;
}

.logo {
  grid-area: logo;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.15rem;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.header-cta {
  grid-area: cta;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--accent-bright);
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(168, 85, 247, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(88, 28, 135, 0.25), transparent),
    var(--bg-deep);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 700;
}

.hero .subhead {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  max-width: 36ch;
}

.offer-badge {
  display: inline-block;
  background: rgba(168, 85, 247, 0.2);
  border: 1px solid var(--accent);
  color: var(--accent-bright);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.play-badge img {
  height: 52px;
  width: auto;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(168, 85, 247, 0.1);
  text-decoration: none;
}

.hero-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

/* Phone mockup */
.phone-mockup {
  justify-self: center;
  width: min(280px, 85vw);
}

.phone-frame {
  background: #0a0610;
  border-radius: 32px;
  padding: 12px;
  border: 2px solid rgba(196, 181, 253, 0.25);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 24px 48px rgba(0, 0, 0, 0.5),
    0 0 80px var(--accent-glow);
}

.phone-screenshot {
  width: 100%;
  height: auto;
  border-radius: 22px;
  display: block;
}

/* App screenshots in benefit cards */
.benefit-figure {
  margin: 0 0 1.25rem;
}

.benefit-screenshot {
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.benefit-figure figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-bright);
}

/* Sections */
section {
  padding: 3.5rem 0;
}

section:nth-child(even) {
  background: rgba(26, 16, 40, 0.5);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 2.5rem;
  max-width: 42ch;
}

/* Benefits grid */
.benefits-grid {
  display: grid;
  gap: 2rem;
}

.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem 2rem;
  text-align: center;
}

.benefit-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 32ch;
  margin-inline: auto;
}

/* Steps */
.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}

.step h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.steps-note {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  width: 100%;
  max-width: min(58ch, 100%);
  margin-inline: auto;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
}

.steps-note p {
  margin: 0;
}

/* Spreads */
.spreads-grid {
  display: grid;
  gap: 1rem;
}

.spread-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}

.spread-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.spread-card-link:hover {
  text-decoration: none;
}

.spread-card:has(.spread-card-link:hover) {
  border-color: var(--accent);
}

.spread-card-art {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
}

.spread-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--accent-bright);
}

.spread-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Inline mid-page CTA */
.cta-inline {
  padding: 1rem 0;
  background: rgba(168, 85, 247, 0.08);
  border-block: 1px solid var(--border);
}

.cta-inline-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.cta-inline p {
  margin: 0;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

/* Why different */
.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  max-width: 52ch;
  margin-inline: auto;
}

.pillar-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pillar-list strong {
  color: var(--text-primary);
}

/* Sticky mobile Play CTA */
.sticky-play-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 6, 24, 0.95);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  text-align: center;
}

.sticky-play-cta .play-badge img {
  height: 44px;
  margin-inline: auto;
}

/* Trust / CTA band */
.cta-band {
  text-align: center;
  padding: 3rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(168, 85, 247, 0.15), transparent),
    var(--bg-deep);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.5vw, 1.85rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
}

.trust-disclaimer {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 52ch;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
}

/* Subpage / sitelink landing pages */
.page-hero {
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(168, 85, 247, 0.18), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(88, 28, 135, 0.25), transparent),
    var(--bg-deep);
}

.page-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

.page-hero .lead {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--text-secondary);
  margin: 0 0 1.25rem;
  max-width: 40ch;
}

.page-content {
  padding: 2.5rem 0 3.5rem;
}

.page-content .prose {
  max-width: 52ch;
  margin: 0 auto 2rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.page-content .prose p {
  margin: 0 0 1rem;
}

.page-content .prose p:last-child {
  margin-bottom: 0;
}

.page-content .prose + .prose {
  margin-top: 2rem;
}

.spread-card picture,
.spread-art-wrap picture {
  display: block;
}

.spread-card picture img,
.spread-art-wrap picture img {
  width: 100%;
}

.spread-art-wrap {
  justify-self: center;
  width: min(100%, 480px);
}

.spread-art {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.spread-art--wide {
  max-width: 560px;
}

.related-spreads {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.related-spreads h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 1rem;
}

.related-spreads ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.related-spreads a {
  color: var(--accent-bright);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 767px) {
  .sticky-play-cta {
    display: block;
  }

  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}

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

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

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .page-hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .spread-art-wrap {
    justify-self: end;
  }

  .phone-mockup {
    justify-self: end;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .step::before {
    margin-inline: auto;
  }

  .steps-note {
    margin-top: 5.5rem;
    padding-top: 3rem;
    max-width: min(64ch, 100%);
  }

  .pillar-list {
    max-width: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (min-width: 900px) {
  .site-header-inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav cta";
    gap: 1.25rem;
  }

  .header-nav {
    justify-content: center;
  }

  .header-nav a {
    font-size: 0.84rem;
    padding: 0.45rem 0.9rem;
  }
}

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