/* ============================================================
   pasiero.ai - reusable content patterns across product pages
   ============================================================ */

/* ---------- comparison tables ---------- */

.compare {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  overflow-x: auto;
}

.compare table {
  border-collapse: collapse;
  width: 100%;
  min-width: 40rem;
  font-size: 0.9rem;
  text-align: left;
}

.compare th,
.compare td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.compare thead th {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 500;
}

.compare tbody th {
  font-weight: 600;
  width: 30%;
}

.compare td {
  color: var(--ink-2);
}

/* the last column is the whole argument, so it reads as the answer and not
   as a third option in a list of three */
.compare thead th:last-child,
.compare tbody td:last-child {
  color: var(--vermilion);
  background: color-mix(in srgb, var(--vermilion) 7%, transparent);
}

.compare code {
  color: inherit;
}

.compare__note {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
  max-width: 62ch;
}

/* ---------- why ---------- */

.why__grid {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.note {
  background: var(--card);
  border: var(--outline);
  border-radius: var(--radius-sm);
  padding: 1.5rem 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.note:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -18px color-mix(in srgb, var(--ink) 45%, transparent);
}

.note__title {
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 40;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin-bottom: 0.7rem;
}

.note p {
  color: var(--ink-2);
  font-size: 0.95rem;
  flex: 1;
}

.note__src {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--vermilion);
  text-decoration: none;
  border-top: 1px solid var(--rule);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

.note__src:hover {
  text-decoration: underline;
}

.pullquote {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.018em;
  max-width: 30ch;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 4px solid var(--vermilion);
}

.pullquote__by {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--orchid);
  margin: 0.9rem 0 0;
  padding-left: clamp(1rem, 2vw, 1.5rem);
}

/* ---------- rules ---------- */

.rules {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

@media (min-width: 52rem) {
  .rules {
    grid-template-columns: repeat(2, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem);
  }
}

.rule {
  display: flex;
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
}

.rule__n {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--vermilion);
  padding-top: 0.25rem;
}

/* the guide numbers its entries with page ranges rather than 01..07, so
   the marker column needs room to hold one on a single line */
.rules--pages .rule__n {
  flex: 0 0 4.25rem;
  white-space: nowrap;
}

.rule__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.rule p {
  color: var(--ink-2);
  font-size: 0.95rem;
  margin: 0;
}

.rule code {
  color: var(--orchid);
  word-break: break-word;
}

/* ---------- layout listing ---------- */

.listing {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border: 2px solid color-mix(in srgb, var(--paper) 30%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, #000 25%, transparent);
  overflow-x: auto;
}

.listing__pre {
  padding: clamp(1.25rem, 3vw, 2rem);
  font-size: 0.78rem;
  line-height: 1.75;
  white-space: pre;
  color: color-mix(in srgb, var(--paper) 85%, transparent);
}

.listing__mark {
  color: var(--vermilion);
}

/* the download sits under the tree on layout, and under move 01 on
   start... one component, one on a dark band and one on a light one. */
.getit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.4rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.getit--tight {
  margin-top: 1.1rem;
}

.getit__note {
  margin: 0;
  max-width: 46ch;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--ink-2);
}

.band--ink .getit__note {
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}

/* ---------- the one-liner ---------- */

/* src/partials/oneliner.html, wherever it is included: a label, three
   tabs, and one command panel showing at a time. The markup ships with
   macOS visible and the other two panels hidden, so this reads the same
   with the switching script and without it. */
.oneliner {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
  gap: 0.85rem;
  max-width: 54rem;
}

.oneliner--tight {
  margin-top: 1.1rem;
}

/* the hero column is narrow and the panel sits under a lede, so it takes
   the width of the text rather than the width of the band */
.oneliner--hero {
  margin-top: 2rem;
  max-width: 34rem;
}

.oneliner--cta {
  margin-top: 0;
  width: min(34rem, 100%);
}

.oneliner__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.oneliner__label {
  margin: 0;
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 40;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.oneliner__tabs {
  display: inline-flex;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 2px solid var(--rule);
  border-radius: 999px;
  background: var(--card);
}

.oneliner__tab {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.8rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}

.oneliner__tab:hover {
  color: var(--fg);
}

.oneliner__tab[aria-pressed="true"] {
  background: var(--vermilion);
  color: var(--cream);
}

.oneliner__panel {
  display: grid;
  gap: 0.5rem;
}

/* the two panels that are not showing carry the hidden attribute, and a
   display of anything but none would out-specify the browser's rule for
   it... so this line is what actually keeps them off the page */
.oneliner__panel[hidden] {
  display: none;
}

.oneliner__where {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.68rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.oneliner__where code {
  color: var(--orchid);
}

.oneliner__where a {
  color: var(--vermilion);
}

.oneliner__note {
  margin: 0.1rem 0 0;
  max-width: 60ch;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--ink-2);
}

/* only shown once the script has actually guessed... and, like the
   panels, the display has to be given back to the hidden attribute */
.oneliner__auto {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--orchid);
}

.oneliner__auto[hidden] {
  display: none;
}

.band--ink .oneliner__where,
.band--ink .oneliner__note {
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}

.band--ink .oneliner__tabs {
  border-color: color-mix(in srgb, var(--paper) 30%, transparent);
  background: color-mix(in srgb, #000 25%, transparent);
}

.band--ink .oneliner__tab {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}

.band--ink .oneliner__tab:hover {
  color: var(--paper);
}

/* the ink band lightens --vermilion, so the pressed tab takes ink text */
.band--ink .oneliner__tab[aria-pressed="true"] {
  background: var(--vermilion);
  color: #16110f;
}

/* the CTA band is solid vermilion in both themes, so nothing on it can
   lean on a token: the panel gets its own fixed light-on-dark set. */
.band--cta .oneliner__label {
  color: #fff7e6;
}

.band--cta .oneliner__where,
.band--cta .oneliner__note {
  color: color-mix(in srgb, #fff7e6 78%, transparent);
}

.band--cta .oneliner__where code,
.band--cta .oneliner__where a,
.band--cta .oneliner__auto {
  color: #fff7e6;
}

.band--cta .oneliner__tabs {
  border-color: color-mix(in srgb, #fff7e6 45%, transparent);
  background: color-mix(in srgb, #16110f 30%, transparent);
}

.band--cta .oneliner__tab {
  color: color-mix(in srgb, #fff7e6 75%, transparent);
}

.band--cta .oneliner__tab:hover {
  color: #fff7e6;
}

.band--cta .oneliner__tab[aria-pressed="true"] {
  background: #fff7e6;
  color: #16110f;
}

.band--cta .cmd__row {
  border-color: color-mix(in srgb, #fff7e6 45%, transparent);
  background: color-mix(in srgb, #16110f 82%, transparent);
}

.band--cta .cmd__line {
  color: #fff7e6;
}

.band--cta .cmd__copy {
  border-left-color: color-mix(in srgb, #fff7e6 45%, transparent);
  color: color-mix(in srgb, #fff7e6 72%, transparent);
}

.band--cta .cmd__copy:hover {
  color: #fff7e6;
}

.cmd__row {
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 2px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--card);
  overflow: hidden;
}

.band--ink .cmd__row {
  border-color: color-mix(in srgb, var(--paper) 30%, transparent);
  background: color-mix(in srgb, #000 25%, transparent);
}

.cmd__line {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 0.7rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.6;
  white-space: pre;
  color: var(--fg);
}

.band--ink .cmd__line {
  color: color-mix(in srgb, var(--paper) 88%, transparent);
}

/* no prompt sigil in front of the line: what is on screen is exactly
   what a hand-made selection pastes */

.cmd__copy {
  flex: none;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0 0.95rem;
  border: 0;
  border-left: 2px solid var(--rule);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}

.cmd__copy:hover {
  color: var(--vermilion);
}

.band--ink .cmd__copy {
  border-left-color: color-mix(in srgb, var(--paper) 30%, transparent);
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}

.band--ink .cmd__copy:hover {
  color: var(--vermilion);
}

.layout__grid {
  margin-top: clamp(1.5rem, 3vw, 2rem);
  align-items: start;
}

.spec {
  border: 2px solid color-mix(in srgb, var(--paper) 30%, transparent);
  border-radius: var(--radius-sm);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.spec__label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orchid);
  margin: 0 0 1rem;
}

.spec__pre {
  overflow-x: auto;
  font-size: 0.76rem;
  line-height: 1.7;
  white-space: pre;
  color: var(--paper);
  padding-bottom: 0.5rem;
}

.spec__note {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}

.spec__note code {
  color: var(--vermilion);
}

/* ---------- start ---------- */

.rungs {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  gap: 0;
}

.rung {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 52rem) {
  .rung {
    grid-template-columns: 11rem 1fr;
  }
  .rung__cost {
    grid-row: span 3;
  }
}

.rung__cost {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--vermilion);
  margin: 0;
  padding-top: 0.3rem;
}

.rung__title {
  font-family: var(--display);
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 60;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin: 0;
}

.rung p {
  color: var(--ink-2);
  max-width: 58ch;
  margin: 0.5rem 0 0;
}

.rung .rung__tools {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--orchid);
  margin-top: 0.9rem;
}

.credit {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 1.25rem 1.4rem;
  background: var(--card);
  border-left: 4px solid var(--orchid);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.95rem;
  color: var(--ink-2);
  max-width: 62ch;
}

.credit a {
  color: var(--vermilion);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

/* ---------- guide ---------- */

.filecard {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.5rem;
  padding: 1.5rem 1.75rem;
  border: 2px solid color-mix(in srgb, var(--paper) 30%, transparent);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, #000 25%, transparent);
}

.filecard__glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3.6rem;
  flex-shrink: 0;
  border: 2px solid var(--vermilion);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--vermilion);
}

.filecard__body {
  flex: 1;
  min-width: 14rem;
}

.filecard__name {
  margin: 0 0 0.3rem;
  font-family: var(--mono);
  font-size: 0.92rem;
  word-break: break-all;
}

.filecard__meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}

.filecard__meta code {
  color: var(--orchid);
}

.filecard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* the two buttons above do different jobs; this says which is which */
.filecard__note {
  margin: 1.1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 62ch;
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}

.filecard__note code {
  color: var(--orchid);
}

.filecard__note a {
  color: var(--vermilion);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.guide__prompt {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.guide__grid {
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.note__tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--orchid);
  border-top: 1px solid var(--rule);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
}

/* ---------- roadmap ---------- */

.roadmap {
  list-style: none;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
}

.road {
  display: grid;
  gap: 0.5rem 2rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--rule);
}

@media (min-width: 52rem) {
  .road {
    grid-template-columns: 9rem 1fr;
  }
}

.road__status {
  justify-self: start;
  align-self: start;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
}

.road__status--now {
  border-color: var(--vermilion);
  color: var(--vermilion);
}

.road__status--open {
  border-color: var(--orchid);
  color: var(--orchid);
}

.road__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.road__body p {
  color: var(--ink-2);
  font-size: 0.95rem;
  max-width: 62ch;
  margin: 0;
}

.road__body a {
  color: var(--orchid);
}

.road__body code {
  color: var(--orchid);
}

/* command names read as commands, inline code inside prose does not */
.road__body .road__title code {
  font-size: 1em;
  color: var(--vermilion);
}
