/* Shared by every manoai.co.uk page. Page-specific styles stay inline in each page. */
ul, ol { padding-left: 0; }
:root {
  --bg: #0f0f0f; --bg2: #141414; --surface: #1c1c1c; --surface2: #222;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12);
  --text: #f0ede8; --text2: rgba(240,237,232,.6); --text3: rgba(240,237,232,.36);
  --orange: #e87d2a; --orange-soft: rgba(232,125,42,.12); --orange-line: rgba(232,125,42,.34);
  --green: #22c55e; --amber: #f59e0b; --red: #ef4444;
  --app: #15171c; --app2: #191c23; --app-line: rgba(255,255,255,.06); --app-dim: #7b8090;

  --sc-canvas: var(--bg); --sc-surface: var(--surface);
  --sc-ink: var(--text); --sc-ink-soft: var(--text2);
  --sc-accent: var(--orange); --sc-accent-ink: #0f0f0f;
  --sc-font-display: "Barlow Condensed", system-ui, sans-serif;
  --sc-font-text: "Barlow", system-ui, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
}
html { background: var(--bg); }
body { color: var(--text); font-family: var(--sc-font-text); }
a { color: inherit; }

.glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px circle at 78% 8%, rgba(232,125,42,.13), transparent 50%),
              radial-gradient(700px circle at 10% 90%, rgba(232,125,42,.06), transparent 55%); }

/* ---------- nav (same links and labels as the live site) ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 600; display: flex; align-items: center; gap: 28px;
  padding: 14px clamp(18px, 3.4vw, 48px); background: rgba(15,15,15,.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav__logo { font-family: var(--sc-font-display); font-weight: 700; letter-spacing: .12em; font-size: 18px; text-decoration: none; }
.nav__logo span { color: var(--orange); }
.nav__links { margin-left: auto; display: flex; gap: 26px; align-items: center; }
.nav__links a { font-size: 14px; color: var(--text2); text-decoration: none; transition: color .2s; }
.nav__links a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border-radius: 4px; font-family: var(--sc-font-display); font-weight: 700; font-size: 14px;
  letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border: 1px solid var(--line2);
  transition: background .2s, border-color .2s, color .2s; }
.btn--solid { background: var(--text); color: #0f0f0f; border-color: transparent; }
.btn--solid:hover { background: var(--orange); }
.btn--ghost:hover { border-color: var(--orange); }
.nav__links a.btn--solid { color: #0f0f0f; }
.nav__links a.btn--solid:hover { color: #0f0f0f; }
.nav .btn { min-height: 38px; font-size: 13px; padding: 0 18px; }
.btn:focus-visible, .nav a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

h1, h2 { font-family: var(--sc-font-display); font-weight: 700; text-transform: uppercase; letter-spacing: -.01em; line-height: .95; }

.frame { position: relative; background: var(--app); border: 1px solid var(--line2); border-radius: 14px; overflow: hidden;
  box-shadow: 0 -30px 120px rgba(232,125,42,.16), 0 40px 100px rgba(0,0,0,.55);
  transform-origin: 50% 0; will-change: transform; }
.frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #121418; border-bottom: 1px solid var(--app-line); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a2d35; }
.frame-url { margin-left: 10px; font-size: 11px; color: var(--app-dim); background: #1e2129; border-radius: 6px; padding: 4px 12px; }

.app { display: flex; min-height: clamp(360px, 58vh, 520px); font-size: 12px; }
.app__side { width: 172px; flex-shrink: 0; background: var(--app2); border-right: 1px solid var(--app-line); padding: 14px 9px; }
.app__logo { font-family: var(--sc-font-display); font-weight: 800; letter-spacing: .14em; font-size: 16px; padding: 0 8px 14px; }
.app__logo span { color: var(--orange); }
.app__item { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 6px; color: #9298a6; font-size: 11.5px; font-weight: 500; transition: background .35s, color .35s; }
.app__item i { width: 11px; height: 11px; border: 1.4px solid currentColor; border-radius: 3px; }
.app__item.on { background: var(--orange-soft); color: var(--orange); font-weight: 600; }
.app__lab { font-size: 9px; font-weight: 700; color: #565b68; padding: 12px 9px 5px; letter-spacing: .08em; }
.app__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app__top { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--app-line); }
.app__crumb { font-size: 11px; color: #565b68; font-weight: 600; }
.app__crumb b { color: #c7cad3; }
.saved { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; color: var(--orange);
  border: 1px solid var(--orange-line); background: var(--orange-soft); border-radius: 6px; padding: 5px 10px; font-variant-numeric: tabular-nums; }
.saved b { font-size: 13px; color: var(--text); letter-spacing: .02em; }
.saved.tick { animation: tick .6s var(--ease); }
@keyframes tick { 40% { transform: scale(1.08); box-shadow: 0 0 0 6px rgba(232,125,42,.14); } }
.app__av { width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; }
.app__body { position: relative; flex: 1; padding: 18px; }
.greet { font-size: 16px; font-weight: 650; }
.sub { font-size: 10.5px; color: #565b68; margin: 2px 0 14px; }
.strip { display: flex; background: var(--app2); border: 1px solid var(--app-line); border-radius: 9px; margin-bottom: 12px; }
.cell { flex: 1; padding: 11px 14px; }
.cell + .cell { border-left: 1px solid var(--app-line); }
.num { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; transition: color .3s; }
.num.g { color: var(--green); }
.num.flash { color: var(--orange); }
.cl { font-size: 9.5px; color: var(--app-dim); }
.cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: 12px; }
.card { background: var(--app2); border: 1px solid var(--app-line); border-radius: 9px; padding: 11px 13px; }
.ct { font-size: 11px; font-weight: 650; margin-bottom: 6px; display: flex; justify-content: space-between; }
.ct span { color: var(--app-dim); font-weight: 500; }
.row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--app-line);
  transition: opacity .45s var(--ease), transform .45s var(--ease), max-height .45s var(--ease), padding .45s; max-height: 48px; overflow: hidden; }
.row:first-of-type { border-top: 0; }
.tag { font-size: 9px; font-weight: 700; border-radius: 4px; padding: 3px 6px; background: rgba(245,158,11,.14); color: var(--amber); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.tag.r { background: rgba(239,68,68,.13); color: var(--red); }
.tag.n { background: #20242e; color: var(--app-dim); }
.tag.o { background: var(--orange-soft); color: var(--orange); }
.rn { font-size: 11px; font-weight: 550; }
.rm { font-size: 9.5px; color: var(--app-dim); }
.amt { margin-left: auto; font-size: 10.5px; font-weight: 650; color: var(--green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.amt.o { color: var(--orange); }
.done-pill { margin-left: auto; font-size: 9.5px; font-weight: 700; color: var(--green); background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.35); border-radius: 5px; padding: 3px 8px; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .3s var(--ease); }
.row.new { opacity: 0; transform: translateY(-8px); max-height: 0; padding: 0; border-top-color: transparent; }
.row.gone { opacity: 0; transform: translateX(16px); max-height: 0; padding: 0; }

/* task panels that pop up inside the app as each task runs */
.pop { position: absolute; left: 18px; bottom: 18px; width: min(320px, 40%); background: #1d2029; border: 1px solid var(--line2);
  border-radius: 10px; padding: 13px 14px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.pop.on { opacity: 1; transform: none; }
.pop__h { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 700; color: #c7cad3; margin-bottom: 9px; }
.pop__h span { color: var(--orange); }
.kv { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--app-dim); padding: 3px 0; }
.kv b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.kv.big b { font-size: 16px; color: var(--green); }
.pass { display: inline-block; font-size: 10px; font-weight: 800; color: var(--green); background: rgba(34,197,94,.12); border-radius: 4px; padding: 2px 7px; }
.msg { font-size: 11px; line-height: 1.5; color: #d5d7dd; background: #15171c; border: 1px solid var(--app-line); border-radius: 8px; padding: 9px 10px; }
.msg .caret { display: inline-block; width: 1px; height: 12px; background: var(--orange); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.cursor { position: absolute; left: 0; top: 0; z-index: 8; pointer-events: none; opacity: 0;
  transition: transform .8s cubic-bezier(.45,.05,.3,1), opacity .35s; }
.cursor.on { opacity: 1; }
.cursor svg { display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }

.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.eyebrow-free { }
[aria-current="page"] { color: var(--text) !important; }

/* ---------- nav: links collapse into a menu under 900px ---------- */
.nav__cta { margin-left: 26px; }
.nav__toggle { display: none; width: 42px; height: 38px; margin-left: 10px; border: 1px solid var(--line2); border-radius: 4px;
  background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 16px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s var(--ease), background .2s; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -5px; } .nav__toggle span::after { top: 5px; }
.nav.open .nav__toggle span { background: transparent; }
.nav.open .nav__toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav.open .nav__toggle span::after { transform: translateY(-5px) rotate(-45deg); }
.nav__toggle:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- inner-page header ---------- */
.page-head { padding: clamp(130px, 20vh, 190px) 0 clamp(50px, 8vh, 90px); }
.page-head h1 { font-size: clamp(44px, 6.2vw, 88px); max-width: 14ch; }
.page-head h1 em { font-style: normal; color: var(--orange); }
.page-head p { margin-top: 22px; max-width: 580px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--text2); }
.page-head .ctas { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.lede { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: var(--text2); }
.section { padding: clamp(70px, 11vh, 130px) 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(34px, 4.2vw, 60px); }
.section h2 em { font-style: normal; color: var(--orange); }

/* ---------- closing band + footer on inner pages ---------- */
.band { padding: clamp(80px, 13vh, 150px) 0; border-top: 1px solid var(--line); text-align: center; }
.band h2 { font-size: clamp(40px, 5.6vw, 84px); }
.band h2 em { font-style: normal; color: var(--orange); }
.band p { max-width: 520px; margin: 20px auto 0; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; color: var(--text2); }
.band .ctas { display: flex; gap: 10px; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.site-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px clamp(18px, 3.4vw, 48px);
  border-top: 1px solid var(--line); font-size: 12px; color: var(--text3); }
.site-foot a { text-decoration: none; margin-left: 18px; }
.site-foot a:hover { color: var(--text); }

@media (max-width: 900px) {
  .nav__links { position: fixed; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px clamp(18px, 3.4vw, 48px) 18px; background: rgba(15,15,15,.97); border-bottom: 1px solid var(--line);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
  .nav.open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__cta { margin-left: auto; }
  .nav__toggle { display: inline-flex; }
  .app__side { display: none; }
  .cols { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav__cta { min-height: 36px !important; padding: 0 12px !important; font-size: 12px !important; }
  .app { min-height: 0; }
  .app__body { padding: 12px; }
  .strip { flex-wrap: wrap; }
  .cell { flex: 1 1 44%; padding: 9px 11px; }
  .cell:nth-child(3) { border-left: 0; }
  .cell:nth-child(n+3) { border-top: 1px solid var(--app-line); }
  .page-head .ctas, .band .ctas { flex-direction: column; align-items: stretch; max-width: 340px; }
  .band .ctas { margin-left: auto; margin-right: auto; }
  .site-foot a { margin: 0 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .row, .pop, .cursor, .done-pill, .app__item, .nav__links { transition: none !important; }
  .saved.tick, .msg .caret { animation: none; }
}
