/* GutPut — gutput.com. Built from docs/design/website/GutPut Website.dc.html (Claude Design).
   Tokens match docs/design/README.md. No JavaScript: motion is CSS only and stops under
   prefers-reduced-motion. */

:root {
  --paper: #F3F1EC; --paper-a: rgba(243, 241, 236, .85); --surface: #FFFFFF;
  --ink: #15161A; --ink-2: #5F616A; --ink-3: #9A9CA6; --line: rgba(21, 22, 26, .10);
  --in: #C9411A; --in-bg: rgba(201, 65, 26, .10);
  --out: #0A7585; --out-bg: rgba(10, 117, 133, .10);
  /* Text on the inverted (ink) block */
  --inv-ink-2: #A0A2AB; --inv-line: rgba(255, 255, 255, .14);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0D0E10; --paper-a: rgba(13, 14, 16, .85); --surface: #17181C;
    --ink: #F2F1ED; --ink-2: #A0A2AB; --ink-3: #6C6E78; --line: rgba(255, 255, 255, .10);
    --in: #FF7F5E; --in-bg: rgba(255, 127, 94, .16);
    --out: #4CD4E0; --out-bg: rgba(76, 212, 224, .16);
    --inv-ink-2: #5F616A; --inv-line: rgba(21, 22, 26, .12);
  }
}

@keyframes blink { 0%, 55% { opacity: 1 } 56%, 100% { opacity: 0 } }
@keyframes pulse { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }
@keyframes travel { 0% { transform: translateX(0); opacity: 0 } 15%, 85% { opacity: 1 } 100% { transform: translateX(18px); opacity: 0 } }
@keyframes dash { to { stroke-dashoffset: -14 } }
@keyframes dots { 0%, 100% { opacity: .25 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
a:hover { color: var(--in); }
:focus-visible { outline: 2px solid var(--out); outline-offset: 3px; border-radius: 4px; }
table { border-collapse: collapse; }
svg { display: block; flex: none; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Type */
.label { font: 600 11px/1.4 var(--mono); letter-spacing: .1em; color: var(--ink-2); text-transform: uppercase; }
.tag { font: 600 10px var(--mono); letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; background: var(--line); color: var(--ink-2); white-space: nowrap; }
.tag-assumed { background: none; border: 1px dashed var(--ink-3); }
.in { color: var(--in); }
.out { color: var(--out); }
.muted { color: var(--ink-3); }
h2 { font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -.025em; }
h3 { font-weight: 600; font-size: 21px; line-height: 1.25; letter-spacing: -.015em; }
.body { font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.body-strong { font-size: 17px; line-height: 1.55; }

/* The Relay */
.r-body { fill: var(--ink); }
.r-in { fill: var(--in); opacity: .55; }
.r-out { fill: var(--out); opacity: .55; }
.r-win { fill: var(--paper); }
.r-cursor { fill: var(--ink); }
.r-blink { animation: blink 1.2s steps(1) infinite; }
.relay-listening .r-in { opacity: 1; animation: pulse .9s ease-in-out infinite; }
.relay-listening .r-win { stroke: var(--in); stroke-width: 1.5; }
.r-bit { fill: var(--ink); animation: travel 1.1s linear infinite; }
.relay-pattern .r-in, .relay-pattern .r-out { opacity: 1; }
.r-link-in, .r-link-out { stroke-width: 3; stroke-linecap: round; stroke-dasharray: 4 3; animation: dash .8s linear infinite; }
.r-link-in { stroke: var(--in); }
.r-link-out { stroke: var(--out); }
.relay-unsure .r-in, .relay-unsure .r-out { opacity: .3; }
.relay-unsure .r-win { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 3 2; }
.r-dot { fill: var(--ink-3); animation: dots 1.6s ease-in-out infinite; }
.r-dot:nth-of-type(2) { animation-delay: .25s; }
.r-dot:nth-of-type(3) { animation-delay: .5s; }
.b-crack { stroke: var(--paper); }

/* Layout */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

.site-header {
  position: sticky; top: 0; z-index: 2; background: var(--paper-a);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand span { font-weight: 600; font-size: 19px; letter-spacing: -.03em; }
.site-nav { display: flex; gap: 16px; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--ink-2); }
.site-nav a:hover { color: var(--in); }

.home { display: flex; flex-direction: column; gap: 88px; }
section { scroll-margin-top: 72px; }

/* Hero */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px; align-items: center; padding-top: 56px; }
.hero-text { display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.hero h1 { font-weight: 600; font-size: clamp(38px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -.03em; }
.lead { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.hero-actions { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.status {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; min-height: 44px; padding: 0 16px;
  border-radius: 22px; border: 1px solid var(--line); background: var(--surface);
  font: 600 11px var(--mono); letter-spacing: .08em; color: var(--ink-2);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--in); animation: pulse 1.6s ease-in-out infinite; }
.down { align-self: flex-start; font-size: 16px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--ink-3); }
.down span { color: var(--ink-3); }

.demo { display: flex; flex-direction: column; gap: 12px; max-width: 440px; width: 100%; justify-self: center; }
.bubble { align-self: flex-end; max-width: 85%; padding: 10px 14px; border-radius: 18px 18px 4px 18px; background: var(--surface); border: 1px solid var(--line); font-size: 16px; line-height: 22px; }
.reply { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 22px; }
.reply p { padding-top: 1px; }
.tile { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 12px 40px -20px rgba(0, 0, 0, .35); }
.tile-meta { display: flex; align-items: center; gap: 8px; font: 600 11px var(--mono); letter-spacing: .06em; color: var(--ink-2); }
.tile-meta .chip-in { padding: 2px 6px; border-radius: 5px; background: var(--in-bg); color: var(--in); }
.tile-meta .end { margin-left: auto; }
.tile-title { font-weight: 600; font-size: 17px; line-height: 22px; }
.ingredients { border-top: 1px solid var(--line); }
.ingredient { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; border-bottom: 1px solid var(--line); font-size: 15px; }
.ingredient:last-child { border-bottom: 0; }
.ingredient .tags { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tile-actions { display: flex; gap: 8px; align-items: center; padding-top: 2px; font-weight: 600; font-size: 16px; }
.btn-approve { flex: 1; height: 44px; border-radius: 22px; background: var(--ink); color: var(--paper); display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-edit { height: 44px; padding: 0 18px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); display: flex; align-items: center; }
.btn-reject { height: 44px; padding: 0 12px; display: flex; align-items: center; font-weight: 400; color: var(--ink-2); }

/* Problem: timeline */
.problem { display: flex; flex-direction: column; gap: 28px; max-width: 720px; }
.timeline { display: flex; flex-direction: column; gap: 10px; padding: 20px 16px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.track { position: relative; height: 56px; }
.track::before { content: ""; position: absolute; left: 0; right: 0; top: 24px; height: 2px; background: var(--line); }
.track::after { content: ""; position: absolute; left: 0; right: 14%; top: 24px; height: 2px; background: var(--out); opacity: .35; }
.meal { position: absolute; top: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; transform: translateX(-50%); z-index: 1; }
.meal span:first-child, .now span:last-child { font: 600 10px var(--mono); letter-spacing: .06em; white-space: nowrap; }
.meal span:first-child { color: var(--in); }
.meal span:last-child { width: 12px; height: 12px; border-radius: 3px; background: var(--in); margin-top: 1px; }
.now { position: absolute; right: 0; top: 17px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 1; }
.now span:first-child { width: 14px; height: 14px; border-radius: 7px; background: var(--out); margin-right: -1px; }
.now span:last-child { color: var(--out); }
.scale { display: flex; justify-content: space-between; font: 600 10px var(--mono); letter-spacing: .06em; color: var(--ink-3); }

/* How it works */
.how { display: flex; flex-direction: column; gap: 36px; }
.how .label { display: flex; align-items: center; gap: 10px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; align-items: stretch; }
.step { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.step-label { font: 600 11px var(--mono); letter-spacing: .08em; color: var(--ink-2); }
.step p.body { font-size: 16px; line-height: 1.5; }
.step-demo { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.step-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.step-tags .tag { padding: 3px 7px; border-radius: 6px; letter-spacing: .06em; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.note p { font-size: 15px; line-height: 21px; font-style: italic; }
.bristol-row { display: flex; gap: 6px; }
.bristol-row span { flex: 1; aspect-ratio: 1; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; }
.bristol-row span.in-range { border-color: var(--out); }
.output-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); }
.output-row .time { font: 600 13px var(--mono); color: var(--out); }
.output-row .icon { width: 36px; height: 36px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.output-row .what { flex: 1; min-width: 0; font-size: 16px; line-height: 21px; }
.output-row .what span { display: block; font: 12px var(--mono); color: var(--ink-2); margin-top: 2px; }
.insight { border-radius: 14px; background: var(--paper); border: 1px solid var(--out); padding: 14px; display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.insight-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 600 10px var(--mono); letter-spacing: .06em; color: var(--ink-2); }
.insight-meta span:first-child { display: flex; align-items: center; gap: 6px; color: var(--out); }
.insight-link { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; line-height: 24px; }
.insight-link .from { padding: 1px 8px; border-radius: 7px; background: var(--in-bg); color: var(--in); }
.insight-link .to { display: inline-flex; align-items: center; gap: 6px; padding: 1px 8px; border-radius: 7px; background: var(--out-bg); color: var(--out); }
.insight p { font-size: 14px; line-height: 20px; color: var(--ink-2); font-style: italic; }
.bars { display: flex; gap: 3px; }
.bars span { flex: 1; height: 8px; border-radius: 2px; background: var(--line); }
.bars span.hit { background: var(--out); }

/* Tables (text pages) */
.table-card { border-radius: 14px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.table-card table { width: 100%; font-size: 15px; line-height: 1.35; }
.table-card thead th { font: 600 10px var(--mono); letter-spacing: .08em; color: var(--ink-2); text-align: left; padding: 12px 8px 10px; border-bottom: 1px solid var(--line); }
.table-card th, .table-card td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table-card tr > :first-child { padding-left: 14px; }
.table-card tr > :last-child { padding-right: 14px; }
.table-card tbody tr:last-child > * { border-bottom: 0; }
.table-card tbody th { font-weight: 600; white-space: nowrap; }
.table-card .muted-cell { color: var(--ink-2); }
.table-card .mono-cell { font: 13px var(--mono); }

/* Private by design (inverted) */
.private { display: flex; flex-direction: column; gap: 28px; padding: 32px 24px; margin: 0 -16px; background: var(--ink); color: var(--paper); border-radius: 20px; }
.private .label { color: var(--inv-ink-2); }
.private ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px 32px; }
.private li { display: flex; flex-direction: column; gap: 6px; padding-top: 16px; border-top: 1px solid var(--inv-line); }
.private li strong { font-weight: 600; font-size: 17px; line-height: 1.3; }
.private li span { font-size: 15px; line-height: 1.5; color: var(--inv-ink-2); }
.private a:hover { color: var(--paper); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 24px; max-width: 720px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 0; font-weight: 600; font-size: 17px; line-height: 1.3; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 600 16px var(--mono); color: var(--ink-3); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { font-size: 16px; line-height: 1.55; color: var(--ink-2); padding: 0 0 18px; max-width: 640px; }

/* Closing */
.closing { display: flex; flex-direction: column; gap: 18px; align-items: center; text-align: center; padding: 24px 0 8px; }
.composer { display: flex; gap: 8px; align-items: center; width: 100%; max-width: 520px; }
.composer-field { flex: 1; height: 56px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; gap: 10px; padding: 0 20px; text-align: left; }
.composer-field .prompt { font: 600 16px var(--mono); color: var(--in); }
.composer-field h2 { font-weight: 500; font-size: 20px; letter-spacing: -.01em; color: var(--ink-2); }
.composer-field .caret { width: 2px; height: 22px; background: var(--ink); animation: blink 1.2s steps(1) infinite; }
.composer-send { width: 56px; height: 56px; border-radius: 28px; background: var(--ink); display: grid; place-items: center; flex: none; }
.composer-send path { stroke: var(--paper); }
.closing p { font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; }
.site-footer .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 18px; }
.site-footer p { font-size: 15px; line-height: 1.5; color: var(--ink-2); max-width: 640px; }
.site-footer p b { color: var(--ink); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 14px; }
.footer-links a { text-underline-offset: 3px; }
.footer-links .email { font: 14px var(--mono); }
.footer-links .copy { margin-left: auto; font: 12px var(--mono); color: var(--ink-3); }

/* Text pages */
.text-page { max-width: 720px; margin: 0 auto; padding: 48px 16px 24px; display: flex; flex-direction: column; gap: 28px; }
.text-page header { display: flex; flex-direction: column; gap: 12px; }
.text-page h1 { font-weight: 600; font-size: 38px; line-height: 1.1; letter-spacing: -.03em; }
.text-page section { display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.text-page section p, .text-page section li { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.text-page section ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.text-page a { text-underline-offset: 3px; }

/* 404 */
.not-found { max-width: 720px; margin: 0 auto; padding: 64px 16px; min-height: 60vh; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.not-found h1 { font-weight: 600; font-size: 34px; line-height: 1.1; letter-spacing: -.03em; }
.btn-home { align-self: flex-start; display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 24px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 16px; }
.btn-home:hover { color: var(--paper); opacity: .9; }
.text-page section h2 { font-size: 21px; line-height: 1.25; letter-spacing: -.015em; }

/* Legal pages */
.text-page .updated { font: 12px var(--mono); color: var(--ink-3); }
.text-page .intro { font-size: 19px; line-height: 1.5; color: var(--ink-2); }
.table-scroll { overflow-x: auto; margin: 4px 0; }
.text-page table { width: 100%; min-width: 480px; font-size: 15px; line-height: 1.45; }
.text-page th, .text-page td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.text-page th { font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.text-page td { color: var(--ink-2); }
.text-page td:first-child { color: var(--ink); }
.private-more { font-size: 16px; }
.private-more a { color: var(--paper); text-underline-offset: 3px; }
