@import "./ds/styles.css";

/* Page furniture for the review microsite. Values come from the realfast tokens
   and the website design language (bands, cards, CTAs). */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
/* Typography is set on the page wrapper, not <body>, so it cannot leak into
   the site header the route renders above it (src/pages/services/ai-sdlc.astro). */
body {
  margin: 0;
  background: var(--surface-page, #ffffff);
}
.aisdlc-page {
  color: var(--text-strong, #121212);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
:where(.aisdlc-page) a {
  color: #1370fb;
}
:where(.aisdlc-page) a:hover {
  color: #121212;
}
img {
  max-width: 100%;
}
/* Served inside the site layout, whose base layer resets buttons (font,
   padding, small, img display). This page was drawn against browser defaults, so restore them;
   the page's own button classes still win. */
:where(.aisdlc-page) button {
  font: revert;
  padding: revert;
}
:where(.aisdlc-page) small {
  font-size: revert;
}
:where(.aisdlc-page) img {
  display: revert;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
.narrow {
  max-width: 760px;
}
.stack > * + * {
  margin-top: 16px;
}
.stack-lg > * + * {
  margin-top: 32px;
}

.rubric {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent, #e3120b);
}
.on-dark .rubric {
  color: var(--rf-red-400, #f0524d);
}
.meta {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  color: #6e6e6e;
}
.on-dark .meta {
  color: rgba(255, 255, 255, 0.6);
}
.ph {
  background: #f1ebe0;
  padding: 0 4px;
  font-family: var(--font-sans);
  font-size: 0.9em;
}
.on-dark .ph {
  background: rgba(255, 255, 255, 0.12);
}
.name {
  font-style: italic;
}

/* Header */
.site-header {
  border-bottom: 1px solid #d8d8d8;
  background: #ffffff;
  position: relative;
  z-index: 3;
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}
.wordmark {
  font-size: 24px;
  font-weight: 600;
  font-style: italic;
  color: #121212;
  text-decoration: none;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
}
.site-nav a {
  color: #121212;
  text-decoration: none;
}
.site-nav a:hover {
  color: var(--accent);
}
.site-nav a[aria-current="page"] {
  color: var(--accent);
}
.site-nav a.btn-primary,
.site-nav a.btn-primary:hover {
  color: #ffffff;
}
.h1-page {
  font-size: 56px;
}

/* Bands */
.band {
  padding: 96px 0;
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 40px -32px rgba(17, 17, 17, 0.14);
}
.band-white {
  background: #ffffff;
}
.band-cream {
  background: #f5f3ef;
}
.band-ink {
  color: #ffffff;
  background:
    radial-gradient(
      ellipse 85% 65% at 50% -12%,
      rgba(227, 18, 11, 0.22),
      transparent 62%
    ),
    radial-gradient(
      ellipse 60% 45% at 85% 110%,
      rgba(227, 18, 11, 0.08),
      transparent 65%
    ),
    linear-gradient(180deg, #1d1c1a 0%, #121211 55%, #0c0c0b 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -40px 80px rgba(0, 0, 0, 0.35);
}
.band-chapter {
  color: #ffffff;
  background:
    radial-gradient(
      ellipse 70% 50% at 50% -10%,
      rgba(227, 18, 11, 0.16),
      transparent 62%
    ),
    linear-gradient(180deg, #1c1b1a 0%, #0e0e0d 100%);
  box-shadow: inset 0 28px 32px -30px rgba(0, 0, 0, 0.55);
}
.band-close {
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(
      ellipse 70% 55% at 50% 115%,
      rgba(227, 18, 11, 0.22),
      transparent 62%
    ),
    linear-gradient(180deg, #050505 0%, #121211 60%, #1d1c1a 100%);
}
.on-dark h1,
.on-dark h2 {
  color: rgba(255, 255, 255, 0.92);
}
.on-dark p,
.on-dark li {
  color: rgba(255, 255, 255, 0.74);
}

/* Type */
.h1 {
  font-size: 64px;
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.h2 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
}
.lede {
  font-size: 21px;
  line-height: 1.45;
}
.body {
  font-size: 18px;
  line-height: 1.6;
  color: #2a2a2a;
}
.small {
  font-size: 16px;
  line-height: 1.55;
  color: #2a2a2a;
}
.on-dark .small,
.on-dark .body {
  color: rgba(255, 255, 255, 0.74);
}
.accent-word {
  background: linear-gradient(100deg, #ffb3ae 0%, #f0524d 55%, #c00d07 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Hero */
.hero {
  padding: 104px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}
.proof {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  padding: 32px;
}
.proof .figure {
  font-size: 56px;
  line-height: 1;
  font-weight: 600;
  color: #ffffff;
}
.proof p + p {
  margin-top: 16px;
}

/* CTAs */
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 17px 32px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  transition:
    box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1),
    background 0.2s cubic-bezier(0.2, 0, 0, 1);
}
.btn-primary {
  background: var(--rf-red-500, #e3120b);
  color: #ffffff;
  border: 1px solid transparent;
}
.btn-primary:hover {
  color: #ffffff;
  box-shadow: 0 8px 32px rgba(227, 18, 11, 0.35);
}
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #ffffff;
}
.btn-ghost:hover {
  background: #ffffff;
  color: #121212;
}
.btn-ghost-dark {
  border: 1px solid #121212;
  color: #121212;
}
.btn-ghost-dark:hover {
  background: #121212;
  color: #ffffff;
}
.more {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--accent);
  text-decoration: none;
}
.more:hover {
  color: #121212;
  text-decoration: underline;
}

/* Grids and cards */
.cols-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
}
.cols-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 48px;
  align-items: start;
}
.ruled {
  border-top: 2px solid #121212;
  padding-top: 16px;
}
.on-dark .ruled {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.ruled > * + * {
  margin-top: 8px;
}
.card {
  border: 4px solid #ffffff;
  background: linear-gradient(165deg, #ffffff 0%, #f5f3ef 60%);
  border-radius: 24px;
  box-shadow:
    0 6px 18px rgba(17, 17, 17, 0.08),
    0 20px 44px rgba(17, 17, 17, 0.1);
  padding: 36px 32px 40px;
}
.card > * + * {
  margin-top: 16px;
}
.card .proofline {
  border-top: 1px solid #d8d8d8;
  padding-top: 16px;
}
.band-cream .card {
  background: linear-gradient(165deg, #ffffff 0%, #ffffff 60%);
}

/* Rungs */
.rungs {
  list-style: none;
  padding: 0;
  border-top: 1px solid #d8d8d8;
}
.rungs li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid #d8d8d8;
}
.rungs .num {
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: #9a9a9a;
}
.rungs li > div > * + * {
  margin-top: 8px;
}

/* Definition list for the platform components */
.parts {
  border-top: 1px solid #d8d8d8;
}
.parts .row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 32px;
  padding: 20px 0;
  border-bottom: 1px solid #d8d8d8;
}
.parts .row .meta a {
  color: inherit;
}
.parts .row .when {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  color: #6e6e6e;
  margin-top: 4px;
}
.parts .row h3 {
  font-size: 20px;
  font-weight: 700;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 16px 16px 16px 0;
  border-top: 1px solid #d8d8d8;
  font-size: 17px;
  line-height: 1.5;
}
th {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  color: #6e6e6e;
  border-top: 0;
  padding-top: 0;
}
td.k {
  font-weight: 700;
  white-space: nowrap;
}

/* Inner pages */
.page-hero {
  padding: 88px 0 72px;
}
.prose {
  max-width: 760px;
}
.prose > * + * {
  margin-top: 20px;
}
.prose h2 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 600;
  margin-top: 56px;
}
.prose ul {
  padding-left: 22px;
}
.prose li + li {
  margin-top: 8px;
}
.prose p,
.prose li {
  color: #2a2a2a;
}
.callout {
  background: #f5f3ef;
  border-radius: 24px;
  padding: 32px;
}
.callout > * + * {
  margin-top: 12px;
}
.exit {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  color: #121212 !important;
}
.next {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid #d8d8d8;
  padding-top: 24px;
  margin-top: 64px;
  font-family: var(--font-sans);
}

/* Footer */
.site-footer {
  border-top: 1px solid #d8d8d8;
  background: #ffffff;
  padding: 32px 0;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #6e6e6e;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}
.site-footer em {
  font-family: var(--font-serif);
  font-size: 16px;
  color: #121212;
}

@media (max-width: 860px) {
  .hero-grid,
  .cols-3,
  .cols-2,
  .cols-split,
  .parts .row {
    grid-template-columns: 1fr;
  }
  .cols-3,
  .cols-2,
  .cols-split {
    gap: 24px;
  }
  .parts .row {
    gap: 8px;
  }
}
@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }
  .band {
    padding: 64px 0;
  }
  .hero {
    padding: 64px 0;
  }
  .page-hero {
    padding: 56px 0 48px;
  }
  .h1,
  .h1-page {
    font-size: 40px;
  }
  .h2 {
    font-size: 32px;
  }
  .lede {
    font-size: 18px;
  }
  .proof .figure {
    font-size: 44px;
  }
  .site-nav {
    gap: 16px;
    font-size: 14px;
  }
  .ctas .btn {
    display: block;
    width: 100%;
  }
  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }
  thead {
    display: none;
  }
  tr {
    border-top: 1px solid #d8d8d8;
    padding: 12px 0;
  }
  td {
    border-top: 0;
    padding: 4px 0;
  }
  td.k {
    white-space: normal;
  }
}

/* Wiki approval stamps, typed by hand; see wiki.html head note */
.stamp {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 1px 8px;
  border-radius: 3px;
  margin: 4px 0 0;
  background: #e3efe3;
  color: #1f5e2a;
}
.stamp-draft {
  background: #fbefd6;
  color: #7a4b00;
}

/* What we do: moments rail */
.moments {
  border-top: 1px solid #d8d8d8;
}
.moment {
  display: grid;
  grid-template-columns: 64px minmax(0, 4fr) minmax(0, 8fr);
  gap: 16px 40px;
  padding: 36px 0;
  border-bottom: 1px solid #d8d8d8;
}
.moment .num {
  font-size: 44px;
  font-weight: 600;
  line-height: 1;
  color: #9a9a9a;
}
.moment .why > * + * {
  margin-top: 10px;
}
.moment .why h3 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 700;
}
.moment .why p {
  font-size: 17px;
  line-height: 1.5;
  color: #2a2a2a;
}
.moment .items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 32px;
  align-content: start;
}
.moment .items .item > * + * {
  margin-top: 6px;
}
.moment .items h4 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 700;
  margin: 0;
}
.moment .items .example {
  grid-column: 1 / -1;
}
.moment .items .who {
  color: #6e6e6e;
}
.moment .items .who b {
  color: #2a2a2a;
  font-weight: 600;
}
@media (max-width: 860px) {
  .moment {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .moment .items {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .moment .num {
    font-size: 32px;
  }
}

/* How the work is run: progression strip */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 28px;
}
.step > * + * {
  margin-top: 8px;
}
.share {
  height: 6px;
  background: #e4e0d8;
  border-radius: 3px;
  overflow: hidden;
}
.share span {
  display: block;
  height: 100%;
  background: #6e6e6e;
}
.gate {
  font-family: var(--font-sans);
  font-size: 14px;
  color: #6e6e6e;
}
.gate b {
  color: #2a2a2a;
  font-weight: 600;
}
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
    gap: 28px 0;
  }
}

/* Review copy bar: team-only navigation across every page */

/* Wiki: notebook layout. Sticky index left, one reading column right. */
.wiki-grid {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 0 72px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 112px;
}
.wiki-index {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
}
.wiki-index summary {
  list-style: none;
  cursor: default;
}
.wiki-index summary::-webkit-details-marker {
  display: none;
}
.wiki-count {
  font-size: 13px;
  color: #6e6e6e;
  margin: 6px 0 0;
}
.wiki-legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #6e6e6e;
  margin: 8px 0 0;
}
.wiki-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wiki-group {
  font-weight: 700;
  font-size: 13px;
  color: #121212;
  margin: 22px 0 4px;
  padding-top: 10px;
  border-top: 1px solid #d8d8d8;
}
.wiki-group .tag {
  font-weight: 400;
  color: #7a4b00;
  margin-left: 6px;
}
.wiki-index ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
.wiki-index a {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 9px;
  align-items: baseline;
  padding: 4px 0 4px 10px;
  color: #2a2a2a;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.wiki-index li.sub a {
  padding-left: 30px;
  color: #4a4a4a;
}
.wiki-index a:hover {
  color: #121212;
}
.wiki-index a.is-active {
  color: var(--accent, #e3120b);
  border-left-color: var(--accent, #e3120b);
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  top: -1px;
  background: #2e8b3a;
}
.dot.draft {
  background: #d08a00;
}
.dot.changed {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px #d08a00;
}
.dot.none {
  background: transparent;
}
.wiki-body {
  max-width: 660px;
  min-width: 0;
}
.wiki-head .h1 {
  font-size: 44px;
}
.wiki-head .lede {
  font-size: 19px;
  color: #2a2a2a;
}
.wiki-section {
  margin-top: 80px;
}
.wiki-section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  color: var(--accent, #e3120b);
  padding-top: 14px;
  border-top: 1px solid #121212;
  margin: 0;
}
.wiki-section-title .meta {
  font-weight: 400;
}
.wiki-section > .small {
  margin-top: 12px;
  color: #6e6e6e;
}
.entry {
  padding: 36px 0 40px;
  border-bottom: 1px solid #d8d8d8;
  scroll-margin-top: 24px;
}
.entry:last-child {
  border-bottom: 0;
}
.entry h3 {
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  margin: 0;
}
.entry.sub {
  margin-left: 28px;
  padding: 24px 0 28px;
}
.entry.sub h3 {
  font-size: 21px;
}
.entry > * + * {
  margin-top: 14px;
}
.entry .stamp {
  margin: 12px 0 0;
}
.entry .stamp + * {
  margin-top: 20px;
}
.entry .small {
  font-size: 17px;
  line-height: 1.6;
}
.entry:target h3 {
  color: var(--accent, #e3120b);
}
.entry ul,
.entry ol {
  padding-left: 22px;
}
.entry li + li {
  margin-top: 6px;
}
.entry table.detail {
  margin: 16px 0;
}
.entry table.detail td,
.entry table.detail th {
  font-size: 15px;
}
@media (max-width: 900px) {
  .wiki-grid {
    grid-template-columns: 1fr;
    gap: 32px 0;
    padding-top: 32px;
  }
  .wiki-index {
    position: static;
    max-height: none;
    padding-bottom: 16px;
    border-bottom: 1px solid #d8d8d8;
  }
  .wiki-index summary {
    cursor: pointer;
  }
  .entry.sub {
    margin-left: 16px;
  }
}

/* What we do: three moments as tabs on a release line; one moment's items shown at a time. */
.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid #121212;
  font-family: var(--font-sans);
}
.tab {
  all: unset;
  cursor: pointer;
  padding: 16px 16px 14px 0;
  font-size: 15px;
  font-weight: 600;
  color: #6e6e6e;
  border-top: 2px solid transparent;
  margin-top: -2px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.tab .num {
  font-family: var(--font-serif);
  font-size: 22px;
  color: #9a9a9a;
  font-weight: 400;
}
.tab.on {
  color: #121212;
  border-top-color: var(--accent);
}
.tab.on .num {
  color: var(--accent);
}
.js .panel {
  display: none;
}
.panel {
  padding-top: 8px;
}
.js .panel.on {
  display: block;
}
@media (max-width: 760px) {
  .tabs {
    grid-template-columns: 1fr;
    border-top: 0;
  }
  .tab {
    border-top: 0;
    border-left: 2px solid transparent;
    padding: 10px 12px;
    margin-top: 0;
  }
  .tab.on {
    border-left-color: var(--accent);
  }
}

/* Proof strip: three figures under the hero. */
.proof-strip {
  padding: 36px 0;
  border-bottom: 1px solid #d8d8d8;
}
.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.strip .figure {
  font-size: 44px;
  line-height: 1;
}
.strip .small {
  margin-top: 8px;
  color: #6e6e6e;
}
@media (max-width: 760px) {
  .strip {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
