/* Like the State — shared styles for the studio site and every app's pages.
   Studio pages use the neutral palette; an app's pages set `--brand` (and
   friends) on <body class="app-…"> so each product keeps its own color while
   sharing one layout system. */

@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f6f5f0;
  --surface: #ffffff;
  --border: #e4e1d6;
  --ink: #16231a;
  --ink-soft: #55625a;
  --ink-faint: #8d998f;
  --brand: #16231a;
  --brand-dark: #0b130e;
  --brand-soft: #e9e7df;
  --accent: #f58220;
  --radius: 18px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(22, 35, 26, 0.05), 0 8px 24px rgba(22, 35, 26, 0.06);
}

body.app-habitform {
  --brand: #1e5b32;
  --brand-dark: #123a20;
  --brand-soft: #dff0e3;
  --accent: #f58220;
}
body.app-the-industry {
  --brand: #c2410c;
  --brand-dark: #9a3412;
  --brand-soft: #fde9dc;
  --accent: #e8b00c;
}

body.app-production-portal {
  --brand: #3f5aa6;
  --brand-dark: #262323;
  --brand-soft: #e4e9f6;
  --accent: #5470b8;
}
/* Keep the phone overlapping the browser window inside the page edge. */
body.app-production-portal .screens .phone.small { right: 0; }

body.app-every-little-thing {
  --brand: #5a55f2;
  --brand-dark: #3a35c4;
  --brand-soft: #ecebff;
  --accent: #5a55f2;
}
body.app-cabinet {
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --brand-soft: #eef0ff;
  --accent: #4f46e5;
}
body.app-workflow {
  --brand: #19388a;
  --brand-dark: #10255e;
  --brand-soft: #e3eafb;
  --accent: #4673d9;
}
/* WorkFlow's hero preview and feature panels, drawn in CSS (no screenshots yet) */
.wf-preview { background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 24px; padding: 16px; box-shadow: 0 24px 60px rgba(16, 37, 94, .14); }
.wf-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.wf-acct { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.wf-acct span { height: 36px; display: block; }
.wf-acct small { padding: 8px 10px 0; font-size: 11px; color: var(--ink-faint); }
.wf-acct b { padding: 0 10px 10px; font-size: 15px; }
.wf-chart { margin-top: 12px; border: 1px solid var(--border); border-radius: 14px; padding: 12px; }
.wf-chart small { font-size: 11px; color: var(--ink-faint); }
.wf-bars { height: 96px; display: flex; align-items: flex-end; gap: 4px; margin-top: 8px; }
.wf-bars i { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; }
.wf-bars i.o { background: #cbd5e1; }
.wf-flag { margin-top: 12px; border: 1px solid #fcd34d; background: #fffbeb; color: #78350f; border-radius: 14px; padding: 10px 12px; font-size: 13px; }
.wf-panel { background: var(--surface, #fff); border: 1px solid var(--border); border-radius: 20px; padding: 8px 18px; box-shadow: 0 12px 32px rgba(16, 37, 94, .08); }
.wf-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.wf-row:last-child { border-bottom: 0; }
.wf-row.muted { color: var(--ink-faint); }

body.app-atinterfaces {
  --brand: #1f6fa8;
  --brand-dark: #14507c;
  --brand-soft: #e3f0f9;
  --accent: #5bc8f5;
}

/* AT Interfaces screenshots are 800px wide — cap the frames so they stay sharp. */
body.app-atinterfaces .hero-shot,
body.app-atinterfaces .shots .browser { max-width: 880px; margin-left: auto; margin-right: auto; }


body.app-architect-toolkit {
  --brand: #17495a;
  --brand-dark: #0f3340;
  --brand-soft: #e1eef2;
  --accent: #ff8a3d;
}

body.app-name-that-tune {
  --brand: #7c3aed;
  --brand-dark: #5b21b6;
  --brand-soft: #f1e9fe;
  --accent: #db2777;
}
/* Keep the phone overlapping the TV screenshot inside the page edge. */
body.app-name-that-tune .screens .phone.small { right: 0; }

body.app-makin-movies {
  --brand: #6f4518;
  --brand-dark: #4e300f;
  --brand-soft: #f6ecdc;
  --accent: #c9a227;
}
/* The typewriter title card stands in for a screenshot in the hero. */
body.app-makin-movies .poster-card { border-radius: 18px; overflow: hidden; box-shadow: 0 2px 4px rgba(22,35,26,.08), 0 24px 60px rgba(22,35,26,.18); transform: rotate(-1.5deg); }
body.app-makin-movies .poster-card img { display: block; width: 100%; height: auto; }

body.app-best-take {
  --brand: #a8620c;
  --brand-dark: #7a4608;
  --brand-soft: #fbefdc;
  --accent: #f0a33a;
}
body.app-color-match {
  --brand: #1f6f78;
  --brand-dark: #154f56;
  --brand-soft: #e0f0f1;
  --accent: #e2733a;
}
body.app-mockumentary-cam {
  --brand: #b3261e;
  --brand-dark: #861b15;
  --brand-soft: #fbe7e5;
  --accent: #222222;
}
/* DaVinci Resolve pages: wide panel screenshots, a before/after strip and the live camera demo */
body.app-best-take .hero-shot,
body.app-best-take .shots .browser { max-width: 960px; margin-left: auto; margin-right: auto; }
.hero .cm-strip { margin-top: 36px; }
.cm-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cm-strip figure { margin: 0; }
.cm-strip img { width: 100%; height: auto; display: block; border-radius: 12px; }
.cm-strip figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.cm-strip figcaption b { color: var(--ink); }
@media (max-width: 720px) { .cm-strip { grid-template-columns: 1fr; } }
.report { background: #14181a; color: #dfe6e4; border-radius: var(--radius); padding: 22px 24px; font: 13.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-x: auto; box-shadow: var(--shadow); }
.report .lvl { color: #f0a36a; font-weight: 700; }
.report .dim { color: #8fa09d; }
.report .k { color: #7fd0d8; }
.mc-demo { background: #0d0d0d; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.mc-view { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #000; }
.mc-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; will-change: transform; }
.mc-view .rec { position: absolute; top: 12px; left: 14px; color: #fff; font: 600 13px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; display: flex; align-items: center; gap: 7px; text-shadow: 0 1px 3px #000a; }
.mc-view .rec i { width: 10px; height: 10px; border-radius: 50%; background: #e0362c; animation: mcblink 1.2s steps(2) infinite; }
@keyframes mcblink { 50% { opacity: 0; } }
.mc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 6px 4px; color: #e8e4df; font-size: 15px; }
.mc-controls label { display: flex; align-items: center; gap: 10px; }
.mc-controls input[type=range] { width: 140px; accent-color: #e0362c; }
.mc-controls button { font: inherit; font-weight: 600; border: 0; border-radius: 999px; padding: 9px 18px; background: #e0362c; color: #fff; cursor: pointer; }
.mc-controls button.ghost { background: #2a2a2a; color: #e8e4df; }
@media (prefers-reduced-motion: reduce) { .mc-view .rec i { animation: none; } }

body.app-one-more-take {
  --brand: #4f6488;
  --brand-dark: #34445f;
  --brand-soft: #eef1f7;
  --accent: #e11d2a;
}
body.app-cuetocue {
  --brand: #6b2fa3;
  --brand-dark: #4c1f78;
  --brand-soft: #f1e8fb;
  --accent: #e8a33d;
}
/* Cue to Cue's account, pricing and idea-board pages (they talk to Supabase via /cuetocue/app.js) */
.cc-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; text-align: left; }
.cc-plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.cc-plan.pro { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.cc-plan h3 { font-size: 22px; }
.cc-plan .price { font-size: 44px; font-weight: 800; margin-top: 6px; }
.cc-plan .price small { font-size: 17px; font-weight: 500; color: var(--ink-soft); }
.cc-plan .checks { flex: 1; margin: 18px 0 24px; }
.cc-plan .checks li.no { color: var(--ink-faint); text-decoration: line-through; }
.cc-plan .checks li.no::before { content: '–'; background: var(--border); color: var(--ink-faint); }
.cc-plan .badge { position: absolute; top: -12px; right: 20px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.cc-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.cc-panel label { display: block; font-size: 14px; font-weight: 600; margin: 14px 0 6px; }
.cc-panel input, .cc-panel textarea, .cc-panel select, .cc-admin input { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--ink); }
.cc-panel textarea { min-height: 110px; resize: vertical; }
.cc-panel .btn-row { margin-top: 18px; }
button.btn { cursor: pointer; font: inherit; font-weight: 600; }
button.btn:disabled { opacity: .55; cursor: default; }
.cc-tabs { display: flex; gap: 6px; padding: 4px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; margin: 18px 0 4px; }
.cc-tabs button { flex: 1; font: inherit; font-weight: 600; padding: 8px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); cursor: pointer; }
.cc-tabs button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.cc-msg { margin-top: 12px; font-size: 15px; color: var(--ink-soft); min-height: 1em; }
.cc-msg.error { color: #b42318; }
.cc-msg.ok { color: #1e7a4c; }
.cc-note { background: var(--brand-soft); color: var(--brand-dark); border-radius: 12px; padding: 14px 18px; margin-top: 20px; }
.cc-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 14px; }
.cc-filters button { font: inherit; font-size: 14px; font-weight: 600; padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-soft); cursor: pointer; }
.cc-filters button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.cc-idea { display: grid; grid-template-columns: 48px 1fr; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.cc-idea + .cc-idea { margin-top: 10px; }
.cc-idea h3 { font-size: 18px; margin-top: 6px; }
.cc-idea p { margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; }
.cc-votes { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cc-votes button { border: 0; background: none; color: var(--ink-faint); font-size: 15px; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.cc-votes button.on { color: var(--brand); background: var(--brand-soft); }
.cc-votes .score { font-weight: 800; }
.cc-idea-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-faint); }
.cc-status { padding: 2px 9px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.cc-admin-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; font-size: 14px; }
.cc-admin-row select { width: auto; font: inherit; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--border); }
.cc-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cc-table th, .cc-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cc-table th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.doc article table, .legal table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15.5px; }
.doc article th, .doc article td, .legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--ink-soft); }
.doc article th, .legal th { color: var(--ink); white-space: nowrap; }
.doc article pre { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; overflow-x: auto; font-size: 14px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(246, 245, 240, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand img.wordmark { width: auto; height: 26px; border-radius: 0; }
.brand .studio { font-weight: 500; color: var(--ink-faint); font-size: 14px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-weight: 500; font-size: 15.5px; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-cta { background: var(--brand); color: #fff !important; padding: 8px 16px; border-radius: 999px; font-weight: 600 !important; }
.nav-cta:hover { background: var(--brand-dark); }
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--ink); cursor: pointer; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
}

/* ---- Buttons ---- */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1.5px solid transparent; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface); }
.store-btn { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 14px; line-height: 1.1; }
.store-btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; }
.store-btn strong { font-size: 17px; }
.store-btn.soon { opacity: .55; pointer-events: none; }

/* ---- Sections ---- */
section { padding: 88px 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; }
.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---- Hero ---- */
.hero { padding: 88px 0 72px; }
.hero h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 800; }
.hero .lede { margin-top: 20px; font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); max-width: 620px; }
.hero .btn-row { margin-top: 30px; }
.hero-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-split { grid-template-columns: 1fr; } }

/* ---- Studio: app catalog ---- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.app-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); text-decoration: none; color: var(--ink);
  transition: transform .2s, box-shadow .2s;
}
a.app-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(22,35,26,.06), 0 18px 40px rgba(22,35,26,.1); }
.app-card .app-icon { width: 60px; height: 60px; border-radius: 15px; display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #fff; }
.app-card h3 { font-size: 22px; }
.app-card p { color: var(--ink-soft); font-size: 16px; }
.app-card .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-soft); border: 1px solid var(--border); }
.tag.live { background: #dff0e3; color: #1e5b32; border-color: transparent; }
.app-group + .app-group { margin-top: 48px; }
.app-group-title { font-size: 20px; margin-bottom: 18px; color: var(--ink); }
.app-card .go { position: absolute; top: 26px; right: 26px; color: var(--ink-faint); font-size: 20px; }

/* ---- Product: phone frames + feature rows ---- */
.phone {
  width: 100%; max-width: 300px; aspect-ratio: 1290 / 2796; border-radius: 44px; padding: 10px; margin: 0 auto;
  background: #111; box-shadow: 0 30px 60px rgba(22,35,26,.22), inset 0 0 0 2px #2a2a2a;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 35px; background: var(--bg); }
.phone.small { max-width: 230px; border-radius: 36px; padding: 8px; }
.phone.small img { border-radius: 29px; }
.phone-stack { display: flex; justify-content: center; align-items: flex-end; gap: 18px; }
.phone-stack .phone:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 900px) { .phone-stack .phone:not(:first-child) { display: none; } }

/* ---- Browser window (web apps) ---- */
.browser { border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 24px 60px rgba(22, 35, 26, 0.16); }
.browser-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--bg); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser img { width: 100%; height: auto; }
/* A desktop window with a phone overlapping its corner. */
.screens { position: relative; padding-bottom: 36px; }
.screens .phone.small { position: absolute; right: -18px; bottom: 0; width: 34%; max-width: 190px; padding: 6px; border-radius: 30px; }
.screens .phone.small img { border-radius: 24px; }
.hero-wide { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-wide { grid-template-columns: 1fr; } .screens .phone.small { right: 0; } }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 40px 0; }
.feature-row.wide { grid-template-columns: 1.3fr 1fr; gap: 56px; }
.feature-row.wide.reverse { grid-template-columns: 1fr 1.3fr; }
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row.reverse .feature-media { order: 2; }
.feature-row h3 { font-size: clamp(26px, 3vw, 34px); }
.feature-row p { margin-top: 14px; color: var(--ink-soft); font-size: 18px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink); }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-media { order: 0; }
}

/* ---- Example scenarios ---- */
.examples { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.example { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.example .who { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.example .avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; background: var(--brand-soft); }
.example h3 { font-size: 19px; }
.example .role { font-size: 14px; color: var(--ink-faint); }
.example p { color: var(--ink-soft); font-size: 16px; }
.example .setup { margin-top: 16px; padding: 14px 16px; border-radius: 12px; background: var(--bg); font-size: 14.5px; }
.example .setup strong { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.example .setup ul { margin: 0; padding-left: 18px; color: var(--ink); }

/* ---- Stats strip ---- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 22px; border-radius: var(--radius); background: var(--brand); color: #fff; }
.stat b { display: block; font-size: 30px; font-weight: 800; }
.stat span { opacity: .85; font-size: 15px; }
@media (max-width: 780px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }

/* ---- Cards grid (small features) ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card .ico { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.card h3 { font-size: 18px; }
.card p { margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; }

/* ---- FAQ ---- */
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--ink-faint); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin-top: 12px; color: var(--ink-soft); }

/* ---- CTA band ---- */
.cta-band { background: var(--brand); color: #fff; border-radius: 28px; padding: 56px 32px; text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 40px); }
.cta-band p { margin: 12px auto 0; max-width: 560px; opacity: .88; font-size: 18px; }
.cta-band .btn-row { justify-content: center; margin-top: 26px; }
.cta-band .btn-secondary { background: #fff; color: var(--brand-dark); border-color: #fff; }
.cta-band .btn-secondary:hover { background: var(--brand-soft); }
.cta-band .store-btn { background: #fff; color: var(--ink); }

/* ---- Guide (docs) layout ---- */
.doc { display: grid; grid-template-columns: 230px 1fr; gap: 48px; padding: 56px 0 96px; }
.doc nav { position: sticky; top: 88px; align-self: start; font-size: 15px; }
.doc nav p { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.doc nav a { display: block; padding: 5px 0; color: var(--ink-soft); text-decoration: none; }
.doc nav a:hover { color: var(--brand); }
.doc article h1 { font-size: 40px; }
.doc article .intro { margin-top: 12px; color: var(--ink-soft); font-size: 19px; }
.doc article h2 { font-size: 27px; margin-top: 52px; padding-top: 8px; scroll-margin-top: 84px; }
.doc article h3 { font-size: 20px; margin-top: 28px; }
.doc article p, .doc article li { color: var(--ink-soft); }
.doc article p { margin-top: 12px; }
.doc article ul, .doc article ol { padding-left: 22px; margin: 12px 0 0; }
.doc article li + li { margin-top: 6px; }
.doc article strong { color: var(--ink); }
.doc figure { margin: 24px 0 0; display: flex; gap: 18px; flex-wrap: wrap; }
.doc figure .phone { margin: 0; }
.doc figure .browser { width: 100%; display: block; }
.tip { margin-top: 18px; padding: 16px 18px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-dark); font-size: 15.5px; }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .doc nav { position: static; } }

/* ---- Legal ---- */
.legal { padding: 56px 0 96px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: 38px; }
.legal .updated { color: var(--ink-faint); font-size: 14px; margin: 8px 0 36px; }
.legal h2 { font-size: 22px; margin-top: 40px; scroll-margin-top: 84px; }
.legal h3 { font-size: 17px; margin-top: 24px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; }
.legal p { margin-top: 12px; }
.legal ul, .legal ol { padding-left: 22px; }
.legal .callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.legal .callout p { margin: 0; color: var(--ink); }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; margin-bottom: 28px; }
.toc p { margin: 0 0 8px; font-weight: 700; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.toc ol { margin: 0; padding-left: 18px; font-size: 15px; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--brand); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 48px 0 36px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.footer-grid a { display: block; color: var(--ink-soft); text-decoration: none; padding: 3px 0; }
.footer-grid a:hover { color: var(--ink); }
.footer-grid .about p { color: var(--ink-soft); margin-top: 10px; max-width: 320px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--ink-faint); font-size: 14px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

.muted { color: var(--ink-faint); }
.center { text-align: center; }

/* ---- Desktop screenshots: a browser window frame, and the tabbed "See it in action" gallery ---- */
.browser {
  display: block; border-radius: 14px; overflow: hidden; background: #0f1a20; text-decoration: none;
  box-shadow: 0 1px 2px rgba(22,35,26,.08), 0 24px 56px rgba(22,35,26,.2); border: 1px solid #22323a;
}
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: #16242b; border-bottom: 1px solid #22323a; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4b53; }
.browser img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.hero-text { max-width: 760px; }
.hero-shot { margin-top: 56px; }

/* Radio-button tabs: no script needed. The nth input shows the nth panel and highlights the nth tab. */
.shots > input { position: absolute; opacity: 0; pointer-events: none; }
.shot-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.shot-tabs label {
  padding: 7px 15px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  color: var(--ink-soft); font-size: 15px; font-weight: 600; cursor: pointer; transition: color .15s, border-color .15s;
}
.shot-tabs label:hover { color: var(--ink); border-color: var(--ink-faint); }
.shot-panels figure { display: none; margin: 0; }
.shot-panels figcaption { margin: 18px auto 0; max-width: 720px; text-align: center; color: var(--ink-soft); font-size: 17px; }
.shots > input:nth-of-type(1):checked ~ .shot-panels > figure:nth-child(1) { display: block; }
.shots > input:nth-of-type(1):checked ~ .shot-tabs > label:nth-child(1) { background: var(--brand); border-color: var(--brand); color: #fff; }
.shots > input:nth-of-type(1):focus-visible ~ .shot-tabs > label:nth-child(1) { outline: 2px solid var(--brand); outline-offset: 2px; }
.shots > input:nth-of-type(2):checked ~ .shot-panels > figure:nth-child(2) { display: block; }
.shots > input:nth-of-type(2):checked ~ .shot-tabs > label:nth-child(2) { background: var(--brand); border-color: var(--brand); color: #fff; }
.shots > input:nth-of-type(2):focus-visible ~ .shot-tabs > label:nth-child(2) { outline: 2px solid var(--brand); outline-offset: 2px; }
.shots > input:nth-of-type(3):checked ~ .shot-panels > figure:nth-child(3) { display: block; }
.shots > input:nth-of-type(3):checked ~ .shot-tabs > label:nth-child(3) { background: var(--brand); border-color: var(--brand); color: #fff; }
.shots > input:nth-of-type(3):focus-visible ~ .shot-tabs > label:nth-child(3) { outline: 2px solid var(--brand); outline-offset: 2px; }
.shots > input:nth-of-type(4):checked ~ .shot-panels > figure:nth-child(4) { display: block; }
.shots > input:nth-of-type(4):checked ~ .shot-tabs > label:nth-child(4) { background: var(--brand); border-color: var(--brand); color: #fff; }
.shots > input:nth-of-type(4):focus-visible ~ .shot-tabs > label:nth-child(4) { outline: 2px solid var(--brand); outline-offset: 2px; }
.shots > input:nth-of-type(5):checked ~ .shot-panels > figure:nth-child(5) { display: block; }
.shots > input:nth-of-type(5):checked ~ .shot-tabs > label:nth-child(5) { background: var(--brand); border-color: var(--brand); color: #fff; }
.shots > input:nth-of-type(5):focus-visible ~ .shot-tabs > label:nth-child(5) { outline: 2px solid var(--brand); outline-offset: 2px; }
.shots > input:nth-of-type(6):checked ~ .shot-panels > figure:nth-child(6) { display: block; }
.shots > input:nth-of-type(6):checked ~ .shot-tabs > label:nth-child(6) { background: var(--brand); border-color: var(--brand); color: #fff; }
.shots > input:nth-of-type(6):focus-visible ~ .shot-tabs > label:nth-child(6) { outline: 2px solid var(--brand); outline-offset: 2px; }
.shots > input:nth-of-type(7):checked ~ .shot-panels > figure:nth-child(7) { display: block; }
.shots > input:nth-of-type(7):checked ~ .shot-tabs > label:nth-child(7) { background: var(--brand); border-color: var(--brand); color: #fff; }
.shots > input:nth-of-type(7):focus-visible ~ .shot-tabs > label:nth-child(7) { outline: 2px solid var(--brand); outline-offset: 2px; }
.shots > input:nth-of-type(8):checked ~ .shot-panels > figure:nth-child(8) { display: block; }
.shots > input:nth-of-type(8):checked ~ .shot-tabs > label:nth-child(8) { background: var(--brand); border-color: var(--brand); color: #fff; }
.shots > input:nth-of-type(8):focus-visible ~ .shot-tabs > label:nth-child(8) { outline: 2px solid var(--brand); outline-offset: 2px; }
.shots > input:nth-of-type(9):checked ~ .shot-panels > figure:nth-child(9) { display: block; }
.shots > input:nth-of-type(9):checked ~ .shot-tabs > label:nth-child(9) { background: var(--brand); border-color: var(--brand); color: #fff; }
.shots > input:nth-of-type(9):focus-visible ~ .shot-tabs > label:nth-child(9) { outline: 2px solid var(--brand); outline-offset: 2px; }
.shots > input:nth-of-type(10):checked ~ .shot-panels > figure:nth-child(10) { display: block; }
.shots > input:nth-of-type(10):checked ~ .shot-tabs > label:nth-child(10) { background: var(--brand); border-color: var(--brand); color: #fff; }
.shots > input:nth-of-type(10):focus-visible ~ .shot-tabs > label:nth-child(10) { outline: 2px solid var(--brand); outline-offset: 2px; }
.shots > input:nth-of-type(11):checked ~ .shot-panels > figure:nth-child(11) { display: block; }
.shots > input:nth-of-type(11):checked ~ .shot-tabs > label:nth-child(11) { background: var(--brand); border-color: var(--brand); color: #fff; }
.shots > input:nth-of-type(11):focus-visible ~ .shot-tabs > label:nth-child(11) { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Contact form */
.contact-form { display: grid; gap: 16px; max-width: 560px; margin-top: 24px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; font: inherit; font-weight: 400; padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--ink); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-form button { justify-self: start; cursor: pointer; }
.contact-form button:disabled { opacity: .6; cursor: default; }
.form-status.ok { color: #1e6b3a; font-weight: 600; }
.form-status.error { color: #b3261e; font-weight: 600; }

/* Image lightbox */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(11, 19, 14, .88); cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); cursor: default; }
.lightbox-close { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255, 255, 255, .28); }
body.lightbox-open { overflow: hidden; }

/* Cabinet: a small drawn window in the hero (no real files shown) */
.cab-mock .browser { box-shadow: 0 24px 60px rgba(15, 23, 42, .18); }
.cab-window { display: grid; grid-template-columns: 150px 1fr; min-height: 300px; font-size: 13px; background: var(--surface); color: var(--ink); text-align: left; }
.cab-side { background: var(--bg); border-right: 1px solid var(--border); padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.cab-side b { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); margin-top: 8px; }
.cab-side b:first-child { margin-top: 0; }
.cab-side i { font-style: normal; display: flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cab-side i::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--c); flex: none; }
.cab-main { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cab-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.cab-title small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-faint); }
.cab-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); white-space: nowrap; }
.cab-row .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cab-row em { font-style: normal; color: var(--ink-faint); flex: none; }
.cab-row .keep, .cab-row .del { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; flex: none; }
.cab-row .keep { background: #dcfce7; color: #166534; }
.cab-row .del { background: #fee2e2; color: #991b1b; }
@media (max-width: 560px) {
  .cab-window { grid-template-columns: 1fr; }
  .cab-side { display: none; }
}
