/* ============================================================
   Epic Studio — landing page
   Builds on the tokens defined in styles.css.
   ============================================================ */

.landing {
  height: auto;
  overflow-x: hidden;
}

.landing main { display: block; }

/* ------------------------------------------------------------ nav */

.lnav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 16px 32px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background .2s;
}
.lnav.is-stuck {
  border-bottom-color: var(--line);
  max-width: none;
  padding-inline: max(32px, calc((100vw - 1160px) / 2 + 32px));
}

.lnav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
}
.lnav-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; font-size: 17px; }
.lnav-brand strong { font-size: 15px; letter-spacing: -.015em; }

.lnav-links { display: flex; gap: 24px; margin-right: auto; }
.lnav-links a {
  color: var(--text-dim); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.lnav-links a:hover { color: var(--text); }

.lnav-actions { display: flex; align-items: center; gap: 10px; }
.lnav-actions .btn { text-decoration: none; }
.lnav-theme { padding: 8px; border-radius: 9px; }
.lnav-theme svg { font-size: 17px; }

/* Mobile rules for the nav live in the consolidated block at the end. */

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 78px 32px 0;
  text-align: center;
}

.hero-glow {
  position: absolute; inset: -140px 0 auto 0;
  height: 620px;
  z-index: -1;
  background:
    radial-gradient(46% 52% at 50% 32%, var(--accent-soft), transparent 72%),
    radial-gradient(34% 40% at 78% 12%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
  pointer-events: none;
}

/* Fine grain over the whole page — flat digital surfaces read as sterile.
   Inline SVG turbulence, so no network request and no image asset. */
.landing::before {
  content: "";
  position: fixed; inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Lift content above the grain. The nav and skip-link keep their own higher
   layers — this rule would otherwise flatten them and let content scroll over. */
.landing > * { position: relative; z-index: 2; }
.landing > .lnav { z-index: 50; }
.landing > .skip-link { z-index: 100; }

/* Keyboard users can jump straight past the nav. */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 600; text-decoration: none;
  transition: top .18s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-block;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--bg-elev);
  color: var(--text-dim);
  font-size: 12px; font-weight: 600;
  letter-spacing: .01em;
}

.hero h1 {
  margin: 22px 0 0;
  font-size: clamp(34px, 5.6vw, 60px);
  line-height: 1.06;
  letter-spacing: -.035em;
  font-weight: 680;
}

.lead {
  max-width: 60ch;
  margin: 20px auto 0;
  font-size: clamp(15px, 1.7vw, 18px);
  color: var(--text-dim);
  line-height: 1.6;
}

.hero-cta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px;
  margin-top: 32px;
}
.hero-cta .btn { text-decoration: none; }
.hero-cta .btn svg { font-size: 17px; }

.hero-note { margin: 16px 0 0; font-size: 13px; color: var(--text-faint); }

/* ------------------------------------------------------------ product mock */

.mock {
  max-width: 940px;
  margin: 56px auto 0;
  border: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
  background: var(--bg-elev);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
  /* Fades into the section below instead of ending on a hard edge. */
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent);
  mask-image: linear-gradient(to bottom, #000 62%, transparent);
}

.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--sidebar);
}
.mock-bar .dot { width: 10px; height: 10px; border-radius: 99px; background: var(--line); }
.mock-bar .dot.r { background: #ff5f57; }
.mock-bar .dot.y { background: #febc2e; }
.mock-bar .dot.g { background: #28c840; }
.mock-title {
  margin-left: auto; margin-right: auto;
  font-size: 11.5px; color: var(--text-faint); font-weight: 600;
}

.mock-body { display: grid; grid-template-columns: 62px 1fr; min-height: 300px; }

.mock-side {
  display: flex; flex-direction: column; gap: 9px;
  padding: 16px 12px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
}
.mock-navitem { height: 9px; border-radius: 99px; background: var(--line); }
.mock-navitem.is-on { background: var(--accent); opacity: .8; }

.mock-main { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

.mock-url {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-sunken);
}
.mock-link { width: 15px; height: 15px; border-radius: 4px; background: var(--line); flex: none; }
.mock-text { flex: 1; font-family: var(--mono); font-size: 12px; color: var(--text-faint); }
.mock-btn {
  padding: 5px 13px; border-radius: 8px;
  background: linear-gradient(160deg, var(--accent-hi), var(--accent));
  color: #fff; font-size: 12px; font-weight: 650;
}

.mock-job {
  display: grid; grid-template-columns: 92px 1fr; gap: 13px;
  padding: 12px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--bg-elev);
}
.mock-job.done { border-color: var(--line); }
.mock-thumb { height: 52px; border-radius: 7px; background: var(--bg-sunken); }
.mock-jobbody { display: flex; flex-direction: column; gap: 7px; justify-content: center; }
.mock-line { height: 9px; border-radius: 99px; background: var(--line); }
.mock-line.dim { background: var(--line-soft); height: 7px; }
.w70 { width: 70%; } .w55 { width: 55%; } .w40 { width: 40%; } .w30 { width: 30%; }

.mock-progress { height: 6px; border-radius: 99px; background: var(--bg-sunken); overflow: hidden; }
.mock-progress i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, var(--accent-hi), var(--accent));
}
.mock-progress i.ok { background: var(--ok); }

.mock-stats {
  display: flex; flex-wrap: wrap; gap: 12px;
  font-size: 11.5px; color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}
.mock-stats .accent { color: var(--accent); font-weight: 650; }
.mock-stats .ok { color: var(--ok); font-weight: 650; }

@media (max-width: 620px) { .mock { display: none; } }

/* ------------------------------------------------------------ site strip */

.strip {
  max-width: 1160px;
  margin: 0 auto;
  padding: 8px 32px 72px;
  text-align: center;
}
.strip p {
  margin: 0 0 16px;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-faint);
}
.strip ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px;
  list-style: none; margin: 0; padding: 0;
}
.strip li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--bg-elev);
  font-size: 13px; font-weight: 550;
  color: var(--text-dim);
}
.strip li:last-child { color: var(--accent); border-color: var(--accent-soft); }

/* ------------------------------------------------------------ sections */

.section { max-width: 1160px; margin: 0 auto; padding: 76px 32px; }
.section.narrow { max-width: 800px; }

.section-head { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-head h2 {
  margin: 16px 0 0;
  font-size: clamp(24px, 3.4vw, 34px);
  letter-spacing: -.03em; line-height: 1.18; font-weight: 660;
}
.section-head p { margin: 14px 0 0; color: var(--text-dim); font-size: 15px; line-height: 1.6; }

/* features */

/* Deliberately asymmetric: three equal columns is the default AI feature row.
   A 6-track grid with alternating 4/2 and 3/3 spans keeps every cell filled
   (no dead corners) while breaking the symmetry. */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-flow: dense;
  gap: 16px;
}
.feat:nth-child(1) { grid-column: span 4; }
.feat:nth-child(2) { grid-column: span 2; }
.feat:nth-child(3) { grid-column: span 2; }
.feat:nth-child(4) { grid-column: span 4; }
.feat:nth-child(5) { grid-column: span 3; }
.feat:nth-child(6) { grid-column: span 3; }

/* The wide cards carry more presence than the narrow ones. */
.feat:nth-child(1) h3, .feat:nth-child(4) h3 { font-size: 18px; }
.feat:nth-child(1), .feat:nth-child(4) { padding: 28px; }

@media (max-width: 940px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat:nth-child(n) { grid-column: span 1; }
}
@media (max-width: 620px) {
  .feat-grid { grid-template-columns: 1fr; }
}

.feat {
  padding: 24px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: transform .18s, border-color .18s;
}
.feat:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }

.feat-icon {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 15px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
}
.feat h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 640; letter-spacing: -.01em; }
.feat p { margin: 0; font-size: 13.5px; color: var(--text-dim); line-height: 1.62; }

/* pricing */

#pricing .plan-grid { max-width: 900px; margin: 0 auto; }
.plan-skeleton {
  height: 380px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(100deg, var(--bg-elev) 30%, var(--bg-sunken) 50%, var(--bg-elev) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -100% 0; } }

.plan-card .plan-tag {
  display: inline-block;
  margin-left: 8px; padding: 2px 8px;
  border-radius: 99px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  vertical-align: middle;
}
.plan-card.is-featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.plan-card .btn { text-decoration: none; }
.pricing-note { text-align: center; margin-top: 22px; }

/* faq */

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: border-color .18s;
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px;
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 9px; height: 9px; flex: none;
  border: solid var(--text-faint); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq p { margin: 0; padding: 0 20px 18px; font-size: 13.5px; color: var(--text-dim); line-height: 1.68; }

/* cta */

.cta { max-width: 1160px; margin: 0 auto; padding: 24px 32px 88px; }
.cta-card {
  padding: 54px 32px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(60% 120% at 50% 0%, var(--accent-soft), transparent 70%),
    var(--bg-elev);
  box-shadow: var(--shadow);
}
.cta-card h2 { margin: 0; font-size: clamp(22px, 3.2vw, 32px); letter-spacing: -.03em; font-weight: 660; }
.cta-card p { margin: 12px 0 26px; color: var(--text-dim); font-size: 15px; }
.cta-card .btn { text-decoration: none; }

/* footer */

.lfoot {
  border-top: 1px solid var(--line);
  background: var(--sidebar);
}
.lfoot-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
  max-width: 1160px; margin: 0 auto;
  padding: 30px 32px 18px;
}
.lfoot-links { display: flex; flex-wrap: wrap; gap: 22px; }
.lfoot-links a { color: var(--text-dim); text-decoration: none; font-size: 13.5px; }
.lfoot-links a:hover { color: var(--text); }
.lfoot-note {
  max-width: 1160px; margin: 0 auto;
  padding: 0 32px 34px;
  font-size: 12.5px; color: var(--text-faint); line-height: 1.6;
}
.lfoot-note a { color: var(--text-dim); }

@media (prefers-reduced-motion: reduce) {
  .feat, .faq details, .plan-skeleton { transition: none; animation: none; }
}

/* ------------------------------------------------------------ legal page */
.legal { padding-top: 40px; }
.legal-notice { margin-bottom: 34px; }
.legal section + section { margin-top: 56px; padding-top: 44px; border-top: 1px solid var(--line); }
.legal h1 { font-size: clamp(26px, 3.4vw, 34px); letter-spacing: -.03em; margin: 0; }
.legal h2 { font-size: 16px; letter-spacing: -.01em; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.legal p { margin: 0 0 12px; }
.legal ul { margin: 0 0 12px; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }
.legal strong { color: var(--text); }
.legal-date { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 760px) {
  .lnav {
    padding: 12px 16px calc(12px);
    padding-top: calc(12px + env(safe-area-inset-top));
    gap: 10px;
  }
  /* Keep the section links reachable rather than hiding navigation entirely:
     a compact scrollable row. */
  .lnav-links {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .lnav-links::-webkit-scrollbar { display: none; }
  .lnav-links a { font-size: 13px; white-space: nowrap; }
  .lnav-brand strong { display: none; }
  .lnav-actions { gap: 6px; flex: none; }
  .lnav-actions .btn { padding: 8px 12px; font-size: 13px; }
  .lnav-theme { padding: 8px; }
  /* "Sign in" is redundant next to "Get started" when space is tight */
  .lnav-actions .btn-ghost { display: none; }

  .hero { padding: 44px 16px 0; }
  .hero h1 { font-size: clamp(28px, 8.5vw, 40px); }
  .lead { font-size: 15px; margin-top: 16px; }
  .hero-cta { flex-direction: column; gap: 10px; margin-top: 26px; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .strip { padding: 4px 16px 52px; }
  .strip ul { gap: 8px; }
  .strip li { font-size: 12px; padding: 5px 11px; }

  .section { padding: 52px 16px; }
  .section-head { margin-bottom: 30px; }
  .section-head h2 { font-size: clamp(21px, 6vw, 27px); }
  .section-head p { font-size: 14px; }

  .feat { padding: 20px; }
  .feat:nth-child(1), .feat:nth-child(4) { padding: 20px; }
  .feat:nth-child(1) h3, .feat:nth-child(4) h3 { font-size: 15.5px; }

  .plan-card { padding: 20px; }
  .cta { padding: 8px 16px 64px; }
  .cta-card { padding: 38px 20px; border-radius: 16px; }
  .cta-card .btn { width: 100%; justify-content: center; }

  .faq summary { padding: 14px 16px; font-size: 14px; }
  .faq p { padding: 0 16px 16px; }

  .lfoot-top { padding: 24px 16px 14px; gap: 14px; }
  .lfoot-links { gap: 16px; font-size: 13px; }
  .lfoot-note { padding: 0 16px calc(26px + env(safe-area-inset-bottom)); }

  .legal { padding-top: 26px; }
  .legal h1 { font-size: clamp(22px, 6vw, 28px); }
  .legal section + section { margin-top: 40px; padding-top: 32px; }
}

@media (max-width: 420px) {
  .lnav-links { display: none; }   /* below this the brand + CTA need the room */
}
