/* Landing page. Builds on tokens.css (reset, colors, buttons, url field) and
   core.css (marketing tokens, top bar, footer, section type, theme toggle).
   Everything here is specific to the marketing page at /. */

section.band { padding-block: clamp(4rem, 9vw, 7rem); }
section.band.tint { background: var(--tint); border-block: 1px solid var(--line); }

/* ---------- pinned top bar ---------- */
:root { --bar-h: 4.5rem; }
html { scroll-padding-top: var(--bar-h); }
.bar {
  position: fixed; inset: 0 0 auto; z-index: 8;
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s, backdrop-filter 0.25s;
}
.bar .topbar { height: var(--bar-h); padding-block: 0; }
.bar.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.2); backdrop-filter: blur(12px) saturate(1.2);
  border-bottom-color: var(--line);
}
.topbar .claim {
  background: var(--ink); color: var(--bg); border-color: var(--ink);
  border-radius: 999px; padding: 0.45rem 0.95rem; font-size: 0.75rem; text-decoration: none; white-space: nowrap;
  overflow: hidden; max-width: 12rem;
  transition: opacity 0.25s, transform 0.25s, max-width 0.3s, padding 0.3s, margin 0.3s, border-width 0.3s;
}
/* hidden: collapse so the nav sits flush right, then glide over when it appears */
.topbar .claim:not(.on) {
  opacity: 0; transform: translateY(-4px); pointer-events: none; visibility: hidden;
  max-width: 0; padding-inline: 0; border-width: 0; margin-left: -1.6rem;
  transition: opacity 0.2s, transform 0.2s, max-width 0.3s, padding 0.3s, margin 0.3s, border-width 0.3s, visibility 0s 0.3s;
}
.topbar .claim:hover { filter: brightness(0.9); border-color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .topbar .claim, .topbar .claim:not(.on) { transition: none; transform: none; } }
.pitch-top { padding-top: var(--bar-h); }

/* ---------- hero ---------- */
.pitch-top { position: relative; isolation: isolate; }
.pitch-top::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 13%, transparent) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 20%, transparent 75%);
}
.pitch { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42rem); gap: clamp(2rem, 4.5vw, 4rem); align-items: center; padding-block: clamp(2rem, 6vw, 4.5rem) clamp(3.5rem, 8vw, 6rem); }
/* the headline scales with its column so "Your agents need" stays on one line */
.pitch > div { container-type: inline-size; }
.pitch h1 { text-wrap: balance; font-family: var(--mono); font-weight: 500; font-size: clamp(1.7rem, 9.4cqi, 2.6rem); line-height: 1.08; letter-spacing: -0.03em; }
.pitch h1 em { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--dim); font-size: 1.12em; margin-top: 0.15em; }
.btn-lg { font-size: 0.9rem; padding: 0.85rem 1.4rem; font-weight: 600; }

/* example switcher */
.tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.4rem; }

.tabs button { font: inherit; font-size: 0.76rem; color: var(--dim); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 0.35rem 0.8rem; cursor: pointer; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.tabs button:hover { color: var(--ink); border-color: var(--dimmer); }
.tabs button[aria-selected="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }

/* All panels share one grid cell, so the stage is as tall as the tallest
   example and the tabs never jump. Hidden panels keep their space. */
.stage { display: grid; }
.example { grid-row: 2; grid-column: 1; display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); grid-template-areas: "thread device" "cap cap"; gap: 1.2rem 1.6rem; align-items: start; }
.example[hidden] { display: grid; visibility: hidden; }
.example.on { animation: fadein 0.45s ease both; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .example.on { animation: none; } }
.example .thread { grid-area: thread; align-self: center; }
.example .device { grid-area: device; justify-self: end; }
.example .cap { grid-area: cap; align-self: end; margin-top: 0.4rem; padding-left: 0.9rem; border-left: 2px solid var(--accent); font-family: var(--sans); font-size: 0.9rem; line-height: 1.6; color: var(--dim); max-width: 38rem; }
.example .cap .link { white-space: nowrap; }

.thread { background: var(--surface); border: 1px solid var(--line); border-radius: var(--round); box-shadow: var(--lift); padding: 0.95rem 1.05rem; font-family: var(--sans); font-size: 0.85rem; line-height: 1.5; color: var(--ink); display: flex; flex-direction: column; gap: 0.6rem; }
.thread .step, .thread .later { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dimmer); }
.thread .later { display: flex; align-items: center; gap: 0.6rem; margin: 0.35rem 0; font-size: 0.76rem; letter-spacing: 0.06em; color: var(--dim); }
.thread .later span { white-space: nowrap; }
.thread .later::before, .thread .later::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.thread .bubble { align-self: flex-end; max-width: 88%; background: var(--ink); color: var(--bg); border-radius: 12px 12px 3px 12px; padding: 0.6rem 0.8rem; }
.thread .reply { align-self: flex-start; max-width: 92%; background: var(--soft); color: var(--ink); border-radius: 12px 12px 12px 3px; padding: 0.6rem 0.8rem; }
.thread code { font-family: var(--mono); font-size: 0.72rem; color: var(--ink); background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 0.05rem 0.3rem; border-radius: 4px; overflow-wrap: anywhere; }

/* devices: agent-built content always sits on a light "screen" */
.phone { width: 17.5rem; border-radius: 2.6rem; background: #111113; padding: 0.65rem; box-shadow: var(--lift); border: 1px solid #2a2a2e; }
/* dark page: lift the bezel so the frame separates from the background */
:root:not([data-theme="light"]) .phone { background: #222224; border-color: #3a3a3e; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .phone { background: #111113; border-color: #2a2a2e; } }
.window { width: 100%; max-width: 25rem; border-radius: var(--round); background: #fff; color: #18181b; font-family: var(--sans); overflow: hidden; box-shadow: var(--lift); border: 1px solid var(--line); }
.screen { background: #fff; color: #18181b; border-radius: 2rem; overflow: hidden; font-family: var(--sans); min-height: 33rem; }
.sbar { display: flex; justify-content: space-between; font-size: 0.66rem; font-weight: 600; padding: 0.8rem 1.3rem 0.3rem; }
.addr { margin: 0.25rem 0.9rem 0.6rem; font-family: var(--mono); font-size: 0.63rem; color: #6e6e76; background: #f4f4f5; border-radius: 7px; padding: 0.35rem 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wbar { display: flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.7rem; background: #f7f7f8; border-bottom: 1px solid #ececef; }
.wbar i { width: 9px; height: 9px; border-radius: 50%; background: #dcdce0; }
.wbar .addr { flex: 1; margin: 0 0 0 0.5rem; background: #fff; border: 1px solid #ececef; }
.body { padding: 0.35rem 1.05rem 1.1rem; font-size: 0.76rem; line-height: 1.45; }
.window .body { padding-top: 0.9rem; }
.body h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.02em; }
.body .sub { font-size: 0.7rem; color: #6e6e76; margin-top: 0.1rem; }
.body .sect { font-size: 0.6rem; letter-spacing: 0.07em; text-transform: uppercase; color: #8a8a92; margin: 0.9rem 0 0.35rem; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; margin-top: 0.8rem; }
.kpi { border: 1px solid #ececef; border-radius: 10px; padding: 0.55rem 0.65rem; }
.kpi small { display: block; font-size: 0.58rem; color: #6e6e76; text-transform: uppercase; letter-spacing: 0.06em; }
.kpi b { display: block; font-size: 1.2rem; letter-spacing: -0.02em; margin-top: 0.1rem; }
.kpi span { font-size: 0.62rem; color: #52525b; }
.form { margin-top: 0.8rem; border: 1px solid #ececef; border-radius: 10px; padding: 0.65rem; }
.form .row { display: flex; gap: 0.4rem; margin-top: 0.35rem; }
.field { flex: 1; border: 1px solid #ececef; border-radius: 7px; padding: 0.4rem 0.5rem; font-size: 0.72rem; white-space: nowrap; }
.go { margin-top: 0.55rem; background: #18181b; color: #fff; text-align: center; border-radius: 8px; padding: 0.5rem; font-size: 0.74rem; font-weight: 600; }
.list div { display: flex; justify-content: space-between; gap: 0.6rem; padding: 0.42rem 0; border-bottom: 1px solid #f1f1f3; font-size: 0.72rem; }
.list div span:last-child { color: #6e6e76; white-space: nowrap; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 0.7rem; margin-top: 0.3rem; }
table.cmp th { text-align: left; font-weight: 600; color: #8a8a92; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.35rem 0.3rem; border-bottom: 1px solid #ececef; }
table.cmp td { padding: 0.45rem 0.3rem; border-bottom: 1px solid #f1f1f3; }
table.cmp.data { font-family: var(--mono); font-size: 0.62rem; }
.pill { display: inline-block; font-size: 0.6rem; padding: 0.05rem 0.45rem; border-radius: 99px; background: color-mix(in srgb, var(--accent) 13%, #fff); color: color-mix(in srgb, var(--accent) 70%, #000); }
.callout { margin-top: 0.8rem; border-left: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, #fff); padding: 0.55rem 0.7rem; border-radius: 0 8px 8px 0; font-size: 0.72rem; }
.meta-line { margin-top: 0.7rem; font-family: var(--mono); font-size: 0.6rem; color: #8a8a92; }
.shell { display: grid; grid-template-columns: 7.6rem 1fr; min-height: 21rem; }
.tree { background: #fafafa; border-right: 1px solid #ececef; padding: 0.8rem 0.6rem; font-family: var(--mono); font-size: 0.62rem; color: #52525b; line-height: 1.9; }
.tree .in { padding-left: 0.8rem; }
.tree .on { background: color-mix(in srgb, var(--accent) 12%, #fff); color: #18181b; border-radius: 4px; padding-inline: 0.3rem; margin-left: 0.5rem; }
.wl { color: color-mix(in srgb, var(--accent) 80%, #000); border-bottom: 1px dashed currentColor; }
.bullets { padding-left: 1rem; margin-top: 0.3rem; }
.bullets li { margin: 0.3rem 0; font-size: 0.72rem; }
.backlinks { margin-top: 0.8rem; border: 1px solid #ececef; border-radius: 8px; padding: 0.5rem 0.6rem; font-size: 0.66rem; color: #52525b; }
.day { display: grid; grid-template-columns: 2.6rem 1fr; gap: 0.5rem; padding: 0.5rem 0; border-bottom: 1px solid #f1f1f3; font-size: 0.72rem; }
.day b { font-size: 0.66rem; color: #6e6e76; font-weight: 600; }
.day.moved { background: color-mix(in srgb, var(--accent) 6%, #fff); border-radius: 6px; padding-inline: 0.35rem; margin-inline: -0.35rem; }

/* dashboard: the agent's own design, not Caipi's */
.dash .body { background: #f5f6f8; }
.dash h3 { font-size: 1.2rem; font-weight: 750; letter-spacing: -0.03em; }
.kpis.k3 { grid-template-columns: repeat(3, 1fr); }
.dash .kpi { background: #fff; }
.dash .kpi b { font-size: 1.05rem; font-weight: 750; }
.panel-card { margin-top: 0.55rem; background: #fff; border: 1px solid #ececef; border-radius: 10px; padding: 0.1rem 0.75rem 0.65rem; }
.panel-card .sect { margin-top: 0.55rem; }
.ybars { display: flex; align-items: flex-end; gap: 3px; height: 5.2rem; border-bottom: 1px solid #ececef; }
.ybars span { flex: 1; height: var(--t); min-height: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(to top, #3b6be0 var(--f), #e2552e var(--f)); }
.yaxis { display: flex; justify-content: space-between; font-size: 0.56rem; color: #8a8a92; margin-top: 0.25rem; }
.legend { margin-top: 0.35rem; font-size: 0.6rem; color: #6e6e76; display: flex; align-items: center; gap: 0.3rem; }
.legend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.legend i.all { background: #e2552e; }
.legend i.feat { background: #3b6be0; margin-left: 0.5rem; }
.wk { display: grid; grid-template-columns: 1.8rem 1fr 1.6rem; gap: 0.35rem 0.5rem; align-items: center; font-size: 0.64rem; }
.wk b { height: 7px; border-radius: 4px; background: linear-gradient(to right, #e2552e var(--w), #f0f0f2 var(--w)); }
.wk em { font-style: normal; font-weight: 600; text-align: right; }

/* plain Markdown, rendered in Caipi's default page style */
.plain .body { background: #fafafa; font-size: 0.74rem; line-height: 1.6; color: #27272a; padding: 1.1rem 1.3rem 1.3rem; }
.plain h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.4rem; }
.plain h4 { font-size: 0.82rem; font-weight: 600; margin: 0.95rem 0 0.3rem; }
.plain ol { padding-left: 1.1rem; }
.plain li { margin: 0.2rem 0; }
.plain mark { background: color-mix(in srgb, var(--accent) 22%, #fff); color: inherit; border-radius: 3px; padding: 0 0.15rem; }

/* shared page with its own look: azulejo blue */
.lisboa { background: #f7f2e8; }
.lisboa .addr { background: #ede5d6; color: #6b6150; }
.hero-tile { margin: 0 0.9rem; border-radius: 14px; padding: 1.5rem 1rem 1rem; color: #fff; background-color: #1d4f91;
  background-image: radial-gradient(circle at 50% 50%, transparent 38%, rgba(255,255,255,0.16) 39%, rgba(255,255,255,0.16) 44%, transparent 45%),
    linear-gradient(45deg, transparent 46%, rgba(255,255,255,0.12) 47%, rgba(255,255,255,0.12) 53%, transparent 54%),
    linear-gradient(-45deg, transparent 46%, rgba(255,255,255,0.12) 47%, rgba(255,255,255,0.12) 53%, transparent 54%);
  background-size: 26px 26px; }
.hero-tile p { font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.hero-tile h3 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.1rem; letter-spacing: -0.01em; line-height: 1.05; margin-top: 0.2rem; }
.lisboa .body { padding-top: 0.6rem; }
.lisboa .day { border-color: #e7dfcf; }
.lisboa .day b { color: #1d4f91; }
.lisboa .day.moved { background: #e6edf7; }
.lisboa .tag { display: inline-block; font-size: 0.58rem; padding: 0.05rem 0.45rem; border-radius: 99px; background: #1d4f91; color: #fff; margin-left: 0.2rem; }
.lisboa .sect { color: #8b7f6a; }
.lisboa .list div { border-color: #e7dfcf; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.steps li { list-style: none; }

/* step illustrations: small scenes on the hero's dot grid, deliberately
   unlike the solid cards in the next section */
.ill { position: relative; height: 10rem; margin-bottom: 1.4rem; border: 1px dashed var(--line); border-radius: var(--round); overflow: hidden;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 11%, transparent) 1px, transparent 1.2px); background-size: 16px 16px; }
.ill-connect { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 0 1.1rem; }
.ill-connect .apps { display: flex; flex-direction: column; gap: 0.7rem; }
.ill-connect .apps span { font-size: 0.66rem; padding: 0.3rem 0.65rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--dim); text-align: center; }
.ill-connect .wires { width: 100%; height: 6.4rem; }
.ill-connect .wires path { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -14; } }
.ill-connect .hub { font-family: var(--serif); font-size: 1.35rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.6rem 0.9rem 0.5rem; box-shadow: var(--lift); text-align: center; line-height: 1.1; }
.ill-connect .hub small { display: flex; align-items: center; gap: 0.3rem; font-family: var(--mono); font-size: 0.56rem; color: var(--dim); margin-top: 0.25rem; }
.ill-connect .hub small::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.ill-ask { display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; padding: 0 1.2rem; }
.ill-ask .say { align-self: flex-end; background: var(--ink); color: var(--bg); font-family: var(--sans); font-size: 0.74rem; padding: 0.45rem 0.75rem; border-radius: 12px 12px 3px 12px; margin-bottom: 0.3rem; }
.ill-ask .tool { display: flex; align-items: center; gap: 0.45rem; font-size: 0.62rem; color: var(--dim); }
.ill-ask .tool i { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); flex: none; }
.ill-ask .tool b { color: var(--ink); font-weight: 500; }
.ill-ask .typing { display: flex; gap: 3px; margin-top: 0.2rem; }
.ill-ask .typing span { width: 5px; height: 5px; border-radius: 50%; background: var(--dimmer); animation: blink 1.2s ease-in-out infinite; }
.ill-ask .typing span:nth-child(2) { animation-delay: 0.2s; }
.ill-ask .typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.ill-stays .sheet { position: absolute; left: 50%; top: 50%; width: 15rem; height: 6.6rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.ill-stays .s3 { transform: translate(-50%, -50%) translate(14px, -16px) rotate(4deg); opacity: 0.5; }
.ill-stays .s2 { transform: translate(-50%, -50%) translate(7px, -8px) rotate(2deg); opacity: 0.8; }
.ill-stays .s1 { transform: translate(-50%, -50%); box-shadow: var(--lift); padding: 0.75rem 0.9rem; display: flex; flex-direction: column; gap: 0.28rem; font-size: 0.62rem; color: var(--dim); }
.ill-stays .s1 b { font-weight: 500; color: var(--ink); font-size: 0.72rem; margin-bottom: 0.15rem; }
.ill-stays .s1 span::before { content: "\2022\00a0"; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .ill-connect .wires path, .ill-ask .typing span { animation: none; } }
.steps .n { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid var(--line); border-radius: 8px; font-size: 0.72rem; color: var(--ink); background: var(--surface); }
.steps h3 { font-family: var(--sans); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; margin: 1rem 0 0.45rem; }
.steps p { font-family: var(--sans); color: var(--dim); font-size: 0.94rem; line-height: 1.65; }

/* ---------- notes, data, apps ---------- */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem; }
.part { border: 1px solid var(--line); background: var(--bg); border-radius: var(--round); padding: clamp(1.3rem, 2.5vw, 1.8rem); display: flex; flex-direction: column; }
.part .kind { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dimmer); }
.part h3 { font-family: var(--sans); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.025em; line-height: 1.2; margin: 0.7rem 0 0.3rem; }
.part .think { font-family: var(--serif); font-style: italic; color: var(--dim); font-size: 1.05rem; margin-bottom: 0.9rem; }
.part p.copy { font-family: var(--sans); color: var(--dim); font-size: 0.9rem; line-height: 1.65; }
.part .vis { margin-top: auto; padding-top: 1.5rem; }
.mini { border: 1px solid var(--line); border-radius: 10px; padding: 0.8rem 0.95rem; font-size: 0.72rem; color: var(--dim); background: var(--surface); }
.mini-tree { line-height: 1.95; }
.mini-tree .in { padding-left: 1.1rem; }
.mini-tree b { color: var(--ink); font-weight: 500; }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { text-align: left; font-weight: 500; color: var(--dimmer); font-size: 0.64rem; padding: 0 0 0.35rem; }
.mini-table td { padding: 0.3rem 0; border-top: 1px solid var(--line); color: var(--dim); }
.mini-table td:first-child { color: var(--ink); }
.habit-head { display: flex; justify-content: space-between; margin-bottom: 0.55rem; }
.habit-head b { color: var(--ink); font-weight: 500; }
.habit-head span { color: var(--accent); }
.habit-days, .habit-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
.habit-days span { text-align: center; font-size: 0.6rem; color: var(--dimmer); padding-bottom: 0.25rem; }
.habit-grid i { height: 1.05rem; border-radius: 4px; background: color-mix(in srgb, var(--ink) 8%, transparent); }
.habit-grid .l1 { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.habit-grid .l2 { background: color-mix(in srgb, var(--accent) 65%, transparent); }
.habit-grid .l3 { background: var(--accent); }
.bridge { margin-top: 1.6rem; text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--dim); }

/* ---------- examples grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3rem; }
.card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--round); padding: 1.3rem 1.35rem; display: flex; flex-direction: column; gap: 0.75rem; transition: border-color 0.2s, transform 0.2s; }
a.card { color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--dimmer); transform: translateY(-2px); }
a.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.card .see { margin-top: auto; padding-top: 0.2rem; font-size: 0.74rem; color: var(--dim); transition: color 0.2s; }
a.card:hover .see, a.card:focus-visible .see { color: var(--ink); }
.card .kind { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dimmer); }
.card q { font-family: var(--sans); font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.45; color: var(--ink); quotes: "\201C" "\201D"; }
.card p { font-family: var(--sans); color: var(--dim); font-size: 0.86rem; line-height: 1.55; }

/* ---------- ownership: a staircase, bottom left to top right ---------- */
.stairs { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; align-items: end; height: 26rem; margin-top: 3rem; }
.stairs li { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--round); padding: 1.35rem 1.35rem 1.5rem; background: color-mix(in srgb, var(--accent) var(--mix), var(--surface)); }
.stairs li:nth-child(1) { height: 46%; --mix: 3%; }
.stairs li:nth-child(2) { height: 64%; --mix: 6%; }
.stairs li:nth-child(3) { height: 82%; --mix: 9%; }
.stairs li:nth-child(4) { --mix: 13%; }
.stairs .n { font-size: 0.68rem; color: var(--dimmer); letter-spacing: 0.08em; }
.stairs h3 { font-family: var(--sans); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; margin: 0.7rem 0 0.45rem; }
.stairs p { font-family: var(--sans); color: var(--dim); font-size: 0.9rem; line-height: 1.6; }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq-head .intro { font-size: 0.95rem; }
.faq { max-width: 46rem; }
.faq details { border-top: 1px solid var(--line); padding: 0.95rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--dim); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { font-family: var(--sans); color: var(--dim); font-size: 0.94rem; line-height: 1.7; margin-top: 0.7rem; max-width: 42rem; }

/* ---------- closing ---------- */
.closing .reserve { max-width: 34rem; margin: 2.2rem 0 0; }
.hero-reserve { max-width: 31rem; margin: 2.1rem 0 0; }
/* landing claim field: one rounded pill holding host, input and button */
.urlfield.claimfield {
  gap: 0.2rem; padding: 0.35rem 0.35rem 0.35rem 1.2rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 10px 28px -16px rgba(0, 0, 0, 0.35);
  transition: border-color .2s, box-shadow .2s;
}
.urlfield.claimfield:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent), 0 10px 28px -16px rgba(0, 0, 0, 0.35);
}
.urlfield.claimfield .host { color: var(--dim); }
.urlfield.claimfield .btn { border-radius: 999px; padding: 0.7rem 1.15rem; font-weight: 600; }
.fine { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; list-style: none; padding: 0; margin: 1.1rem 0 0; font-size: 0.8rem; color: var(--dim); }
.fine li { white-space: nowrap; }
.fine li::before { content: "\2713"; color: var(--accent); font-weight: 700; margin-right: 0.4rem; }
.closing .demo, .pitch .demo { margin-top: 1.1rem; font-size: 0.76rem; }
.closing .demo .link, .pitch .demo .link { color: var(--dim); border-bottom-color: var(--line); }
.closing .demo .link:hover, .pitch .demo .link:hover { color: var(--ink); border-bottom-color: var(--accent); }

.closing h2 { margin-bottom: 2rem; }

/* closing + footer sit on an ink panel. The panel re-scopes the colour tokens
   so every child adapts; the pinned bar and section dots take the same tokens
   while they sit over it. Light: the page ink. Dark: a lifted warm panel. */
#start, .bar.on-ink, .dots.on-ink {
  --bg: #171715;
  --ink: #edece8;
  --dim: #9c9a93;
  --dimmer: #6e6c66;
  --line: #2f2e2b;
  --surface: #22211f;
  --soft: #2a2926;
  --tint: #1d1c1a;
  --accent: #8dc63f;
}
#start { background: var(--bg); color: var(--ink); border-top: 1px solid var(--line); }
:root[data-theme="light"] :is(#start, .bar.on-ink, .dots.on-ink) { --bg: #1b1b19; --line: #353430; }
:root[data-theme="light"] #start { border-top-color: transparent; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) :is(#start, .bar.on-ink, .dots.on-ink) { --bg: #1b1b19; --line: #353430; }
  :root:not([data-theme]) #start { border-top-color: transparent; }
}
#start .urlfield.claimfield { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 10px 28px -16px rgba(0, 0, 0, 0.6); }
#start .urlfield.claimfield:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
#start .urlfield.claimfield input { color: var(--ink); }
#start .urlfield.claimfield input::placeholder { color: var(--dimmer); opacity: 1; }
#start .foot { border-top-color: var(--line); }
/* over the panel the paper above would blur through the glass, so go solid */
.bar.scrolled.on-ink { background: var(--bg); }

/* ---------- full-screen sections ----------
   On screens big enough to hold a whole section, the page snaps one screen
   at a time, like a deck. Smaller screens scroll normally. */
.dots { position: fixed; right: 1.4rem; top: 50%; transform: translateY(-50%); display: none; flex-direction: column; gap: 0.75rem; z-index: 5; }
.dots a { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--dimmer); transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.dots a:hover { border-color: var(--dim); }
.dots a.active { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
@media (min-width: 1280px) and (min-height: 720px) {
  html { scroll-snap-type: y mandatory; }
  .snap { min-height: calc(100vh - var(--bar-h)); min-height: calc(100dvh - var(--bar-h)); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: center; }
  .snap.band { padding-block: clamp(1.5rem, calc(10dvh - 3rem), 3.5rem); }
  .snap > .wrap { width: 100%; }
  .pitch-top.snap { justify-content: flex-start; min-height: 100vh; min-height: 100dvh; }
  .pitch-top.snap .pitch { flex: 1; padding-block: 0.5rem; }
  .pitch-top .tabs { margin-bottom: 0.75rem; }
  .pitch-top .example { row-gap: 0.75rem; }
  .pitch-top .screen { min-height: min(33rem, calc(100dvh - 17rem)); }
  #workspace.snap.band { padding-block: 1rem; }
  #workspace .eyebrow { margin-bottom: 0.75rem; }
  #workspace .trio { margin-top: 1rem; }
  #workspace .part { padding: 1.25rem; }
  #workspace .part .vis { padding-top: 1rem; }
  #workspace .bridge { margin-top: 0.75rem; }
  .snap.last .closing { flex: 1; display: flex; align-items: center; }
  .dots { display: flex; }
}

/* ---------- responsive ---------- */
@media (max-width: 1240px) and (min-width: 1081px) {
  .pitch { grid-template-columns: minmax(0, 1fr) minmax(0, 38rem); }
}

@media (max-width: 1080px) {
  .pitch { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 40rem; }
  .trio { grid-template-columns: 1fr; }
  .stairs { grid-template-columns: 1fr 1fr; height: auto; align-items: stretch; }
  .stairs li { height: auto !important; }
  .faq-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  :root { --bar-h: 3.8rem; }
  .bar .topbar { gap: 1rem; }
  .topbar .claim:not(.on) { margin-left: -1rem; }
  .urlfield.claimfield { padding-left: 1rem; }
  .urlfield.lg.claimfield .host, .urlfield.lg.claimfield input { font-size: 1rem; }
  .urlfield.claimfield .btn { padding: 0.65rem 0.9rem; }
  .example { grid-template-columns: 1fr; grid-template-areas: "device" "thread" "cap"; }
  .example[hidden] { display: none; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter, 1.25rem)); padding-inline: var(--gutter, 1.25rem); padding-block: 4px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; min-height: 2.75rem; padding-inline: 0.95rem; }
  .example .device { justify-self: center; }
  .steps, .grid, .stairs { grid-template-columns: 1fr; }
  /* example cards become one sideways row on phones */
  .grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter, 1.25rem)); padding: 4px var(--gutter, 1.25rem); scroll-padding-inline: var(--gutter, 1.25rem); }
  .grid::-webkit-scrollbar { display: none; }
  .grid .card { flex: 0 0 82%; scroll-snap-align: start; }
  .window { max-width: none; }
}
