/*
  Robuse Seller — feature showcase.
  Committed to the brand's light identity (docs/design-system.md): blue carries
  hierarchy, yellow is the single accent, Inter for text and Archivo for
  display. Every colour is painted explicitly.
*/
:root {
  --ink: #0b1220;
  --paper: #ffffff;
  --surface: #f1f5fb;
  --surface-2: #e9eefa;
  --line: #dce4f0;
  --line-ink: #24314f;
  --blue: #1d4ed8;
  --blue-hover: #1e40af;
  --blue-soft: #dbeafe;
  --yellow: #facc15;
  --yellow-ink: #422006;
  --text: #0f172a;
  --muted: #5a6b85;
  --muted-ink: #9fb0cc;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 68rem;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
}

/* Top navigation ------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-decoration: none;
  flex: none;
}

.wordmark span:first-child {
  color: var(--blue);
}

.wordmark span:last-child {
  background: var(--yellow);
  color: var(--yellow-ink);
  border-radius: 6px;
  padding: 0.05em 0.32em;
}

.navlinks {
  margin-left: auto;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  overflow-x: auto;
}

.navlinks a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
}

.navlinks a:hover {
  color: var(--text);
  background: var(--surface);
}

.navlinks a[aria-current="page"] {
  color: #1e3a8a;
  background: var(--blue-soft);
}

/* Layout -------------------------------------------------------------------- */

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-inline: 1.25rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
}

h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.12;
  text-wrap: balance;
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  font-size: 1.25rem;
}

p {
  margin: 0;
  max-width: 62ch;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
}

/* Hero ---------------------------------------------------------------------- */

.hero {
  padding-block: 3.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero .lede {
  font-size: 1.25rem;
}

/* Demo-data disclaimer ------------------------------------------------------ */

.notice {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  background: #fef9c3;
  border: 1px solid #fde68a;
  color: #713f12;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.875rem;
  max-width: 62ch;
}

.notice svg {
  flex: none;
  margin-top: 0.15rem;
}

/* Pillar grid (index) ------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  padding-block: 1.5rem 3rem;
}

/* On desktop keep all five pillars on one row — a little narrower reads
   better than four-plus-one. */
@media (min-width: 60rem) {
  .pillars {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
  }
}

.pillar {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.pillar:hover {
  transform: translateY(-2px);
  border-color: #bfd4fe;
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.4);
}

.pillar-shot {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.pillar-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.pillar-body {
  padding: 1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pillar-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

.pillar h3 {
  font-size: 1.15rem;
}

.pillar p {
  font-size: 0.9375rem;
  color: var(--muted);
}

.pillar-more {
  margin-top: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue);
}

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

.section {
  padding-block: 2.25rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

.section-text {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-text ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.9375rem;
  max-width: 60ch;
}

.section-media {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

/* Browser frame ------------------------------------------------------------- */

.frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 22px 50px -30px rgba(15, 23, 42, 0.45);
}

.frame-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.dots {
  display: inline-flex;
  gap: 0.3rem;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.frame-url {
  font-size: 0.72rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.frame img {
  width: 100%;
}

/* Secondary thumbnails ------------------------------------------------------ */

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 0.6rem;
}

.thumb {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}

.thumb figcaption {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 0.3rem 0.5rem;
  border-top: 1px solid var(--line);
}

/* Phone frame --------------------------------------------------------------- */

.phone {
  width: 232px;
  max-width: 62vw;
  border: 8px solid #0b1220;
  border-radius: 30px;
  overflow: hidden;
  background: #0b1220;
  box-shadow: 0 22px 50px -28px rgba(15, 23, 42, 0.6);
}

.phone img {
  width: 100%;
  border-radius: 22px;
}

.media-caption {
  font-size: 0.78rem;
  color: var(--muted);
}

.with-phone {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.with-phone .frame {
  flex: 1;
  min-width: 16rem;
}

/* Footer -------------------------------------------------------------------- */

.pager {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.pager a {
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  color: var(--blue);
  font-size: 0.95rem;
}

.pager a.next {
  margin-left: auto;
  text-align: right;
}

footer.site {
  background: var(--ink);
  color: var(--muted-ink);
  margin-top: 2rem;
}

footer.site .wrap {
  padding-block: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8125rem;
}

footer.site strong {
  color: #eef3fb;
  font-family: var(--display);
}

.cta {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 0.4rem;
  background: var(--yellow);
  color: var(--yellow-ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  border-radius: 10px;
  padding: 0.7rem 1.1rem;
}

a:focus-visible {
  outline: 3px solid #7ea6ff;
  outline-offset: 2px;
}

@media (min-width: 52rem) {
  .section {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2.5rem;
  }
  .section.flip .section-text {
    order: 2;
  }
  .section.flip .section-media {
    order: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* Lightbox ------------------------------------------------------------------ */

.frame img,
.thumb img,
.phone img {
  cursor: zoom-in;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(11, 18, 32, 0.92);
  cursor: zoom-out;
}

.lightbox img {
  max-width: 96vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}
