@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@600;700;800&family=Roboto:wght@400;500;600;700;800&family=Roboto+Mono:wght@400;500&display=swap');

/* Mirrors the opt-in in styles.css - both the outgoing and incoming
   document need it for the cross-document transition to fire. */
@view-transition {
  navigation: auto;
}

/* Mirrors styles.css exactly - see the comments there for why this specific
   curve/duration/stagger. Both documents need identical rules for the
   morph to look the same landing here as it did leaving the homepage. */
::view-transition-group(*),
::view-transition-old(*),
::view-transition-new(*) {
  animation-duration: 0.5s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cs-root-out {
  to { opacity: 0; transform: scale(1.015); }
}
@keyframes cs-root-in {
  from { opacity: 0; transform: scale(0.985); }
}
::view-transition-old(root) {
  animation: 0.32s cubic-bezier(0.4, 0, 1, 1) both cs-root-out;
}
::view-transition-new(root) {
  animation: 0.5s cubic-bezier(0.16, 1, 0.3, 1) 60ms both cs-root-in;
}

:root {
  --cs-bg: rgb(253, 251, 248);
  --cs-ink: rgb(48, 30, 24);
  --cs-muted: rgba(48, 30, 24, 0.56);
  --cs-pink: rgb(249, 224, 214);
  --cs-line: rgba(48, 30, 24, 0.1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cs-bg);
  color: var(--cs-ink);
  font-family: Roboto, "Roboto Placeholder", sans-serif;
}

a { color: inherit; }

/* For links inline within body copy (About page bio, etc.) - color: inherit
   alone makes them indistinguishable from surrounding text, so an
   underline is the non-color signal that it's a link. */
.cs-inline-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cs-topbar {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: flex-start;
  padding: 28px 24px;
  background: var(--cs-bg);
  z-index: 10;
}

.cs-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 100px;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  color: var(--cs-ink);
  transition: background-color 0.2s ease;
}

.cs-close:hover { background: var(--cs-pink); }

.cs-main {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px 100px;
}

/* ---- Hero ---- */
.cs-hero h1 {
  font-family: Raleway, "Raleway Placeholder", sans-serif;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 8px 0 20px;
}

.cs-subtitle {
  font-size: 19px;
  line-height: 1.5;
  color: var(--cs-ink);
  max-width: 460px;
  margin: 0 0 36px;
}

.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--cs-line);
}

.cs-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cs-meta-label {
  font-size: 13px;
  color: var(--cs-muted);
}

.cs-meta-value {
  font-size: 15px;
  font-weight: 600;
}

.cs-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cs-stat-value {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cs-stat-label {
  font-size: 13px;
  color: var(--cs-muted);
  max-width: 130px;
}

/* ---- Hero images ---- */
.cs-hero-images {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin: 40px 0 8px;
}

.cs-hero-images > div {
  background: var(--cs-pink);
  border-radius: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding-top: 24px;
}

.cs-hero-images img { display: block; }

.cs-hero-desktop-wrap img { width: 82%; }

/* CSS laptop mockup for hero screenshots that don't already have a device
   frame baked into the image itself (Turn Tool and UltraBasic's hero PNGs
   are pre-rendered inside a photographic laptop/iMac mockup; this is for
   raw flat screenshots that need the same "sitting in a computer" framing
   built with plain CSS instead). Wrap the img: <div class="cs-laptop-frame">
   <img>...</div> in place of a bare img directly inside .cs-hero-desktop-wrap. */
.cs-laptop-frame {
  width: 82%;
}

.cs-laptop-screen {
  background: #1c1c1e;
  border-radius: 13px 13px 3px 3px;
  padding: 12px 12px 8px;
  box-shadow: 0 24px 44px rgba(48, 30, 24, 0.28);
}

.cs-laptop-screen img {
  display: block;
  width: 100%;
  border-radius: 2px;
}

.cs-laptop-base {
  width: 112%;
  margin: 0 -6%;
  height: 12px;
  background: linear-gradient(180deg, #d8d8da 0%, #b6b6ba 100%);
  border-radius: 0 0 8px 8px;
  position: relative;
}

.cs-laptop-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 15%;
  height: 4px;
  background: #98989c;
  border-radius: 0 0 5px 5px;
}

.cs-hero-phones-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 24px 12px 0;
}

.cs-hero-phones-wrap img {
  width: 34%;
  border-radius: 10px 10px 0 0;
}

/* ---- Sections ---- */
.cs-section {
  padding-top: 56px;
}

.cs-section h2 {
  font-family: Raleway, "Raleway Placeholder", sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cs-muted);
  margin: 0 0 12px;
}

.cs-section h3.cs-h1-style {
  font-family: Raleway, "Raleway Placeholder", sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 0 0 20px;
}

.cs-section p {
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 18px;
}

.cs-section h4 {
  font-family: Raleway, "Raleway Placeholder", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 12px;
}

/* ---- Callouts + labeled blocks ---- */
.cs-callout {
  background: var(--cs-pink);
  border-radius: 18px;
  padding: 26px 28px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  margin: 4px 0 8px;
}

.cs-block {
  background: var(--cs-pink);
  border-radius: 18px;
  padding: 26px 28px;
  margin: 0 0 16px;
}

.cs-block-label {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--cs-muted);
  margin: 0 0 8px;
}

.cs-block h3 {
  font-family: Raleway, "Raleway Placeholder", sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}

.cs-block p {
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  color: var(--cs-ink);
}

/* ---- TL;DR ---- */
.cs-tldr {
  border: 1px solid var(--cs-line);
  border-radius: 18px;
  overflow: hidden;
  margin: 4px 0 8px;
}

.cs-tldr-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 20px 24px;
}

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

.cs-tldr-label {
  font-family: "Roboto Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-muted);
  padding-top: 2px;
}

.cs-tldr-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 600;
}

/* ---- Key decisions (considered / decision / tradeoff) ---- */
.cs-decision {
  background: var(--cs-pink);
  border-radius: 18px;
  padding: 26px 28px;
  margin: 0 0 16px;
}

.cs-decision h3 {
  font-family: Raleway, "Raleway Placeholder", sans-serif;
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 16px;
}

.cs-decision-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  margin: 0 0 12px;
}

.cs-decision-row:last-child { margin-bottom: 0; }

.cs-decision-tag {
  font-family: "Roboto Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cs-muted);
  padding-top: 2px;
}

.cs-decision-row p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--cs-ink);
}

/* ---- Figures ---- */
.cs-figure {
  margin: 40px 0;
}

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

.cs-figure figcaption {
  font-size: 13px;
  font-style: italic;
  color: var(--cs-muted);
  text-align: center;
  margin-top: 14px;
}

.cs-panel-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.cs-panel {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.cs-panel-pair {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  width: 100%;
  justify-content: center;
}

.cs-panel-pair-item { flex: 1; min-width: 0; }

.cs-panel-pair-item img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.cs-exp-label {
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--cs-muted);
  text-align: center;
  margin: 0 0 8px;
}

/* ---- Touchpoints row ---- */
.cs-touchpoints {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: 18px;
  padding: 28px 20px;
  overflow-x: auto;
}

.cs-touchpoint {
  flex: 1;
  min-width: 110px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cs-touchpoint p {
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 14px;
}

.cs-touchpoint img {
  width: 100%;
  border-radius: 10px;
  display: block;
}

/* ---- Triplet + misc image groupings ---- */
.cs-triplet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}

/* For a triplet mixing desktop + mobile screenshots: desktop shots get
   noticeably more width than the mobile one, roughly matching how much
   wider a real desktop viewport is than a phone, so mobile doesn't read
   at the same visual size as desktop by accident. Add is-mobile to the
   one mobile screenshot's <img>. */
.cs-triplet.has-mobile {
  grid-template-columns: 1.3fr 1.3fr 1fr;
  align-items: end;
}

.cs-triplet.has-mobile img.is-mobile {
  max-width: 220px;
  margin: 0 auto;
}

.cs-triplet img,
.cs-pair img {
  width: 100%;
  border-radius: 14px;
  display: block;
  background: #fff;
}

.cs-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
}

.cs-collage {
  width: 100%;
  border-radius: 18px;
  display: block;
  margin: 40px 0;
}

.cs-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--cs-line);
  font-size: 13px;
  color: var(--cs-muted);
}

/* ---- Table of contents ----
   Fixed bottom-left scroll-spy nav, built from each page's own h2 section
   headings by toc.js. Hidden below 1300px - there isn't reliably enough
   margin next to the 700px content column for it to sit without crowding
   or overlapping before that. */
.cs-toc {
  display: none;
  position: fixed;
  left: 32px;
  bottom: 32px;
  width: 200px;
}

.cs-toc-label {
  font-family: "Roboto Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cs-muted);
  margin: 0 0 14px;
}

.cs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-left: 1px solid var(--cs-line);
}

.cs-toc a {
  display: block;
  padding: 1px 0 1px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13px;
  line-height: 1.4;
  color: var(--cs-muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.cs-toc a:hover { color: var(--cs-ink); }

.cs-toc a.is-active {
  color: var(--cs-ink);
  font-weight: 600;
  border-left-color: var(--cs-ink);
}

@media (min-width: 1300px) {
  .cs-toc { display: block; }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .cs-hero h1 { font-size: 26px; }
  .cs-subtitle { font-size: 17px; }
  .cs-hero-images { grid-template-columns: 1fr; }
  .cs-panel-row { grid-template-columns: 1fr; }
  .cs-triplet { grid-template-columns: 1fr; }
  .cs-pair { grid-template-columns: 1fr; }
  .cs-meta { gap: 20px 28px; }
  .cs-tldr-row { grid-template-columns: 1fr; gap: 4px; }
  .cs-decision-row { grid-template-columns: 1fr; gap: 4px; }
}
