/* ============================================================
   Stay Unseen — app.css
   Components layered on top of design.css (the clay-constellation
   design system). Only Stay Unseen specific pieces live here:
   the hero privacy demo, doc/secondary-page layout, small helpers.
   ============================================================ */

/* ---------- brand mark ---------- */
.logo-mark { width: 22px; height: 22px; display: grid; place-items: center; }
.logo-mark svg { width: 22px; height: 22px; }
.brand-badge {
  margin-left: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--yellow);
  padding: 2px 6px 1px;
  border-radius: 5px / 50%;
  vertical-align: 2px;
}

/* ---------- hero: messaging demo ---------- */
.msg.from-ai .chat-avatar img,
.msg .chat-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.chat-avatar.photo { padding: 0; overflow: hidden; background: none; box-shadow: none; }

.sys-note {
  align-self: center;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.04em;
  color: #4d4c45;
  background: rgba(200, 236, 200, 0.55);
  border: 1px solid rgba(149, 197, 152, 0.6);
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  animation: bubble-pop 420ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.sys-note.off {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  color: var(--ink-soft);
}
.sys-note i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #2fb14c; flex: none;
}
.sys-note.off i { background: #b3b1a8; }

.chat-controls {
  display: flex; flex-wrap: wrap; gap: 7px;
  padding: 10px 14px 6px;
  border-top: 1px dashed var(--cream-line);
}
.ctrl-chip {
  font: inherit;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--cream-line);
  padding: 7px 12px 8px;
  border-radius: 10px / 50%;
  cursor: pointer;
  box-shadow: inset 0 -1.5px 0 rgba(92, 82, 30, 0.08);
  transition: border-radius 0.3s ease-in-out, background 0.2s, color 0.2s, border-color 0.2s;
}
.ctrl-chip:hover { border-radius: 5px / 50%; }
.ctrl-chip::before {
  content: "";
  width: 9px; height: 9px; border-radius: 50%;
  background: #c9c6bb; flex: none;
  transition: background 0.2s, box-shadow 0.2s;
}
.ctrl-chip[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--mint-light), var(--mint));
  border-color: var(--mint-deep);
}
.ctrl-chip[aria-pressed="true"]::before {
  background: #1f8a3a;
  box-shadow: 0 0 0 3px rgba(47, 177, 76, 0.16);
}

.chat-statusbar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 2px 10px 10px;
  padding: 9px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1a1a1a, #0a0a0a);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px -6px rgba(0, 0, 0, 0.35);
}
.chat-statusbar b { color: var(--yellow); font-weight: 600; }

/* ---------- metric instrument modifiers ---------- */
.metric.g-full .g-fill { stroke-dashoffset: 0; }
.metric.g-full .g-needle { transform: rotate(0deg); }
.metric.g-full.pre .g-fill { stroke-dashoffset: 100; }
.metric.g-full.pre .g-needle { transform: rotate(-90deg); }
.t-yellow .meter-track i { width: 100%; }

/* ---------- status + tag helpers ---------- */
.mini-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 7px 3px; border-radius: 6px;
  background: var(--cream-2); border: 1px solid var(--cream-line); color: var(--ink-soft);
}
.mini-tag.pro { background: var(--yellow); border-color: var(--yellow-line); color: var(--ink); }
.mark { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; }
.mark::before { content: ""; width: 13px; height: 13px; border-radius: 50%; flex: none; }
.mark.ok::before { background: #2fb14c; box-shadow: 0 0 0 3px rgba(47, 177, 76, 0.16); }
.mark.soon::before { background: #e0533d; box-shadow: 0 0 0 3px rgba(224, 83, 61, 0.16); }
.mark.wait::before { background: #c9c6bb; }
.legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; }
.legend-item {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--cream-line);
  border-radius: 18px; padding: 16px 18px;
}
.legend-item strong { display: block; font-size: 14px; margin-bottom: 3px; }
.legend-item small { font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

/* ---------- doc footer ---------- */
.site-footer { background: transparent; }

/* ---------- marquee: platform wordmarks ---------- */
.wordmark svg { width: 20px; height: 20px; }
.wm-browser { font-family: "Funnel Display", system-ui, sans-serif; }

/* ---------- bento extras ---------- */
.story-rows { display: grid; gap: 10px; }
.story-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  background: var(--cream);
  border: 1px solid var(--cream-line);
  font-size: 13.5px;
}
.story-row b { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.04em; }
.story-row .ok { color: #1f8a3a; }
.story-row .muted { color: var(--ink-soft); }
.story-row span small { display: block; color: var(--ink-soft); font-size: 11.5px; }

.queue-list { display: grid; gap: 8px; }
.queue-row {
  display: flex; align-items: center; gap: 11px;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--cream-line);
}
.queue-row .q-ico {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: #fff; font-size: 12px;
}
.queue-row small { display: block; color: var(--ink-soft); font-size: 11px; }
.queue-row b { margin-left: auto; font-family: "JetBrains Mono", monospace; font-size: 10.5px; color: #1f8a3a; }
.t-dark .queue-row { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }

.platform-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 500;
  padding: 7px 12px 8px;
  border-radius: 10px / 50%;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--cream-line);
}
.platform-chip svg { width: 17px; height: 17px; }

/* ---------- secondary / doc pages ---------- */
.doc {
  max-width: 1120px;
  margin: 0 auto;
  padding: 168px clamp(20px, 4vw, 56px) 100px;
}
.doc-head { max-width: 760px; margin-bottom: 56px; }
.doc-title {
  font-family: "Funnel Display", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5.6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin: 18px 0 22px;
}
.doc-lede { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: var(--ink-soft); max-width: 620px; }
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px;
}
.doc-meta span {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--cream-line);
  padding: 6px 11px; border-radius: 8px / 50%;
}

.doc-section { margin-top: 64px; }
.doc-section > h2 {
  font-family: "Funnel Display", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 22px;
}
.doc-section > h3 {
  font-family: "Funnel Display", system-ui, sans-serif;
  font-weight: 700; font-size: 21px; letter-spacing: -0.02em;
  margin: 30px 0 10px;
}
.doc-section p { font-size: 15.5px; line-height: 1.65; color: #4f4e47; max-width: 720px; }
.doc-section p + p { margin-top: 14px; }
.doc-section a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--yellow-deep); text-decoration-thickness: 2px; }

.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 18px; margin-top: 8px; }
.doc-card {
  background: #fff;
  border: 1px solid var(--cream-line);
  border-radius: 28px;
  padding: 26px 26px 28px;
  box-shadow: inset 0 2px 0 #fff, inset 0 -8px 18px -12px rgba(92, 82, 30, 0.14), 0 18px 40px -28px rgba(92, 82, 24, 0.4);
}
.doc-card h3 {
  font-family: "Funnel Display", system-ui, sans-serif;
  font-weight: 700; font-size: 19px; letter-spacing: -0.02em; margin-bottom: 10px;
}
.doc-card p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); max-width: none; }
.doc-card .kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--ink-soft); display: block; margin-bottom: 12px;
}

.doc-list { list-style: none; display: grid; gap: 12px; margin-top: 14px; }
.doc-list li {
  position: relative; padding-left: 30px;
  font-size: 15px; line-height: 1.6; color: #4f4e47;
}
.doc-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px var(--yellow-line);
}
.doc-list li b { color: var(--ink); font-weight: 700; }

.doc-note {
  margin-top: 22px;
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--cream);
  border: 1px solid var(--cream-line);
  border-radius: 22px;
  padding: 20px 22px;
  font-size: 14.5px; line-height: 1.6; color: #4f4e47;
}
.doc-note strong { color: var(--ink); }
.doc-note .note-ico {
  flex: none; width: 30px; height: 30px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--yellow);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 0 1px var(--yellow-line);
  font-size: 14px;
}

.doc-table-wrap { overflow-x: auto; margin-top: 12px; border-radius: 22px; border: 1px solid var(--cream-line); background: #fff; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.doc-table th, .doc-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--cream-line); }
.doc-table th {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--ink-soft); background: var(--cream);
}
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table .yes { color: #1f8a3a; font-weight: 700; }
.doc-table .no { color: var(--ink-soft); }

.doc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.doc-chips a {
  text-decoration: none;
  font-size: 13px; font-weight: 500;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--cream-line);
  padding: 8px 14px 9px;
  border-radius: 10px / 50%;
  transition: border-radius 0.3s ease-in-out, background 0.2s;
}
.doc-chips a:hover { border-radius: 5px / 50%; background: var(--yellow-light); }

/* release / changelog entries */
.release {
  position: relative;
  padding: 0 0 44px 34px;
  border-left: 1.5px solid var(--cream-line);
  margin-left: 8px;
}
.release:last-child { border-left-color: transparent; padding-bottom: 0; }
.release::before {
  content: ""; position: absolute; left: -9px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--yellow-line);
}
.release-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.release-ver {
  font-family: "Funnel Display", system-ui, sans-serif;
  font-weight: 800; font-size: 26px; letter-spacing: -0.03em;
}
.release-date {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-soft);
}
.release-tag {
  font-family: "JetBrains Mono", monospace; font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 9px 4px; border-radius: 8px / 50%;
  background: var(--ink); color: #fff;
}
.release-tag.free { background: var(--mint); color: var(--ink); }
.release-tag.pro { background: var(--yellow); color: var(--ink); }
.release h3 { font-family: "Funnel Display", system-ui, sans-serif; font-size: 19px; letter-spacing: -0.02em; margin-bottom: 8px; }
.release p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); max-width: 640px; }

/* 404 */
.err-wrap { text-align: center; padding: 200px clamp(20px, 4vw, 56px) 120px; max-width: 720px; margin: 0 auto; }
.err-code {
  font-family: "Funnel Display", system-ui, sans-serif;
  font-weight: 800; font-size: clamp(96px, 22vw, 220px); line-height: 0.9;
  letter-spacing: -0.06em;
  color: var(--yellow);
  -webkit-text-stroke: 0.03em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0.04em 0.05em 0 var(--ink);
}
.err-wrap h1 { font-family: "Funnel Display", system-ui, sans-serif; font-weight: 700; font-size: clamp(28px, 4vw, 46px); letter-spacing: -0.03em; margin: 18px 0 16px; }
.err-wrap p { color: var(--ink-soft); font-size: 16px; line-height: 1.6; margin-bottom: 32px; }
.err-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 760px) {
  .doc { padding-top: 130px; }
  .err-wrap { padding-top: 150px; }
}

/* ---------- two-up pricing grid ---------- */
.plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 900px; margin-inline: auto; }
@media (max-width: 1100px) { .plans.two { grid-template-columns: 1fr; max-width: 560px; } }

/* ---------- store buttons (final CTA) ---------- */
.store-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; margin-bottom: 10px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 14px;
  border-radius: 18px / 50%;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  color: #fff;
  transition: border-radius .3s ease-in-out, background .2s, transform .2s;
}
.store-btn:hover { border-radius: 8px / 50%; background: rgba(255, 255, 255, .14); }
.store-btn:active { transform: scale(.98); }
.store-btn img { border-radius: 7px; flex: none; }
.store-btn strong { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.store-btn small {
  display: block; font-size: 11px; opacity: .62;
  font-family: "JetBrains Mono", monospace; letter-spacing: .04em;
}
@media (max-width: 560px) {
  .store-row { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: flex-start; }
}

/* ============================================================
   Platform logos and constellation
   ============================================================ */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- marquee with the real platform marks ---------- */
.marquee-group { gap: 46px; padding-right: 46px; }
.plat {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: "Funnel Display", system-ui, sans-serif;
  font-size: 21px; font-weight: 600; letter-spacing: -0.025em;
  color: var(--su-muted); white-space: nowrap;
  transition: color .25s ease;
}
.plat:hover { color: var(--su-ink); }
.plat svg { width: 26px; height: 26px; flex: none; }
.plat-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 6px 2px; border-radius: 5px;
  background: var(--su-accent); color: var(--su-on-accent);
}

/* ---------- constellation ---------- */
.constellation { padding: 20px 0 0; }
.cx-stage {
  position: relative;
  height: 560px;
  display: grid; place-items: center;
}
.cx-ring {
  position: absolute; border-radius: 50%;
  border: 1px dashed var(--su-line);
  pointer-events: none;
}
.cx-ring.r1 { width: 300px; height: 300px; }
.cx-ring.r2 { width: 500px; height: 500px; }
.cx-ring.r2 { animation: cx-spin 90s linear infinite; }
@keyframes cx-spin { to { transform: rotate(360deg); } }
.cx-hub {
  position: relative; z-index: 2;
  width: 138px; height: 138px; border-radius: 38px;
  display: grid; place-items: center;
  background: linear-gradient(165deg, var(--su-panel-3) 0%, var(--su-panel) 100%);
  border: 1px solid var(--su-line);
  box-shadow: 0 0 0 14px var(--su-hi), 0 0 60px -10px var(--su-accent-soft), 0 34px 70px -30px rgba(0, 0, 0, .8);
}
.cx-hub img { width: 64px; height: 64px; border-radius: 17px; }
.cx-hub span {
  position: absolute; bottom: -30px;
  font-family: "JetBrains Mono", monospace; font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--su-muted);
}
.cx-node {
  position: absolute; top: 50%; left: 50%;
  width: 118px; display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-align: center; z-index: 3;
}
.cx-node b {
  width: 66px; height: 66px; border-radius: 21px;
  display: grid; place-items: center;
  background: linear-gradient(165deg, var(--su-panel-3) 0%, var(--su-panel) 100%);
  border: 1px solid var(--su-line);
  box-shadow: var(--su-inset), 0 18px 34px -20px rgba(0, 0, 0, .8);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .25s;
}
.cx-node svg { width: 33px; height: 33px; }
.cx-node span { font-size: 13.5px; font-weight: 600; color: var(--su-ink); line-height: 1.2; }
.cx-node small {
  font-family: "JetBrains Mono", monospace; font-size: 9px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--su-muted);
}
.cx-node.pro small { color: var(--su-accent); }
.cx-node:hover b { transform: translateY(-8px) scale(1.07); border-color: var(--su-accent-2); }
.cx-node.n1 { transform: translate(-50%, -50%) translate(0, -218px); }
.cx-node.n2 { transform: translate(-50%, -50%) translate(189px, -109px); }
.cx-node.n3 { transform: translate(-50%, -50%) translate(189px, 109px); }
.cx-node.n4 { transform: translate(-50%, -50%) translate(0, 218px); }
.cx-node.n5 { transform: translate(-50%, -50%) translate(-189px, 109px); }
.cx-node.n6 { transform: translate(-50%, -50%) translate(-189px, -109px); }

@media (max-width: 1080px) {
  .cx-stage { height: 470px; }
  .cx-node.n1 { transform: translate(-50%, -50%) translate(0, -178px); }
  .cx-node.n2 { transform: translate(-50%, -50%) translate(154px, -89px); }
  .cx-node.n3 { transform: translate(-50%, -50%) translate(154px, 89px); }
  .cx-node.n4 { transform: translate(-50%, -50%) translate(0, 178px); }
  .cx-node.n5 { transform: translate(-50%, -50%) translate(-154px, 89px); }
  .cx-node.n6 { transform: translate(-50%, -50%) translate(-154px, -89px); }
  .cx-ring.r1 { width: 250px; height: 250px; }
  .cx-ring.r2 { width: 400px; height: 400px; }
}
@media (max-width: 680px) {
  .cx-stage { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 10px; padding: 10px 0; }
  .cx-ring { display: none; }
  .cx-hub { position: static; flex: 0 0 100%; width: 116px; height: 116px; border-radius: 32px; margin: 0 auto 26px; }
  .cx-hub img { width: 54px; height: 54px; }
  .cx-hub span { position: static; display: block; margin-top: 10px; }
  .cx-node { position: static; transform: none !important; width: 96px; }
  .cx-node b { width: 56px; height: 56px; border-radius: 18px; }
  .cx-node svg { width: 27px; height: 27px; }
}

/* ---------- bento control panel ---------- */
.switch-list { display: grid; gap: 10px; }
.switch-row {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 15px; border-radius: 15px;
  background: var(--su-panel-3); border: 1px solid var(--su-line);
  font-size: 13.5px; font-weight: 500; color: var(--su-ink);
}
.switch-row > span:first-child { flex: 1; min-width: 0; }
.switch-row > .switch-pill { flex: none; }
.switch-row > span small { display: block; color: var(--su-muted); font-size: 11.5px; font-weight: 400; margin-top: 2px; }
.switch-pill {
  flex: none; width: 44px; height: 25px; border-radius: 99px;
  background: var(--su-accent); position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: background .25s;
}
.switch-pill::after {
  content: ""; position: absolute; top: 3px; right: 3px;
  width: 19px; height: 19px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .4);
  transition: right .25s, left .25s;
}
.switch-pill.off { background: var(--su-panel); border: 1px solid var(--su-line); }
.switch-pill.off::after { right: auto; left: 3px; background: var(--su-muted); }
.switch-row.pro .switch-pill { background: linear-gradient(180deg, var(--su-accent), var(--su-accent-2)); }

button.switch-row {
  font: inherit; width: 100%; text-align: left; cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
button.switch-row:hover { border-color: var(--su-accent-2); }
button.switch-row[aria-pressed="false"] { color: var(--su-muted); }
button.switch-row[aria-pressed="false"] .switch-pill { background: var(--su-panel); border: 1px solid var(--su-line); }
button.switch-row[aria-pressed="false"] .switch-pill::after { right: auto; left: 3px; background: var(--su-muted); }
