/* ============================================================
   Lastslate — marketing site
   Built on top of ../colors_and_type.css. Adds layout patterns
   that don't belong in the design-system tokens: hero, feature
   bands, testimonial grid, footer.

   The structural language is borrowed from cursor.com:
   - top nav with brand + center menu + sign-in / download CTA
   - giant hero statement with two CTAs and a centered "interactive
     demo" surface (a real iframe of our UI kit)
   - alternating feature bands, each = heading + 1-line body +
     surface card with an iframe of the relevant app surface
   - testimonial wall, big final CTA, multi-column footer

   The brand twist: section markers are sluglines in Courier Prime
   ("INT. THE INDUSTRY - PRESENT DAY"), tying the marketing page
   to the medium the app produces.
   ============================================================ */

@import url("./colors_and_type.css");

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body {
  margin: 0; padding: 0;
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============ Layout primitives ============ */
.wrap {
  max-width: 1200px; margin: 0 auto;
  padding: 0 28px;
}
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 28px; }

/* ============ Top nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg-base) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 17px;
}
.nav-brand img { width: 26px; height: 26px; border-radius: 22%; display: block; }
.nav-links {
  display: flex; align-items: center; gap: 24px;
  font-size: 14px; color: var(--text-secondary);
}
.nav-link { padding: 6px 4px; display: inline-flex; align-items: center; gap: 4px; transition: color .12s; }
.nav-link:hover { color: var(--text-primary); }
.nav-link .chev { font-size: 9px; opacity: .6; transform: translateY(1px); }
.nav-right {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
}
.nav-signin { color: var(--text-secondary); padding: 8px 4px; transition: color .12s; }
.nav-signin:hover { color: var(--text-primary); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; font: 500 14px var(--font-ui);
  border: 1px solid transparent; border-radius: 8px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .06s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--text-primary); color: var(--bg-base);
  border-color: var(--text-primary);
}
.btn-primary:hover { background: #ffffff; border-color: #ffffff; }
.btn-secondary {
  background: var(--bg-elevated); color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-hover); border-color: var(--accent-border); }
.btn-ghost {
  background: transparent; color: var(--text-secondary);
  border-color: transparent; padding: 10px 4px;
}
.btn-ghost:hover { color: var(--text-primary); }
.btn-lg { padding: 13px 22px; font-size: 15px; border-radius: 9px; }

/* ============ Sluglines (section markers) ============ */
.slug {
  font-family: var(--font-script);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-surface);
}

/* ============ Hero ============ */
.hero {
  padding: 84px 0 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  /* faint radial wash at the very top, hinting the gradient logo without
     painting the whole hero. */
  content: ""; position: absolute; inset: -200px -10% auto -10%;
  height: 600px;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(255, 122, 42, 0.10), transparent 70%),
    radial-gradient(ellipse 50% 60% at 30% 10%, rgba(255, 46, 139, 0.06), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-h1 {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 980px;
  margin: 0 auto 24px;
  color: var(--text-primary);
  text-wrap: balance;
}
.hero-h1 em {
  font-style: italic;
  font-family: ui-serif, "Iowan Old Style", "Apple Garamond", "Times New Roman", serif;
  font-weight: 400;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px; color: var(--text-secondary);
  max-width: 620px; margin: 0 auto 36px;
  text-wrap: pretty;
}
.hero-actions {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-meta {
  font-size: 12px; color: var(--text-muted);
  font-family: var(--font-script);
}

/* ============ Demo surface ============ */
.demo {
  margin-top: 56px;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  box-shadow:
    0 60px 120px rgba(0,0,0,0.45),
    0 0 0 1px rgba(255,255,255,0.02) inset;
}
.demo-frame {
  width: 100%;
  height: 700px;
  border: 0;
  display: block;
  background: var(--bg-base);
}
.demo-frame.compact { height: 560px; }

/* "windowed" chrome around demo */
.demo-bar {
  height: 36px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 14px; gap: 8px;
}
.demo-bar .tl { width: 11px; height: 11px; border-radius: 50%; }
.demo-bar .tl-close { background: #ff5f57; }
.demo-bar .tl-min { background: #ffbd2e; }
.demo-bar .tl-max { background: #28c840; }
.demo-bar-title {
  flex: 1; text-align: center;
  font-size: 12px; color: var(--text-muted);
  font-family: var(--font-script);
}

/* ============ Feature bands ============ */
.band { padding: 96px 0; border-top: 1px solid var(--border-soft); }
.band-head {
  display: flex; flex-direction: column; align-items: flex-start;
  margin-bottom: 40px;
}
.band-h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 760px;
  margin: 0 0 14px;
  text-wrap: balance;
}
.band-lede {
  font-size: 17px; color: var(--text-secondary);
  max-width: 620px; margin: 0;
}
.band-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 16px;
  font-size: 14px; color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.band-cta:hover { border-bottom-color: var(--accent); }

/* Side-by-side feature layout */
.band-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.band-split.reverse > :first-child { order: 2; }
.band-split .copy { padding: 12px 0; }
.band-split .surface {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--bg-surface);
  box-shadow: 0 24px 60px rgba(0,0,0,0.32);
}

/* ============ Three-feature grid ============ */
.feat-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 24px;
}
.feat-card {
  padding: 28px 26px;
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .15s, background .15s;
}
.feat-card:hover { border-color: var(--border); background: var(--bg-elevated); }
.feat-card .slug { margin-bottom: 4px; font-size: 10px; padding: 3px 8px; }
.feat-card h3 {
  font-size: 18px; font-weight: 600; margin: 0; letter-spacing: -0.01em;
}
.feat-card p {
  font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.55;
}

/* ============ Logos strip ============ */
.logos {
  padding: 56px 0;
  text-align: center;
}
.logos-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 28px;
}
.logos-row {
  display: flex; align-items: center; justify-content: center;
  gap: 56px; flex-wrap: wrap;
  font-family: var(--font-script); font-size: 16px;
  color: var(--text-muted); opacity: 0.78;
}
.logos-row span { white-space: nowrap; }

/* ============ Testimonials ============ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.quote {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 14px;
  break-inside: avoid;
}
.quote-text {
  font-size: 15px; line-height: 1.55; color: var(--text-primary);
  text-wrap: pretty;
}
.quote-text::before { content: "\201C"; color: var(--text-muted); margin-right: 2px; }
.quote-text::after  { content: "\201D"; color: var(--text-muted); margin-left:  2px; }
.quote-attr {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
}
.quote-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-elevated); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--text-primary); font-size: 12px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.quote-meta { display: flex; flex-direction: column; gap: 1px; }
.quote-name { color: var(--text-primary); font-weight: 500; }
.quote-role { color: var(--text-muted); font-family: var(--font-script); font-size: 11px; }

/* ============ Pricing peek ============ */
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 32px;
}
.price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.price-card.feature { border-color: var(--accent-border); }
.price-card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.price-card .price {
  font-size: 32px; font-weight: 600; letter-spacing: -0.02em;
  display: flex; align-items: baseline; gap: 6px;
}
.price-card .price small { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.price-card ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 14px; color: var(--text-secondary);
}
.price-card ul li::before {
  content: ""; display: inline-block; width: 12px; height: 8px;
  border-left: 1.4px solid var(--accent); border-bottom: 1.4px solid var(--accent);
  transform: rotate(-45deg); margin-right: 10px; vertical-align: middle;
}
.price-card .btn { margin-top: auto; }
.price-card .price-note {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-family: var(--font-script);
}
.price-pill {
  font-size: 10px; padding: 1px 7px; border-radius: 999px;
  background: var(--accent-bg); color: var(--text-primary);
  border: 1px solid var(--accent-border);
  letter-spacing: 0.04em; font-weight: 600; text-transform: uppercase;
  margin-left: 8px;
}

/* ============ Final CTA ============ */
.cta-final {
  padding: 120px 0;
  text-align: center;
  border-top: 1px solid var(--border-soft);
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(255, 122, 42, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255, 46, 139, 0.05), transparent 70%);
}
.cta-final h2 {
  font-size: clamp(40px, 5vw, 64px);
  letter-spacing: -0.025em; font-weight: 600;
  margin: 0 0 28px; line-height: 1.05;
}
.cta-final .hero-actions { margin-bottom: 0; }

/* ============ Footer ============ */
.footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-base);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
.footer-brand {
  display: flex; flex-direction: column; gap: 14px;
}
.footer-brand .brand-row {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; letter-spacing: -0.01em; font-size: 17px;
}
.footer-brand .brand-row img {
  width: 26px; height: 26px; border-radius: 22%;
}
.footer-brand p {
  font-size: 13px; color: var(--text-muted); margin: 0;
  max-width: 280px; line-height: 1.55;
}
.footer-col h4 {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted);
  margin: 0 0 12px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px;
}
.footer-col ul a { color: var(--text-secondary); transition: color .12s; }
.footer-col ul a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border-soft);
  font-size: 12px; color: var(--text-muted);
}
.footer-bottom .legal { display: flex; gap: 20px; }
.footer-bottom a {
  color: var(--text-secondary);
  transition: color .12s;
}
.footer-bottom a:hover { color: var(--text-primary); }

/* ============ Responsive ============ */
@media (max-width: 980px) {
  .band-split { grid-template-columns: 1fr; gap: 32px; }
  .band-split.reverse > :first-child { order: 0; }
  .feat-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; }
}
