/* Design — visual, editorial, magazine-like */

/* Oversized wordmark hero */
.des-hero { padding-top: 24px; }

/* Sized so the word spans the full content width; line-height leaves room for the "g" descender */
.des-hero__word {
  font-size: min(37.2vw, 508px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.06em;
  margin: -0.14em 0 0 -0.055em;
  white-space: nowrap;
}

.des-hero__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--col-gap);
  margin-top: 0.11em;
  font-size: min(37.2vw, 508px); /* lets the em margin above track the word's descender */
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.des-hero__label {
  font-size: 18px;
  line-height: 24px;
  color: var(--muted);
  padding-top: 8px;
}

.des-hero__intro {
  grid-column: 2 / 4;
  font-size: 36px;
  line-height: 43px;
  letter-spacing: -0.02em;
}

/* Image plates */
.plates {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  column-gap: var(--col-gap);
  row-gap: 40px;
  margin-top: 72px;
}

.plate { display: flex; flex-direction: column; }

.plate--tall { grid-row: span 2; }
.plate--wide { grid-column: span 2; }

.plate__media { aspect-ratio: 1 / 1; }
.plate--tall .plate__media { aspect-ratio: auto; flex: 1; min-height: 360px; }
.plate--wide .plate__media { aspect-ratio: 2.2 / 1; }

.plate figcaption {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  font-size: 15px;
  line-height: 20px;
}

.plate figcaption span { color: var(--muted); }

/* Generic vs directed comparison */
.compare {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--col-gap);
  row-gap: 40px;
  margin-top: 56px;
}

/* Each panel is an image spot: images/design/compare-generic and compare-directed cover the
   code-built mock when they exist; otherwise the mock below stays visible */
.compare__panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 4 / 3;
}

.compare__item figcaption {
  margin-top: 14px;
  font-size: 16px;
  line-height: 22px;
  color: var(--muted);
}

.compare__item figcaption strong {
  display: block;
  margin-bottom: 2px;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 600;
  color: var(--ink);
}

/* Mock: the stereotypical AI landing page */
/* The clichés, kept to the essentials: purple-blue glow, faint grid, sparkle badge,
   gradient headline word, buzzword copy and glowing pill buttons, all dead centre */
.mock-generic {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #14142b;
  background:
    radial-gradient(ellipse 50% 45% at 50% 45%, rgba(139, 92, 246, .28), transparent 70%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(59, 130, 246, .18), transparent 70%),
    radial-gradient(ellipse 35% 35% at 8% 12%, rgba(236, 72, 153, .12), transparent 70%),
    #f7f7fc;
}

/* faint dotted-grid backdrop that fades out towards the edges */
.mock-generic::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(99, 102, 241, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(ellipse 65% 60% at 50% 50%, #000, transparent);
}

.mg-badge {
  padding: 5px 12px;
  border: 1px solid rgba(139, 92, 246, .25);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 600;
}

.mg-badge b { margin-left: 2px; }

.mg-title {
  max-width: 440px;
  margin-top: 16px;
  font-size: 35px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.mg-title span {
  background: linear-gradient(90deg, #7c3aed, #2563eb 55%, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mg-text {
  max-width: 370px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 20px;
  color: #6b6b85;
}

.mg-ctas { display: flex; gap: 10px; margin-top: 24px; }

.mg-btn {
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c3aed, #3b82f6);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(109, 40, 217, .35);
}

.mg-btn--ghost {
  border: 1px solid #e2e2ef;
  background: #fff;
  color: #14142b;
  box-shadow: 0 2px 8px rgba(20, 20, 60, .06);
}

/* Mock: the same page with direction */
.mock-directed {
  display: flex;
  flex-direction: column;
  padding: 32px;
  background: #ece5d3;
  color: #111;
}

.mock-directed__meta {
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #111;
  font-size: 13px;
}

.mock-directed__title {
  margin-top: auto;
  max-width: 78%;
  font-size: 50px;
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.mock-directed__text {
  max-width: 300px;
  margin-top: 16px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  line-height: 19px;
}

.mock-directed__button {
  align-self: flex-start;
  margin-top: 20px;
  padding: 10px 16px;
  background: #111;
  color: #ece5d3;
  font-size: 13px;
}

.mock-directed__dot {
  position: absolute;
  top: 56px;
  right: 32px;
  width: 22%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f2611f;
}

/* Contents-page list */
.toc { list-style: none; border-bottom: 1px solid var(--rule); }

.toc__item {
  padding: 22px 0 24px;
  border-top: 1px solid var(--rule);
}

.toc__line {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.toc__title {
  font-size: 32px;
  line-height: 38px;
  letter-spacing: -0.02em;
}

.toc__leader {
  flex: 1;
  border-bottom: 1px dotted var(--muted);
  transform: translateY(-6px);
}

.toc__num {
  font-size: 18px;
  color: var(--muted);
}

.toc__desc {
  max-width: 560px;
  margin-top: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0.014em;
  color: var(--ink-soft);
}

@media (max-width: 1000px) {
  .des-hero__row { grid-template-columns: 1fr; row-gap: 12px; }
  .des-hero__intro { grid-column: auto; font-size: 30px; line-height: 36px; }
  .plates { grid-template-columns: 1fr 1fr; }
  .plate--tall { grid-row: auto; grid-column: span 2; }
  .plate--tall .plate__media { aspect-ratio: 16 / 9; flex: none; min-height: 0; }
  .compare { grid-template-columns: 1fr; }
  .mock-directed__title { font-size: 44px; }
}

@media (max-width: 640px) {
  .des-hero__intro { font-size: 24px; line-height: 30px; }
  .plates { grid-template-columns: 1fr; margin-top: 40px; }
  .plate--tall, .plate--wide { grid-column: auto; }
  .plate--wide .plate__media { aspect-ratio: 4 / 3; }
  .mock-generic { padding: 20px; }
  .mg-title { font-size: 22px; }
  .mg-text { display: none; }
  .mg-ctas { margin-top: 16px; }
  .mock-directed { padding: 20px; }
  .mock-directed__title { font-size: 30px; }
  .toc__title { font-size: 24px; line-height: 30px; }
}
