/* ==========================================================================
   Landing primitives — project-agnostic layout chrome
   --------------------------------------------------------------------------
   Two primitives. Each knows nothing about Nav.ai. Either could be lifted
   to another project verbatim.

   1. .browser-frame  — styled wrapper that resembles a browser window. Its
      only job is to put a thin chrome around whatever you put inside it.
   2. .showcase-row   — two-column layout: copy on one side, visual on the
      other. Reverses with `.showcase-row.is-reverse`. The copy side is
      structured (eyebrow / title / lede / bullets / CTA), the visual side
      is a free slot.

   No selectors here reference any snapshot, page section, or domain term.
   ========================================================================== */

/* -----  Section wrapper  -------------------------------------------------- */

.showcase-section {
  padding: 96px 24px;
  background: #ffffff;
}
@media (max-width: 1024px) { .showcase-section { padding: 72px 24px; } }
@media (max-width: 640px)  { .showcase-section { padding: 56px 16px; } }

.showcase-section__container {
  max-width: 1200px;
  margin: 0 auto;
}

/* -----  Showcase row  ----------------------------------------------------- */

.showcase-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 960px) {
  .showcase-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.showcase-row.is-reverse .showcase-row__copy   { order: 2; }
.showcase-row.is-reverse .showcase-row__visual { order: 1; }
@media (max-width: 960px) {
  .showcase-row.is-reverse .showcase-row__copy   { order: 1; }
  .showcase-row.is-reverse .showcase-row__visual { order: 2; }
}

/* Copy side — structured slots */

.showcase-row__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
}

.showcase-row__eyebrow {
  font-family: var(--font-sans, 'Quicksand', system-ui, sans-serif);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #115e59;
  margin: 0;
}

.showcase-row__title {
  font-family: var(--font-display, 'Quicksand', system-ui, sans-serif);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin: 0;
}

.showcase-row__lede {
  font-family: var(--font-sans, 'Quicksand', system-ui, sans-serif);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: #475569;
  margin: 0;
  max-width: 52ch;
}

.showcase-row__bullets {
  list-style: none;
  padding: 0;
  margin: 8px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.showcase-row__bullets li {
  position: relative;
  padding-left: 28px;
  font-family: var(--font-sans, 'Quicksand', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: #0f172a;
}
.showcase-row__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 9999px;
  background: #9be235;
  box-shadow: 0 0 0 4px rgba(155, 226, 53, 0.16);
}

.showcase-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* Visual side — anchor for whatever child gets dropped in */

.showcase-row__visual {
  position: relative;
  min-width: 0; /* prevents grid blowout from inner overflow */
}

/* -----  Browser frame  ---------------------------------------------------- */
/*
   A chrome wrapper. Three traffic lights at top-left, an address pill in the
   middle, an empty actions slot at the right. The body slot below renders
   children with a faint inner border.

   Use it like:
     <div class="browser-frame">
       <div class="browser-frame__chrome">
         <div class="browser-frame__lights">…</div>
         <div class="browser-frame__address">your-app.com/route</div>
       </div>
       <div class="browser-frame__body"> [snapshot HTML] </div>
     </div>
*/

.browser-frame {
  position: relative;
  background: #f5f5f7;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px -8px rgba(11, 46, 52, 0.18),
    0 32px 60px -20px rgba(11, 46, 52, 0.22);
  isolation: isolate;
}

.browser-frame__chrome {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: #f5f5f7;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.browser-frame__lights {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.browser-frame__lights span {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background: #cbd5e1;
}
.browser-frame__lights span:nth-child(1) { background: #ff6058; }
.browser-frame__lights span:nth-child(2) { background: #ffbd2e; }
.browser-frame__lights span:nth-child(3) { background: #28ca41; }

.browser-frame__address {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 9999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-family: var(--font-mono, 'Geist Mono', ui-monospace, monospace);
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.02em;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-frame__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 56px;          /* mirrors width of __lights to balance the address pill */
  flex-shrink: 0;
}

.browser-frame__body {
  position: relative;
  background: #ffffff;
  /* The snapshot inside controls its own padding; we only clip overflow. */
  overflow: hidden;
}

/* Optional: a soft halo that hints "this thing is alive" */
.browser-frame--glow::after {
  content: '';
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(
    closest-side,
    rgba(155, 226, 53, 0.18),
    transparent 70%
  );
  pointer-events: none;
}

/* Mobile — keep the chrome but compact the address pill */
@media (max-width: 640px) {
  .browser-frame__chrome { padding: 10px 12px; gap: 10px; }
  .browser-frame__address { font-size: 11px; height: 24px; padding: 0 10px; }
  .browser-frame__lights span { width: 10px; height: 10px; }
}
