/* Graphley site. The "Tide table" direction: a calm sea-glass ground, harbor-blue ink,
   a sturdy grotesk for headings and mono figures that line up, one color per site.
   Same structure as the other Protomota app sites. The page's own motif is the tide
   chart: faint ruled lines behind the hero, a working dashboard in it, and a status
   bar at the foot. The site follows the system appearance; the preview has its own toggle. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #e6edeb;
  --bg-2: #dde6e3;
  --surface: #f7faf9;
  --surface-2: #edf3f1;
  --sunk: #dae4e1;
  --line: #c3d2ce;
  --line-2: #a9bdb8;
  --ink: #0e2830;
  --ink-2: #2f4c52;
  --muted: #557070;
  --accent: #1d6e8a;
  --accent-strong: #175a71;
  --accent-ink: #ffffff;
  --up: #2b7a57;
  --down: #b0503a;
  --s1: #1d6e8a; --s2: #3ba49c; --s3: #c9853a; --s4: #7a6cb0; --s5: #c2566b;
  --shadow: 0 1px 0 rgb(14 40 48 / .06), 0 24px 50px -24px rgb(14 40 48 / .34);
  --display: "Bricolage Grotesque", "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  /* Names the shared Protomota block expects from its host site. */
  --paper: var(--ink);
  --signal: var(--accent);
  --rule: var(--line);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1b21;
    --bg-2: #0e2027;
    --surface: #11252c;
    --surface-2: #163039;
    --sunk: #0a171c;
    --line: #21404a;
    --line-2: #2f5561;
    --ink: #e2eeec;
    --ink-2: #b4c8c7;
    --muted: #88a2a2;
    --accent: #5db6d2;
    --accent-strong: #84cae0;
    --accent-ink: #06161b;
    --up: #5cc594;
    --down: #e58a72;
    --s1: #5db6d2; --s2: #59c9bf; --s3: #e3a45a; --s4: #a79ae0; --s5: #e57f93;
    --shadow: 0 24px 50px -24px rgb(0 0 0 / .7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: .22em; }
a:hover { color: var(--ink); }
button { font: inherit; color: inherit; }
:is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
code { font: .88em/1.5 var(--mono); padding: .08em .38em; border-radius: 5px; background: var(--sunk); color: var(--ink); overflow-wrap: anywhere; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nowrap { white-space: nowrap; }

.shell { width: min(1160px, 100% - 48px); margin-inline: auto; }
.skip { position: fixed; z-index: 100; inset: 8px auto auto 8px; padding: 8px 16px; background: var(--surface); color: var(--ink); border-radius: 8px; transform: translateY(-200%); }
.skip:focus { transform: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 1.3rem/1 var(--display); letter-spacing: -.03em; }
.wordmark img { width: 30px; height: 30px; display: block; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 28px); }
.nav nav a { color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; transition: color .15s; }
.nav nav a:hover, .nav nav a[aria-current="page"] { color: var(--accent); }
.nav nav a.nav-cta { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border: 1px solid transparent; border-radius: 8px; background: var(--accent); color: var(--accent-ink); }
.nav nav a.nav-cta:hover { background: var(--accent-strong); color: var(--accent-ink); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 650; font-size: .95rem; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.button:hover { background: var(--accent-strong); color: var(--accent-ink); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line-2); }
.button.secondary:hover { background: var(--surface); border-color: var(--accent); color: var(--ink); }
.button svg { flex-shrink: 0; }

/* Eyebrows and headings. Each eyebrow opens with a small tide line. */
.mark { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; font: 500 .8rem/1.4 var(--mono); letter-spacing: .02em; color: var(--accent); }
.mark::before {
  content: ""; width: 22px; height: 12px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M1 9c3 0 4-4 7-4s3 4 6 3 3-6 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 12'%3E%3Cpath d='M1 9c3 0 4-4 7-4s3 4 6 3 3-6 7-7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 em, h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 20px; max-width: 58ch; font-size: 1.12rem; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.lead strong { color: var(--ink); font-weight: 600; }
.section { padding-block: clamp(72px, 10vw, 128px); }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 5vw, 56px); }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* Hero */
.hero { position: relative; padding-block: clamp(56px, 8vw, 96px) 0; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 720px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    repeating-linear-gradient(to bottom, transparent 0 47px, color-mix(in srgb, var(--accent) 12%, transparent) 47px 48px);
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent);
  mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 26px; padding: 6px 14px;
  border: 1px solid var(--line-2); border-radius: 999px; background: color-mix(in srgb, var(--surface) 75%, transparent);
  font: 500 .75rem/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--up); }
.hero h1 { font-size: clamp(2.8rem, 8vw, 6.1rem); max-width: 13ch; margin-inline: auto; }
.hero .lead { margin-inline: auto; max-width: 58ch; font-size: clamp(1.05rem, 1.7vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.actions-left { justify-content: flex-start; }
.fineprint { margin-top: 18px; font: .78rem/1.5 var(--mono); color: var(--muted); }

/* The working preview: the Graphley Mac window with sample data. It carries its own
   light and dark tokens so the Appearance toggle works whatever the site theme is. */
.stage { position: relative; margin-top: clamp(40px, 6vw, 68px); }
.stage::before {
  content: ""; position: absolute; inset: 10% 8% 6%; z-index: -1; border-radius: 40px;
  background: color-mix(in srgb, var(--accent) 22%, transparent); filter: blur(80px);
}
.gw {
  --w-bg: #f7faf9; --w-side: #edf3f1; --w-sunk: #dae4e1; --w-ink: #0e2830; --w-muted: #557070; --w-line: #c3d2ce;
  --w-accent: #1d6e8a; --w-accent-ink: #fff; --w-up: #2b7a57; --w-down: #b0503a;
  --k1: #1d6e8a; --k2: #3ba49c; --k3: #c9853a; --k4: #7a6cb0; --k5: #c2566b; --w-fill: .14;
  color-scheme: light;
  display: grid; grid-template-rows: auto 1fr;
  border: 1px solid var(--w-line); border-radius: 14px; overflow: hidden; text-align: left;
  background: var(--w-bg); color: var(--w-ink);
  box-shadow: var(--shadow);
  font: 13px/1.45 var(--sans);
  transition: background .25s, color .25s;
}
.gw[data-appearance="dark"] {
  --w-bg: #11252c; --w-side: #0e2027; --w-sunk: #0a171c; --w-ink: #e2eeec; --w-muted: #88a2a2; --w-line: #21404a;
  --w-accent: #5db6d2; --w-accent-ink: #06161b; --w-up: #5cc594; --w-down: #e58a72;
  --k1: #5db6d2; --k2: #59c9bf; --k3: #e3a45a; --k4: #a79ae0; --k5: #e57f93; --w-fill: .2;
  color-scheme: dark;
}
.gw-title { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 10px 14px; border-bottom: 1px solid var(--w-line); }
.gw-title b { font-weight: 650; font-size: 13px; }
.gw-title .grow { flex: 1; }
.lights { display: flex; gap: 7px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: block; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--w-line); border-radius: 999px; background: var(--w-sunk); }
.seg button { padding: 4px 11px; border: 0; border-radius: 999px; background: none; color: var(--w-muted); font: 500 12px/1.4 var(--mono); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--w-bg); color: var(--w-ink); box-shadow: 0 1px 2px rgb(0 0 0 / .14); }
.sync { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--w-muted); white-space: nowrap; }
.sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--w-up); }
.gw-body { display: grid; grid-template-columns: 208px minmax(0, 1fr); min-height: 480px; }
.gw-side { display: flex; flex-direction: column; gap: 2px; padding: 12px 8px; background: var(--w-side); border-right: 1px solid var(--w-line); }
.side-label { margin: 12px 10px 4px; font: 600 10.5px/1.4 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--w-muted); }
.side-label:first-child { margin-top: 2px; }
.site { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--w-ink); font-size: 13px; text-align: left; cursor: pointer; white-space: nowrap; }
.site:hover { background: var(--w-sunk); }
.site[aria-pressed="true"] { background: var(--w-accent); color: var(--w-accent-ink); }
.site .n { margin-left: auto; font: 11.5px/1 var(--mono); opacity: .75; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; }
.site[aria-pressed="true"] .dot { box-shadow: 0 0 0 1.5px var(--w-accent-ink); }
.gw .k1 { --k: var(--k1); } .gw .k2 { --k: var(--k2); } .gw .k3 { --k: var(--k3); } .gw .k4 { --k: var(--k4); } .gw .k5 { --k: var(--k5); }
.dot, .gw-legend i { background: var(--k); }
.gw-main { min-width: 0; padding: 20px 24px 18px; }
.gw-head h3 { font: 700 26px/1.05 var(--display); letter-spacing: -.02em; }
.gw-head p { margin-top: 4px; color: var(--w-muted); font-size: 12.5px; }
.gw-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.gw-kpi { min-width: 0; padding: 11px 13px; border-radius: 10px; background: var(--w-sunk); }
.gw-kpi .l { font-size: 11.5px; color: var(--w-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-kpi .v { margin-top: 2px; font: 700 26px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gw-kpi .d { min-height: 1.4em; font: 500 11.5px/1.4 var(--mono); color: var(--w-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-kpi .d.up { color: var(--w-up); }
.gw-kpi .d.down { color: var(--w-down); }
.gw-chart { margin-top: 12px; padding: 12px 14px 8px; border: 1px solid var(--w-line); border-radius: 10px; }
.gw-chart-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 14px; margin-bottom: 4px; }
.gw-chart-head b { font-weight: 650; font-size: 13px; }
.gw-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--w-muted); }
.gw-legend span { display: inline-flex; align-items: center; gap: 5px; transition: opacity .2s; }
.gw-legend i { width: 8px; height: 8px; border-radius: 2px; }
.gw-legend span.off { opacity: .35; }
.gw-readout { width: 100%; min-height: 1.4em; font: 11.5px/1.4 var(--mono); color: var(--w-muted); font-variant-numeric: tabular-nums; }
.gw-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.gw-chart .grid line { stroke: var(--w-line); stroke-width: 1; }
.gw-chart .grid line + line { stroke-dasharray: 2 3; }
.gw-chart .axis text { fill: var(--w-muted); font: 10.5px var(--mono); }
.gw-chart .area { fill: var(--k); opacity: var(--w-fill); stroke: none; transition: opacity .25s; }
.gw-chart .line { fill: none; stroke: var(--k); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: opacity .25s; }
.gw-chart .is-off { opacity: 0; }
.gw-chart svg.all .area { opacity: calc(var(--w-fill) * .5); }
.gw-chart .hover-line { stroke: var(--w-muted); stroke-width: 1; stroke-dasharray: 3 3; }
.gw-chart .hover-dot { fill: var(--w-bg); stroke: var(--w-ink); stroke-width: 1.5; }
.gw-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 12px; font-size: 11.5px; color: var(--w-muted); }
.gw-foot b { font-weight: 600; color: var(--w-ink); }

.stage-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 28px; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.chooser { display: inline-flex; align-items: center; gap: 8px; }
.chooser .opts { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.chooser button { padding: 4px 12px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font-size: .82rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.chooser button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(56px, 7vw, 88px); border-block: 1px solid var(--line); text-align: left; }
.facts div { padding: 28px 24px 28px 0; }
.facts div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.facts dt { font: 700 clamp(2.2rem, 4vw, 3rem)/1 var(--display); letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.facts dd { margin-top: 10px; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }

/* Bento cards */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.card { grid-column: span 2; display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); min-width: 0; }
.card.wide { grid-column: span 3; }
.card h3 { font: 650 1.18rem/1.25 var(--sans); letter-spacing: -.015em; }
.card p { color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.card .visual { margin-top: auto; padding-top: 16px; }
.mini { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); font: 12.5px/1.5 var(--mono); overflow: hidden; }
.mini-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; min-width: 0; }
.mini-row + .mini-row { border-top: 1px solid var(--line); }
.mini-row .lbl { width: 72px; flex-shrink: 0; color: var(--muted); }
.mini-row .val { min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
.mini-row .val b { font-weight: 500; color: var(--accent); }
.mini-row .end { margin-left: auto; flex-shrink: 0; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.chips li { padding: 4px 11px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); font: 12.5px/1.5 var(--mono); color: var(--ink-2); }

/* Split sections, ticks */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.ticks { list-style: none; padding: 0; margin-top: 28px; display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--ink-2); }
.ticks li::before { content: ""; width: 6px; height: 6px; margin: .62em auto 0; border-radius: 50%; background: var(--accent); }
.ticks strong { color: var(--ink); font-weight: 600; }

/* iPhone figure (sample data) */
.phone { justify-self: center; width: min(300px, 100%); }
.phone-frame { padding: 11px; border-radius: 46px; background: #0b1b21; box-shadow: 0 0 0 1px #2f5561, var(--shadow); }
.phone-screen { position: relative; min-height: 500px; padding: 48px 18px 22px; border-radius: 36px; background: var(--surface); color: var(--ink); }
.phone-screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; border-radius: 999px; background: #0b1b21; transform: translateX(-50%); }
.phone-screen h4 { font: 700 30px/1.05 var(--display); letter-spacing: -.03em; }
.phone-screen .sub { margin: 4px 0 16px; font-size: 12.5px; color: var(--muted); }
.phone-row { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.phone-row > i { width: 8px; height: 8px; border-radius: 50%; background: var(--k); }
.phone-row b { display: block; font-size: 14px; font-weight: 600; }
.phone-row small { display: block; font-size: 11.5px; color: var(--muted); }
.phone-row .num { display: grid; grid-template-columns: auto 56px; align-items: center; column-gap: 8px; text-align: right; font: 500 15px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.phone-row .num svg { grid-column: 2; grid-row: 1 / span 2; width: 56px; height: 20px; }
.phone-row .num svg path { fill: none; stroke: var(--k); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.phone-row em { font: 500 11px/1.3 var(--mono); font-style: normal; color: var(--up); }
.phone-row em.down { color: var(--down); }
.phone .k1 { --k: var(--s1); } .phone .k2 { --k: var(--s2); } .phone .k3 { --k: var(--s3); } .phone .k4 { --k: var(--s4); }
.phone figcaption { margin-top: 14px; text-align: center; font: .75rem/1.4 var(--mono); color: var(--muted); }

/* Agent session */
.agent { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.clients { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.clients a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .92rem; font-weight: 550; text-decoration: none; }
.clients a:hover { border-color: var(--accent); color: var(--accent); }
.clients svg { color: var(--accent); }
.agent .actions { justify-content: flex-start; }
.session { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.session-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); font: 500 .78rem/1.4 var(--mono); color: var(--muted); }
.session-body { display: grid; gap: 14px; padding: 20px; }
.say { max-width: 46ch; padding: 11px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.5; }
.say.you { justify-self: end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.say.agent-says { background: var(--sunk); color: var(--ink); border-bottom-left-radius: 4px; }
.calls { list-style: none; padding: 0; display: grid; gap: 6px; }
.calls li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.calls li::before { content: ""; width: 14px; height: 14px; margin-top: 3px; border-radius: 50%; background: var(--up); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.7 5.8-4.4 4.6a.8.8 0 0 1-1.1 0L4.3 8.5a.8.8 0 1 1 1.1-1.1l1.3 1.3 3.9-4a.8.8 0 0 1 1.1 1.1Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.7 5.8-4.4 4.6a.8.8 0 0 1-1.1 0L4.3 8.5a.8.8 0 1 1 1.1-1.1l1.3 1.3 3.9-4a.8.8 0 0 1 1.1 1.1Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.calls li.blocked::before { background: var(--down); }
.calls b { display: block; font: 500 .84rem/1.4 var(--mono); color: var(--ink); }
.calls span { display: block; font-size: .84rem; color: var(--muted); }
.session[data-mode="write"] .only-read, .session[data-mode="read"] .only-write { display: none; }

/* Privacy trio */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); }
.trio h3 { display: flex; align-items: center; gap: 10px; font: 650 1.1rem/1.3 var(--sans); margin-bottom: 8px; }
.trio h3::before { content: ""; width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: var(--up); }
.trio p { color: var(--ink-2); font-size: .96rem; }

/* Download and install */
.install { align-items: start; }
.install .actions { justify-content: flex-start; }
.install-steps { list-style: none; padding: 0; display: grid; gap: 0; counter-reset: step; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.install-steps li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; padding: 20px 24px; color: var(--ink-2); }
.install-steps li + li { border-top: 1px solid var(--line); }
.install-steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); font: 500 .8rem var(--mono); color: var(--accent); }
.install-steps li > span, .install-steps li > div { padding-top: 2px; min-width: 0; }
.install-steps strong { color: var(--ink); font-weight: 600; }

/* Discord callout, just above the newsletter */
.discord-callout { display: flex; align-items: center; gap: 24px 32px; margin-bottom: 16px; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); scroll-margin-top: 90px; }
.discord-avatar { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgb(245 128 37 / .6), 0 0 22px rgb(245 128 37 / .38); }
.discord-copy { flex: 1; min-width: 0; }
.discord-callout h2 { margin: 0 0 10px; font: 650 1.75rem/1.15 var(--sans); letter-spacing: -.03em; }
.discord-callout p { margin: 0; max-width: 560px; color: var(--ink-2); }
.discord-callout .button { flex-shrink: 0; }
@media (max-width: 720px) { .discord-callout { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }

/* Newsletter and coffee, as on the other Protomota sites */
.about-protomota { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-bottom: clamp(40px, 6vw, 72px); }
.about-card { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.about-icon { display: block; color: var(--accent); }
.about-card h2 { margin: 20px 0 12px; font: 650 1.75rem/1.15 var(--sans); letter-spacing: -.03em; }
.about-card p { max-width: 440px; margin-bottom: 22px; color: var(--ink-2); }
.about-card p.about-note { margin: 20px 0 0; font-size: .8125rem; line-height: 1.6; color: var(--muted); }

.feedback-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.feedback-section h3 { margin: 0 0 6px; font: 650 1.1rem/1.3 var(--sans); }
.feedback-section p { margin: 0 0 14px; color: var(--ink-2); font-size: .92rem; }
.download-support .feedback-section .button { margin-top: 0; }

/* Footer, with the app's status bar underneath */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-block: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer-credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding-block: 0 28px; font: .75rem/1.4 var(--mono); color: var(--muted); }
.footer .product-credit, .footer-credit .product-credit { display: inline-flex; align-items: center; flex-shrink: 0; gap: 10px; padding: 9px 16px 9px 10px; border: 1px solid #1d2230; border-radius: 999px; background: #000; color: #fff; font: 600 13.5px/1.4 var(--sans); white-space: nowrap; text-decoration: none; transition: transform .15s; }
:is(.footer, .footer-credit) .product-credit:hover { color: #fff; transform: translateY(-1px); }
.product-credit img { display: block; flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.statusbar { border-top: 1px solid var(--line); background: var(--bg-2); font: .72rem/1 var(--mono); color: var(--muted); }
.statusbar .shell { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; padding-block: 10px; }
.statusbar .grow { flex: 1; }
.statusbar i { display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--up); vertical-align: 1px; }

/* Inner pages: page head, docs layout, tables */
.page-head { padding-block: clamp(48px, 7vw, 88px) clamp(28px, 4vw, 44px); }
.page-head h1 { font-size: clamp(2.5rem, 5.6vw, 4.2rem); max-width: 18ch; }
.doc { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
.doc.single { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 92px; display: grid; gap: 4px; font-size: .9rem; }
.toc strong { margin-bottom: 6px; font: 500 .75rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.toc a { padding: 3px 0; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.prose { min-width: 0; max-width: 760px; }
.prose section { padding-block: 8px 28px; scroll-margin-top: 92px; }
.prose section + section { border-top: 1px solid var(--line); padding-top: 28px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; }
.prose h3 { margin: 22px 0 6px; font: 650 1.08rem/1.35 var(--sans); }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p, .prose ul + p, .prose .table-wrap + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.note { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; background: var(--surface); }
.prompt { margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font: .86rem/1.6 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tide-table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.5; }
.tide-table th, .tide-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tide-table thead th { font: 500 .74rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
.tide-table td { color: var(--ink-2); }
.tide-table td:first-child { color: var(--ink); font-weight: 550; }
.tide-table tbody tr:last-child > * { border-bottom: 0; }
.tide-table code { background: none; padding: 0; overflow-wrap: anywhere; }
.status { display: inline-flex; align-items: center; gap: 6px; font: 500 .78rem/1.4 var(--mono); color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.status.now { color: var(--up); }
.status.now::before { background: var(--up); }

/* Download page. As on the other Protomota app sites, the support card and the
   download sit side by side: support card on the left, download on the right. On narrow
   screens they stack: title, support card, download. */
.download-intro {
  display: grid; grid-template-columns: minmax(0, 432px) minmax(0, 1fr);
  grid-template-areas: "card head" "card get";
  column-gap: clamp(40px, 6vw, 88px); align-items: center;
  max-width: 1040px; padding-block: clamp(56px, 8vw, 104px) clamp(48px, 7vw, 88px);
  text-align: left;
}
.download-head { grid-area: head; align-self: end; }
.download-intro h1 { max-width: 16ch; margin-inline: 0; font-size: clamp(2.7rem, 5.6vw, 4.4rem); }
.download-intro .lead { margin-inline: 0; max-width: 36ch; text-wrap: balance; }
.download-get { grid-area: get; align-self: start; margin-top: 32px; }
.download-button {
  min-height: 62px; padding: 14px 32px; gap: 12px; border-radius: 14px;
  font-size: 1.14rem; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 14px 44px -12px color-mix(in srgb, var(--accent) 60%, transparent);
}
.download-button svg { margin-top: -3px; }
.download-get .fineprint + .fineprint { margin-top: 4px; }
.download-support {
  grid-area: card; position: relative; overflow: hidden;
  padding: 30px 30px 28px;
  border: 1px solid var(--line-2); border-radius: 20px;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%), var(--surface);
  box-shadow: var(--shadow);
}
.download-support::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: linear-gradient(to right, var(--accent), transparent 85%); opacity: .8; }
.support-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--accent); }
.download-support h2 { font: 650 1.6rem/1.15 var(--sans); letter-spacing: -.03em; text-wrap: initial; }
.download-support h2 span { display: block; color: var(--accent); }
.support-copy { margin-top: 12px; font-size: .95rem; line-height: 1.55; color: var(--ink-2); }
.download-support .button { min-height: 44px; margin-top: 20px; padding: 8px 20px; border-radius: 999px; font-size: .92rem; }
.support-note { margin-top: 14px; font-size: .9rem; line-height: 1.45; font-weight: 500; color: var(--ink); }
.download-guide { max-width: 1040px; padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--line); padding-bottom: clamp(40px, 6vw, 64px); }
.download-guide h2 { margin-bottom: 22px; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.download-guide .install-steps p { margin-block: 8px 0; }
.download-guide > p { max-width: 70ch; margin-top: 16px; color: var(--ink-2); }
.download-verification { margin: 20px 0 0; color: var(--ink-2); }
.download-verification summary { cursor: pointer; color: var(--ink); font-weight: 550; }
.download-verification p { margin-top: 10px; }
.download-verification code { display: inline-block; margin-top: 8px; overflow-wrap: anywhere; }

/* Missing page */
.missing-page { display: flex; min-height: 100svh; flex-direction: column; }
.missing-page main { flex: 1 0 auto; }
.missing-editor .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Share pill (2026-11-21), behavior in assets/protomota-share.js */
.pm-share-btn.gx-share { --pm-share-accent: var(--accent); --pm-share-line: color-mix(in srgb, var(--accent) 60%, transparent); --pm-share-glow: color-mix(in srgb, var(--accent) 18%, transparent); --pm-share-glow-hover: color-mix(in srgb, var(--accent) 34%, transparent); color: var(--ink); background: color-mix(in srgb, var(--surface) 70%, transparent); height: 46px; padding: 0 22px 0 18px; }

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card, .card.wide { grid-column: span 1; }
  .split, .agent { grid-template-columns: minmax(0, 1fr); }
  .gw-body { grid-template-columns: 172px minmax(0, 1fr); }
  .gw-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 16px; }
  .toc strong { width: 100%; margin-bottom: 0; }
}
@media (max-width: 900px) {
  .download-intro { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "card" "get"; max-width: 560px; padding-top: 36px; text-align: center; }
  .download-intro h1, .download-intro .lead { margin-inline: auto; }
  .download-intro .lead { margin-top: 14px; max-width: 56ch; }
  .download-support { margin-top: 24px; padding: 18px 18px 16px; border-radius: 16px; text-align: left; }
  .support-icon { display: none; }
  .download-support h2 { font-size: 1.1rem; line-height: 1.3; }
  .download-support h2 span { display: inline; }
  .support-copy { margin-top: 6px; font-size: .9rem; line-height: 1.5; }
  .download-support .button { width: 100%; min-height: 42px; margin-top: 14px; }
  .support-note { margin-top: 10px; text-align: center; font-size: .875rem; }
  .download-get { margin-top: 16px; }
  .download-button { width: 100%; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 32px); }
  .nav nav a.nav-hide { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div { padding: 22px 16px 22px 0; }
  .facts div + div { padding-left: 16px; }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .bento, .trio, .about-protomota { grid-template-columns: minmax(0, 1fr); }
  .about-card { padding: 24px 20px; }
  .install-steps li { padding: 18px; }
  /* The preview: the sidebar becomes a scrolling row of sites above the dashboard. */
  .gw-title { gap: 10px; padding: 9px 12px; }
  .gw-title b, .sync span { display: none; }
  .gw-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .gw-side { flex-direction: row; gap: 6px; padding: 10px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--w-line); scrollbar-width: none; }
  .gw-side::-webkit-scrollbar { display: none; }
  .side-label { display: none; }
  .site { width: auto; flex: none; border: 1px solid var(--w-line); border-radius: 999px; padding: 5px 11px; }
  .site .n { margin-left: 4px; }
  .gw-main { padding: 16px 14px 14px; }
  .gw-head h3 { font-size: 22px; }
  .gw-kpi .v { font-size: 22px; }
  .gw-chart { padding: 10px 10px 6px; }
  .gw-legend { display: none; }
  .phone-screen { min-height: 0; }
}
@media (max-width: 420px) {
  .nav nav a.nav-hide-sm { display: none; }
  .chooser #look-label { display: none; }
  .chooser button { padding: 4px 9px; }
  .seg button { padding: 4px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
.missing-hero { padding-bottom: clamp(48px, 7vw, 84px); }
.missing-hero h1 { max-width: 17ch; }
.missing-hero img { margin-inline: auto; margin-bottom: 23px; }

/* Consent banner colors for this site. assets/analytics.css stays as shared; these win by specificity. */
body .analytics-choice { --ga-bg: var(--surface); --ga-text: var(--ink); --ga-muted: var(--ink-2); --ga-line: var(--line-2); --ga-accent: var(--accent); --ga-accent-ink: var(--accent-ink); box-shadow: var(--shadow); }
.hero h1 em { display: block; }
.download-intro::before { display: none; }
