/* madal landing: one centered screen, monospace, lots of room. */
@import url("tokens.css");

/* The home page's older names for the shared tokens. */
:root {
  --faint: var(--border);
  --soft: var(--surface-2);
  --seal: var(--accent);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 14px/1.65 var(--mono); }
a { color: inherit; }
h1, h2 { text-wrap: balance; }

/* The first screen */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 48px 16px; text-align: center;
}
.word { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.word .m { color: var(--seal); }
.hint { margin: -10px 0 0; font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; transition: opacity 600ms ease; }
.hint.gone { opacity: 0; }
.field { position: absolute; inset: 0; pointer-events: none; }
/* The content sits in front of the ciphertext. Each line gets a blur that
   reaches past it and feathers out; neighbouring lines' blurs merge into one
   zone that follows the content's outline. Everywhere else stays sharp. */
.front {
  position: relative; z-index: 0; display: flex; flex-direction: column; align-items: center; gap: 22px;
  max-width: 100%; padding: 32px 36px;
}
/* The blurs sit in .front's own layer, behind every line and box in it. */
.front > * { position: relative; }
.front > ::before {
  content: ""; position: absolute; inset: -22px -56px; z-index: -1; pointer-events: none;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent),
    linear-gradient(transparent, #000 14px, #000 calc(100% - 14px), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 44px, #000 calc(100% - 44px), transparent),
    linear-gradient(transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-composite: intersect;
}
@media (width <= 40em) { .front { padding: 24px 12px; } }
.tagline { margin: 0; color: var(--fg); font-size: 15px; line-height: 1.7; }
/* Commas, not dots, and each name kept whole, so a narrow screen wraps it
   cleanly between names with no separator left at a line's end. */
.agents { margin: -12px 0 0; color: var(--muted); font-size: 12.5px; }
.agents span { white-space: nowrap; }
/* The hero's pointer to the Meetings section. */
.new { margin: -10px 0 0; font-size: 12.5px; }
.new a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; }
.new a:hover { text-decoration-color: var(--fg); }
.new a:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
/* Beta: a small pill after anything Meetings, like ui.css's .badge-accent.
   inline-flex keeps a link's underline off it. */
.beta {
  display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 999px;
  vertical-align: 0.15em; background: var(--accent-soft); color: var(--accent);
  font: 600 10px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
}
h2 .beta { margin-left: 4px; vertical-align: 0.3em; }

.cmd {
  display: flex; align-items: stretch; max-width: min(100%, 720px);
  border: 1px solid var(--faint); border-radius: 8px; background: var(--soft);
}
.cmd code {
  padding: 11px 14px; font-size: 13.5px; white-space: nowrap; overflow-x: auto; text-align: left;
  scrollbar-width: none;
}
.cmd code::-webkit-scrollbar { display: none; }
/* On a phone the whole command shows, wrapped, instead of scrolling out of sight. */
@media (width <= 40em) { .cmd code { white-space: pre-wrap; overflow-wrap: anywhere; } }
.copy {
  font: 13px var(--mono); color: var(--muted); background: transparent; cursor: pointer;
  border: 0; border-left: 1px solid var(--faint); padding: 0 16px; min-width: 64px;
}
.copy:hover { color: var(--fg); }
.copy:focus-visible, .platforms a:focus-visible, .links a:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }

/* The install box: the setup prompt first, then the agent tabs. Without JS
   the tablist stays hidden and every panel shows, each under its own name. */
.install-lead { margin: 0; font-size: 13px; color: var(--fg); }
/* The setup prompt is one button; its text folds away under "See the prompt",
   which also shows it to a visitor without JavaScript. */
.copy-prompt {
  font: 600 14px var(--mono); color: var(--bg); background: var(--fg); cursor: pointer;
  border: 0; border-radius: 8px; min-height: 44px; padding: 0 22px;
}
.copy-prompt:hover { opacity: .85; }
.copy-prompt:focus-visible, .see-prompt summary:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
.see-prompt { max-width: min(100%, 720px); }
.see-prompt summary { cursor: pointer; font-size: 12.5px; color: var(--muted); padding-block: 6px; }
.see-prompt summary:hover { color: var(--fg); }
.see-prompt .cmd { margin-top: 8px; }
.tabs, .panel { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; }
.panel[hidden], .tablist[hidden] { display: none; }
.tablist { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--faint); border-radius: 8px; background: var(--soft); }
.tablist button {
  font: 13px var(--mono); color: var(--muted); background: transparent; cursor: pointer;
  border: 0; border-radius: 6px; min-height: 36px; padding: 0 18px;
}
.tablist button:hover { color: var(--fg); }
.tablist button[aria-selected="true"] { background: var(--bg); color: var(--fg); box-shadow: 0 0 0 1px var(--faint); }
.tablist button:focus-visible, .copy-link:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
/* The plugin tab's agent picker: a row of agents that wraps on a wide screen
   and scrolls sideways on a phone. */
.tablist.wrap { flex-wrap: wrap; justify-content: center; max-width: 720px; }
.tablist.wrap button { min-height: 32px; padding: 0 12px; font-size: 12.5px; }
.agent-pick .panel { gap: 8px; }
/* A plugin command can be two commands long: it wraps rather than hiding its end. */
.agent-pick .cmd code { white-space: pre-wrap; overflow-wrap: anywhere; }
.panel-name { margin: 0; font-size: 12px; color: var(--muted); }
.tablist:not([hidden]) ~ .panel .panel-name { display: none; }
.aside { margin: 0; max-width: 520px; font-size: 12.5px; color: var(--muted); }
.copy-link { color: var(--fg); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; }
.copy-link:hover { text-decoration-color: var(--fg); }

.platforms { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.platforms a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--faint); border-radius: 8px; text-decoration: none; font-size: 13.5px;
}
.platforms a:hover { border-color: var(--muted); }
.platforms svg { width: 15px; height: 15px; fill: currentColor; }

/* The hero links are one line at every width: centred while they fit, a
   strip that scrolls sideways inside itself when they don't (phones). The
   auto margins centre them without hiding the first link when they scroll.
   The padding keeps focus outlines inside the scroller; scroll-padding
   matches it, or snapping scrolls the first link under the left fade. */
.links {
  display: flex; gap: 10px; max-width: 100%; padding: 4px 10px; overflow-x: auto; scrollbar-width: none;
  scroll-snap-type: x proximity; scroll-padding-inline: 10px; overscroll-behavior-x: contain; font-size: 13.5px; color: var(--muted);
  border-radius: 10px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
/* The links carry their own backing instead of the feathered blur: that
   blur reaches 56px past each side, and inside a scroller it would be
   scrolled to, so the links scrolled (and clipped) even when they fit. */
.links::before { content: none; }
.links::-webkit-scrollbar { display: none; }
.links > * { flex: none; white-space: nowrap; scroll-snap-align: start; }
.links > :first-child { margin-left: auto; }
.links > :last-child { margin-right: auto; }
.links a { text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 4px; color: var(--fg); }
.links a:hover { text-decoration-color: var(--fg); }

/* Strips (strip.js): fade whichever edge has more to scroll to, as in ui.css. */
.strip[data-more="end"] { mask-image: linear-gradient(to right, black calc(100% - 28px), transparent); }
.strip[data-more="start"] { mask-image: linear-gradient(to left, black calc(100% - 28px), transparent); }
.strip[data-more="both"] { mask-image: linear-gradient(to right, transparent, black 28px, black calc(100% - 28px), transparent); }
/* No dot separators where the links might scroll (phones) or only just fit
   (tablets): spacing alone. */
@media (width <= 64em) {
  .links { gap: 16px; }
  .links > span[aria-hidden] { display: none; }
}
@media (width <= 40em) {
  /* The install and agent tabs stay one row and scroll sideways. */
  .tablist, .tablist.wrap {
    flex-wrap: nowrap; justify-content: flex-start; max-width: 100%; overflow-x: auto; scrollbar-width: none;
    scroll-snap-type: x proximity; overscroll-behavior-x: contain;
  }
  .tablist::-webkit-scrollbar { display: none; }
  .tablist button { flex: none; white-space: nowrap; scroll-snap-align: start; }
}

/* Below the fold */
.how { max-width: 640px; margin: 0 auto; padding: 24px 16px 96px; }
.how h2 { font-size: 15px; font-weight: 700; margin: 0 0 18px; }
.term {
  margin: 0 0 24px; padding: 18px 20px; border: 1px solid var(--faint); border-radius: 8px;
  background: var(--soft); font-size: 13.5px; line-height: 1.8; overflow-x: auto;
}
.dim { color: var(--muted); }
.hash { color: var(--fg); font-weight: 700; }
.key { color: var(--seal); font-weight: 700; }
/* Meetings: madal for Mac, after the demo. The steps reuse
   Get started's numbered list; the screenshots are the real app and page. */
.how.meetings { max-width: 760px; padding-bottom: 64px; }
.meetings .kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.meetings .steps { margin-bottom: 32px; }
.meetings img { display: block; max-width: 100%; height: auto; }
.app-shots {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px;
  margin-top: 14px; padding: 24px 16px; border: 1px solid var(--faint); border-radius: 12px; background: var(--soft);
}
/* Step 4's meeting page: internal/meeting's own markup and styles, under a
   bar like the viewer's, so a visitor can switch tabs and tick next steps.
   meetingdemo.js does the ticking, in this browser only. Everything inside
   #meeting-demo first drops the home page's styles (.box, .tabs and .steps p
   mean other things here), then gets the template's. */
.mtg-view { margin-top: 14px; border: 1px solid var(--faint); border-radius: 12px; overflow: hidden; background: var(--bg); }
.mtg-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px;
  border-bottom: 1px solid var(--faint); background: var(--soft); font-size: 12.5px; color: var(--muted);
}
.mtg-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); font-weight: 600; }
.mtg-count { flex: none; padding: 2px 10px; border: 1px solid var(--faint); border-radius: 6px; background: var(--bg); }
#meeting-demo * { all: revert; }
/* The page's lists sit at the top level, not inside the step's <ol>. */
#meeting-demo ul { list-style-type: disc; }
#meeting-demo ul ul { list-style-type: circle; }
/* meeting-demo:start: generated from internal/meeting's template by web/meetingdemo_test.go (-update). */
#meeting-demo {
  --bg: light-dark(#ffffff, #131313);
  --surface-2: light-dark(#f2f2ef, #1a1a1a);
  --border: light-dark(#e6e6e1, #262626);
  --border-strong: light-dark(#d4d4cd, #353535);
  --fg: light-dark(#121212, #ededed);
  --fg-2: light-dark(#3d3d3a, #c8c8c8);
  --muted: light-dark(#73736d, #8e8e8e);
  --accent: light-dark(#e8411b, #ff6a3d);
  --warning: light-dark(#b45309, #f5a524);
  --info: light-dark(#3b5bdb, #8ea2ff);
  --shadow: 0 1px 2px light-dark(rgb(18 18 18 / 0.04), rgb(0 0 0 / 0.4));
  --radius: 10px; --radius-sm: 7px; --radius-xs: 5px;
  --mono: "Martian Mono", ui-monospace, Menlo, Consolas, monospace;
  --text-xs: 0.75rem; --text-sm: 0.8125rem; --text: 0.875rem; --text-xl: 1.25rem;
}
#meeting-demo * { box-sizing: border-box; }
#meeting-demo { margin: 0; background: var(--bg); color: var(--fg); font: var(--text-sm)/1.6 var(--mono); -webkit-font-smoothing: antialiased; }
#meeting-demo .main { max-width: 860px; margin: 0 auto; padding: 26px 30px 40px; }
#meeting-demo h4 { font-size: var(--text-xl); font-weight: 650; margin: 0 0 4px; line-height: 1.3; }
#meeting-demo h5 { font-size: var(--text); font-weight: 600; margin: 20px 0 6px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
#meeting-demo p, #meeting-demo ul { margin: 0 0 8px; }
#meeting-demo ul { padding-left: 20px; }
#meeting-demo .muted { color: var(--muted); }
#meeting-demo .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 14px; }
#meeting-demo .badge { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 999px; font: 500 var(--text-xs) var(--mono); white-space: nowrap; background: var(--surface-2); color: var(--fg-2); }
#meeting-demo .tabs > input { position: absolute; opacity: 0; pointer-events: none; }
#meeting-demo .tabbar { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); margin: 2px 0 14px; }
#meeting-demo .tabbar label { height: 26px; padding: 0 12px; border-radius: var(--radius-xs); color: var(--muted); font: 500 var(--text-xs)/26px var(--mono); cursor: pointer; }
#meeting-demo .tabbar label:hover { color: var(--fg); }
#meeting-demo .tabs > #tab-notes:checked ~ .tabbar .l-notes, #meeting-demo .tabs > #tab-tx:checked ~ .tabbar .l-tx { background: var(--bg); color: var(--fg); box-shadow: var(--shadow), inset 0 0 0 1px var(--border); }
#meeting-demo .tabs > input:focus-visible ~ .tabbar { outline: 2px solid var(--accent); outline-offset: 2px; }
#meeting-demo .pane { display: none; }
#meeting-demo .tabs > #tab-notes:checked ~ .p-notes, #meeting-demo .tabs > #tab-tx:checked ~ .p-tx { display: block; }
#meeting-demo .items { list-style: none; padding: 0; display: grid; gap: 6px; }
#meeting-demo .items li { display: flex; gap: 8px; align-items: baseline; }
#meeting-demo .box { width: 13px; height: 13px; border: 1.5px solid var(--border-strong); border-radius: 3px; flex: none; transform: translateY(2px); }
#meeting-demo .owner, #meeting-demo .due { color: var(--muted); font-size: var(--text-xs); }
#meeting-demo .turn { display: grid; grid-template-columns: 76px 64px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--border); }
#meeting-demo .turn .ts { color: var(--muted); font-size: var(--text-xs); padding-top: 1px; }
#meeting-demo .turn .who { font-weight: 600; font-size: var(--text-xs); padding-top: 1px; color: var(--info); }
#meeting-demo .turn .who.you { color: var(--accent); }
#meeting-demo .v2 h5 { text-transform: none; letter-spacing: 0; color: var(--fg); margin-top: 22px; }
#meeting-demo .v2 .tldr { color: var(--fg-2); margin: 4px 0 12px; }
#meeting-demo .v2 li { margin: 3px 0; }
#meeting-demo .v2 ul ul { margin: 3px 0 4px; padding-left: 18px; color: var(--fg-2); }
#meeting-demo .v2 .item { font-weight: 600; }
#meeting-demo .waiting { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 12px 14px; margin: 4px 0 16px; background: var(--surface-2); }
#meeting-demo .waiting b { color: var(--warning); }
/* meeting-demo:end */
/* The viewer's checkbox over each item's box (style.css .item-box), with a
   44px target on touch screens. */
#meeting-demo .box:has(.item-box) { border: 0; }
#meeting-demo .item-box {
  position: relative; display: grid; place-items: center; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--border-strong); border-radius: 3px; color: var(--accent-fg); font: inherit;
}
#meeting-demo .item-box::before { content: ""; position: absolute; inset: -8px; }
@media (pointer: coarse) {
  #meeting-demo .item-box::before { inset: -16px; }
  #meeting-demo .tabbar label { display: inline-block; height: 40px; line-height: 40px; }
}
#meeting-demo .item-box:hover { border-color: var(--success); }
#meeting-demo .item-box:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
#meeting-demo .item-box.checked { background: var(--success); border-color: var(--success); }
#meeting-demo .item-box.checked::after {
  content: ""; width: 100%; height: 100%; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* On a phone the page keeps less padding, and a transcript line puts its
   time and speaker over the text. */
@media (width <= 40em) {
  #meeting-demo .main { padding: 18px 16px 24px; }
  #meeting-demo .turn { grid-template-columns: auto minmax(0, 1fr); row-gap: 0; }
  #meeting-demo .turn > :last-child { grid-column: 1 / -1; }
}
.get-app { display: flex; flex-direction: column; gap: 10px; }
.get-app .cmd { max-width: 100%; }
.get-app .cmd code { flex: 1; min-width: 0; }
.get-app .aside { max-width: none; }
/* Download for Mac: the section's one filled button. */
.cta.mac { align-self: flex-start; background: var(--accent); border-color: var(--accent); color: var(--accent-fg); font-weight: 600; }
.cta.mac:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* Demo video */
.how.demo { max-width: 960px; padding-bottom: 32px; }
.film { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 1px solid var(--faint); border-radius: 12px; background: #0c0c0c; overflow: hidden; color: var(--muted); }
.film iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo .note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.demo .note a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
/* The player's controls show no focus ring; they have their own hover states. */
#demo-player button, #demo-player [role="button"], #demo-player input,
#demo-player button:focus-visible, #demo-player input:focus-visible { outline: none; }
/* Try it */
.try { padding-bottom: 32px; }
.lede { margin: -6px 0 22px; color: var(--muted); }
.step { display: flex; gap: 10px; align-items: baseline; margin: 20px 0 8px; font-size: 13px; color: var(--muted); }
.n { color: var(--seal); font-weight: 700; }
.box {
  display: block; width: 100%; margin: 0; padding: 12px 14px; border: 1px solid var(--faint); border-radius: 8px;
  background: var(--soft); color: var(--fg); font: 13px/1.6 var(--mono);
}
.try textarea { display: block; width: 100%; resize: vertical; padding: 12px 14px; border: 1px solid var(--faint); border-radius: 8px; background: var(--soft); color: var(--fg); font: 13.5px/1.6 var(--mono); }
.try textarea:focus, .try input:focus { outline: 2px solid var(--seal); outline-offset: 1px; }
.blob { white-space: pre-wrap; word-break: break-all; color: var(--muted); max-height: 9.6em; overflow: hidden; }
.try pre.box, .try a.box { white-space: pre-wrap; word-break: break-all; }
.try a.box { text-decoration: none; }
.try a.box:hover { border-color: var(--muted); }
.keyrow { display: flex; border: 1px solid var(--faint); border-radius: 8px; overflow: hidden; background: var(--soft); }
.keyrow .copy { white-space: nowrap; flex: none; }
.keyrow input { border: 0; border-radius: 0; color: var(--seal); font-weight: 700; min-width: 0; }
.out { white-space: pre-wrap; min-height: 3.2em; }
.out.bad { color: var(--seal); }

/* Get started */
/* minmax(0, 1fr): a grid column otherwise grows to its widest line, and the
   commands don't wrap, so on a phone the page went sideways. */
.steps { margin: 0 0 40px; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.steps li { counter-increment: step; min-width: 0; }
.steps h3 { margin: 0 0 10px; font-size: 14px; display: flex; gap: 10px; }
.steps h3::before { content: counter(step); color: var(--seal); }
.steps p { margin: 10px 0 0; color: var(--muted); }
.steps .term { margin: 0; white-space: pre; }
.steps code { color: var(--fg); }
.steps .cmd { max-width: 100%; }
.steps .cmd code { flex: 1; min-width: 0; }
.steps .tabs, .steps .panel { align-items: stretch; }
.steps .tablist { align-self: flex-start; }
.steps .panel p { margin: 0; }
.steps .panel .term { white-space: pre; }
/* The setup prompt is prose: it always wraps. */
.cmd.prompt code { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.6; }
/* On a phone the copy button goes under the prompt, so the prose gets the full width. */
@media (width <= 40em) {
  .cmd.prompt { flex-direction: column; }
  .cmd.prompt .copy { border-left: 0; border-top: 1px solid var(--faint); min-height: 44px; }
}
.you { color: var(--seal); }

.points { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: var(--muted); }
.points b { color: var(--fg); }

/* Touch screens: 16px in the try-it fields so iPhone Safari doesn't zoom in
   on a tap, and 44px install tabs, as in ui.css. */
@media (pointer: coarse) {
  .try textarea, .try input { font-size: 16px; }
  .tablist button, .tablist.wrap button { min-height: 44px; }
  .see-prompt summary { padding-block: 12px; }
  .links a { padding-block: 11px; }
}

@media (width <= 40em) {
  .term { padding: 14px 14px; font-size: 12px; }
  .how { padding-bottom: 64px; }
}

.foot {
  max-width: 640px; margin: 0 auto; padding: 24px 16px 40px; border-top: 1px solid var(--faint);
  text-align: center; font-size: 12.5px; color: var(--muted);
}
.foot p { margin: 0; }
.foot .fine { margin-top: 6px; font-size: 11.5px; opacity: 0.75; }
.foot a { color: inherit; text-decoration: none; }
.foot a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* Made with madal: the showcase pages, as cards with a thumbnail each. */
.how.gallery { max-width: 1080px; padding-bottom: 48px; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 0 0 14px; border: 1px solid var(--faint); border-radius: 12px; overflow: hidden; text-decoration: none; background: var(--bg); transition: border-color 150ms ease, transform 150ms ease; }
.card:hover, .card:focus-visible { border-color: var(--muted); transform: translateY(-2px); }
.card:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
.card .shot { display: block; aspect-ratio: 16 / 10; background: var(--soft); border-bottom: 1px solid var(--faint); margin-bottom: 10px; }
.card .shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card .area { padding: 0 14px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--seal); }
.card .title { padding: 0 14px; font-weight: 700; }
.card .desc { padding: 0 14px; font-size: 12.5px; color: var(--muted); flex: 1; }
.card .shared { margin: 6px 14px 0; align-self: flex-start; font: 11px var(--mono); color: var(--muted); background: var(--soft); border: 1px solid var(--faint); border-radius: 6px; padding: 2px 8px; }
/* One thumbnail per theme, following the same rules as the colours. */
.t-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .t-dark { display: block !important; }
  :root:not([data-theme="light"]) .t-light { display: none !important; }
}
:root[data-theme="dark"] .t-dark { display: block !important; }
:root[data-theme="dark"] .t-light { display: none !important; }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* Pricing: one card with a headline and two plans, side by side from 40em,
   stacked on phones. Each plan: name, price, who it's for, a soft button,
   then its list with check marks. */
.how.pricing { max-width: 880px; }
.price-card { padding: 28px 20px; border: 1px solid var(--faint); border-radius: 12px; background: var(--surface); }
.pricing .kicker { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.pricing .price-card h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.02em; margin: 0 0 10px; }
.pricing .sub { margin: 0 0 28px; font-size: 14px; color: var(--fg-2); text-wrap: pretty; }
.plans { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.plan { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
/* Side by side, the two plans share rows, so the prices, buttons and lists
   line up even when one plan's line wraps. Row 5 is Org's support line;
   Personal leaves it empty, and both lead-ins share row 6. */
@media (width >= 40em) {
  .price-card { padding: 40px; }
  .plans { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(7, auto); column-gap: 40px; }
  .plan { display: grid; grid-template-rows: subgrid; grid-row: span 7; row-gap: 10px; align-content: start; }
  .plan .incl { grid-row: 6; }
  .plan .feats { grid-row: 7; }
}
.plan h3 { margin: 0; font-size: 16px; }
.plan .price { margin: 0; color: var(--muted); font-size: 13px; }
.plan .price b { font-size: 28px; color: var(--fg); margin-right: 6px; letter-spacing: -0.02em; }
.plan .who { margin: 0 0 6px; font-size: 13px; color: var(--fg-2); }
.plan .incl { margin: 10px 0 0; font-size: 13px; font-weight: 700; }
.feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; font-size: 13px; }
/* The check is ui.js's "check" icon path, drawn in the text colour. */
.feats li { position: relative; padding-left: 26px; }
.feats li::before {
  content: ""; position: absolute; left: 0; top: 0.25em; width: 16px; height: 16px; background: var(--fg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.cta {
  display: inline-flex; align-items: center; justify-content: center; align-self: stretch; min-height: 44px; padding: 0 18px;
  border: 1px solid var(--faint); border-radius: 8px; text-decoration: none; font-size: 13.5px;
}
.cta:hover { border-color: var(--muted); }
/* Soft: a tinted fill and no outline, the same for both plans. */
.cta.soft { background: var(--faint); border-color: transparent; font-weight: 600; }
.cta.soft:hover { background: var(--border-strong); }
.cta:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
/* Sign in, pinned to the first screen's top right, clear of the notch. It
   has its own backing so the ciphertext behind it doesn't show through. */
.signin {
  position: absolute; z-index: 1; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right));
  background: var(--bg); color: var(--fg);
}
.pricing .note { margin: 16px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
/* Under the trial button: the trial terms, then the support address as text
   to copy, since a mail link does nothing on a computer without a mail app. */
.plan .support { margin: 0; font-size: 12.5px; color: var(--muted); }
.plan .support .addr { display: inline-flex; align-items: center; vertical-align: middle; white-space: nowrap; color: var(--fg); }
/* The copy button keeps to the text's line height, so the two short lines
   leave only a small gap under Personal's button. */
.plan .support .copy { font-size: inherit; border-left: 0; padding: 0 1px 0 8px; min-width: 0; min-height: 0; }
@media (pointer: coarse) { .plan .support .copy { min-height: 44px; } }
/* FAQ under the card: native <details>, so it works without JS. */
.pricing .faq { margin: 32px auto 0; max-width: 640px; border-top: 1px solid var(--faint); }
.pricing .faq details { border-bottom: 1px solid var(--faint); }
.pricing .faq summary { cursor: pointer; padding: 14px 0; font-size: 14px; font-weight: 600; list-style: none; display: flex; gap: 12px; }
.pricing .faq summary::-webkit-details-marker { display: none; }
.pricing .faq summary::before { content: "+"; width: 1ch; flex: none; color: var(--muted); }
.pricing .faq details[open] summary::before { content: "-"; }
.pricing .faq summary:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
.pricing .faq details p { margin: 0 0 16px; padding-left: calc(1ch + 12px); font-size: 13.5px; color: var(--fg-2); }

/* /install: every way to install by hand, one column on the same look. */
.install-page {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  max-width: 780px; margin: 0 auto; padding: 48px 16px 72px; text-align: center;
}
.install-page .word { font-size: 24px; text-decoration: none; }
.install-page h1 { margin: 0; font-size: 22px; }
.install-page h2 { margin: 18px 0 0; font-size: 15px; }
.install-page .install { gap: 14px; }
.install-page .install-lead { max-width: 560px; }
/* The two kinds of install, Claude Desktop and Coding agents, each in its own
   card so a visitor finds theirs at a glance; other chat apps are a footnote. */
.install-page .kind {
  display: flex; flex-direction: column; align-items: center; gap: 10px; width: 100%;
  padding: 22px 16px; border: 1px solid var(--faint); border-radius: 12px;
}
.install-page .kind h2 { margin: 0; }
.install-page .kind h3 { margin: 10px 0 0; font-size: 13px; }
.install-page .kind .cta.mac { align-self: center; }
.install-page #chat-apps { border: 0; padding-block: 0; }
.install-page #chat-apps h2 { font-size: 13px; }

/* The extension certificate fingerprint on /install: 64 hex characters, so let it wrap. */
.fingerprint { overflow-wrap: anywhere; }
