/* /ai/ page draft. Tokens and type from site/DESIGN.md (the living room walls): paper, powder blue,
   blush and sun walls, ink pills, Nunito display over Inter. Self hosted fonts, no other host. */
@font-face { font-family: "Nunito"; src: url(../fonts/nunito-latin-wght.woff2) format("woff2"); font-weight: 600 1000; font-display: swap; }
@font-face { font-family: "Inter"; src: url(../fonts/inter-latin-wght.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --paper: #FBFAF7; --wall: #BDCFE1; --ink: #14131A; --ink-2: #44424C; --ink-3: #5F5D67;
  --tomato: #F2441B; --sky: #9CCBF0; --sun: #FFC81E; --blush: #F8D3CC;
  --display: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4.4vw, 72px); --max: 1180px; --radius-xl: clamp(22px, 2.6vw, 40px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  accent-color: var(--tomato);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
a { color: inherit; text-underline-offset: 3px; }
code { font: 500 0.9em/1.4 var(--mono); }
b { font-weight: 650; }

h1, h2, h3 { font-family: var(--display); font-weight: 900; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(44px, 7vw, 104px); line-height: 0.92; letter-spacing: -0.04em; max-width: 11em; }
h2 { font-size: clamp(34px, 4.6vw, 68px); line-height: 0.96; letter-spacing: -0.035em; }
h3 { font-size: 21px; line-height: 1.15; letter-spacing: -0.01em; }
.kicker { margin: 0 0 18px; font: 650 14px/1 var(--text); letter-spacing: 0.01em; color: var(--ink-3); }
.lede, .sub { margin-top: 22px; margin-bottom: 0; max-width: 36em; font-size: clamp(17px, 1.4vw, 21px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.note { margin: 14px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-3); }
.label { margin: 18px 0 6px; font: 650 14px/1.2 var(--text); color: var(--ink-2); }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font: 600 16px/1 var(--text); text-decoration: none; white-space: nowrap; cursor: pointer; transition: transform 0.35s var(--ease-out), background-color 0.25s, box-shadow 0.35s var(--ease-out); }
.pill-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(20, 19, 26, 0.6); }
.pill-ink:hover { background: #2A2833; transform: translateY(-1px); }
.pill-ink:active { transform: scale(0.98); }
.pill-lg { height: 58px; padding: 0 30px; font-size: 18px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; padding: 22px 0; }
.brand { font: 900 22px/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }

.hero { width: min(100% - 2 * var(--gutter), var(--max)); margin: 0 auto; padding: clamp(40px, 8vw, 110px) 0 clamp(56px, 8vw, 110px); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: clamp(36px, 5vw, 64px); max-width: 860px; }
.step { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px rgba(20, 19, 26, 0.07); }
.step p { margin: 0; font-weight: 600; line-height: 1.3; }
.n { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--sun); font: 900 19px/1 var(--display); }

.wall { padding: clamp(64px, 9vw, 130px) var(--gutter); }
.wall > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.wall-blue { background: var(--wall); }
.wall-blush { background: var(--blush); }
.wall-sun { background: var(--sun); }
.wall-paper { background: var(--paper); }

.urlbox { display: flex; align-items: center; gap: 12px; margin-top: 34px; padding: 10px 10px 10px 22px; border-radius: 999px; background: #fff; box-shadow: 0 18px 40px -26px rgba(20, 19, 26, 0.55); }
.urlbox code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: clamp(15px, 1.6vw, 20px); font-weight: 600; scrollbar-width: none; }
.urlbox code::-webkit-scrollbar { display: none; }

.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); margin-top: clamp(28px, 3vw, 40px); }
.app { min-width: 0; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--radius-xl); background: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1px rgba(20, 19, 26, 0.06); }
.where { margin: 6px 0 16px; color: var(--ink-3); font-size: 15px; }
.app ol { margin: 0; padding-left: 1.25em; }
.app li { margin: 6px 0; padding-left: 4px; }
.app li::marker { font-weight: 700; color: var(--ink-3); }
.app .pill { margin-bottom: 4px; }
.snippet { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--ink); color: #f3f2ee; font: 500 13px/1.5 var(--mono); white-space: pre-wrap; word-break: break-all; }

.asks { list-style: none; margin-top: 34px; margin-bottom: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.asks li { padding: 20px 22px; border-radius: 22px 22px 22px 6px; background: #fff; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; box-shadow: 0 14px 30px -24px rgba(20, 19, 26, 0.5); }

.flow { margin-top: 30px; margin-bottom: 0; padding-left: 1.3em; box-sizing: border-box; font-size: clamp(17px, 1.3vw, 19px); }
.flow li { margin: 8px 0; padding-left: 4px; }
.flow li::marker { font: 900 1em var(--display); }
.promptbox { margin-top: 30px; }
.promptbox details { margin-top: 18px; border-radius: 22px; background: rgba(255, 255, 255, 0.72); }
.promptbox summary { padding: 16px 22px; font-weight: 650; cursor: pointer; }
.promptbox pre { margin: 0; padding: 0 22px 22px; max-height: 420px; overflow: auto; font: 500 13px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px) clamp(22px, 4vw, 64px); margin-top: 36px; }
.facts p { margin: 10px 0 0; color: var(--ink-2); }

.foot { display: grid; justify-items: center; gap: 14px; padding: clamp(64px, 8vw, 110px) var(--gutter); text-align: center; background: var(--wall); }
.foot p { margin: 0; color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 16px 36px -16px rgba(20, 19, 26, 0.7); z-index: 10; }

@media (max-width: 820px) {
  .apps, .asks, .facts { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
}
@media (max-width: 520px) {
  .urlbox { flex-direction: column; align-items: stretch; border-radius: 24px; padding: 16px; }
  .urlbox code { white-space: normal; overflow-wrap: anywhere; }
  .top .pill { height: 42px; padding: 0 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .pill { transition: none; } }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }

/* the QR page */
.qr-page { background: var(--wall); }
.qr-main { width: min(100% - 2 * var(--gutter), 560px); margin: 0 auto; padding: clamp(40px, 8vw, 96px) 0; text-align: center; }
.qr-main .sub { margin-inline: auto; }
.qr-title { font-size: clamp(38px, 6vw, 64px); line-height: 0.95; letter-spacing: -0.035em; }
.qr-card { display: inline-grid; place-items: center; margin-top: 30px; padding: 18px; border-radius: 28px; background: #fff; box-shadow: 0 24px 50px -30px rgba(20, 19, 26, 0.6); }
.qr-card svg { display: block; width: min(260px, 70vw); height: auto; }
.qr-code { margin: 18px 0 0; overflow-wrap: anywhere; color: var(--ink-2); }
.wall > .sub { margin-left: auto; margin-right: auto; max-width: var(--max); }
.wall > .sub, .wall > .flow { padding-right: max(0px, calc(100% - 44em)); }
.wall > .note { margin-left: auto; margin-right: auto; }
