/* Sottocue site. Brand: violet #5A5CF0 → #6B47E6, amber #FFB938 (see docs/brand in the app repo). */

:root {
  --violet: #5A5CF0;
  --violet-2: #6B47E6;
  --amber: #FFB938;
  --bg: #FBFAFF;
  --surface: #FFFFFF;
  --surface-2: #F2F0FD;
  --text: #17162B;
  --muted: #5D5B78;
  --border: #E4E1F5;
  --link: #4B49D9;
  --radius: 16px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E0D1A;
    --surface: #17162A;
    --surface-2: #1F1D38;
    --text: #EEEDF8;
    --muted: #A6A4C2;
    --border: #2C2A4A;
    --link: #A9A8FF;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
  color: #fff !important; border: 0;
  box-shadow: 0 6px 20px -8px rgba(90, 92, 240, 0.7);
}
.btn:hover { filter: brightness(1.08); }
.btn.small { padding: 8px 16px; font-size: 0.9rem; }
.btn.ghost { background: transparent; color: var(--text) !important; border: 1px solid var(--border); box-shadow: none; }

/* Hero */
.hero { padding: 72px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero .wrap > * { min-width: 0; }
.eyebrow { display: inline-block; font-size: 0.85rem; font-weight: 600; color: var(--violet); background: var(--surface-2); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 36em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 12px; }
.fine { font-size: 0.9rem; color: var(--muted); }

/* The call mock with the overlay */
.mock {
  position: relative; border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #2a2d3e, #1b1c28);
  aspect-ratio: 4 / 3.1; box-shadow: 0 30px 60px -30px rgba(23, 22, 43, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
}
.mock .tiles { position: absolute; inset: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mock .tile { border-radius: 12px; background: #2f3245; display: flex; align-items: flex-end; padding: 10px; color: #c8c9d8; font-size: 0.75rem; }
.mock .tile .face { width: 46px; height: 46px; border-radius: 50%; background: #474b66; margin: auto; }
.mock .bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; }
.mock .bar span { width: 30px; height: 30px; border-radius: 50%; background: #3d4058; }
.mock .bar span.end { background: #e5484d; width: 44px; border-radius: 15px; }
.overlay {
  position: absolute; right: 18px; top: 18px; width: 62%;
  background: rgba(10, 10, 18, 0.72); border-radius: 14px; padding: 14px 16px;
  color: #fff; font-size: 0.86rem; line-height: 1.45;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.overlay .tr { font-weight: 600; font-size: 0.98rem; }
.overlay .orig { opacity: 0.6; font-size: 0.74rem; margin-bottom: 10px; }
.overlay .hint { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 10px; }
.overlay .hint b { color: var(--amber); }
.overlay .say { display: block; padding-left: 14px; opacity: 0.92; }
.mock .card {
  position: absolute; left: 18px; bottom: 58px; max-width: 46%;
  background: #1f8f5f; color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 0.74rem; font-weight: 600;
}
.mock .card.flag { background: #c23b3b; bottom: 100px; }
@media (max-width: 560px) {
  .overlay { width: auto; left: 14px; right: 14px; top: 14px; font-size: 0.78rem; padding: 10px 12px; }
  .overlay .tr { font-size: 0.86rem; }
  .mock { aspect-ratio: 4 / 3.6; }
  .mock .card { display: none; }
}

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
@media (max-width: 400px) { .grid.three { grid-template-columns: minmax(0, 1fr); } }
.card-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.card-box p { color: var(--muted); margin: 0; }
.card-box .icon {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px;
  background: linear-gradient(135deg, var(--violet), var(--violet-2)); color: #fff; font-size: 1.2rem;
}
.card-box .icon.amber { background: var(--amber); color: #2a1d00; }

.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { list-style: none; position: relative; padding-top: 48px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #2a1d00; background: var(--amber);
}
.steps { padding: 0; margin: 0; }
.steps p { color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 0.55em; width: 12px; height: 12px; border-radius: 50%; background: var(--amber); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.yes { color: #1f8f5f; font-weight: 600; }
td.no { color: var(--muted); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--violet); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

/* CTA band */
.cta-band {
  border-radius: 24px; padding: 48px 32px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--violet-2));
}
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.1rem; }
.cta-band .btn { background: var(--amber); color: #2a1d00 !important; box-shadow: none; }

/* Article pages (privacy, alternatives) */
.page-head { padding: 56px 0 24px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 6px; }
.note { font-size: 0.9rem; color: var(--muted); border-left: 3px solid var(--amber); padding: 4px 0 4px 14px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: grid; gap: 24px; grid-template-columns: 2fr repeat(3, 1fr); }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { color: var(--text); margin: 0 0 10px; font-size: 0.95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

.page-head + section { padding-top: 16px; }

/* Analytics consent banner (assets/consent.js) */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50;
  max-width: 560px; margin: 0 auto; padding: 16px 18px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 16px 40px -12px rgba(23, 22, 43, 0.35);
  font-size: 0.92rem;
}
.consent[hidden] { display: none; }
.consent p { margin: 0 0 12px; color: var(--muted); }
.consent-actions { display: flex; gap: 10px; justify-content: flex-end; }
.footer-link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.footer-link-button:hover { color: var(--text); }

/* App drawings: abstract versions of the app's screens with made-up content (home page). */
.ui-say { background: #5B44D8; color: #fff; border-radius: 10px; padding: 8px 10px; }
.ui-say small { display: block; font-size: 0.68em; font-weight: 700; letter-spacing: 0.06em; opacity: 0.75; margin-bottom: 3px; }
.ui-say b { display: block; }
.ui-say span { display: block; opacity: 0.92; }
.ui-cue { background: #3B8A4F; color: #fff; border-radius: 10px; padding: 7px 10px; display: flex; gap: 8px; align-items: flex-start; }
.ui-cue > div { flex: 1; min-width: 0; }
.ui-cue b, .ui-cue span { display: block; }
.ui-cue span { opacity: 0.92; }
.ui-cue .acts { flex: none; font-weight: 700; opacity: 0.9; letter-spacing: 0.25em; }
.ui-cue.flag { background: #C23B3B; }
.ui-cue.done { opacity: 0.5; }
.ui-cue.done b { text-decoration: line-through; font-weight: 500; }
.ui-ask { display: grid; gap: 6px; }
.ui-askfield { border: 1.5px solid #1A6BBF; background: rgba(0, 0, 0, 0.45); color: rgba(255, 255, 255, 0.6); border-radius: 10px; padding: 6px 10px; }
.ui-answer { background: #1A6BBF; color: #fff; border-radius: 10px; padding: 8px 10px; }
.ui-answer small { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; opacity: 0.8; margin-bottom: 3px; }
.ui-answer em { display: block; font-style: normal; font-weight: 700; margin-top: 4px; }

/* Hero: a call with Sottocue's floating panels over it */
.mock.live .m-bar {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.8); border: 1px solid rgba(255, 255, 255, 0.12);
}
.m-bar i { display: block; width: 18px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, 0.28); }
.m-bar i.dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--amber)); }
.m-bar i.say { background: #5B44D8; }
.m-bar i.ok { background: #3B8A4F; }
.m-bar i.flag { background: #C23B3B; }
.m-bar i.stop { width: 11px; height: 11px; border-radius: 2px; background: #E5484D; margin-left: 4px; }
.mock.live .m-stack {
  position: absolute; left: 14px; top: 50px; width: 46%; z-index: 2;
  display: grid; gap: 6px; font-size: 0.72rem; line-height: 1.35;
}
.mock.live .m-feed {
  position: absolute; right: 14px; top: 50px; width: 46%; z-index: 2;
  background: rgba(10, 10, 18, 0.74); color: #fff; border-radius: 12px; padding: 10px 12px;
  font-size: 0.72rem; line-height: 1.4; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.m-feed p { margin: 0 0 8px; }
.m-feed p:last-child { margin: 0; }
.m-feed .who { display: block; font-size: 0.85em; font-weight: 700; letter-spacing: 0.05em; color: var(--amber); }
.m-feed .who.me { color: #7EE2A0; }
.m-feed .tr { display: block; font-weight: 600; font-size: 1.05em; }
.m-feed .orig { display: block; opacity: 0.6; }
@media (max-width: 560px) {
  .mock.live { aspect-ratio: auto; min-height: 380px; }
  .mock.live .m-stack { width: auto; right: 14px; }
  .mock.live .m-feed { top: auto; bottom: 56px; left: 14px; width: auto; }
  .mock.live .m-stack .ui-cue:nth-child(n+3) { display: none; }
}

/* Before / during / after rows */
.story { display: grid; gap: 56px; }
.story .row { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.25fr); gap: 40px; align-items: center; }
.story .row:nth-child(even) > :first-child { order: 2; }
@media (max-width: 900px) {
  .story .row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .story .row:nth-child(even) > :first-child { order: 0; }
}
.story .tag { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--violet); margin-bottom: 8px; }
.story p, .story li { color: var(--muted); }
.story ul { padding-left: 1.1em; margin: 0; }
.story li { margin-bottom: 6px; }

.ui-scene {
  border-radius: 18px; padding: 18px; display: grid; gap: 14px;
  background: linear-gradient(160deg, #DCD8F7, #EEE9FB); border: 1px solid var(--border);
  color: #1D1C2B; font-size: 0.78rem; line-height: 1.4;
}
@media (prefers-color-scheme: dark) { .ui-scene { background: linear-gradient(160deg, #26234A, #1B1A33); } }
.ui-scene.dark { background: linear-gradient(160deg, #2A2D3E, #1B1C28); }
.ui-win {
  container-type: inline-size; background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 18px 40px -22px rgba(23, 22, 43, 0.55); border: 1px solid rgba(0, 0, 0, 0.08);
}
.ui-lights { display: flex; gap: 6px; padding: 10px 12px 0; }
.ui-lights i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.ui-lights i:nth-child(2) { background: #FEBC2E; }
.ui-lights i:nth-child(3) { background: #28C840; }
.ui-pad { padding: 12px 14px 14px; }
.ui-title { font-weight: 700; font-size: 1.12em; margin: 0 0 10px; }
.ui-muted { color: #6E6C85; }
.ui-field { display: inline-flex; gap: 6px; align-items: center; margin: 0 12px 6px 0; white-space: nowrap; }
.ui-field b { font-weight: 500; background: #EEEDF3; border-radius: 6px; padding: 2px 8px; }
.ui-check { display: inline-flex; gap: 5px; align-items: center; margin: 0 12px 6px 0; }
.ui-check::before { content: "✓"; width: 14px; height: 14px; border-radius: 4px; background: #2F6FEB; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.ui-btn { display: inline-block; background: #2F6FEB; color: #fff; border-radius: 7px; padding: 4px 12px; font-weight: 600; white-space: nowrap; }
.ui-btn.gray { background: #E9E8EF; color: #1D1C2B; }
.ui-box { background: #F6F5FA; border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.ui-box ol { margin: 4px 0 0; padding-left: 1.3em; }
.ui-hint { font-size: 0.9em; color: #6E6C85; margin-top: 6px; }

/* The call prompt at the top of the screen */
.ui-prompt {
  display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92); border-radius: 14px; border: 1px solid rgba(90, 92, 240, 0.35);
  box-shadow: 0 14px 30px -18px rgba(23, 22, 43, 0.6);
}
.ui-prompt .app { width: 34px; height: 34px; border-radius: 9px; flex: none; background: linear-gradient(135deg, var(--violet), var(--violet-2)); position: relative; }
.ui-prompt .app::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--amber); }
.ui-prompt .what { flex: 1 1 150px; min-width: 0; }
.ui-prompt .what small { color: #2F6FEB; font-weight: 600; display: block; }
.ui-prompt .what b { display: block; }
.ui-seg { display: inline-flex; background: #EEEDF3; border-radius: 7px; padding: 2px; }
.ui-seg span { padding: 2px 8px; border-radius: 5px; }
.ui-seg span.on { background: #D9D7E3; font-weight: 600; }
.ui-prompt .acts { display: flex; gap: 8px; align-items: center; }

/* The app window after the call */
.ui-app { display: grid; grid-template-columns: 30% minmax(0, 1fr); }
.ui-side { background: #F1F0F5; padding: 10px; border-right: 1px solid #E4E2EC; }
.ui-side .ui-btn { display: block; text-align: center; margin-bottom: 10px; }
.ui-side .call { padding: 6px 8px; border-radius: 8px; margin-bottom: 2px; }
.ui-side .call.on { background: #E2E0EA; }
.ui-side .call b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-side .call span { color: #6E6C85; font-size: 0.9em; }
.ui-side h6 { margin: 8px 8px 4px; font-size: 0.85em; color: #8B89A0; font-weight: 600; }
.ui-main { padding: 12px 14px; position: relative; min-width: 0; }
.ui-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.ui-head .ui-title { margin: 0; flex: 1; min-width: 0; }
/* The share menu, opened from the window's ⇪ button: drawn beside the window so it hides nothing. */
.ui-menu {
  justify-self: end; margin: -96px 10px 0 0; position: relative; z-index: 2; width: 220px; padding: 6px 0;
  background: rgba(255, 255, 255, 0.97); border-radius: 10px; border: 1px solid #E4E2EC;
  box-shadow: 0 16px 30px -14px rgba(23, 22, 43, 0.45);
}
.ui-menu h6 { margin: 4px 12px 2px; font-size: 0.85em; color: #8B89A0; font-weight: 600; }
.ui-menu div { padding: 2px 12px; }
.ui-menu hr { border: 0; border-top: 1px solid #E4E2EC; margin: 5px 10px; }
.ui-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; }
.ui-msg { margin-bottom: 8px; }
.ui-msg .who { font-size: 0.85em; font-weight: 700; color: #E07B1F; letter-spacing: 0.04em; }
.ui-msg .who.me { color: #2E9B55; }
.ui-msg .bubble { background: #FDF3EC; border-radius: 9px; padding: 6px 9px; margin-top: 2px; }
.ui-msg .who.me + .bubble { background: #EDF8F0; }
.ui-msg .bubble .tr { display: block; border-top: 1px solid rgba(0, 0, 0, 0.08); margin-top: 5px; padding-top: 5px; }
.ui-col h5 { margin: 0 0 6px; font-size: 1em; display: flex; justify-content: space-between; }
.ui-col h5 span { font-weight: 400; color: #8B89A0; }
.ui-col .ui-cue { margin-bottom: 5px; }
.ui-col h5 + .ui-cue, .ui-col .ui-cue + h5 { margin-top: 0; }
.ui-col .ui-cue + h5 { margin-top: 10px; }
@container (max-width: 560px) {
  .ui-app { grid-template-columns: minmax(0, 1fr); }
  .ui-side { display: none; }
}
@container (max-width: 420px) {
  .ui-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) { .ui-menu { margin: -40px 0 0; } }
