/* Muse Privacy landing page. Light, quiet and roomy, in the spirit of docs/UI_STYLE.md. Nothing here loads from another site. */

:root {
  --bg: #FAFAFA;
  --text: #111112;
  --text-2: #525F6E;
  --text-3: #676A71;
  --text-4: #8B8B8C;
  --muted: #9EA1A2;
  --blue: #2962D8;
  --blue-soft: #E3EBFB;
  --pill: #E3E6E9;
  --pill-hover: #D8DCE0;
  --panel: #F2F3F5;
  --card: #FFFFFF;
  --line: #E6E8EB;
  --term: #111112;
  --term-2: #121117;
  --term-text: #D9DCE1;
  --wait-soft: #FBEFD3;
  --wait: #E8A317;
  --danger: #D93025;
  --danger-soft: #FBE4E2;
  --font: "Optimistic Display", "Optimistic Text", Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: 72px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, figure, ol, pre { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 8px; }

.wrap { max-width: calc(1440px + 2 * var(--pad)); margin: 0 auto; padding-left: max(var(--pad), env(safe-area-inset-left, 0px)); padding-right: max(var(--pad), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--blue); color: #FFFFFF; padding: 8px 14px; border-radius: 999px; }
.skip:focus { top: 12px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgb(250 250 250 / 92%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.nav-row { display: flex; align-items: center; height: 64px; gap: 44px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 21px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; }
.brand svg { width: 28px; height: 28px; flex: none; }
.links { display: flex; align-items: center; gap: 36px; font-size: 16px; }
.links > a, .menu > summary { color: var(--text-3); cursor: pointer; transition: color 0.15s; }
.links > a:hover, .menu > summary:hover, .menu[open] > summary { color: var(--text); }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; gap: 9px; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.chev { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.menu[open] .chev { transform: rotate(180deg); }
.menu-panel { position: absolute; top: calc(100% + 16px); left: -14px; min-width: 270px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: 0 16px 40px rgb(17 17 18 / 10%); display: flex; flex-direction: column; }
.menu-panel a { padding: 9px 12px; border-radius: 10px; font-size: 15px; color: var(--text); }
.menu-panel a:hover { background: var(--panel); }
.nav-actions { margin-left: auto; display: flex; gap: 10px; }
.pill { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--pill); color: var(--text); font-size: 16px; font-weight: 500; white-space: nowrap; transition: background 0.15s; }
.pill:hover { background: var(--pill-hover); }

/* Hero */
.hero { padding-top: 104px; text-align: center; }
.hero h1 { font-size: clamp(42px, 5.6vw, 84px); line-height: 1.06; font-weight: 500; letter-spacing: -0.03em; }
.hero-sub { margin: 30px auto 0; max-width: 740px; font-size: clamp(18px, 1.75vw, 24px); line-height: 1.42; color: var(--text-2); }
.hero-cta { margin-top: 60px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--pill); color: var(--text); font-size: 17px; font-weight: 500; transition: background 0.15s; }
.btn:hover { background: var(--pill-hover); }
.btn.primary { background: var(--blue); color: #FFFFFF; }
.btn.primary:hover { background: #2357C4; }
.hero-note { margin: 24px auto 0; max-width: 640px; font-size: 14px; line-height: 1.5; color: var(--text-4); }

/* Install card */
.install {
  margin: 72px auto 0; max-width: 960px; min-height: 220px; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 36px; align-items: center;
  padding: 40px 30px 40px 48px; border-radius: 32px; border: 1px solid #EBEBEB;
  background: url("art/grain.svg"), linear-gradient(100deg, #F8F9FA 0%, #EEF1F6 42%, #D2DAE8 100%);
}
.install-copy h2 { font-size: 32px; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.install-copy p { margin-top: 14px; font-size: 19px; line-height: 1.5; }
.term-card { background: var(--term); color: #E8EAED; border-radius: 18px; padding: 16px 20px 20px; box-shadow: 0 14px 36px rgb(17 17 18 / 22%); min-width: 0; }
.term-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: #1D1E21; }
.term-tabs button { border: 0; background: transparent; color: #9AA0A6; font-size: 14.5px; font-weight: 500; padding: 5px 13px; border-radius: 7px; cursor: pointer; }
.term-tabs button[aria-selected="true"] { background: #34363B; color: #FFFFFF; }
.term-body { position: relative; margin-top: 16px; padding-right: 40px; }
.term-body pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.75; white-space: pre; overflow-x: auto; color: #E8EAED; scrollbar-width: none; }
.term-body pre::-webkit-scrollbar { display: none; }
.k { color: #C7A6FF; }
.op { color: #FF5C93; }
.c { color: #7E8794; }
.copy { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; color: #C9CDD2; cursor: pointer; display: grid; place-items: center; }
.copy:hover { background: #222327; }
.copy svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.copy.done { color: #75C09F; }

/* Sections */
.section { padding-top: 136px; }
.section h2 { font-size: clamp(32px, 3.3vw, 46px); line-height: 1.1; font-weight: 500; letter-spacing: -0.025em; }
.center { text-align: center; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.label { font-size: 15px; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 18px; }
.lede { margin-top: 18px; max-width: 780px; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.muted { color: var(--text-4); }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: var(--text-3); white-space: nowrap; }
.more:hover { color: var(--text); }
.more svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Round arrow buttons */
.arrows { display: flex; gap: 8px; }
.arrow { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #EFF0F2; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background 0.15s, opacity 0.15s; flex: none; }
.arrow:hover { background: #E3E5E8; }
.arrow:disabled { opacity: 0.4; cursor: default; }
.arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Model cards */
.cards { margin-top: 26px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cards::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.model { scroll-snap-align: start; background: var(--card); border: 1px solid #ECECEE; border-radius: 22px; padding: 9px 9px 26px; }
.model img { width: 100%; aspect-ratio: 660 / 360; object-fit: cover; border-radius: 14px; }
.model h3 { margin: 18px 14px 0; font-size: 20px; line-height: 1.3; font-weight: 400; }
.ver { color: var(--muted); }
.model p { margin: 8px 14px 0; font-size: 16px; line-height: 1.45; color: var(--text-4); }

/* Demo */
.demo { margin-top: 44px; display: grid; grid-template-columns: minmax(0, 1fr) 348px; grid-template-areas: "tabs ." "stage features"; column-gap: 32px; }
.tabs { grid-area: tabs; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-bottom: 1px solid #E3E5E8; overflow-x: auto; scrollbar-width: none; }
.tab { border: 0; background: transparent; padding: 0 10px 20px; font-size: 17px; color: var(--text-3); cursor: pointer; position: relative; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--blue); }
.tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 4px; border-radius: 2px; background: var(--blue); }
.stage { grid-area: stage; margin-top: 64px; background: var(--panel); min-height: 640px; padding: 64px 52px; display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.features { grid-area: features; margin-top: 42px; display: flex; flex-direction: column; gap: 14px; }

.screen { position: relative; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); height: 400px; border-radius: 6px; overflow: hidden; box-shadow: 0 12px 34px rgb(17 17 18 / 13%), 0 0 0 1px rgb(17 17 18 / 6%); }
.pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pane.muse { background: #FFFFFF; }
.bar { flex: none; height: 30px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #F4F5F7; border-bottom: 1px solid #E8EAED; }
.bar i { width: 9px; height: 9px; border-radius: 50%; background: #DADDE2; }
.bar span { margin-left: 10px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.chat, .term-lines { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 32px); mask-image: linear-gradient(to bottom, transparent 0, #000 32px); }
.chat { padding: 12px; gap: 8px; }
.msg { font-size: 12.5px; line-height: 1.5; overflow-wrap: anywhere; animation: rise 0.35s ease both; }
.msg.you { align-self: flex-end; max-width: 88%; background: var(--blue); color: #FFFFFF; padding: 8px 12px; border-radius: 14px 14px 4px 14px; }
.msg.you .tg { background: #FFFFFF; color: var(--blue); }
.msg.tool { font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.msg.result { font-family: var(--mono); font-size: 11px; line-height: 1.65; background: var(--panel); border-radius: 8px; padding: 8px 10px; color: var(--text); }
.msg.result.wait { background: var(--wait-soft); }
.msg.result.keep { background: var(--danger-soft); }
.empty { color: var(--muted); font-size: 12.5px; }
.tg { font-family: var(--mono); font-size: 0.95em; background: var(--blue-soft); color: var(--blue); border-radius: 4px; padding: 0 3px; white-space: nowrap; }
.nm { background: var(--danger-soft); color: var(--danger); border-radius: 4px; padding: 0 3px; white-space: nowrap; }
.ht { background: var(--wait-soft); color: var(--text); border-radius: 4px; padding: 0 3px; box-shadow: inset 0 0 0 1px var(--wait); }

.pane.term { background: var(--term-2); color: var(--term-text); font-family: var(--mono); font-size: 11.5px; line-height: 1.55; }
.term-head { flex: none; padding: 10px 14px 6px; font-weight: 700; color: #F1F3F5; }
.term-head span { font-weight: 400; color: #7E8794; margin-left: 6px; }
.term-lines { padding: 4px 14px 10px; gap: 3px; }
.tl { overflow-wrap: anywhere; animation: rise 0.3s ease both; }
.tl .b { display: inline-block; width: 1.4em; color: #9AA3B2; }
.tl.cmd { background: #2C3752; color: #FFFFFF; border-radius: 3px; padding: 3px 8px; margin: 5px 0 2px; }
.tl.cmd .b { color: #8FB0FF; }
.tl.dim { color: #7E8794; }
.tl.check, .tl.check .b { color: #7FD3A6; }
.tl.flag, .tl.flag .b { color: #F2C35B; }
.tl.send, .tl.send .b { color: #8FB4FF; }
.tl.route { font-weight: 700; }
.tl.r-ask, .tl.r-ask .b { color: #F2C35B; }
.tl.r-keep, .tl.r-keep .b { color: #FF8E86; }
.tl.r-tagged, .tl.r-tagged .b { color: #8FB4FF; }
.tl.r-summary, .tl.r-summary .b { color: #7FD3A6; }
.term .tg { background: rgb(76 141 255 / 20%); color: #9DBDFF; }
.term .nm { background: rgb(240 113 103 / 20%); color: #FF9F97; }
.term .ht { background: rgb(242 182 64 / 22%); color: #FFD27A; box-shadow: none; }
.ar { color: #7E8794; }
.status { flex: none; display: flex; justify-content: space-between; gap: 8px; padding: 2px 10px; font-size: 11px; color: #0E1116; background: #4A505C; transition: background 0.3s; white-space: nowrap; overflow: hidden; }
.status[data-light="idle"] { background: #4A505C; color: #D9DCE1; }
.status[data-light="ok"] { background: #75C09F; }
.status[data-light="wait"] { background: #F2B640; }
.status[data-light="send"] { background: #7FA6FF; }

.popup { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(300px, 82%); background: #FFFFFF; color: var(--text); border-radius: 10px; padding: 14px 16px; box-shadow: 0 18px 50px rgb(17 17 18 / 28%), 0 0 0 1px rgb(17 17 18 / 6%); font-size: 12.5px; line-height: 1.45; animation: pop 0.3s ease both; }
.popup .pt { font-weight: 600; font-size: 13px; }
.popup .pm { color: var(--text-3); margin-top: 2px; }
.popup .pp { margin-top: 8px; font-family: var(--mono); font-size: 11px; background: var(--panel); border-radius: 6px; padding: 6px 8px; line-height: 1.6; }
.popup .pw { margin-top: 6px; font-size: 11.5px; background: var(--wait-soft); border-radius: 6px; padding: 3px 7px; }
.popup .pb { margin-top: 10px; display: flex; gap: 6px; }
.popup .pb span { font-size: 11.5px; padding: 4px 11px; border-radius: 999px; background: var(--pill); }
.popup .pb .go { background: var(--blue); color: #FFFFFF; transition: transform 0.15s; }
.popup .pb .go.pressed { transform: scale(0.88); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.still { animation: none !important; }

.caption { display: flex; flex-direction: column; gap: 4px; max-width: 330px; }
.caption .step { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #7A7A7C; }
.caption .note { font-size: 12px; font-style: italic; color: #A5A5A7; }
.caption .text { margin-top: 14px; font-size: 15.5px; line-height: 1.55; color: #6E7176; }
.controls { margin-top: 24px; display: flex; gap: 8px; }
.controls .arrow { background: #E6E8EB; }
.controls .arrow:hover { background: #DADDE1; }
.i-play { fill: currentColor !important; stroke: none !important; }
#demo-play .i-pause { display: none; }
#demo-play.playing .i-pause { display: block; }
#demo-play.playing .i-play { display: none; }

/* Accordion */
.acc { background: #F3F4F5; border-radius: 22px; padding: 26px 30px; }
.acc > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; font-size: 19px; line-height: 1.35; }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary::after { content: "+"; flex: none; font-size: 30px; font-weight: 300; line-height: 0.8; color: var(--text); }
.acc[open] > summary::after { content: "\2212"; }
.acc > p { margin-top: 22px; font-size: 16.5px; line-height: 1.6; color: var(--text-2); }

/* Cards */
.grid3 { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid2 { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.card { background: var(--card); border: 1px solid #ECECEE; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card h3 { font-size: 21px; line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; }
.card p { font-size: 16px; line-height: 1.55; color: var(--text-2); }
.card p.muted { color: var(--text-4); }
.src a { color: var(--blue); }
.src a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tagline { align-self: flex-start; font-size: 13px; font-weight: 500; color: var(--text-3); background: var(--panel); padding: 4px 11px; border-radius: 999px; }
.metric { transition: border-color 0.15s, box-shadow 0.15s; }
.metric:hover { border-color: #D9DCE1; box-shadow: 0 8px 24px rgb(17 17 18 / 6%); }
.metric b { font-size: 46px; line-height: 1.05; font-weight: 500; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.metric span { font-size: 15.5px; line-height: 1.5; color: var(--text-4); }
.chart { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; background: var(--card); border: 1px solid #ECECEE; border-radius: 22px; padding: 24px 44px 24px 24px; }
.chart figcaption { display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.chart .step { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #7A7A7C; }
.card ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; color: var(--text-2); }
.card code { font-family: var(--mono); font-size: 0.88em; background: var(--panel); border-radius: 5px; padding: 1px 5px; }
.mini { margin-top: 4px; background: var(--term); color: #E8EAED; border-radius: 14px; padding: 14px 14px; font-family: var(--mono); font-size: 11.5px; line-height: 1.75; white-space: pre; overflow-x: auto; }
.fine { margin-top: 28px; max-width: 1000px; font-size: 13px; line-height: 1.6; color: var(--text-4); }

/* Footer */
.footer { margin-top: 140px; border-top: 1px solid #E9EAEC; padding: 40px 0 64px; font-size: 14px; color: var(--text-3); }
.foot-row { display: flex; flex-wrap: wrap; gap: 24px 64px; justify-content: space-between; }
.footer p { max-width: 72ch; }
.footer p + p { margin-top: 8px; }
.footer strong { color: var(--text); font-weight: 500; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a:hover { color: var(--text); }

/* Smaller screens */
@media (max-width: 1280px) {
  :root { --pad: 40px; }
  .demo { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tabs" "stage" "features"; }
  .features { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .cards { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
}
@media (max-width: 1080px) {
  .links { display: none; }
  .stage { grid-template-columns: minmax(0, 1fr); padding: 40px 32px; gap: 28px; }
  .caption { max-width: none; }
  .install { grid-template-columns: minmax(0, 1fr); padding: 32px; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .chart { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 20px; }
  .cards { grid-auto-columns: calc((100% - 18px) / 2); }
  .tabs { grid-auto-columns: max-content; }
}
@media (max-width: 720px) {
  :root { --pad: 16px; }
  .nav-row { height: 58px; gap: 16px; }
  .brand { font-size: 18px; }
  .nav-actions .pill:first-child { display: none; }
  .hero { padding-top: 56px; }
  .hero-cta { margin-top: 36px; }
  .install { margin-top: 48px; border-radius: 24px; padding: 24px 18px; gap: 22px; }
  .install-copy h2 { font-size: 26px; }
  .install-copy p { font-size: 17px; }
  .section { padding-top: 88px; }
  .cards { grid-auto-columns: 84%; }
  .stage { margin-top: 28px; padding: 18px 14px 24px; min-height: 0; }
  .screen { grid-template-columns: minmax(0, 1fr); grid-template-rows: 250px 280px; height: auto; }
  .tab { font-size: 15px; padding: 0 12px 14px; }
  .features, .grid2 { grid-template-columns: minmax(0, 1fr); }
  .acc { padding: 20px 22px; border-radius: 18px; }
  .acc > summary { font-size: 17px; }
  .metric b { font-size: 38px; }
  .card { padding: 22px; }
  .footer { margin-top: 96px; }
}
.flow-lede { margin-left: auto; margin-right: auto; text-align: center; }
.flow-wrap { margin-top: 44px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
