/* /switch-ai/ : page styles on the site's own tokens (tokens.css), so light and dark follow the site. */
.page-hub .sw-hero, .sw-feat, .sw-moves, .sw-steps, .sw-faq { border-bottom: 1px solid var(--line); }
.sw-eyebrow { margin: 0 0 18px; font: 500 .78rem/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sw-hero h1 { font: 700 clamp(44px, 3.4vw + 22px, 80px)/1 var(--font-display); letter-spacing: -.035em; color: var(--text); margin: 0; }
.sw-hero h1 em { font-style: normal; color: var(--accent); }
.sw-hero .lead { margin-top: 22px; max-width: 34em; color: var(--text-mut); }
.sw-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.sw-lede { font-size: var(--fs-lead); line-height: 1.5; color: var(--text-mut); max-width: 34em; margin: 20px 0 0; }
.sw-moves h2, .sw-steps h2, .sw-faq h2, .sw-cta h2, .sw-feat h2 { font: 650 var(--fs-display-2)/1.05 var(--font-display); letter-spacing: -.03em; color: var(--text); margin: 0; }

/* hero: site grid backdrop + the swap diagram */
.sw-hero { padding-block: clamp(48px, 3rem + 3vw, 96px); background-image: linear-gradient(rgba(29,78,216,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(29,78,216,.07) 1px, transparent 1px); background-size: 48px 48px; }
.sw-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sw-swap { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px 24px; box-shadow: var(--shadow-2); }
.sw-swap__title { margin: 0 0 16px; font: 500 .7rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.sw-ais { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sw-ai { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); font-weight: 600; font-size: .95rem; color: var(--text); }
.sw-ai__mono { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 700 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-tint); color: var(--accent); }
.sw-ai small { display: block; margin-top: 3px; font: 500 .625rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: var(--text-mut); }
.sw-ai--live { border-color: var(--signal-approved); }
.sw-ai--live small { color: var(--signal-approved); }
.sw-ai--live small::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--signal-approved); margin-right: 5px; vertical-align: 1px; }
.sw-plug { display: flex; justify-content: center; margin: 14px 0; }
.sw-plug span { font: 500 .7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mut); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 8px 12px; }
.sw-vault { position: relative; display: flex; gap: 14px; align-items: center; background: var(--surface-sunk); color: var(--text); border: 1px solid var(--accent); border-radius: 18px; padding: 16px 16px 16px 96px; box-shadow: 0 0 0 4px var(--accent-tint); }
.sw-vault b { display: block; font-size: 1rem; }
.sw-vault p { margin: 2px 0 0; font-size: .8125rem; line-height: 1.45; color: var(--text-mut); }
.sw-vault__pose { position: absolute; left: -8px; bottom: -4px; animation: sw-float 5s ease-in-out infinite; }
.sw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sw-chips span { font: 600 .75rem/1 var(--font-body); padding: 6px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
@keyframes sw-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .sw-vault__pose, .sw-pose, .sw-cta__pose { animation: none !important; } }

/* "A week with Gina" feature pattern: photo + floating card, then heading, one lede, mono rows */
.sw-feat { padding-block: clamp(56px, 3rem + 4vw, 96px); }
.sw-feat__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.sw-feat--flip .sw-feat__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.sw-feat--flip .sw-media { order: 2; }
.sw-media { position: relative; margin-bottom: 88px; }
.sw-photo { display: block; border-radius: var(--r-media); overflow: hidden; aspect-ratio: 8 / 5; background: var(--surface-sunk); box-shadow: var(--shadow-photo); }
.sw-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-gcard { position: absolute; bottom: -72px; max-width: 280px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow-2); }
.sw-gcard--l { left: 18px; }
.sw-gcard--r { right: 18px; }
.sw-gcard__k { margin: 0 0 10px; font: 500 .625rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mut); }
.sw-gcard__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--surface-sunk); font-size: .8125rem; }
.sw-gcard__row span { font: 500 .6875rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-mut); }
.sw-gcard__row.ok span { color: var(--signal-approved); }
.sw-gcard__row.no span { color: var(--signal-waiting); }
.sw-gcard__btn { display: inline-block; margin-top: 12px; padding: 10px 14px; border-radius: 999px; background: var(--ink-700); color: #fff; font: 600 .8125rem/1 var(--font-body); }
.sw-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.sw-pose { flex: none; margin-top: -10px; animation: sw-float 6s ease-in-out infinite; }
.sw-feat .sw-lede { font-size: var(--fs-body); margin-top: 22px; }
.sw-rows { margin: 30px 0 0; padding: 0; list-style: none; }
.sw-rows li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 16px 0; border-top: 1px solid var(--line); }
.sw-rows li:first-child { border-top: 0; }
.sw-rows .k { font: 500 .6875rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mut); }
.sw-rows p { margin: 0; color: var(--text-mut); font-size: 1rem; line-height: 1.55; }
.sw-rows b { color: var(--text); font-weight: 600; }
.sw-tag { display: inline-block; margin-left: 6px; padding: 4px 7px; border-radius: 999px; vertical-align: 2px; font: 600 .625rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.sw-tag--live { background: rgba(14,159,110,.14); color: var(--signal-approved); }
.sw-tag--soon { background: var(--accent-tint); color: var(--accent); }
.sw-swap--settings { aspect-ratio: auto; }
.sw-field { background: var(--bg); }
.sw-field span { font: 500 .6875rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.sw-field--url { word-break: break-all; }
.sw-run { margin-top: 26px; border-block: 1px solid var(--line); }
.sw-run summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 600; display: flex; align-items: center; gap: 10px; color: var(--text); }
.sw-run summary::-webkit-details-marker { display: none; }
.sw-run summary::before { content: "+"; color: var(--accent); font-size: 1.25rem; line-height: 1; }
.sw-run[open] summary::before { content: "\2212"; }
.sw-run summary small { font: 500 .625rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mut); }
.sw-chat { display: grid; gap: 10px; padding-bottom: 20px; }
.sw-msg { max-width: 88%; padding: 12px 14px; border-radius: 14px; font-size: .9375rem; line-height: 1.5; }
.sw-msg--you { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.sw-msg--ai { background: var(--surface); border: 1px solid var(--line); color: var(--text-mut); border-bottom-left-radius: 4px; }
.sw-msg--ai b { color: var(--text); }
.sw-msg .who { display: block; margin-bottom: 6px; font: 500 .625rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }

/* what moves */
.sw-moves, .sw-steps, .sw-faq { padding-block: clamp(56px, 3rem + 3vw, 88px); }
.sw-moves h2 { max-width: 16em; }
.sw-tbl { margin-top: 36px; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); }
.sw-tbl__r { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border-top: 1px solid var(--line); }
.sw-tbl__r:first-child { border-top: 0; }
.sw-tbl__r > div { padding: 16px 20px; font-size: .9375rem; color: var(--text-mut); }
.sw-tbl__r > div:first-child { color: var(--text); font-weight: 600; }
.sw-tbl__h > div { font: 500 .6875rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: .08em; text-transform: uppercase; color: var(--accent) !important; background: var(--surface-sunk); }
.sw-tbl__r > div.x { color: var(--signal-waiting); }
.sw-tbl__r > div.y { color: var(--signal-approved); }
.sw-note { margin: 14px 0 0; font-size: .8125rem; color: var(--text-mut); }

/* steps */
.sw-steps ol { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.sw-steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.sw-steps li::before { content: "0" counter(s); display: block; margin-bottom: 14px; font: 500 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; color: var(--accent); }
.sw-steps h3 { font: 650 1.25rem/1.2 var(--font-display); letter-spacing: -.01em; color: var(--text); margin: 0; }
.sw-steps li p { margin: 8px 0 0; color: var(--text-mut); font-size: .9375rem; line-height: 1.5; }

/* faq: the site's .c-faq, in a two-column frame */
.sw-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 56px); }
.sw-faq .c-faq { max-width: none; }
.sw-faq .c-faq-a p { margin: 0; }

/* closing CTA */
.sw-cta { padding-block: clamp(64px, 3rem + 5vw, 110px); text-align: center; }
.sw-cta .container { display: flex; flex-direction: column; align-items: center; }
.sw-cta__pose { margin-bottom: 10px; animation: sw-float 5s ease-in-out infinite; }
.sw-cta .sw-lede { margin-inline: auto; }
.sw-cta .sw-btns { justify-content: center; }

@media (max-width: 899px) {
  .sw-hero__grid, .sw-feat__grid, .sw-faq__grid { grid-template-columns: minmax(0, 1fr); }
  .sw-feat--flip .sw-feat__grid { grid-template-columns: minmax(0, 1fr); }
  .sw-feat--flip .sw-media { order: 0; }
  .sw-media { margin-bottom: 150px; }
  .sw-gcard { bottom: -134px; max-width: 250px; padding: 12px; }
  .sw-gcard--l { left: 12px; }
  .sw-gcard--r { right: 12px; }
  .sw-gcard__row { padding: 7px 9px; font-size: .75rem; margin-top: 5px; }
  .sw-gcard__btn { display: none; }
  .sw-rows li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .sw-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .sw-swap { padding: 20px 14px 16px; }
  .sw-ais { gap: 8px; }
  .sw-ai { padding: 10px; font-size: .875rem; gap: 8px; }
  .sw-ai__mono { width: 26px; height: 26px; }
  .sw-vault { padding: 14px 14px 14px 82px; }
  .sw-steps ol { grid-template-columns: minmax(0, 1fr); }
  .sw-tbl__r { grid-template-columns: 1fr 1fr; }
  .sw-tbl__r > div:first-child { grid-column: 1 / -1; padding-bottom: 4px; }
  .sw-tbl__r > div { padding: 12px 14px; font-size: .875rem; }
  .sw-tbl__h > div:first-child { display: none; }
  .sw-btns .btn { flex: 1 1 auto; justify-content: center; }
}

/* Cool palette, this page only (Connor 2026-11-19: never warm, tan or brown backgrounds; pure white or sky mist).
   Light scheme only: in dark mode the page keeps the site's dark tokens. */
@media (prefers-color-scheme: light) {
  body { --bg: #ffffff; background: #ffffff; }
  body::after { display: none; } /* the site grain multiplies white toward grey */
  main { --surface: #ffffff; --surface-sunk: #e9f1fd; --line: #dfe7f2; --line-strong: #c5d3e6; }
  /* sections alternate white / sky mist */
  main > section:nth-of-type(odd) { background-color: #ffffff; }
  main > section:nth-of-type(even) { background-color: #f5f9ff; }
  /* cards: white, cool hairline, the existing blue glow; wells and chips in mist */
  .sw-swap, .sw-gcard, .sw-steps li, .sw-msg--ai { background: #ffffff; border-color: #dfe7f2; }
  .sw-vault { background: #ffffff; border-color: #dfe7f2; }
  .sw-ai, .sw-field { background: #f5f9ff; }
  .sw-gcard__row { background: #e9f1fd; }
  .sw-chips span { background: #f5f9ff; border-color: #dfe7f2; }
  .sw-gcard__row.ok span { color: #15803d; }
  .sw-gcard__row.no span { color: #c2410c; }
  /* what moves: mist header, white rows; column inks alert / live */
  .sw-tbl { background: #ffffff; border-color: #dfe7f2; }
  .sw-tbl__h > div { background: #e9f1fd; }
  .sw-tbl__r:not(.sw-tbl__h) > div:nth-child(2) { color: #c2410c; }
  .sw-tbl__r:not(.sw-tbl__h) > div:nth-child(3) { color: #15803d; }
}
