:root {
  /* Plain white page, forest-green accent, one bold grotesk for headings */
  --bg: #ffffff;
  --surface: #f6f7f5;
  --text: #151a17;
  --muted: #5f6762;
  --line: #e3e6e2;
  --accent: #1f5d4a;
  --radius: 10px;
  --serif: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif; /* display face */
  --sans: "Public Sans", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101412;
    --surface: #181e1b;
    --text: #eef2ef;
    --muted: #9aa49e;
    --line: #2a322e;
    --accent: #7cc4a6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101412;
  --surface: #181e1b;
  --text: #eef2ef;
  --muted: #9aa49e;
  --line: #2a322e;
  --accent: #7cc4a6;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
[hidden] { display: none !important; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px clamp(16px, 5vw, 56px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.brand-face { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.tabs { position: relative; display: flex; gap: 4px; padding-bottom: 10px; margin-bottom: -10px; }
.tab-ball {
  position: absolute; left: 0; bottom: 2px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); pointer-events: none; transform-origin: 50% 100%;
}
.tabs a {
  padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted);
  transition: color .15s, background .15s;
}
.tabs a:hover { color: var(--text); }
.tabs a[aria-current] { color: var(--text); }
.cta {
  padding: 9px 16px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
}

/* ---------- Panels ---------- */
main { max-width: 960px; margin: 0 auto; padding: clamp(40px, 8vw, 88px) clamp(16px, 5vw, 32px) 64px; }
.panel { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }

.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.display {
  margin: 0; font-family: var(--serif); font-weight: 700;
  font-size: clamp(34px, 5.5vw, 56px); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance;
}
.lede { max-width: 560px; margin: 18px 0 0; font-size: 18px; color: var(--muted); }
.subhead { margin: 64px 0 20px; font-family: var(--serif); font-weight: 400; font-size: 32px; }

/* ---------- Video ---------- */
.video-frame {
  position: relative; margin: 40px auto 0;
  aspect-ratio: 16 / 9; max-width: 100%; border-radius: 12px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.video-frame video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }

/* Home hero: photo, name, tagline */
.hero { display: grid; justify-items: center; gap: 10px; text-align: center; }
.hero-face { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); margin-bottom: 6px; }
.hero .display { font-size: clamp(32px, 5vw, 48px); }
.hero-tag { margin: 0; font-size: 17px; font-weight: 500; color: var(--muted); letter-spacing: .01em; }

/* "Watch my intro" overlay on top of the video */
.video-overlay {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 6px;
  border: 0; padding: 24px; cursor: pointer; text-align: center; font-family: var(--sans);
  background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.15) 55%, rgba(0,0,0,.05));
  color: #fff; align-content: end; padding-bottom: 36px;
}
.video-overlay strong { font-family: var(--serif); font-size: 22px; font-weight: 700; margin-top: 8px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.video-overlay span:not(.play-btn) { font-size: 14px; color: rgba(255,255,255,.85); }
.play-btn {
  position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--accent);
  transition: transform .2s ease;
}
.play-btn::after {
  content: ""; position: absolute; left: 31px; top: 24px;
  border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff;
}
.video-overlay:hover .play-btn, .video-overlay:focus-visible .play-btn { transform: scale(1.06); }
.video-overlay:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.video-overlay.soon { cursor: default; background: var(--surface); color: var(--text); align-content: center; padding-bottom: 24px; }
.video-overlay.soon span:not(.play-btn) { color: var(--muted); }
.video-overlay.soon .play-btn { background: var(--line); }
.video-overlay.soon strong { font-size: 18px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .play-btn { transition: none; } }
code { font-size: .9em; padding: 2px 6px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }

/* ---------- Quick facts ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 32px 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--surface); padding: 20px 22px; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-weight: 500; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 40px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
/* An odd last card stretches full width so the grid never has a gap. */
.cards.two > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 640px) { .cards.two { grid-template-columns: 1fr; } }
.card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--line);
  transition: border-color .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.card h3 { margin: 0; font-size: 19px; font-weight: 600; }
.card p { margin: 0; color: var(--muted); }
.tag { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.num { font-family: var(--serif); font-size: 28px; color: var(--accent); line-height: 1; }
.stack { list-style: none; margin: auto 0 0; padding: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.stack li { font-size: 12px; padding: 3px 9px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.card-link { margin-top: auto; padding-top: 8px; font-weight: 500; font-size: 14px; color: var(--accent); text-decoration: none; }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 1px;
  background: var(--muted); transition: transform .2s;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0); }
.faq-item p { margin: 0 0 24px; max-width: 680px; color: var(--muted); font-size: 17px; }

button.cta { border: 0; font-family: var(--sans); cursor: pointer; }

/* ---------- Contact pop-up ---------- */
.contact-modal {
  width: min(420px, calc(100% - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface); color: var(--text); box-shadow: 0 40px 100px -30px rgba(0,0,0,.5);
}
.contact-modal[open] { animation: fade .3s ease; }
.contact-modal::backdrop { background: rgba(10,10,14,.55); backdrop-filter: blur(4px); }
.contact-modal h3 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 24px; letter-spacing: -0.015em; }
.contact-rows { display: grid; gap: 10px; margin-top: 18px; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.contact-row span { display: block; font-size: 12px; color: var(--muted); }
.contact-row > div { min-width: 0; }
.contact-row a { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .contact-modal { padding: 20px; }
  .contact-row { padding: 12px; gap: 8px; }
  .contact-row a { font-size: 14px; }
  .copy-btn { padding: 6px 10px; font-size: 12px; }
}
.contact-row a:hover { color: var(--accent); }
.copy-btn { flex: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 13px var(--sans); cursor: pointer; }

.contact-row.book { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.contact-row strong { font-weight: 600; }
.copy-btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; }

/* ---------- Time-cost calculator + booking ---------- */
.calc {
  display: grid; gap: 22px; margin-top: 48px; padding: 28px 32px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
}
.calc h3 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: clamp(22px, 3.2vw, 28px); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.calc-inputs { display: grid; gap: 12px; }
.calc-inputs label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14.5px; color: var(--muted); }
.calc-inputs input {
  width: 96px; flex: none; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 600 16px var(--sans); text-align: right; font-variant-numeric: tabular-nums;
}
.calc-inputs input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; padding-left: 28px; border-left: 1px solid var(--line); }
.calc-stat b { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 4vw, 38px); line-height: 1.1; color: var(--accent); }
.calc-stat span { font-size: 13px; color: var(--muted); }
.calc-out p { grid-column: 1 / -1; margin: 0; font-size: 14.5px; }
.calc-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.calc-cta p { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 19px; }
.calc-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-btns .cta { padding: 11px 20px; font-size: 15px; }
.cta.ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
@media (max-width: 640px) {
  .calc { padding: 22px 18px; }
  .calc-grid { grid-template-columns: 1fr; gap: 20px; }
  .calc-out { padding-left: 0; padding-top: 18px; border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Footer ---------- */
.footer {
  max-width: 960px; margin: 0 auto; padding: 32px clamp(16px, 5vw, 32px) 48px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; gap: 12px; padding-bottom: 12px; }
  .tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .tabs a { white-space: nowrap; padding: 7px 10px; font-size: 13px; }
  .facts { grid-template-columns: 1fr; }
  .video-frame { border-radius: 14px; }
}

/* ---------- Project demos ---------- */
.card.has-demo { cursor: pointer; }
.card.has-demo:hover { border-color: var(--accent); }
.demo-btn {
  align-self: flex-start; margin-top: 4px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--accent); background: transparent; color: var(--accent);
  font: 600 13px var(--sans); cursor: pointer;
}

.demo-modal {
  width: min(760px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 24px; border: 1px solid var(--line); border-radius: 24px;
  background: var(--surface); color: var(--text);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.5);
}
.demo-modal[open] { animation: fade .3s ease; }
.demo-modal::backdrop { background: rgba(10,10,14,.55); backdrop-filter: blur(4px); }
.demo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.demo-head .eyebrow { margin-bottom: 4px; }
.demo-head h3 { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; }
.demo-close {
  width: 36px; height: 36px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg); color: var(--text);
  font-size: 20px; line-height: 1; cursor: pointer;
}
.demo-body { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; margin-top: 20px; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: step; }
.demo-steps li {
  counter-increment: step; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 500; transition: all .3s;
}
.demo-steps li::before {
  content: counter(step); display: grid; place-items: center; flex: none;
  width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 12px;
}
.demo-steps li.active { color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.demo-steps li.active::before { border-color: var(--accent); background: var(--accent); color: #fff; }
.demo-steps li.done::before { content: "✓"; border-color: var(--accent); color: var(--accent); }
.demo-note { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--muted); }

/* Phone mock — always light, like a real app screen */
.demo-stage { display: grid; place-items: center; }
.phone {
  position: relative; width: 300px; height: 610px; overflow: hidden;
  border: 9px solid #111; border-radius: 40px; background: #f6f7fb; color: #0f172a;
  font: 12px/1.4 var(--sans); animation: fade .4s ease;
}
.phone.out { opacity: 0; transition: opacity .4s; }
.app-bar { display: flex; align-items: center; gap: 8px; padding: 18px 16px 12px; background: #fff; border-bottom: 1px solid #eceef3; font-weight: 700; font-size: 14px; }
.app-logo { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: #0a61ff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M7 3v8M5 3v4a2 2 0 0 0 4 0V3M7 11v10M17 3c-2 2-2 6 0 8v10'/%3E%3C/svg%3E") center/16px no-repeat; }
.app-body { padding: 12px; display: grid; gap: 10px; }
.app-search { min-height: 40px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1.5px solid #0a61ff; font-size: 12.5px; }
.caret { display: inline-block; width: 1.5px; height: 14px; margin-left: 1px; vertical-align: -2px; background: #0a61ff; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.app-pills { display: flex; flex-wrap: wrap; gap: 5px; min-height: 0; }
.pill { padding: 4px 9px; border-radius: 999px; background: #fff; border: 1px solid #e3e6ee; font-size: 11px; }
.app-status { display: flex; align-items: center; gap: 8px; min-height: 18px; color: #6b7280; font-size: 11.5px; }
.spin { width: 12px; height: 12px; flex: none; border-radius: 50%; border: 2px solid #dbe4ff; border-top-color: #0a61ff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ok { color: #16a34a; font-weight: 700; }
.app-note { display: none; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: #0f172a; color: #fff; font-size: 12px; }
.app-note.in { display: block; }
.app-note .who { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #93b4ff; margin-bottom: 2px; }
.app-results { display: grid; gap: 7px; }
.r-card { padding: 9px 11px; border-radius: 12px; background: #fff; border: 1px solid #eceef3; }
.r-name { font-weight: 700; font-size: 13px; }
.r-meta { color: #475569; font-size: 11px; }
.r-vibe { color: #6b7280; font-size: 11px; }
.r-links { display: flex; gap: 12px; margin-top: 4px; font-size: 11px; font-weight: 600; color: #0a61ff; }
.r-links span { position: relative; }
.tap { color: #fff; background: #0a61ff; border-radius: 6px; padding: 0 6px; margin: 0 -6px; }
.tap::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border-radius: 50%; background: rgba(10,97,255,.35); animation: ripple .7s ease-out forwards;
}
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.app-toast {
  position: absolute; left: 12px; right: 12px; bottom: 16px; padding: 12px 14px; border-radius: 14px;
  background: #0f172a; color: #fff; font-size: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25);
  opacity: 0; transform: translateY(16px); transition: all .35s ease;
}
.app-toast.in { opacity: 1; transform: none; }
.in { animation: pop .35s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* Childcare demo — two phones side by side, intentionally generic styling */
.demo-steps:empty { display: none; }
.demo-body:has(.demo-steps:empty) { grid-template-columns: 1fr; }
.demo-stage:has(.duo) { display: block; }
.duo { display: flex; justify-content: center; align-items: center; gap: 0; transition: opacity .4s; }
.duo.out { opacity: 0; }
.duo-col { display: grid; justify-items: center; gap: 8px; }
.duo-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mini {
  width: 230px; height: 430px; overflow: hidden; border: 7px solid #111; border-radius: 30px;
  background: #F7F7F5; color: #1F2937; font: 12px/1.4 var(--sans);
}
.mini-bar { display: flex; align-items: center; gap: 7px; padding: 14px 12px 10px; background: #fff; border-bottom: 1px solid #ECECE8; font-weight: 700; font-size: 13px; }
.mini-logo { width: 20px; height: 20px; border-radius: 6px; background: #0F766E url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6h-6v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E") center/12px no-repeat; }
.mini-body { padding: 10px; display: grid; gap: 8px; align-content: start; }
.m-card { padding: 10px; border-radius: 12px; background: #fff; border: 1px solid #ECECE8; transition: all .2s; }
.m-card.center { text-align: center; padding: 18px 10px; }
.m-input { min-height: 38px; border: 1.5px solid #0F766E; }
.m-input .caret { background: #0F766E; }
.m-btn { padding: 10px; border: 0; background: #0F766E; color: #fff; text-align: center; font-weight: 600; }
.m-btn.done { background: #15803D; }
.m-tap { transform: scale(.96); box-shadow: 0 0 0 3px rgba(15,118,110,.25); }
.m-muted { color: #6B7280; font-size: 11px; }
.m-big { font-size: 24px; font-weight: 700; color: #15803D; }
.m-title { font-weight: 700; font-size: 13px; }
.m-pay { margin-top: 4px; font-weight: 700; color: #0F766E; }
.m-tag { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 6px; background: #FEF3C7; color: #92400E; font-size: 10px; font-weight: 600; }
.m-tag.ok { background: #DCFCE7; color: #15803D; }
.m-row { display: flex; align-items: center; gap: 8px; }
.m-av { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #E0F2F1; font-weight: 700; font-size: 11px; }
.m-checks, .m-feed { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.m-checks li { display: flex; align-items: center; gap: 7px; font-size: 11.5px; }
.tick { display: grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #E0F2F1; color: #0F766E; font-size: 9px; font-weight: 700; }
.m-feed li { display: grid; grid-template-columns: 52px 1fr; font-size: 11.5px; }
.m-feed .t { color: #9CA3AF; }
.m-sent { justify-self: end; max-width: 80%; background: #0F766E; color: #fff; border: 0; border-radius: 12px 12px 4px 12px; font-size: 11.5px; }
.m-sent .m-muted { color: #CCFBF1; }
.m-note { margin-top: 6px; padding-top: 6px; border-top: 1px solid #F3F3F0; font-size: 10.5px; color: #0F766E; }
.m-map { display: block; width: 100%; height: auto; margin: 6px 0 4px; border-radius: 8px; }
.m-map .ping { transform-box: fill-box; transform-origin: center; animation: ping 1.6s ease-out infinite; }
@keyframes ping { from { transform: scale(1); opacity: .5; } to { transform: scale(2.4); opacity: 0; } }
.m-toggle { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11.5px; font-weight: 500; }
.m-toggle .sw { position: relative; width: 30px; height: 17px; border-radius: 17px; background: #0F766E; }
.m-toggle .sw::after { content: ""; position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
/* Briefing demo — sources → Claude → printed page */
.demo-stage:has(.brief) { display: block; }
.demo-stage { min-width: 0; }
.brief { width: 100%; transition: opacity .4s; }
.brief.out { opacity: 0; }
.brief-top { display: flex; align-items: baseline; justify-content: center; gap: 12px; color: var(--muted); font-size: 13px; }
.clock { font-family: var(--serif); font-weight: 700; font-size: 30px; font-variant-numeric: tabular-nums; color: var(--muted); transition: color .3s; }
.clock.go { color: var(--accent); }
.brief-flow { display: grid; grid-template-columns: 170px 110px minmax(0, 1fr); align-items: center; gap: 14px; margin-top: 14px; }
.brief-flow .printer { align-self: start; }
.srcs { display: grid; gap: 8px; }
.src {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg); color: var(--muted); transition: all .3s;
}
.src svg { width: 20px; height: 20px; flex: none; }
.src b { display: block; font-size: 13px; font-weight: 600; }
.src .n { display: block; font-size: 11.5px; min-height: 16px; }
.src.on { color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.src.done { box-shadow: none; }
.src.done svg { color: var(--accent); }
.hub {
  display: grid; justify-items: center; gap: 2px; padding: 16px 8px; border-radius: 16px; text-align: center;
  border: 1px dashed var(--line); color: var(--muted); font-size: 11px; transition: all .3s;
}
.hub b { color: var(--text); font-size: 14px; }
.hub-mark { font-size: 22px; line-height: 1; color: #D97757; }
.hub.on { border-style: solid; border-color: #D97757; background: color-mix(in srgb, #D97757 8%, transparent); }
.hub.on .hub-mark { animation: spin 3s linear infinite; }
.printer { position: relative; min-height: 400px; }
.inbox { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--bg); font-size: 11.5px; }
.inbox-h { padding: 7px 12px; font-weight: 600; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); }
.mail-row { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); }
.mail-row:last-child { border-bottom: 0; }
.mail-row b { flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-row small { font-size: 10.5px; }
.mail-row.new { display: none; color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.mail-row.new b { font-weight: 700; }
.mail-row.new.in { display: flex; animation: pop .35s ease both; }
.mail-row.new.open { box-shadow: inset 3px 0 0 var(--accent); }
.att { padding: 1px 6px; border-radius: 4px; background: #DC2626; color: #fff; font-size: 9px; font-weight: 700; }
.paper {
  position: relative; margin: 10px 4px 0; padding: 16px 16px 18px;
  background: #fffefb; color: #1b1b1f; border: 1px solid #e8e4dc; border-radius: 4px;
  box-shadow: 0 14px 30px -18px rgba(0,0,0,.4); font-size: 11px; line-height: 1.45;
}
.paper:empty { display: none; }
.pl { animation: print .25s ease-out both; overflow: hidden; }
@keyframes print { from { max-height: 0; opacity: 0; } to { max-height: 40px; opacity: 1; } }
.pl.ph { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1.5px solid #1b1b1f; }
.pt { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.pd { font-size: 10.5px; color: #6b6b73; }
.pl.ps { margin-top: 8px; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6b6b73; }
.pl i { font-style: normal; display: inline-block; min-width: 50px; font-size: 9.5px; font-weight: 600; color: #6b6b73; }
.brief-caption { margin: 18px auto 0; max-width: 460px; min-height: 44px; text-align: center; font-size: 15px; font-weight: 500; }
@media (max-width: 640px) {
  .brief-flow { grid-template-columns: 1fr; gap: 10px; }
  .srcs { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .src { padding: 8px 10px; }
  .hub { grid-auto-flow: column; align-items: center; justify-content: center; gap: 8px; padding: 8px; }
  .printer { min-height: 360px; }
  .clock { font-size: 28px; }
}

/* Dashboards demo — before/after, then role-based phone view */
.demo-stage:has(.dash) { display: block; }
.dash { width: 100%; transition: opacity .4s; }
.dash.out { opacity: 0; }
.seg { display: flex; justify-content: center; gap: 4px; padding: 4px; margin: 0 auto 14px; width: max-content; max-width: 100%; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.seg span { padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: var(--muted); transition: all .3s; }
.seg span.on { background: var(--text); color: var(--bg); }
.dash-stage { height: 440px; transition: opacity .3s, transform .3s; }
.dash-stage.swap { opacity: 0; transform: scale(.98); }
.dash-caption { margin: 14px auto 0; max-width: 480px; min-height: 44px; text-align: center; font-size: 15px; font-weight: 500; }

.sheet { height: 100%; overflow: hidden; border: 1px solid #c9ccd1; border-radius: 6px; background: #fff; color: #222; font: 9.5px/1.2 Consolas, "Courier New", monospace; }
.sheet-tabs { display: flex; gap: 2px; padding: 4px 4px 0; background: #e9ebee; border-bottom: 1px solid #c9ccd1; font: 10px var(--sans); }
.sheet-tabs span { padding: 3px 8px; border-radius: 4px 4px 0 0; color: #555; white-space: nowrap; }
.sheet-tabs span.on { background: #fff; color: #1d6f42; font-weight: 600; }
.sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.sheet th { background: #f3f4f6; font-weight: 600; text-align: left; }
.sheet th, .sheet td { padding: 3px 4px; border: 1px solid #e3e5e8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet td.neg { color: #c62828; background: #fdecec; }

.clean { display: grid; gap: 12px; align-content: start; height: 100%; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.kpi span { display: block; font-size: 11.5px; color: var(--muted); }
.kpi b { display: block; font-family: var(--serif); font-weight: 700; font-size: 26px; line-height: 1.2; }
.kpi small { font-size: 11.5px; color: var(--muted); }
.kpi small.good, .b-pct.ok { color: #15803d; }
.clean-bars { display: grid; gap: 8px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); }
.clean-h { font-size: 12px; font-weight: 600; color: var(--muted); }
.flag { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, #d97706 12%, transparent); color: var(--text); font-size: 13px; }
.b-row { display: grid; gap: 3px; }
.b-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.b-top span { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.b-sub { font-size: 11px; color: var(--muted); }
.bar { height: 7px; border-radius: 7px; background: color-mix(in srgb, var(--muted) 18%, transparent); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 7px; animation: grow .7s ease both; }
@keyframes grow { from { width: 0 !important; } }
.bar .ok { background: #16a34a; } .bar .mid { background: #d97706; } .bar .hi { background: #dc2626; }
.b-pct { font-size: 10.5px; color: var(--muted); }
.b-pct.mid { color: #b45309; } .b-pct.hi { color: #dc2626; }

.org-wrap { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; height: 100%; }
.dphone { width: 230px; height: 440px; overflow: hidden; border: 7px solid #111; border-radius: 30px; background: #fff; color: #16161a; }
.dphone .b-top span, .dphone .b-sub, .dphone .b-pct { color: #6b6b73; }
.dphone .b-pct { display: none; } /* the bar color already says it on a small screen */
.dphone .bar { background: #eceef1; }
.dp-bar { display: flex; align-items: center; gap: 7px; padding: 14px 12px 10px; border-bottom: 1px solid #eee; font-weight: 700; font-size: 13px; }
.dp-logo { width: 20px; height: 20px; border-radius: 6px; background: #2f5bea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E") center/12px no-repeat; }
.dp-body { display: grid; gap: 9px; padding: 10px 12px; font-size: 12px; transition: opacity .25s; }
.dp-body.swap { opacity: 0; }
.dp-body .b-top { font-size: 11.5px; }
.dp-who { display: grid; padding: 8px 10px; border-radius: 10px; background: #f3f5fa; }
.dp-who span { font-size: 9.5px; text-transform: uppercase; letter-spacing: .08em; color: #6b6b73; }
.dp-who b { font-size: 13px; }
.dp-who small { font-size: 11px; color: #2f5bea; font-weight: 600; }
.dp-total { padding-bottom: 8px; border-bottom: 1px solid #eee; }
.b-lock { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 8px; background: #f5f5f4; color: #6b6b73; font-size: 10.5px; }
.b-lock svg { width: 13px; height: 13px; flex: none; }
.org { display: grid; gap: 14px; justify-items: center; }
.org-row { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.org-row + .org-row::before { content: ""; position: absolute; top: -10px; left: 50%; width: 1px; height: 7px; background: var(--line); }
.org-row.sub { justify-self: start; }
.node { padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 500; border: 1px dashed var(--line); color: var(--muted); opacity: .55; transition: all .35s; }
.node.vis { opacity: 1; border-style: solid; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); }
.org-key { display: flex; gap: 8px; margin-top: 10px; }
.org-key .node { font-size: 11px; padding: 3px 8px; }

@media (max-width: 640px) {
  .seg span { padding: 5px 9px; font-size: 11.5px; }
  .dash-stage { height: 500px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis .kpi:first-child { display: none; }
  .kpi b { font-size: 24px; }
  .org-wrap { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .org { order: -1; gap: 8px; }
  .org-key { display: none; }
  .node { padding: 3px 7px; font-size: 10.5px; }
  .dphone { height: 395px; }
}

.duo-link { position: relative; width: 70px; height: 2px; margin-top: 24px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 12px); }
.packet { position: absolute; top: -5px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); opacity: 0; }
.packet.right { animation: to-right .7s ease-in-out forwards; }
.packet.left { animation: to-left .7s ease-in-out forwards; }
@keyframes to-right { 0% { left: -6px; opacity: 1; } 100% { left: 64px; opacity: 1; } }
@keyframes to-left { 0% { left: 64px; opacity: 1; } 100% { left: -6px; opacity: 1; } }
.duo-caption { max-width: 420px; margin: 20px auto 0; text-align: center; }
.duo-progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.duo-progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s ease; }
.duo-caption p { margin: 12px 0 0; min-height: 44px; font-size: 15px; font-weight: 500; }
@media (max-width: 640px) {
  .duo { zoom: .62; }
  .duo-link { width: 30px; }
  @keyframes to-right { 0% { left: -6px; opacity: 1; } 100% { left: 24px; opacity: 1; } }
  @keyframes to-left { 0% { left: 24px; opacity: 1; } 100% { left: -6px; opacity: 1; } }
}

@media (max-width: 640px) {
  .demo-modal { padding: 18px; }
  .demo-body { grid-template-columns: 1fr; gap: 14px; }
  .demo-steps { grid-template-columns: repeat(2, 1fr); gap: 4px; order: -1; }
  .demo-steps li { padding: 6px 8px; font-size: 12px; gap: 8px; }
  .demo-steps li::before { width: 20px; height: 20px; font-size: 10px; }
  .phone { width: 272px; height: 540px; }
}
