/* Raven marketing site. Values come from tokens.css; see design/style-guide.html. */
@import url("tokens.css");

/* ---------- Base ---------- */

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

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 30;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
}

.skip:focus {
  top: 12px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.label {
  font-family: var(--mono);
  font-size: var(--text-label);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}

.lede {
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--muted);
  max-width: 36em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.caption {
  font-size: var(--text-meta);
  color: var(--muted);
  margin: 0;
}

.case-link {
  font-size: var(--text-ui);
  font-weight: 550;
  color: var(--ink);
  text-decoration: none;
}

.case-link::after {
  content: " →";
  transition: margin var(--fast) var(--ease);
}

a:hover > .case-link::after {
  margin-left: 4px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--normal) var(--ease);
}

.site-header.scrolled {
  border-bottom-color: var(--line);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 40px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.32em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark img {
  width: 22px;
  height: 22px;
}

[data-theme="dark"] .wordmark img {
  filter: invert(1);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-right: auto;
  font-size: var(--text-ui);
  font-weight: 500;
}

.navlinks > a,
.product-menu summary {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

.navlinks > a:hover,
.navlinks > a[aria-current],
.product-menu summary:hover,
.product-menu[open] summary {
  color: var(--ink);
}

.product-menu {
  position: relative;
}

.product-menu summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-menu summary::-webkit-details-marker {
  display: none;
}

.product-menu summary::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--fast) var(--ease);
}

.product-menu[open] summary::after {
  transform: translateY(1px) rotate(225deg);
}

.product-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: -14px;
  min-width: 300px;
  padding: 6px;
  display: grid;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--raised);
  box-shadow: var(--shadow-pop);
  animation: menu-in var(--normal) var(--ease);
}

.product-dropdown a {
  display: grid;
  gap: 1px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink);
}

.product-dropdown b {
  font-weight: 550;
}

.product-dropdown span {
  font-size: var(--text-meta);
  color: var(--muted);
}

.product-dropdown a:hover {
  background: var(--surface);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition:
    background var(--fast) var(--ease),
    color var(--fast) var(--ease);
}

.icon-button:hover {
  background: var(--surface);
  color: var(--ink);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .sun,
[data-theme="dark"] .theme-toggle .moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .sun {
  display: block;
}

.menu {
  display: none;
}

.menu-inner {
  position: relative;
  width: 16px;
  height: 8px;
}

.menu-inner > span {
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--normal) var(--ease);
}

.menu-inner > span:first-child {
  top: 0;
}

.menu-inner > span:last-child {
  bottom: 0;
}

.menu[aria-expanded="true"] .menu-inner > span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu[aria-expanded="true"] .menu-inner > span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* ---------- Home: hero ---------- */

.hero {
  padding-block: clamp(72px, 10vw, 136px) clamp(48px, 6vw, 72px);
}

.hero h1 {
  margin: 20px 0 24px;
  max-width: 15ch;
}

.hero .actions {
  margin-top: 36px;
}

.hero.center {
  text-align: center;
}

.hero.center h1,
.hero.center .lede {
  margin-inline: auto;
}

.hero.center .lede {
  max-width: 34em;
}

.hero.center .actions {
  justify-content: center;
}

/* ---------- Home: product frame ---------- */

.showcase {
  padding: clamp(28px, 5vw, 72px) clamp(16px, 5vw, 72px) 0;
  border-radius: var(--radius-lg);
  background: #ece6d8 center / cover url("assets/field-dawn.svg");
  overflow: hidden;
}

.frame {
  position: relative;
  aspect-ratio: 1200 / 730;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #161616;
  box-shadow: var(--shadow-frame);
}

.frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1200px;
  height: 730px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
}

.showcase-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
}

.motion-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px 0 10px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 550;
  transition:
    background var(--fast) var(--ease),
    color var(--fast) var(--ease);
}

.motion-toggle:hover {
  background: var(--surface);
  color: var(--ink);
}

.motion-toggle svg {
  width: 14px;
  height: 14px;
}

.motion-toggle .play,
.motion-toggle[aria-pressed="true"] .pause {
  display: none;
}

.motion-toggle[aria-pressed="true"] .play {
  display: block;
}

/* ---------- Chapters ---------- */

.chapter {
  padding-block: var(--section);
}

.chapter + .chapter {
  border-top: 1px solid var(--line);
}

.chapter.warm,
.chapter.night {
  border-top: 0;
}

.chapter.warm {
  background: var(--paper-warm);
}

.chapter.warm + .chapter {
  border-top: 0;
}

.chapter h2 {
  margin: 0;
}

.chapter p {
  color: var(--muted);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head .label {
  grid-column: 1 / -1;
}

.section-head .lede {
  margin: 0;
}

/* Pillars — four numbered claims */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.pillars article {
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.pillars .index {
  font-family: var(--mono);
  font-size: var(--text-label);
  color: var(--iris);
}

.pillars h3 {
  margin: 14px 0 8px;
  font-size: 19px;
}

.pillars p {
  margin: 0;
  font-size: 15px;
}

/* Asks — real prompts, one per line */

.asks {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.asks li {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-strong);
  transition: padding var(--normal) var(--ease);
}

.asks li::after {
  content: "↗";
  color: var(--faint);
  transition:
    color var(--fast) var(--ease),
    transform var(--normal) var(--ease);
}

.asks li:hover {
  padding-left: 8px;
}

.asks li:hover::after {
  color: var(--ink);
  transform: translate(2px, -2px);
}

.asks q {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.25;
  quotes: "“" "”";
}

/* Editorial cards with interface illustrations */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  font-size: 16px;
}

.card .meta {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  font-size: var(--text-meta);
  font-weight: 550;
  color: var(--ink);
}

.card .meta span + span {
  color: var(--faint);
  font-weight: 500;
}

.art {
  aspect-ratio: 4 / 3.4;
  display: grid;
  place-items: center;
  padding: clamp(20px, 3vw, 36px);
  border-radius: var(--radius);
  background: center / cover url("assets/field-sky.svg");
  overflow: hidden;
}

.art.orchid {
  background-image: url("assets/field-orchid.svg");
}

.art.citrus {
  background-image: url("assets/field-citrus.svg");
}

.art.dawn {
  background-image: url("assets/field-dawn.svg");
}

/* Flow — ink-ruled feature row */

.flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.flow article {
  padding-top: 20px;
  border-top: 1px solid var(--ink);
}

.flow h3 {
  margin: 14px 0 8px;
}

.flow p {
  margin: 0;
  font-size: 16px;
}

/* Night band */

.chapter.night {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--night-ink);
  text-align: center;
}

.chapter.night::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -55%;
  width: min(1100px, 140%);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgb(169 165 247 / 0.2), transparent);
  pointer-events: none;
}

.chapter.night > .wrap {
  position: relative;
}

.chapter.night .label {
  color: var(--night-muted);
}

.chapter.night h2 {
  margin: 18px auto 18px;
  max-width: 14ch;
}

.chapter.night p:not(.label) {
  max-width: 32em;
  margin: 0 auto 36px;
  color: var(--night-muted);
  font-size: var(--text-lead);
  line-height: 1.5;
}

.tiles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.tile {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.03));
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.1),
    0 16px 36px rgb(0 0 0 / 0.45);
}

.tile img {
  width: 28px;
  height: 28px;
}

.tile img.invert {
  filter: invert(1);
}

.button.on-night {
  background: var(--night-ink);
  color: var(--night);
}

.button.on-night:hover {
  background: #d9d8d4;
}

/* Use cases — hairline grid */

.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.usecase-grid a {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(28px, 4vw, 44px);
  background: var(--paper);
  text-decoration: none;
  transition: background var(--normal) var(--ease);
}

.usecase-grid a:hover {
  background: var(--paper-warm);
}

.usecase-grid h3 {
  margin: 8px 0 0;
  max-width: 18em;
  font-size: clamp(20px, 2vw, 24px);
}

.usecase-grid p {
  margin: 0 0 8px;
  max-width: 28em;
  font-size: 16px;
}

.usecase-grid .case-link {
  margin-top: auto;
}

/* Closing */

.closing {
  padding-block: var(--section);
  text-align: center;
}

.closing h2 {
  margin: 18px auto 20px;
  max-width: 16ch;
}

.closing p:not(.label) {
  max-width: 32em;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: var(--text-lead);
  line-height: 1.5;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 56px 40px;
  font-size: var(--text-ui);
}

.foot-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(0, 0.6fr));
  gap: 40px;
}

.foot-top p {
  margin: 14px 0 0;
  color: var(--muted);
  max-width: 22em;
}

.foot-col {
  display: grid;
  align-content: start;
  gap: 10px;
}

.foot-col .label {
  margin-bottom: 6px;
}

.foot-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

.foot-col a:hover {
  color: var(--ink);
}

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: var(--text-meta);
  color: var(--faint);
}

/* ---------- Interface illustrations (home + product) ---------- */

.mini-panel {
  width: 100%;
  max-width: 340px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 48px -16px rgb(14 14 13 / 0.3), 0 0 0 1px rgb(14 14 13 / 0.06);
  font-size: 14px;
  line-height: 1.4;
}

.mini-label {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.context-row,
.model-example,
.revision {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.context-row small,
.model-example small,
.revision small {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.tick,
.empty-check {
  width: 16px;
  height: 16px;
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: var(--iris);
  color: #fff;
  font-size: 10px;
}

.empty-check {
  background: none;
  border: 1.5px solid var(--line-strong);
}

.muted-row {
  color: var(--muted);
}

.mini-foot,
.source-meta {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
}

.source-meta {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.mini-panel h4 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mini-panel p,
.chapter .mini-panel p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.doc-line {
  height: 6px;
  width: 92%;
  margin: 10px 0;
  border-radius: 3px;
  background: var(--surface);
}

.doc-line.short {
  width: 64%;
  margin-bottom: 18px;
}

/* ---------- Product pages ---------- */

.hero .label a {
  color: inherit;
  text-decoration: none;
}

.hero .label a:hover {
  color: var(--ink);
}

.stage-art {
  display: grid;
  place-items: center;
  aspect-ratio: auto;
  min-height: clamp(360px, 46vw, 560px);
  padding: clamp(28px, 6vw, 80px) clamp(16px, 5vw, 64px);
  border-radius: var(--radius-lg);
}

.stage-caption {
  margin-top: 14px;
}

.vignette {
  width: 100%;
  max-width: 820px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 20px;
  align-items: center;
}

.vignette .mini-panel {
  max-width: none;
}

.vignette .mini-panel.wide {
  padding: 24px;
}

.vignette h4 {
  font-size: 19px;
}

.vignette sup {
  font-size: 10px;
  color: var(--iris);
  font-weight: 650;
  margin-left: 1px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.chips span {
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 11px;
  color: var(--muted);
}

.urlbar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: -4px 0 16px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 11px;
  color: var(--muted);
}

.urlbar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-strong);
}

.urlbar span {
  margin-left: 6px;
}

.mini-panel .highlight {
  margin: 14px 0;
  padding: 2px 4px;
  border-radius: 4px;
  background: var(--iris-soft);
  box-decoration-break: clone;
  font-weight: 550;
}

.saved {
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 550;
  text-align: center;
}

.model-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -8px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
}

.model-row.on {
  background: var(--surface);
}

.model-row img {
  width: 18px;
  height: 18px;
}

.model-row b {
  font-weight: 550;
}

.model-row small {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}

.model-row small.ok {
  color: #2f8f5b;
}

.model-row .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #6fbf8a;
}

.model-row .dot.work {
  background: var(--iris);
}

[data-theme="dark"] .invertable {
  filter: invert(1);
}

.bubble {
  margin: 0 0 14px !important;
  padding: 10px 14px;
  border-radius: 14px 14px 4px 14px;
  background: var(--surface);
}

.tabs-mini {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.tabs-mini .on {
  color: var(--ink);
  font-weight: 600;
}

.related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.related a,
.route {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition:
    background var(--normal) var(--ease),
    border-color var(--normal) var(--ease);
}

.related a:hover,
.route:hover {
  background: var(--paper-warm);
  border-color: var(--line-strong);
}

.related h3 {
  margin: 4px 0 12px;
  font-size: 20px;
}

.related .case-link,
.route .case-link {
  margin-top: auto;
}

.routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.route {
  padding: 12px 12px 28px;
}

.route > :not(.art) {
  margin-inline: 16px;
}

.route .art {
  aspect-ratio: 16 / 7;
  margin-bottom: 12px;
}

.route:first-child {
  grid-column: 1 / -1;
}

.route:first-child .art {
  aspect-ratio: 16 / 4.5;
}

.route h3 {
  margin-top: 2px;
  margin-bottom: 0;
}

.route p {
  margin: 0 16px 12px;
  font-size: 16px;
}

.flow.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.faq h2 {
  margin-top: 16px;
}

.faq details {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding-right: 32px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 550;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  color: var(--muted);
  font-weight: 400;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 12px 0 0;
  font-size: 16px;
}

/* ---------- Motion ---------- */

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--reveal) var(--ease),
    transform var(--reveal) var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal-ready [data-reveal].in {
  opacity: 1;
  transform: none;
}

.showcase {
  animation: showcase-in 0.8s var(--ease) both;
}

@keyframes showcase-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
  }

  .asks li {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }

  .asks .label {
    grid-column: 1 / -1;
  }

  .cards {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .flow,
  .flow.four {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-head,
  .faq,
  .vignette {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .foot-top {
    grid-template-columns: 1fr 1fr;
  }

  .foot-top > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .nav {
    gap: 16px;
  }

  .wordmark {
    margin-right: auto;
  }

  .menu {
    display: grid;
  }

  .navlinks {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .navlinks.open {
    display: flex;
  }

  .navlinks > a,
  .product-menu summary {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .product-dropdown {
    position: static;
    min-width: 0;
    padding: 4px 0 8px;
    border: 0;
    background: none;
    box-shadow: none;
    animation: none;
  }

  .product-dropdown a {
    padding: 10px 12px;
  }

  .usecase-grid,
  .related,
  .routes {
    grid-template-columns: 1fr;
  }

  .showcase-caption {
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .nav-actions .button {
    min-height: 34px;
    padding: 0 14px;
    font-size: var(--text-meta);
  }

  .hero.center .actions .button {
    flex: 1 1 100%;
  }

  .foot-top {
    grid-template-columns: 1fr;
  }

  .pillars {
    grid-template-columns: 1fr;
  }

  .foot-bottom {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- RavenBot page ---------- */

.bot-page {
  display: grid;
  gap: 48px;
  max-width: 760px;
}

.bot-block .label {
  margin: 0 0 12px;
}

.bot-block p,
.bot-block li {
  color: var(--muted);
}

.bot-block ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.bot-block pre {
  margin: 12px 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-warm);
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
}

/* Log in: beside Try Raven on wide screens, inside the menu on narrow ones. */
.nav-login {
  padding: 0 8px;
  color: var(--muted);
  font-size: var(--text-ui);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

.nav-login:hover {
  color: var(--ink);
}

.navlinks > a.nav-login-menu {
  display: none;
}

@media (max-width: 800px) {
  .nav-login {
    display: none;
  }

  .navlinks > a.nav-login-menu {
    display: block;
  }
}

/* ---------- Blog and changelog ---------- */

/* Post and page heads: centered, after OpenAI's news layout */
.post-head {
  padding-block: clamp(64px, 9vw, 120px) clamp(32px, 4vw, 48px);
  text-align: center;
}

.post-head h1 {
  max-width: 18ch;
  margin: 18px auto 20px;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.post-head .lede {
  margin-inline: auto;
}

.post-head .lede a,
.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.post-head .lede a:hover,
.prose a:hover {
  text-decoration-color: var(--ink);
}

.post-head.index {
  text-align: left;
}

.post-head.index h1 {
  margin: 0 0 16px;
}

.post-head.index .lede {
  margin-inline: 0;
}

.post-meta {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 0;
  font-size: var(--text-meta);
  color: var(--muted);
}

.post-cover {
  aspect-ratio: 1200 / 560;
  margin-bottom: clamp(40px, 5vw, 64px);
  border-radius: var(--radius-lg);
}

/* Reading column */
.prose {
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--ink-soft);
}

.post-body {
  max-width: calc(680px + 2 * var(--gutter));
  padding-bottom: clamp(56px, 7vw, 96px);
}

.prose > :first-child {
  margin-top: 0;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose figure,
.prose pre {
  margin: 0 0 1.2em;
}

.prose h2 {
  margin: 1.8em 0 0.6em;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.prose h3,
.prose h4 {
  margin: 1.6em 0 0.5em;
  font-size: 21px;
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
}

.prose li {
  margin: 0.45em 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 650;
}

.prose blockquote {
  padding-left: 18px;
  border-left: 2px solid var(--line-strong);
  color: var(--muted);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface);
}

.prose pre {
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--surface);
}

.prose pre code {
  padding: 0;
  background: none;
}

.prose figure img {
  display: block;
  width: 100%;
  border-radius: 12px;
}

.prose figcaption {
  margin-top: 10px;
  font-size: var(--text-meta);
  color: var(--muted);
}

.prose hr {
  margin: 2.4em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

/* Changelog: the date beside each entry */
.changelog {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.log-entry {
  display: grid;
  grid-template-columns: 220px minmax(0, 680px);
  gap: 40px;
  padding: 40px 0;
  border-top: 1px solid var(--line);
}

.log-date {
  font-size: var(--text-meta);
  color: var(--muted);
}

.log-date a {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  color: inherit;
  text-decoration: none;
}

.log-date a:hover {
  color: var(--ink);
}

.log-body h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

/* Blog index and related posts */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 24px;
  padding-bottom: clamp(56px, 7vw, 96px);
}

.post-card {
  color: inherit;
  text-decoration: none;
}

.post-card .art {
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  transition: opacity var(--fast) var(--ease);
}

.post-card:hover .art {
  opacity: 0.88;
}

.post-card h3 {
  margin: 16px 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

.post-card .post-meta {
  justify-content: flex-start;
}

@media (max-width: 800px) {
  .log-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}

.foot-legal {
  display: flex;
  gap: 18px;
}

.foot-legal a {
  color: inherit;
  text-decoration: none;
}

.foot-legal a:hover {
  color: var(--ink);
}
