/* Toupas design tokens: the one source for colour, type, spacing, radii, shadows and motion,
   used by toupas.com (packages/site) and the panel (packages/web). The "Paper" theme: white
   ground, cool greys, one blue accent, Geist for everything. Change a value here, not in a page.

   Geist (SIL Open Font License, fonts/GEIST-LICENSE.txt) is served from our own files, so no
   page loads anything from another site. The two files split Latin and Latin Extended (₹). */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/geist-latin.19f9c92546.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/assets/geist-latin-ext.824f485b5d.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Type. One family; code uses the system's monospace, not a second web font. */
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-code: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-xs: 0.8125rem;   /* 13px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-md: 1.0625rem;   /* 17px */
  --text-lg: 1.25rem;     /* 20px */
  --text-xl: 1.375rem;    /* 22px */
  --text-2xl: 1.75rem;    /* 28px */
  --text-3xl: 2.25rem;    /* 36px */
  --text-4xl: 2.75rem;    /* 44px */
  --text-display: clamp(2.75rem, 7vw, 5.5rem);
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.55;
  --tracking-display: -0.04em;
  --tracking-heading: -0.025em;

  /* Spacing, on a 4px step. */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Shape. */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 999px;

  /* Layout. */
  --width-page: 1180px;
  --width-text: 760px;
  --width-app: 960px;
  --gutter: 24px;

  /* Motion. */
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Colour: Paper, light. */
  --color-bg: #ffffff;
  --color-bg-subtle: #f5f6f8;       /* bands, sidebars, table heads */
  --color-surface: #ffffff;         /* cards */
  --color-surface-raised: #f9fafb;  /* card footers, window bars */
  --color-surface-sunken: #f2f4f7;  /* code, chat bubbles, hover fills: a neutral grey */
  --color-text: #17171a;
  --color-text-muted: #475467;      /* body copy on white: 7.6:1 */
  --color-text-faint: #5f6b7f;      /* small labels: 5.4:1 */
  --color-border: #e4e7ec;
  --color-border-subtle: #eaecf0;
  --color-border-strong: #d0d5dd;
  --color-border-dashed: #c2c8d2;
  --color-dot: #d0d5dd;             /* the hero's dot pattern */
  --color-accent: #2449d8;
  --color-accent-hover: #1a36a8;
  --color-accent-soft: #eef2fe;
  --color-on-accent: #ffffff;
  --color-ink: #17171a;             /* dark cards and the primary dark button */
  --color-on-ink: #f5f6f8;
  --color-on-ink-muted: #b4b9c4;
  --color-ok: #1f9d55;              /* dots and icons */
  --color-ok-text: #2c6e47;
  --color-ok-soft: #e6f5ec;
  --color-ok-border: #cdebd8;
  --color-warn: #a16207;
  --color-warn-soft: #fdf3dc;
  --color-danger: #c2372b;
  --color-danger-soft: #fdecea;
  --color-focus: #2449d8;
  /* App tiles: a soft fill each app gets from its name, with --color-text on top. */
  --color-tile-1: #e8eefd;
  --color-tile-2: #ffe9cc;
  --color-tile-3: #ddf3e4;
  --color-tile-4: #efe5fb;
  --color-tile-5: #fde4ea;

  /* Elevation. */
  --shadow-sm: 0 1px 2px rgba(23, 23, 26, 0.04);
  --shadow-md: 0 1px 2px rgba(23, 23, 26, 0.04), 0 8px 24px rgba(23, 23, 26, 0.06);
  --shadow-lg: 0 1px 2px rgba(23, 23, 26, 0.04), 0 20px 50px rgba(23, 23, 26, 0.10);
  --shadow-xl: 0 30px 70px rgba(23, 23, 26, 0.10);

  color-scheme: light;
}

/* Paper, dark: the same roles, for people whose system is set to dark. */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0f1424;
    --color-bg-subtle: #121829;
    --color-surface: #161c2e;
    --color-surface-raised: #1a2133;
    --color-surface-sunken: #1d2438;
    --color-text: #e8ebf5;
    --color-text-muted: #a0a8c3;
    --color-text-faint: #8d96b3;
    --color-border: #252d45;
    --color-border-subtle: #1e2539;
    --color-border-strong: #2f3854;
    --color-border-dashed: #3d4766;
    --color-dot: #262f4a;
    --color-accent: #7f9cff;
    --color-accent-hover: #a3b8ff;
    --color-accent-soft: #1f2741;
    --color-on-accent: #0f1120;
    --color-ink: #e8ebf5;
    --color-on-ink: #0f1424;
    --color-on-ink-muted: #4a5470;
    --color-ok: #4cc47f;
    --color-ok-text: #7fd9a3;
    --color-ok-soft: #16271d;
    --color-ok-border: #234a33;
    --color-warn: #e0b04f;
    --color-warn-soft: #2b2416;
    --color-danger: #ff7b6e;
    --color-danger-soft: #2e1a18;
    --color-focus: #7f9cff;
    --color-tile-1: #1f2741;
    --color-tile-2: #33261a;
    --color-tile-3: #16271d;
    --color-tile-4: #2a2138;
    --color-tile-5: #36202a;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 50px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 30px 70px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}

/* toupas.com (plan M8.5), the Paper theme. Every colour, size and radius comes from the design
   tokens (packages/shared/styles/tokens.css), which the build puts in front of this file. */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-hover); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-sm); }
code, pre { font-family: var(--font-code); font-size: 0.875em; }
code { background: var(--color-surface-sunken); padding: 0.1em 0.4em; border-radius: var(--radius-sm); overflow-wrap: anywhere; }
pre { background: var(--color-surface-sunken); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); overflow-x: auto; line-height: 1.5; }
pre code { background: none; padding: 0; overflow-wrap: normal; }
h1, h2, h3 { line-height: var(--leading-snug); font-weight: var(--weight-semibold); }
h1 { font-size: var(--text-4xl); letter-spacing: var(--tracking-heading); line-height: var(--leading-tight); margin: 0 0 var(--space-4); }
h2 { font-size: var(--text-2xl); letter-spacing: var(--tracking-heading); margin: var(--space-12) 0 var(--space-3); }
h3 { font-size: var(--text-lg); margin: var(--space-8) 0 var(--space-2); }
.muted { color: var(--color-text-muted); }
.wrap { max-width: var(--width-page); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 44px; padding: 0 var(--space-5); border-radius: var(--radius-md);
  font: inherit; font-size: var(--text-base); font-weight: var(--weight-semibold);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
}
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); }
.btn-primary:hover { background: var(--color-accent-hover); color: var(--color-on-accent); }
.btn-ink { background: var(--color-ink); color: var(--color-on-ink); }
.btn-ink:hover { color: var(--color-on-ink); opacity: 0.9; }
.btn-outline { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); }
.btn-outline:hover { color: var(--color-text); border-color: var(--color-text-faint); }
.btn svg { flex: none; }
.btn-primary .brand-claude { fill: currentColor; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin: var(--space-6) 0; }

/* Header and footer */
header.site .wrap { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-text); text-decoration: none; font-weight: var(--weight-semibold); font-size: 1.1875rem; }
.brand:hover { color: var(--color-text); }
.brand svg { flex: none; }
header.site .site-links { display: flex; align-items: center; gap: var(--space-6); margin-left: auto; font-size: 0.9375rem; }
header.site .site-links a { color: var(--color-text-muted); text-decoration: none; }
header.site .site-links a:hover, header.site .site-links a[aria-current] { color: var(--color-text); }
header.site .site-links .signin { color: var(--color-text); font-weight: var(--weight-medium); }
header.site .header-actions { display: flex; align-items: center; gap: var(--space-2); }
header.site .header-actions .btn { min-height: 40px; padding: 0 var(--space-4); font-size: 0.9375rem; font-weight: var(--weight-medium); }
header.site .menu-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--color-border-strong); border-radius: 8px; background: var(--color-surface); color: var(--color-text); cursor: pointer; }
/* Phones and small tablets: the logo, Start free and a menu button; the links open below. */
@media (max-width: 860px) {
  header.site .wrap { min-height: 64px; gap: 0; }
  header.site .menu-toggle { display: inline-flex; }
  header.site .site-links { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: var(--space-2) 0 var(--space-4); font-size: 1rem; }
  header.site.menu-open .site-links { display: flex; }
  header.site .site-links a { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border-subtle); }
  header.site .site-links a:last-child { border-bottom: 0; }
}
footer.site { border-top: 1px solid var(--color-border-subtle); color: var(--color-text-muted); font-size: var(--text-sm); }
footer.site .wrap { padding-top: var(--space-10); padding-bottom: var(--space-10); }
footer.site p { margin: 0; }
footer.site .footer-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); }
footer.site .footer-title { color: var(--color-text); font-weight: var(--weight-semibold); margin-bottom: var(--space-3); }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
footer.site ul a { color: var(--color-text-muted); text-decoration: none; }
footer.site ul a:hover { color: var(--color-text); }
footer.site ul button { font: inherit; color: var(--color-text-muted); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
footer.site ul button:hover { color: var(--color-text); }
footer.site .footer-bottom { margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-border-subtle); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4); }
footer.site .badge-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
footer.site .badges { line-height: 0; }
@media (max-width: 640px) { footer.site .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
footer.site .badges img { max-width: 100%; height: auto; }

/* Cookie banner */
.cookie-banner { position: fixed; z-index: 10; left: var(--gutter); right: var(--gutter); bottom: var(--space-4); max-width: 560px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-size: var(--text-sm); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; flex: 1 1 260px; }
.cookie-banner div { display: flex; gap: var(--space-2); }
.cookie-banner .btn { min-height: 40px; padding: 0 var(--space-4); }

/* Text pages: docs, pricing, policies */
main.page { max-width: var(--width-text); margin: 0 auto; padding: var(--space-12) var(--gutter) var(--space-20); }
.lead { font-size: var(--text-lg); line-height: var(--leading-normal); color: var(--color-text-muted); }
.note { color: var(--color-text-muted); margin-top: 0; }
.crumbs { margin: 0 0 var(--space-2); font-size: var(--text-sm); }
.table { overflow-x: auto; margin: var(--space-4) 0; border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; }
th, td { text-align: left; vertical-align: top; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border-subtle); }
tr:last-child td { border-bottom: 0; }
th { color: var(--color-text-faint); font-weight: var(--weight-semibold); font-size: var(--text-sm); background: var(--color-bg-subtle); }
tr:target { background: var(--color-accent-soft); }
.prices td.price { white-space: nowrap; font-weight: var(--weight-semibold); }
.currency { display: inline-flex; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); overflow: hidden; margin: var(--space-2) 0; }
.currency button { border: 0; background: var(--color-surface); color: var(--color-text); font: inherit; padding: var(--space-2) var(--space-4); min-height: 40px; cursor: pointer; }
.currency button[aria-pressed="true"] { background: var(--color-ink); color: var(--color-on-ink); }
.doclist { list-style: none; padding: 0; border-top: 1px solid var(--color-border); }
.doclist li { padding: var(--space-4) 0; border-bottom: 1px solid var(--color-border); display: flex; flex-direction: column; gap: 2px; }
.doclist a { font-weight: var(--weight-semibold); text-decoration: none; }

/* The blog's list: text, then a picture when the post has one */
.postlist { list-style: none; padding: 0; margin: var(--space-8) 0 0; border-top: 1px solid var(--color-border); }
.postlist li { display: flex; align-items: flex-start; gap: var(--space-6); padding: var(--space-6) 0; border-bottom: 1px solid var(--color-border); }
.postlist li > div { flex: 1; min-width: 0; }
.postlist p { margin: var(--space-2) 0 0; }
.postlist-title { font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-snug); text-decoration: none; }
.postlist-image { flex: none; width: 208px; }
.postlist-image img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border-subtle); }

/* Blog graphics */
figure { margin: var(--space-8) 0; }
figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); }

/* The message for a coding agent, in a chat-style box */
.composer { width: 100%; max-width: 720px; text-align: left; background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); margin: var(--space-6) 0; }
.composer-label { margin: 0; padding: var(--space-5) var(--space-6) var(--space-2); font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.composer-text { margin: 0; padding: 0 var(--space-6) var(--space-5); font-size: var(--text-lg); line-height: 1.45; overflow-wrap: anywhere; }
.composer-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; padding: var(--space-3) var(--space-3) var(--space-3) var(--space-6); border-top: 1px solid var(--color-border-subtle); background: var(--color-surface-raised); border-radius: 0 0 var(--radius-xl) var(--radius-xl); }
.composer-bar .btn { margin-left: auto; }
.chips { display: flex; gap: var(--space-2); flex-wrap: wrap; font-size: var(--text-xs); color: var(--color-text-muted); }
.chip { border: 1px solid var(--color-border); background: var(--color-surface); border-radius: var(--radius-full); padding: 4px 10px; }
.caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -0.18em; margin-left: 3px; background: var(--color-text); animation: blink 1.1s steps(1) infinite; }

/* Home: hero */
.hero { position: relative; overflow: hidden; }
.hero-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(var(--color-dot) 1.2px, transparent 1.2px); background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 15%, transparent 72%);
}
.hero-main { position: relative; max-width: 900px; margin: 0 auto; padding: var(--space-24) var(--gutter) var(--space-16); text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { margin: 0 0 var(--space-6); font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--color-text-muted); display: inline-flex; align-items: center; gap: 10px; background: var(--color-surface); border: 1px solid var(--color-border); padding: 6px 12px; border-radius: var(--radius-full); }
.live-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--color-ok); display: inline-block; }
.live-dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--color-ok); animation: ring 1.8s ease-out infinite; }
.display { margin: 0; font-size: var(--text-display); line-height: 1; letter-spacing: var(--tracking-display); }
.display .live { position: relative; white-space: nowrap; color: var(--color-accent); }
.display .live svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.24em; overflow: visible; }
.display .live path { stroke: var(--color-accent); opacity: 0.35; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.2s 0.4s var(--ease-out) forwards; }
.hero .lead { margin: var(--space-6) 0 0; max-width: 600px; }
.hero .composer { margin: var(--space-10) 0 0; }
.hero-actions { justify-content: center; margin: var(--space-8) 0 0; }
.hero-alt { margin: var(--space-5) 0 0; font-size: 0.9375rem; color: var(--color-text-muted); }

.journey { position: relative; max-width: 1000px; margin: 0 auto; padding: 0 var(--gutter) var(--space-24); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-4); }
.journey-card { flex: 1 1 260px; min-width: 0; max-width: 320px; border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); }
.journey-card p { margin: 0; }
.journey-card strong { display: block; margin-top: var(--space-2); font-size: var(--text-md); font-weight: var(--weight-semibold); }
.journey-from { background: var(--color-bg-subtle); border: 1px dashed var(--color-border-dashed); }
.journey-from p { color: var(--color-text-faint); text-decoration: line-through; }
.journey-chat p { color: var(--color-text); text-decoration: none; }
.journey-to { background: var(--color-surface); border: 1px solid var(--color-border-strong); box-shadow: var(--shadow-md); }
.journey-to p { display: flex; align-items: center; gap: var(--space-2); font-weight: var(--weight-semibold); }
/* Home hero: the journey as two little windows (a chat, then the live app). */
.journey-window { flex: 1 1 300px; min-width: 0; max-width: 360px; align-self: stretch; display: flex; flex-direction: column; text-align: left; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); overflow: hidden; }
.journey-app { transform: rotate(1.2deg); }
.journey-chat { transform: rotate(-1.2deg); }
.journey-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--color-bg-subtle); border-bottom: 1px solid var(--color-border-subtle); }
.journey-bar > span { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border-strong); }
.journey-bar > span:nth-child(1) { background: #f87171; }
.journey-bar > span:nth-child(2) { background: #fbbf24; }
.journey-bar > span:nth-child(3) { background: #34d399; }
.journey-bar em { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin-right: 33px; font-style: normal; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text-muted); }
.journey-app .journey-bar em { margin-left: var(--space-2); padding: 3px 10px; background: var(--color-surface); border: 1px solid var(--color-border-subtle); border-radius: var(--radius-full); color: var(--color-text); }
.journey-chat-body { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4); }
.journey-msg { margin: 0 0 0 var(--space-6); align-self: flex-end; padding: var(--space-3) var(--space-4); border-radius: 18px 18px 6px 18px; background: var(--color-accent-soft); color: var(--color-text); font-size: var(--text-sm); line-height: 1.5; }
.journey-reply { margin: 0 var(--space-6) 0 0; align-self: flex-start; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: var(--space-3) var(--space-4); border-radius: 18px 18px 18px 6px; background: var(--color-surface-sunken); font-size: var(--text-sm); }
.journey-reply strong { display: inline-flex; align-items: center; gap: 8px; }
.journey-caption { margin: 0; padding: 10px var(--space-4); border-top: 1px solid var(--color-border-subtle); font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.journey-app-body { flex: 1; padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); }
.journey-event { display: flex; flex-direction: column; padding: var(--space-4); border-radius: var(--radius-lg); color: var(--color-text); background: radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--color-accent) 14%, transparent) 1px, transparent 1.5px) 0 0 / 12px 12px, var(--color-accent-soft); }
.journey-event small { font-size: var(--text-xs); color: var(--color-accent); font-weight: var(--weight-medium); }
.journey-event b { font-size: var(--text-lg); line-height: 1.2; }
.journey-rsvp { display: flex; gap: var(--space-2); }
.journey-rsvp span { flex: 1; text-align: center; padding: 6px; border-radius: var(--radius-md); border: 1px solid var(--color-border); font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text-muted); }
.journey-rsvp .journey-yes { background: var(--color-ok-soft); border-color: transparent; color: var(--color-ok-text); }
.journey-guests { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--text-sm); }
.journey-guests li { display: flex; align-items: center; gap: var(--space-2); }
.journey-guests i { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-style: normal; font-size: 0.6875rem; font-weight: var(--weight-semibold); color: #fff; background: hsl(var(--hue) 70% 52%); }
.journey-guests li span { margin-left: auto; font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-ok-text); }
.journey-guests .journey-maybe { color: var(--color-warn); }
@media (max-width: 720px) { .journey-window { max-width: none; transform: none; } }
.journey-arrow { flex: 0 1 180px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--color-accent); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.journey-arrow .flow { stroke-dasharray: 6 8; animation: flow 1s linear infinite; }

/* Home: sections */
.section { padding: var(--space-20) 0; }
.band { background: var(--color-bg-subtle); border-top: 1px solid var(--color-border-subtle); border-bottom: 1px solid var(--color-border-subtle); }
.section-title { margin: 0 0 var(--space-8); font-size: var(--text-3xl); line-height: 1.15; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8) var(--space-8) var(--space-8); }
.card h3 { margin: var(--space-4) 0 var(--space-2); font-size: var(--text-xl); }
.card p { margin: 0; color: var(--color-text-muted); }
.tag { display: inline-block; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-accent); background: var(--color-accent-soft); border-radius: var(--radius-full); padding: 4px 10px; }
.tag-ok { color: var(--color-ok-text); background: var(--color-ok-soft); }
.split { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.split > h2 { flex: 1 1 300px; min-width: 0; margin: 0; font-size: var(--text-3xl); line-height: 1.15; }
.features { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); column-gap: var(--space-10); }
.features div { padding: var(--space-5) 0; border-top: 1px solid var(--color-border); }
.features h3 { margin: 0 0 var(--space-1); font-size: 1.125rem; }
.features p { margin: 0; font-size: 0.9375rem; color: var(--color-text-muted); }
/* Home: "More than a link", a bento grid. The first card is big and dark, 2×2 on wide screens. */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.bento-card { display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-6) var(--space-6) var(--space-8); box-shadow: var(--shadow-sm); transition: border-color var(--duration-fast), box-shadow var(--duration-fast), transform var(--duration-fast); }
.bento-card:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bento-card h3 { margin: var(--space-5) 0 var(--space-2); font-size: var(--text-lg); }
.bento-card p { margin: 0; font-size: 0.9375rem; color: var(--color-text-muted); }
.bento-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-accent-soft); color: var(--color-accent); }
.bento-tile-1 { background: var(--color-tile-1); color: var(--color-text); }
.bento-tile-2 { background: var(--color-tile-3); color: var(--color-text); }
.bento-tile-3 { background: var(--color-tile-4); color: var(--color-text); }
.bento-tile-4 { background: var(--color-tile-2); color: var(--color-text); }
.bento-tile-5 { background: var(--color-tile-5); color: var(--color-text); }
.bento-lead { grid-column: span 2; grid-row: span 2; background: var(--color-ink); border-color: var(--color-ink); padding: var(--space-8) var(--space-8) var(--space-10); }
.bento-lead:hover { border-color: var(--color-ink); }
.bento-lead .bento-icon { width: 52px; height: 52px; background: color-mix(in srgb, var(--color-on-ink) 12%, transparent); color: var(--color-on-ink); }
.bento-lead h3 { margin-top: var(--space-6); font-size: var(--text-3xl); line-height: 1.15; color: var(--color-on-ink); }
.bento-lead p { max-width: 460px; font-size: var(--text-md); color: var(--color-on-ink-muted); }
.bento-demo { margin-top: auto; padding-top: var(--space-10); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.bento-say { align-self: flex-end; background: color-mix(in srgb, var(--color-on-ink) 12%, transparent); color: var(--color-on-ink); border-radius: var(--radius-lg) var(--radius-lg) var(--radius-sm) var(--radius-lg); padding: var(--space-3) var(--space-4); font-size: 0.9375rem; }
.bento-link { display: inline-flex; align-items: center; gap: var(--space-2); background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-full); padding: var(--space-2) var(--space-4); font-size: 0.9375rem; font-weight: var(--weight-semibold); box-shadow: var(--shadow-md); }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-lead { grid-row: auto; }
  .bento-card:last-child { grid-column: span 2; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-lead, .bento-card:last-child { grid-column: auto; }
  .bento-lead { padding: var(--space-6) var(--space-6) var(--space-8); }
  .bento-lead h3 { font-size: var(--text-2xl); }
}
@media (prefers-reduced-motion: reduce) { .bento-card, .bento-card:hover { transition: none; transform: none; } }

.home-chat-text { flex: 2 1 560px; min-width: 0; }
.home-chat-text p { margin: 0 0 var(--space-5); font-size: var(--text-md); color: var(--color-text-muted); }
.home-chat-text .actions { margin: 0; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-4); }
.plan { border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8); }
.plan p { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }
.plan .amount { margin: 6px 0 10px; font-size: 2.125rem; font-weight: var(--weight-semibold); letter-spacing: -0.02em; color: var(--color-text); }
.plan .per { font-size: 0.9375rem; font-weight: var(--weight-regular); color: var(--color-text-muted); }
.plan-ink { background: var(--color-ink); border-color: var(--color-ink); }
.plan-ink p, .plan-ink .per { color: var(--color-on-ink-muted); }
.plan-ink .amount { color: var(--color-on-ink); }
.plans-note { margin: var(--space-5) 0 0; font-size: 0.9375rem; color: var(--color-text-muted); }
.home-agents { padding-bottom: var(--space-16); }

/* Home "what your app needs": pastel cards in the app tile colours, each with a white icon chip. */
.needs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.need { padding: var(--space-6) var(--space-6) var(--space-8); border-radius: var(--radius-xl); background: var(--color-tile-1); }
.need-2 { background: var(--color-tile-3); }
.need-3 { background: var(--color-tile-4); }
.need-4 { background: var(--color-tile-2); }
.need-5 { background: var(--color-tile-5); }
.need-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }
.need h3 { margin: var(--space-5) 0 var(--space-2); font-size: var(--text-lg); }
.need p { margin: 0; font-size: 0.9375rem; color: var(--color-text-muted); }
@media (max-width: 900px) { .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .needs { grid-template-columns: minmax(0, 1fr); } }

/* Home questions: heading on the left (stays in view), answers in one white panel on the grey band. */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--space-12); align-items: start; }
.faq .section-title { margin: 0; position: sticky; top: var(--space-8); }
.faq-panel { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 0 var(--space-8); }
.faq-item { padding: var(--space-6) 0; border-bottom: 1px solid var(--color-border-subtle); }
.faq-item:last-child { border-bottom: 0; }
.faq-item h3 { margin: 0 0 var(--space-2); font-size: 1.125rem; }
.faq-item p { margin: 0; font-size: 0.9375rem; color: var(--color-text-muted); }
@media (max-width: 860px) { .faq { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); } .faq .section-title { position: static; } .faq-panel { padding: 0 var(--space-5); } }

/* Home guides: a card each, the icon coloured like the blog covers. */
.home-guides { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.home-guide { height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); padding: var(--space-6); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); color: var(--color-text); text-decoration: none; transition: border-color var(--duration-fast), box-shadow var(--duration-fast), transform var(--duration-fast); }
.home-guide:hover { color: var(--color-text); border-color: var(--color-border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.home-guide-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius-md); margin-bottom: var(--space-3); }
.home-guide strong { font-size: var(--text-lg); line-height: var(--leading-snug); }
.home-guide-text { font-size: 0.9375rem; color: var(--color-text-muted); }
.home-guide-read { margin-top: auto; padding-top: var(--space-4); display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--color-accent); }
.home-guide-read svg { width: 16px; height: 16px; transition: transform var(--duration-fast); }
.home-guide:hover .home-guide-read svg { transform: translateX(3px); }
@media (max-width: 1000px) { .home-guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-guides { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .home-guide, .home-guide:hover, .home-guide-read svg { transition: none; transform: none; } }

/* Home plans: inside a soft accent panel, so the page ends on colour before the footer. */
.plans-panel { position: relative; overflow: hidden; padding: var(--space-12); border-radius: var(--radius-xl); border: 1px solid color-mix(in oklab, var(--color-accent) 18%, var(--color-border)); background: linear-gradient(135deg, var(--color-accent-soft), var(--color-bg-subtle)); }
.plans-panel > * { position: relative; }
.plans-panel .section-title { margin-bottom: var(--space-6); }
.plans-panel .plan:not(.plan-ink) { background: var(--color-surface); }
@media (max-width: 560px) { .plans-panel { padding: var(--space-6); } }

@keyframes blink { 50% { opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ring { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes flow { to { stroke-dashoffset: -14; } }
@media (prefers-reduced-motion: reduce) {
  .caret, .live-dot::after, .journey-arrow .flow { animation: none; }
  .display .live path { animation: none; stroke-dashoffset: 0; }
}

@media (max-width: 560px) {
  h1 { font-size: var(--text-3xl); }
  .postlist li { flex-direction: column-reverse; gap: var(--space-4); }
  .postlist-image { width: 100%; }
  main.page { padding-top: var(--space-8); }
  .hero-main { padding-top: var(--space-16); }
  .composer-text { font-size: var(--text-md); }
  .composer-bar { padding-left: var(--space-4); }
  .composer-bar .btn { width: 100%; }
  .journey-arrow { flex-basis: 100%; }
  .card, .plan { padding: var(--space-6); }
}

/* The install line on /developers: a small copy button, and the long command wraps on phones. */
.hero-alt .btn-small { padding: 2px var(--space-2); font-size: 0.8125rem; min-height: 0; vertical-align: middle; }
.hero-alt code { overflow-wrap: anywhere; }

/* Under the coding-agent message: a terminal tile and a VS Code tile, stacked on phones. */
.other-ways { display: grid; grid-template-columns: 2fr 1fr; gap: var(--space-4); max-width: 720px; margin: var(--space-4) 0 var(--space-8); text-align: left; }
.other-way { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.other-way-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); width: 100%; min-height: 32px; }
.other-way-label { margin: 0; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.other-way-note { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.other-way .btn-outline:not(.terminal-copy) { margin-top: auto; }
.terminal { width: 100%; margin: 0; padding: var(--space-3) var(--space-4); background: var(--color-ink); color: var(--color-on-ink); border-radius: var(--radius-md); font-size: 0.8125rem; line-height: 1.7; white-space: pre; overflow-x: auto; }
.terminal .prompt { color: var(--color-on-ink-muted); user-select: none; }
.terminal-copy { min-height: 32px; padding: 0 var(--space-3); font-size: 0.8125rem; font-weight: var(--weight-medium); }
.other-ways-single { grid-template-columns: 1fr; }
.dev-actions { margin-top: var(--space-6); }
.dev-actions + .composer { margin-top: var(--space-6); }
@media (max-width: 720px) { .other-ways { grid-template-columns: 1fr; } .terminal { white-space: pre-wrap; overflow-wrap: anywhere; } }

/* Home page examples: one mixed row of cards that scrolls sideways (snaps; arrows and slideshow in site.js).
   Each card has its own --hue for the picture band; colour-mix keeps it soft in light and dark. */
.examples .section-title { margin-bottom: var(--space-6); }
.examples-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.examples-tabs { margin: 0; flex-wrap: wrap; }
.example[hidden] { display: none; }
.examples-arrows { display: flex; gap: var(--space-2); }
.examples-arrows .btn { width: 44px; padding: 0; border-radius: var(--radius-full); }
.examples-arrows .btn:disabled { opacity: 0.4; cursor: default; }
.examples-track { list-style: none; margin: 0 calc(-1 * var(--gutter)); padding: var(--space-1) var(--gutter) var(--space-6); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(340px, 420px); gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; overscroll-behavior-x: contain; }
.examples-track::-webkit-scrollbar { display: none; }
.examples-track:focus-visible { outline-offset: -2px; }
.example {
  --tint: hsl(var(--hue) 85% 58%);
  --tint-2: hsl(calc(var(--hue) + 40) 85% 62%);
  --tint-ink: color-mix(in oklab, hsl(var(--hue) 75% 42%) 85%, var(--color-text));
  scroll-snap-align: start; display: flex; flex-direction: column; overflow: hidden;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgba(23, 23, 26, 0.04), 0 10px 28px -18px rgba(23, 23, 26, 0.22);
  transition: transform var(--duration-fast), box-shadow var(--duration-fast);
}
.example:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(23, 23, 26, 0.04), 0 18px 36px -18px rgba(23, 23, 26, 0.3); }
.example-art {
  position: relative; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-5); overflow: hidden; color: var(--tint-ink);
  background:
    radial-gradient(circle at 1px 1px, color-mix(in oklab, var(--tint) 16%, transparent) 1px, transparent 1.5px) 0 0 / 14px 14px,
    radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--tint-2) 22%, var(--color-surface)) 0%, transparent 60%),
    linear-gradient(135deg, color-mix(in oklab, var(--tint) 16%, var(--color-surface)), color-mix(in oklab, var(--tint) 5%, var(--color-surface)));
  border-bottom: 1px solid color-mix(in oklab, var(--tint) 12%, var(--color-border-subtle));
}
.example-head { position: relative; flex: 1; min-width: 0; }
.example-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--color-surface); position: relative; box-shadow: 0 1px 2px rgba(23, 23, 26, 0.06), 0 6px 14px -8px rgba(23, 23, 26, 0.25); transform: rotate(-6deg); }
.example-title { margin: 0; font-size: var(--text-lg); line-height: 1.2; letter-spacing: var(--tracking-heading); color: var(--color-text); }
.example-kind { display: block; margin-top: 2px; font-size: 0.75rem; font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: 0.06em; color: var(--tint-ink); }
.example-where { margin: 0 0 calc(-1 * var(--space-1)); font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-text-faint); }
.example-foot { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.example-result { min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.example-result .live-dot { flex: none; }
.example-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); padding: var(--space-4) var(--space-5) var(--space-5); }
/* The message as a chat bubble the visitor sent: right-aligned, tinted, a tail corner and "You" under it. */
.example-chat { width: 100%; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.example-bubble { margin: 0 0 0 var(--space-6); padding: var(--space-3) var(--space-4); border-radius: 18px 18px 6px 18px; background: var(--color-surface-sunken); color: var(--color-text); font-size: 0.9375rem; line-height: 1.55; overflow-wrap: break-word; }
.example-you { font-size: var(--text-xs); color: var(--color-text-faint); padding-right: var(--space-1); }
.example .terminal { white-space: pre-wrap; overflow-wrap: anywhere; }
.example-copy { flex: none; min-height: 36px; padding: 0 var(--space-3); font-size: var(--text-sm); }
@media (max-width: 720px) { .examples-arrows [data-examples-step] { display: none; } .examples-track { grid-auto-columns: 85%; } }
@media (prefers-reduced-motion: reduce) { .example, .example:hover { transition: none; transform: none; } }
@media (prefers-color-scheme: dark) { .example { --tint-ink: hsl(var(--hue) 90% 76%); } }
.example-guide { margin-top: auto; font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--tint-ink); text-decoration: none; }
.example-guide:hover { color: var(--tint-ink); text-decoration: underline; }

/* Home slideshow only (.examples-track): one wide, quiet card at a time. The card's parts are laid out
   on one grid (display: contents), so the markup stays the same as the colourful cards on /examples
   and in "See all". Left: who, the message, Copy. Right, on a grey panel: the link, where to paste it, the guide. */
.examples-track { grid-auto-columns: 100%; padding-bottom: var(--space-4); }
.examples-track .example {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(240px, 0.55fr); column-gap: var(--space-4) ; row-gap: var(--space-3);
  grid-template-areas: "icon head label" "chat chat result" "chat chat where" "chat chat guide" "copy copy guide";
  grid-template-rows: auto auto auto 1fr auto;
  padding: var(--space-6); box-shadow: var(--shadow-sm); position: relative;
}
.examples-track .example[hidden] { display: none; }
.examples-track .example:hover { transform: none; box-shadow: var(--shadow-sm); }
.examples-track .example-art, .examples-track .example-body, .examples-track .example-foot { display: contents; }
.examples-track .example::before { content: ""; grid-column: 3; grid-row: 1 / -1; margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) 0; background: var(--color-bg-subtle); border-left: 1px solid var(--color-border-subtle); }
.examples-track .example::after { content: "You get"; grid-area: label; align-self: center; padding-left: var(--space-6); font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.examples-track .example-icon { grid-area: icon; transform: none; box-shadow: none; width: 44px; height: 44px; background: color-mix(in oklab, var(--tint) 14%, var(--color-surface)); color: var(--tint-ink); }
.examples-track .example-head { grid-area: head; align-self: center; }
.examples-track .example-kind { color: var(--color-text-faint); }
.examples-track .example-chat, .examples-track .terminal { grid-area: chat; align-self: start; }
.examples-track .example-chat { align-items: flex-start; }
.examples-track .example-bubble { margin: 0; background: var(--color-accent-soft); font-size: var(--text-md); }
.examples-track .example-you { display: none; }
.examples-track .example-copy { grid-area: copy; justify-self: start; }
.examples-track .example-result { grid-area: result; z-index: 1; gap: 12px; padding-left: var(--space-6); font-size: var(--text-md); color: var(--color-text); }
.examples-track .example-where { grid-area: where; z-index: 1; margin: 0; padding-left: var(--space-6); font-size: var(--text-sm); color: var(--color-text-muted); }
.examples-track .example-guide { grid-area: guide; z-index: 1; align-self: start; margin: 0; padding-left: var(--space-6); color: var(--color-accent); }
.examples-track .example-guide:hover { color: var(--color-accent-hover); }
.examples-track .example-icon, .examples-track .example-head, .examples-track .example-chat, .examples-track .terminal, .examples-track .example-copy, .examples-track .example::after { z-index: 1; }
/* Phones: stacked; the link and Copy share a row, and the grey panel goes. */
@media (max-width: 720px) {
  .examples-track { grid-auto-columns: 100%; }
  .examples-track .example { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "icon head head" "where where where" "chat chat chat" "result result copy" "guide guide guide"; grid-template-rows: none; padding: var(--space-5); }
  .examples-track .example::before, .examples-track .example::after { display: none; }
  .examples-track .example-result, .examples-track .example-where, .examples-track .example-guide { padding-left: 0; }
  .examples-track .example-result { font-size: var(--text-sm); align-self: center; padding-left: 6px; }
  .examples-track .example-bubble { font-size: 0.9375rem; }
}

/* Home "Made it with a coding agent?": heading and the three steps on the left, the message and other ways on the right. */
.agent-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-16); align-items: start; }
.agent-intro .section-title { margin-bottom: var(--space-4); }
.agent-lead { margin: 0 0 var(--space-8); color: var(--color-text-muted); font-size: var(--text-md); max-width: 46ch; }
.agent-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.agent-steps li { position: relative; display: flex; gap: var(--space-4); padding-bottom: var(--space-6); }
.agent-steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; background: var(--color-border); }
.agent-step-n { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-full); background: var(--color-surface); border: 1px solid var(--color-border-strong); font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.agent-steps h3 { margin: var(--space-2) 0 var(--space-1); font-size: var(--text-lg); }
.agent-steps p { margin: 0; color: var(--color-text-muted); font-size: 0.9375rem; }
.agent-try .composer { margin-top: 0; max-width: none; }
.agent-try .other-ways { max-width: none; margin-bottom: 0; }
@media (max-width: 960px) { .agent-split { grid-template-columns: 1fr; gap: var(--space-10); } }
.agent-try .other-ways { grid-template-columns: 1fr; }
.agent-try .other-way:last-child { display: grid; grid-template-columns: 1fr auto; column-gap: var(--space-5); row-gap: var(--space-1); align-items: center; }
.agent-try .other-way:last-child .btn-outline { grid-column: 2; grid-row: 1 / span 2; margin: 0; white-space: nowrap; }
@media (max-width: 520px) { .agent-try .other-way:last-child { grid-template-columns: 1fr; } .agent-try .other-way:last-child .btn-outline { grid-column: 1; grid-row: auto; justify-self: start; margin-top: var(--space-2); } }

/* Example cards in a grid: the home page's "See all" view and /examples. */
.examples-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--space-5); }
.examples-dialog { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--color-bg); color: var(--color-text); overflow-y: auto; overscroll-behavior: contain; }
.examples-dialog::backdrop { background: rgba(15, 20, 36, 0.4); }
html:has(.examples-dialog[open]) { overflow: hidden; }
.examples-dialog .examples { max-width: var(--width-page); margin: 0 auto; padding: 0 var(--gutter) var(--space-12); }
.examples-dialog-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; padding: var(--space-5) 0; margin-bottom: var(--space-4); background: color-mix(in oklab, var(--color-bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border-subtle); }
.examples-dialog-head h2 { margin: 0; font-size: var(--text-2xl); flex: 1 1 auto; }
.examples-dialog-page { font-size: var(--text-sm); }
.examples-dialog-close { width: 44px; padding: 0; border-radius: var(--radius-full); }
@media (max-width: 720px) { .examples-dialog-head h2 { flex-basis: calc(100% - 60px); font-size: var(--text-xl); } .examples-dialog-close { order: -1; margin-left: auto; } .examples-dialog-head .examples-tabs { order: 1; } .examples-dialog-page { order: 2; } .examples-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: no-preference) { .examples-dialog[open] { animation: examples-in var(--duration-fast, 160ms) ease-out; } }
@keyframes examples-in { from { opacity: 0; transform: translateY(8px); } }

/* /examples */
.examples-hero .hero-actions .btn { font-weight: var(--weight-medium); }
.examples-section-lead { margin: calc(-1 * var(--space-4)) 0 var(--space-8); color: var(--color-text-muted); max-width: 70ch; }

/* Slideshow dots: one per screenful; the current one is a longer pill. */
.examples-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; margin-top: var(--space-1); }
.examples-dots[hidden] { display: none; }
.examples-dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.examples-dot::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--color-border-strong); transition: width var(--duration-fast), background var(--duration-fast); }
.examples-dot:hover::before { background: var(--color-text-faint); }
.examples-dot[aria-current="true"]::before { width: 22px; background: var(--color-ink); }
.examples-dot[aria-current="true"] { width: 34px; }
@media (prefers-reduced-motion: reduce) { .examples-dot::before { transition: none; } }

/* /showcase and /showcase/<slug>: rendered by the API (api/src/projects/showcase-pages.ts). */
.showcase-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin: 0 0 var(--space-8); }
.showcase-toolbar[hidden] { display: none; }
.showcase-toolbar .showcase-filters, .showcase-toolbar .showcase-sort { margin: 0; }
.showcase-sort { margin-left: auto; }
.showcase-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-5); }
.showcase-card { position: relative; display: flex; flex-direction: column; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--duration-fast, 160ms), transform var(--duration-fast, 160ms); }
.showcase-card:hover { border-color: var(--color-border-strong); transform: translateY(-2px); }
.showcase-card[hidden] { display: none; }
.showcase-art { position: relative; aspect-ratio: 1200 / 630; background: linear-gradient(135deg, hsl(var(--hue) 85% 58%), hsl(calc(var(--hue) + 40) 85% 62%)); display: grid; place-items: center; color: #fff; font-size: var(--text-4xl); font-weight: var(--weight-semibold); overflow: hidden; }
.showcase-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--color-surface-sunken); }
.showcase-art img.showcase-icon { inset: auto; width: 28%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; padding: 4%; border-radius: 22%; box-shadow: 0 6px 24px rgb(0 0 0 / 0.18); }
.showcase-body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.showcase-title { margin: 0; font-size: var(--text-lg); }
.showcase-title a { color: inherit; text-decoration: none; }
.showcase-title a::after { content: ''; position: absolute; inset: 0; }
.showcase-desc { margin: 0; color: var(--color-text-muted); flex: 1; }
.showcase-meta { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.showcase-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.showcase-like { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 10px; font: inherit; font-size: var(--text-sm); color: var(--color-text-muted); background: transparent; border: 1px solid transparent; border-radius: var(--radius-full); cursor: pointer; }
.showcase-card .showcase-like:hover { color: var(--color-text); background: var(--color-surface-sunken); }
.showcase-like:disabled { cursor: default; }
.showcase-like[aria-pressed="true"] { color: #e0245e; --heart-fill: currentColor; }
.showcase-like[aria-pressed="true"]:hover { color: #e0245e; }
.showcase-like.btn { min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-md); font-size: var(--text-base); color: var(--color-text); background: var(--color-surface); border-color: var(--color-border-strong); }
.showcase-like.btn:hover { border-color: var(--color-text-faint); }
.showcase-like.btn[aria-pressed="true"] { color: #e0245e; }
.showcase-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.showcase-open { max-width: 100%; min-width: 0; }
.showcase-open-name { display: inline-block; vertical-align: bottom; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 16ch; }
.showcase-host { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--color-text-muted); overflow-wrap: anywhere; }
.showcase-share { position: relative; }
.showcase-share summary { list-style: none; cursor: pointer; }
.showcase-share summary::-webkit-details-marker { display: none; }
.showcase-share-menu { position: absolute; z-index: 5; top: calc(100% + 6px); left: 0; min-width: 180px; display: flex; flex-direction: column; padding: 6px; background: var(--color-surface-raised, var(--color-surface)); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgb(0 0 0 / 0.14); }
.showcase-share-menu a, .showcase-share-menu button { display: block; width: 100%; text-align: left; padding: 8px 12px; font: inherit; font-size: var(--text-sm); color: var(--color-text); background: none; border: 0; border-radius: var(--radius-md, 8px); text-decoration: none; cursor: pointer; }
.showcase-share-menu a:hover, .showcase-share-menu button:hover { background: var(--color-surface-sunken); }
.showcase-empty { margin: 0; }
.showcase-item { padding: var(--space-12) 0 var(--space-16); }
.showcase-back { display: inline-block; margin-bottom: var(--space-6); font-size: var(--text-sm); }
.showcase-item-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-10); align-items: center; }
.showcase-item-head .showcase-art { border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.showcase-item-head h1 { margin-bottom: var(--space-3); }
.showcase-item-head .lead { margin: 0 0 var(--space-5); }
.showcase-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-6); padding: 0; list-style: none; }
.showcase-tags li { font-size: var(--text-sm); color: var(--color-text-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: 4px 12px; }
.showcase-item-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-10); margin-top: var(--space-12); }
.showcase-item-body h2 { margin-top: 0; font-size: var(--text-xl); }
.showcase-about p { margin: 0 0 var(--space-4); max-width: 65ch; }
.showcase-features { margin: 0 0 var(--space-8); padding-left: 1.2em; }
.showcase-features li { margin-bottom: var(--space-2); }
.showcase-prompt { margin: 0; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--text-sm); }
.showcase-copies { font-size: var(--text-sm); font-weight: var(--weight-medium, 500); color: var(--color-text-muted); background: var(--color-surface-sunken); border-radius: var(--radius-full); padding: 1px 8px; min-width: 1.5em; text-align: center; }
.showcase-prompt-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-3); }
.showcase-shots { margin-top: var(--space-12); }
.showcase-shots h2 { margin-top: 0; font-size: var(--text-xl); }
.showcase-shots ul { list-style: none; margin: 0; padding: 0 0 var(--space-3); display: flex; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; }
.showcase-shots li { flex: none; scroll-snap-align: start; max-width: 85vw; }
.showcase-shots a { display: block; }
.showcase-shots img { display: block; height: 380px; width: auto; max-width: 85vw; object-fit: contain; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-sunken); }
.showcase-shots p { margin: var(--space-2) 0 0; font-size: var(--text-sm); color: var(--color-text-muted); max-width: 40ch; }
@media (max-width: 820px) { .showcase-shots img { height: 300px; } }
.showcase-more { margin-top: var(--space-16); }
@media (max-width: 820px) { .showcase-item-head, .showcase-item-body { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); } }

/* Docs: a sidebar with every doc on wide screens, a "Docs menu" on narrow ones. */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-12); align-items: start; padding-top: var(--space-12); padding-bottom: var(--space-20); }
.docs-main { min-width: 0; max-width: var(--width-text); }
.docs-side { position: sticky; top: var(--space-6); max-height: calc(100vh - var(--space-12)); overflow-y: auto; padding-right: var(--space-2); }
.docs-menu { display: none; }
.docs-nav-label { margin: var(--space-6) 0 var(--space-2); padding: 0 var(--space-3); font-size: var(--text-xs); font-weight: var(--weight-semibold); color: var(--color-text-faint); text-transform: uppercase; letter-spacing: 0.06em; }
.docs-nav-list { list-style: none; margin: 0; padding: 0; }
.docs-nav-list a { display: block; padding: 6px var(--space-3); border-radius: var(--radius-md); font-size: 0.9375rem; color: var(--color-text-muted); text-decoration: none; }
.docs-nav-list a:hover { color: var(--color-text); background: var(--color-surface-sunken); }
.docs-nav-list a[aria-current="page"] { color: var(--color-accent); background: var(--color-accent-soft); font-weight: var(--weight-medium); }
.docs-nav-agent { margin: var(--space-6) 0 0; padding: 0 var(--space-3); font-size: var(--text-sm); color: var(--color-text-muted); }
.docs-main > h1:first-child { margin-top: 0; }
.docs-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin: var(--space-8) 0 0; }
.docs-way { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); min-width: 0; padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.docs-way-command { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); width: 100%; }
.docs-way:first-child { grid-column: 1 / -1; }
.docs-way-command { flex-direction: row; align-items: flex-start; }
.docs-way .terminal { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.docs-way-prompt { margin: 0; padding: var(--space-3); width: 100%; font-size: var(--text-sm); background: var(--color-surface-sunken); border-radius: var(--radius-md); overflow-wrap: anywhere; }
.docs-way-link { margin-top: auto; font-size: var(--text-sm); font-weight: var(--weight-medium); text-decoration: none; }
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-8); }
@media (max-width: 1000px) { .docs-ways { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .docs-way-command { flex-direction: column; } }
@media (max-width: 860px) {
  .docs { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); padding-top: var(--space-6); }
  .docs-side { display: none; }
  .docs-menu { display: block; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
  .docs-menu summary { cursor: pointer; padding: var(--space-3) var(--space-4); font-weight: var(--weight-semibold); }
  .docs-menu nav { padding: 0 var(--space-2) var(--space-4); border-top: 1px solid var(--color-border); }
  .docs-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The blog's list: the newest post large, then the rest as cards, three to a row. */
.blog { padding-top: var(--space-12); padding-bottom: var(--space-20); }
.blog .lead { margin: 0; }
.blog-filters { margin: var(--space-8) 0 0; max-width: 100%; overflow-x: auto; }
.blog-filters button { flex: none; white-space: nowrap; }
.blog-filter-count { color: var(--color-text-faint); font-size: 0.8125rem; margin-left: 2px; }
.postgrid { list-style: none; margin: var(--space-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); }
.postcard { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.postcard[hidden] { display: none; }
.postcard-image img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--color-border); transition: border-color var(--duration-fast); }
.postcard:hover .postcard-image img { border-color: var(--color-border-strong); }
.postcard-text p { margin: 0; }
.postcard-meta { font-size: var(--text-sm); color: var(--color-text-faint); margin-bottom: var(--space-2) !important; }
.postcard-meta .tag { margin-right: var(--space-1); }
.postcard-title { display: block; font-size: var(--text-lg); font-weight: var(--weight-semibold); line-height: var(--leading-snug); color: var(--color-text); text-decoration: none; margin-bottom: var(--space-2); }
.postcard-title:hover { color: var(--color-accent); }
.postcard .muted { font-size: 0.9375rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.postcard-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--space-8); align-items: center; padding-bottom: var(--space-8); border-bottom: 1px solid var(--color-border); }
.postcard-featured .postcard-title { font-size: var(--text-3xl); letter-spacing: var(--tracking-heading); line-height: var(--leading-tight); margin-bottom: var(--space-3); }
.postcard-featured .muted { font-size: var(--text-lg); -webkit-line-clamp: 4; }
@media (max-width: 1000px) { .postgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .blog { padding-top: var(--space-8); }
  .postcard-featured { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .postcard-featured .postcard-title { font-size: var(--text-2xl); }
}
@media (max-width: 560px) { .postgrid { grid-template-columns: minmax(0, 1fr); } }
.currency button[aria-pressed="true"] .blog-filter-count { color: var(--color-on-ink-muted); }

/* /compare: each comparison as a card, in two groups. */
.compare-index h2 { margin-top: var(--space-12); margin-bottom: var(--space-1); }
.compare-group-lead { margin: 0; color: var(--color-text-muted); }
.comparegrid { list-style: none; margin: var(--space-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.comparecard a { display: flex; flex-direction: column; height: 100%; padding: var(--space-6); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); color: var(--color-text); text-decoration: none; transition: border-color var(--duration-fast), box-shadow var(--duration-fast); }
.comparecard a:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-md); }
.comparecard-vs { font-size: var(--text-sm); color: var(--color-text-faint); }
.comparecard-name { font-size: var(--text-2xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-heading); line-height: var(--leading-tight); margin: 2px 0 var(--space-3); }
.comparecard-summary { color: var(--color-text-muted); font-size: 0.9375rem; line-height: var(--leading-normal); margin-bottom: var(--space-5); }
.comparecard-foot { margin-top: auto; display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); color: var(--color-text-faint); }
.comparecard-read { color: var(--color-accent); font-weight: var(--weight-medium); }
.compare-guides { max-width: var(--width-text); }
@media (max-width: 1000px) { .comparegrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .comparegrid { grid-template-columns: minmax(0, 1fr); } }
.compare-index .lead { max-width: 760px; }

/* Blog covers (blog-covers.ts): a colour by reader, one icon, a short label. */
.cover { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); aspect-ratio: 16 / 9; padding: var(--space-6); border-radius: var(--radius-lg); border: 1px solid var(--color-border); overflow: hidden; text-align: center; transition: border-color var(--duration-fast); }
.cover::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(currentColor 1px, transparent 1px); background-size: 18px 18px; opacity: 0.12; }
.cover > * { position: relative; }
.cover-chat { background: var(--color-accent-soft); color: var(--color-accent); }
.cover-agent { background: var(--color-ok-soft); color: var(--color-ok-text); }
.cover-build { background: var(--color-warn-soft); color: var(--color-warn); }
.cover-icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 20px; background: var(--color-surface); box-shadow: var(--shadow-md); }
.cover-icon svg { width: 36px; height: 36px; }
.cover-label { font-size: var(--text-xl); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-heading); line-height: var(--leading-tight); color: var(--color-text); }
.postcard:hover .cover { border-color: var(--color-border-strong); }
.postcard-featured .cover-icon { width: 104px; height: 104px; border-radius: 28px; }
.postcard-featured .cover-icon svg { width: 52px; height: 52px; }
.postcard-featured .cover-label { font-size: var(--text-3xl); }
.postcard-image { display: block; text-decoration: none; }

/* Home: the examples flow straight into "More than a link" (no grey band, a smaller gap), so the page doesn't seem to end there. */
.examples-section { padding-bottom: var(--space-8); }
.bento-section { padding-top: var(--space-12); }
