:root {
  --bg: #eef4f1;
  --surface: #ffffff;
  --surface-2: #f4f8f6;
  --ink: #10261f;
  --muted: #55655f;
  --line: rgba(16, 38, 31, .13);
  --navy: #0b3d33;
  --navy-2: #0f6e56;
  --blue: #1f7a8c;
  --green: #2e9a52;
  --gold: #e0a21a;
  --red: #d8453a;
  --violet: #6d4fd8;
  --orange: #ef8a1f;
  --green-soft: #e9f6ec;
  --blue-soft: #e3f2f4;
  --gold-soft: #fdf4dc;
  --violet-soft: #efeafd;
  --sky-top: #9cc8ef;
  --sky-bottom: #e4f1fb;
  --shadow: 0 10px 30px -18px rgba(11, 61, 51, .45);
  --radius: 16px;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1512; --surface: #13231e; --surface-2: #192c26; --ink: #eef7f3; --muted: #a5b8b0; --blue: #4fb3c4;
    --line: rgba(238, 242, 251, .14); --green-soft: #173527; --blue-soft: #143238; --gold-soft: #3a2f12; --violet-soft: #2a2150;
    --sky-top: #1d4a55; --sky-bottom: #47757a; --shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1512; --surface: #13231e; --surface-2: #192c26; --ink: #eef7f3; --muted: #a5b8b0; --blue: #4fb3c4;
  --line: rgba(238, 242, 251, .14); --green-soft: #173527; --blue-soft: #143238; --gold-soft: #3a2f12; --violet-soft: #2a2150;
  --sky-top: #1d4a55; --sky-bottom: #47757a; --shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.45; -webkit-font-smoothing: antialiased; }
h1, h2, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* Masthead ------------------------------------------------------------------------------------ */
.masthead {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
  padding: 1rem clamp(1rem, 3vw, 2rem); background: var(--navy); color: #fff;
  border-radius: 0 0 22px 22px;
}
.brand { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; padding-right: 2rem; border-right: 1px solid rgba(255, 255, 255, .2); }
.brand img { border-radius: 10px; }
.brand b { display: block; font-size: 1.6rem; font-style: italic; letter-spacing: -.02em; }
.brand small { display: block; color: #c2ddd4; font-size: .82rem; }
.masthead-title h1 { font-size: clamp(1.25rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -.02em; }
.masthead-title h1 em { font-style: normal; color: #ffc93c; }
.masthead-title p { margin-top: .3rem; color: #c2ddd4; font-size: .95rem; }
.sell-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .9rem; margin-top: .55rem; }
.sell-cta a { display: inline-flex; align-items: center; gap: .3rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); color: #fff; font-weight: 700; font-size: .9rem; text-decoration: none; }
.sell-cta a:hover { background: rgba(255, 255, 255, .2); }
.sell-cta button { border: 0; background: none; padding: 0; color: #c2ddd4; font-size: .85rem; text-decoration: underline; }
.masthead-actions { display: flex; align-items: center; gap: .6rem; }
.badge-cta {
  display: flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #ffd45a, #f4b521); color: var(--navy); text-align: left; text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(244, 181, 33, .8);
}
.badge-cta > span:first-child { font-size: 1.6rem; }
.badge-cta b { display: block; font-size: .95rem; }
.badge-cta small { display: block; font-size: .78rem; }
.web-cta { display: block; padding: .5rem .9rem; border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px; color: #fff; text-decoration: none; }
.web-cta:hover { background: rgba(255, 255, 255, .12); }
.web-cta b { display: block; font-size: .95rem; }
.web-cta small { display: block; font-size: .78rem; color: #c2ddd4; }
.sheet-link { margin-left: .8rem; font-weight: 600; white-space: nowrap; }
.icon-btn { width: 2.4rem; height: 2.4rem; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: transparent; color: #fff; font-size: 1.1rem; }

/* Demos ---------------------------------------------------------------------------------------- */
.sell-cta a.demo-link { background: linear-gradient(180deg, #ffd45a, #f4b521); border-color: transparent; color: var(--navy); }
.sell-cta a.demo-link:hover { background: #ffd45a; }
.demo-band {
  display: grid; grid-template-columns: auto; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: center; gap: 1rem;
  /* one column per video, however many website/demos.json lists */
  max-width: 1500px; margin: 0 auto; padding: 1rem clamp(1rem, 3vw, 2rem) 0; scroll-margin-top: .5rem;
}
.demo-band-head small { display: block; color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.demo-band-head b { display: block; font-size: 1.15rem; letter-spacing: -.01em; }
.demo-card {
  display: grid; grid-template-columns: 168px minmax(0, 1fr); align-items: center; gap: .9rem; padding: .55rem; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s, border-color .15s;
}
.demo-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.demo-thumb { position: relative; display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--navy); }
.demo-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.demo-thumb i {
  position: absolute; inset: 0; margin: auto; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(11, 61, 51, .88); color: #fff;
  display: grid; place-items: center; font-style: normal; font-size: 1rem; padding-left: .15rem;
}
.demo-card b { display: block; font-size: 1rem; line-height: 1.2; }
.demo-card small { display: block; margin-top: .2rem; color: var(--muted); font-size: .84rem; }
.sheet.sheet-wide { width: min(940px, calc(100% - 2rem)); }
.demo-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; background: #000; }

/* Board --------------------------------------------------------------------------------------- */
.board {
  display: grid; gap: 1rem; padding: 1rem clamp(1rem, 3vw, 2rem);
  grid-template-columns: minmax(240px, 1fr) minmax(0, 2fr) minmax(280px, 1.15fr);
  grid-template-areas: "strengths showcase jobs" "flow flow audience";
  max-width: 1500px; margin: 0 auto;
}
.board > * { min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; gap: .5rem; padding: .9rem 1.1rem; font-size: 1.15rem; letter-spacing: -.01em; border-bottom: 1px solid var(--line); }
.panel-head small { color: var(--muted); font-size: .85rem; font-weight: 500; }

.strengths { grid-area: strengths; overflow: hidden; }
.strengths .panel-head { background: var(--navy-2); color: #fff; border-bottom: 0; }
.strength-list { list-style: none; margin: 0; padding: .5rem; display: grid; gap: .4rem; }
.strength-list button {
  display: flex; align-items: center; gap: .8rem; width: 100%; padding: .7rem .75rem; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); transition: transform .15s, border-color .15s;
}
.strength-list button:hover { border-color: var(--blue); transform: translateX(3px); }
.strength-list b { display: block; font-size: .98rem; }
.strength-list small { display: block; color: var(--muted); font-size: .8rem; }
.ico { display: grid; place-items: center; flex: 0 0 2.4rem; height: 2.4rem; border-radius: 10px; font-size: 1.2rem; }
.ico-blue { background: var(--blue-soft); } .ico-violet { background: #efeafe; } .ico-amber { background: var(--gold-soft); }
.ico-orange { background: #fdeedd; } .ico-red { background: #fde5e3; } .ico-green { background: var(--green-soft); }

.showcase {
  grid-area: showcase; display: grid; padding: .8rem; gap: .8rem; align-content: start;
  grid-template-columns: minmax(0, 1fr) clamp(150px, 34%, 230px); grid-template-areas: "scene shots" "systems shots" "hint shots";
}
.showcase > .scene { grid-area: scene; }
.showcase > .systems { grid-area: systems; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.showcase > .hint { grid-area: hint; }
.scene { position: relative; border-radius: 12px; overflow: hidden; }
.house { display: block; width: 100%; height: auto; }
/* The phone that cycles through real screens of the app. */
.shots { grid-area: shots; display: grid; gap: .45rem; align-content: start; justify-items: center; }
.phone {
  display: block; width: 100%; padding: 7px; border: 0; border-radius: 30px; background: #0c1220;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .55), inset 0 0 0 1.5px #2a3345;
}
.phone-screen { position: relative; display: block; aspect-ratio: 420 / 913; border-radius: 23px; overflow: hidden; background: #0c1220; }
.phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity var(--shot-fade, .45s) ease; }
.phone-screen img.is-current { opacity: 1; }
.shot-label { min-height: 1.3em; color: var(--ink); font-size: .84rem; font-weight: 700; text-align: center; }
.shot-nav { display: flex; align-items: center; gap: .3rem; }
.shot-nav button { border: 0; background: none; padding: .15rem .3rem; color: var(--muted); font-size: 1rem; line-height: 1; }
.shot-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: .28rem; }
.shot-dots button { width: .5rem; height: .5rem; padding: 0; border: 0; border-radius: 50%; background: var(--line); }
.shot-dots button[aria-current="true"] { background: var(--navy-2); }
@media (prefers-reduced-motion: reduce) { .phone-screen img { transition: none; } }
.packet-card {
  position: absolute; left: 3%; top: 5%; width: max-content; max-width: 62%; display: grid; gap: .15rem; padding: .4rem .55rem;
  border: 0; border-radius: 12px; background: #fff; color: var(--navy); text-align: left; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); transform: rotate(-3deg);
}
.packet-head { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); }
.packet-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; font-size: .7rem; white-space: nowrap; }
.packet-row b { padding: 0 .4rem; border-radius: 999px; background: #efeafd; color: #3e2b8f; font-size: .64rem; white-space: nowrap; }
.systems { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; }
.systems button {
  display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .7rem .3rem; text-align: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); transition: transform .15s, border-color .15s;
}
.systems button:hover { border-color: var(--blue); transform: translateY(-2px); }
.systems span { font-size: 1.5rem; line-height: 1.2; }
.systems b { font-size: .88rem; }
.systems small { color: var(--muted); font-size: .72rem; line-height: 1.25; }
.hint { color: var(--muted); font-size: .8rem; text-align: center; }

.jobs { grid-area: jobs; display: grid; gap: 1rem; }
.job {
  display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .15s;
}
.job:hover { transform: translateY(-3px); }
.job-green { background: var(--green-soft); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.job-blue { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 35%, transparent); }
.job-gold { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.job-violet { background: var(--violet-soft); border-color: color-mix(in srgb, var(--violet) 35%, transparent); }
.job-ico { display: grid; place-items: center; flex: 0 0 3rem; height: 3rem; border-radius: 50%; color: #fff; font-size: 1.4rem; }
.job-green .job-ico { background: var(--green); } .job-blue .job-ico { background: var(--blue); } .job-gold .job-ico { background: var(--gold); } .job-violet .job-ico { background: var(--violet); }
.job-body b { display: block; font-size: 1.1rem; line-height: 1.2; }
.job-body > small { display: block; margin: .2rem 0 .5rem; color: var(--muted); font-size: .88rem; }
.ticks { display: grid; gap: .25rem; font-size: .84rem; }
.ticks span::before { content: "✓ "; color: var(--green); font-weight: 800; }
.soon { display: inline-block; margin-left: .3rem; padding: .1rem .45rem; border-radius: 999px; background: var(--blue); color: #fff; font-size: .62rem; font-style: normal; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }

.flow { grid-area: flow; }
.flow .panel-head { flex-wrap: wrap; }
.flow-switch { display: inline-flex; gap: .3rem; margin-left: auto; }
.flow-switch button { padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .8rem; font-weight: 600; }
.flow-switch button[aria-pressed="true"] { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 40%, transparent); color: var(--ink); }
.flow-steps[hidden] { display: none !important; }
.stamp { display: inline-block; margin: 0 .2rem; padding: 0 .5rem; border: 2px solid var(--violet); border-radius: 6px; color: var(--violet); font-size: .75rem; font-weight: 800; transform: rotate(-2deg); }
.flow-steps { list-style: none; margin: 0; padding: 1rem 1.1rem .4rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; counter-reset: step; }
.flow-steps li { position: relative; }
.flow-steps li + li::before { content: "›"; position: absolute; left: -.55rem; top: 1.2rem; color: var(--muted); font-size: 1.2rem; font-weight: 700; }
.flow-steps button {
  display: flex; flex-direction: column; align-items: center; gap: .3rem; width: 100%; padding: .6rem .3rem;
  border: 1px solid transparent; border-radius: 12px; background: transparent; font-size: .85rem; font-weight: 600; text-align: center;
}
.flow-steps button span { font-size: 1.6rem; }
.flow-steps button:hover { background: var(--surface-2); }
.flow-steps button[aria-selected="true"] { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
.flow-caption { margin: .2rem 1.1rem 1rem; padding: .75rem 1rem; border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: .92rem; min-height: 3.6rem; }
.flow-caption b { color: var(--ink); }

.audience { grid-area: audience; }
.audience-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; padding: 1rem 1.1rem; }
.audience-row button { display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: .7rem .3rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); text-align: center; }
.audience-row button:hover { border-color: var(--blue); }
.audience-row span { font-size: 1.7rem; }
.audience-row small { color: var(--muted); font-size: .75rem; }
.plan {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: calc(100% - 2.2rem); margin: 0 1.1rem 1rem; padding: .8rem 1rem; text-align: left;
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent); border-radius: 12px; background: var(--green-soft);
}
.plan:hover { border-color: var(--green); }
.plan b { display: block; font-size: 1rem; }
.plan small { display: block; color: var(--muted); font-size: .78rem; }
.plan-price { text-align: right; white-space: nowrap; }

.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; max-width: 1500px; margin: 0 auto; padding: .4rem clamp(1rem, 3vw, 2rem) 1.4rem; color: var(--muted); font-size: .82rem; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
.footer a, .footer button { color: var(--muted); text-decoration: none; border: 0; background: none; padding: 0; font-size: .82rem; }
.footer a:hover, .footer button:hover { color: var(--blue); }

/* Detail sheet -------------------------------------------------------------------------------- */
.sheet { width: min(560px, calc(100% - 2rem)); max-height: min(88vh, 760px); padding: 0; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.sheet::backdrop { background: rgba(10, 18, 36, .55); backdrop-filter: blur(3px); }
.sheet[open] { animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-inner { position: relative; padding: 1.6rem 1.6rem 1.8rem; }
.sheet-close { position: absolute; top: .9rem; right: .9rem; width: 2.2rem; height: 2.2rem; border: 1px solid var(--line); border-radius: 50%; background: var(--surface-2); }
.sheet-content { display: grid; gap: .8rem; }
.sheet-content h2 { padding-right: 2.5rem; font-size: 1.55rem; line-height: 1.15; letter-spacing: -.02em; }
.sheet-content > p { color: var(--muted); }
.sheet-eyebrow { color: var(--blue) !important; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tone-green { color: var(--green) !important; } .tone-gold { color: #b67f00 !important; } .tone-blue { color: var(--blue) !important; } .tone-violet { color: var(--violet) !important; }
.check-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.check-list li { position: relative; padding-left: 1.5rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.mock { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.mock-head { display: flex; justify-content: space-between; padding: .6rem .9rem; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .6rem .9rem; border-top: 1px solid var(--line); font-size: .9rem; }
.mock-row small { display: block; color: var(--muted); font-size: .75rem; }
.mock-row b { white-space: nowrap; }
.mock-row b.warn { color: var(--orange); }
.chat { display: grid; gap: .5rem; font-size: .9rem; }
.chat-q, .chat-a { max-width: 85%; padding: .6rem .8rem; border-radius: 12px; }
.chat-q { justify-self: end; background: var(--blue); color: #fff; }
.chat-a { background: var(--surface-2); }
.shot { display: block; width: min(100%, 240px); height: auto; margin: 0 auto; border: 1px solid var(--line); border-radius: 18px; }
.muted { font-size: .82rem; }
.sheet-cta { display: inline-block; padding: .5rem 1rem; border-radius: 10px; background: var(--navy-2); color: #fff; font-weight: 700; text-decoration: none; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { padding: .75rem 0; font-weight: 700; cursor: pointer; }
.faq details p { padding-bottom: .75rem; color: var(--muted); }
.faq h3 { margin: 1.25rem 0 .4rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.faq h3:first-child { margin-top: 0; }
.faq details ol { margin: 0 0 .75rem 1.2rem; padding: 0; color: var(--muted); }
.faq details li { padding-bottom: .3rem; }

/* Smaller screens ----------------------------------------------------------------------------- */
@media (max-width: 1150px) {
  .board { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas: "showcase jobs" "strengths strengths" "flow flow" "audience audience"; }
  .strength-list { grid-template-columns: repeat(3, 1fr); }
  .masthead { grid-template-columns: auto 1fr; }
  .masthead-title { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 1350px) {
  .demo-band { grid-auto-flow: row; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .demo-band-head { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .demo-band { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); padding: .8rem 1rem 0; }
  .demo-card { grid-template-columns: 132px minmax(0, 1fr); }
  .demo-card small { display: none; }
  .masthead { grid-template-columns: 1fr auto; gap: 1rem; border-radius: 0 0 16px 16px; }
  .brand { border-right: 0; padding-right: 0; }
  .brand b { font-size: 1.3rem; }
  .badge-cta small, .badge-cta > span:first-child { display: none; }
  /* The pill under the headline already opens the web app on a phone. */
  .web-cta { display: none; }
  .board { grid-template-columns: minmax(0, 1fr); grid-template-areas: "showcase" "jobs" "strengths" "flow" "audience"; padding: .8rem 1rem; }
  .strength-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strength-list small { display: none; }
  .systems { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .systems small { display: none; }
  .audience-row small { display: none; }
  .showcase { grid-template-columns: minmax(0, 1fr); grid-template-areas: "scene" "shots" "systems" "hint"; }
  .shots { width: min(64%, 250px); justify-self: center; }
  .packet-card { padding: .3rem .45rem; }
  .packet-row:last-child { display: none; }
  .packet-row { font-size: .6rem; }
  .packet-row b { font-size: .55rem; }
  .flow-switch { margin-left: 0; }
  .flow-steps { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .6rem; }
  .flow-steps li { flex: 0 0 7.5rem; scroll-snap-align: start; }
  .flow-steps li + li::before { display: none; }
  .sheet { width: 100%; max-width: 100%; max-height: 88vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
