/* Mindwrks Coaching Platform: clean, Google-style look. No framework. */
:root {
  --blue: #1a73e8; --blue-dark: #1765cc; --blue-bg: #e8f0fe;
  --text: #202124; --muted: #5f6368; --line: #dadce0; --bg: #f7f7f7; /* matches the logo's background */ --card: #fff;
  --red: #d93025; --red-bg: #fce8e6; --amber: #e37400; --amber-bg: #fef7e0; --green: #188038; --green-bg: #e6f4ea;
  --radius: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 Roboto, "Segoe UI", system-ui, -apple-system, Arial, sans-serif; color: var(--text); background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; font-weight: 400; margin: 8px 0 20px; }
h2 { font-size: 16px; font-weight: 500; margin: 0; }

/* Top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 6px 24px; background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.app-name { font-size: 17px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); }

/* Logo: the original image, framed on its artwork (centred 960x620 area of the 1600px file). --s is the scale. */
.logo { --s: .075; display: block; position: relative; overflow: hidden; flex: none;
  width: calc(960px * var(--s)); height: calc(620px * var(--s)); }
.logo img { position: absolute; width: calc(1600px * var(--s)); height: calc(1600px * var(--s)); max-width: none;
  left: calc(-320px * var(--s)); top: calc(-490px * var(--s)); }
.logo-lg { --s: .27; margin: 0 auto; }

.help-btn { border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; background: #fff; }
.help-btn::before { content: "?"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 6px;
  border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 700; }
.help-btn:hover { background: var(--blue-bg); text-decoration: none; }
nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
nav form { margin: 0; }
.who { color: var(--muted); }

main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 32px; }
.login { max-width: 400px; margin: 24px auto 0; }
.login-brand { text-align: center; margin-bottom: 20px; }
.login-name { color: var(--muted); font-size: 18px; margin-top: 4px; }
.login h1 { margin-top: 0; }

/* Cards and layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 16px; }
.card.narrow { max-width: 440px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.grid > .card { margin-bottom: 0; }
.grid + .card, .grid { margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.tile.wide { grid-column: span 2; }
.tile .label { color: var(--muted); font-size: 13px; }
.tile .value { font-size: 26px; line-height: 1.3; }
.tile .sub { color: var(--muted); font-size: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.row form { margin: 0; }

/* Lists */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list li form { margin: 0; }
.list li.request { align-items: flex-start; }
.list li.is-done .grow > div:first-child { color: var(--muted); text-decoration: line-through; }
.grow { flex: 1; min-width: 0; }
.empty { color: var(--muted); margin: 4px 0 12px; }
.summary { white-space: pre-wrap; margin: 4px 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.text-red { color: var(--red); }

/* Chips and statuses */
.chip, .status, .badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 12px; white-space: nowrap; }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip::before { content: "●"; margin-right: 4px; }
.status.pending { background: var(--blue-bg); color: var(--blue-dark); }
.status.done { background: var(--green-bg); color: var(--green); }
.status.overdue { background: var(--red-bg); color: var(--red); }
.status.help { background: #f3e8fd; color: #8430ce; }
.badge { background: var(--blue); color: #fff; }
.badge.help { background: #8430ce; }

progress { appearance: none; -webkit-appearance: none; width: 100%; height: 8px; border: 0; border-radius: 4px; background: #e8eaed; overflow: hidden; margin: 6px 0 2px; }
progress::-webkit-progress-bar { background: #e8eaed; border-radius: 4px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 4px; }
td progress { width: 80px; vertical-align: middle; margin: 0 6px 0 0; }

/* Forms */
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: 4px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
label.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: 14px; }
label.check input { width: auto; margin: 0; }
.stack { margin: 0 0 8px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: flex-end; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.inline-form label { margin-bottom: 8px; }
.inline-form .btn { margin-bottom: 8px; }
.inline-form .grow { min-width: 220px; }

.btn { display: inline-block; font: 500 14px/1 inherit; font-family: inherit; padding: 10px 18px; border-radius: 4px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; background: none; }
.btn:hover { text-decoration: none; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-dark); }
.btn.outline { border-color: var(--line); color: var(--blue); background: #fff; }
.btn.outline:hover { background: var(--blue-bg); }
.btn.text { color: var(--blue); padding: 8px 10px; }
.btn.text:hover { background: var(--blue-bg); }
.btn.danger { background: var(--red); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
button.link { background: none; border: 0; color: var(--blue); font: inherit; cursor: pointer; padding: 0; }
button.link.small { font-size: 13px; }
button.link:hover { text-decoration: underline; }

details { margin-top: 6px; }
details summary { list-style: none; display: inline-block; padding-left: 0; }
details summary::-webkit-details-marker { display: none; }
details[open] form { margin-top: 8px; max-width: 420px; }

.flash { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; background: var(--green-bg); color: var(--green); }
.flash.error { background: var(--red-bg); color: var(--red); }
.notice { margin-top: 8px; padding: 10px 12px; border-radius: var(--radius); background: var(--amber-bg); font-size: 14px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
tr.inactive td { color: var(--muted); }

/* Action items: remarks, overdue reasons, help requests */
.list li.action { display: block; }
.action-row { display: flex; align-items: center; gap: 12px; }
.action-extra:empty { display: none; }
.action-extra { margin-left: 0; padding-left: 0; }
.action-extra > * { margin-top: 8px; }
.note { font-size: 14px; padding: 8px 12px; border-radius: var(--radius); background: var(--amber-bg); }
.note.help { background: #f3e8fd; }
.remark { font-size: 14px; padding: 8px 12px; border-left: 3px solid var(--blue); background: var(--blue-bg); border-radius: 0 var(--radius) var(--radius) 0; }
.remark div { white-space: pre-wrap; margin-top: 2px; }
details.mini summary { color: var(--blue); font-size: 13px; cursor: pointer; }
details.mini summary:hover { text-decoration: underline; }
.mini-form { display: flex; gap: 8px; align-items: center; max-width: 560px; }
.mini-form input { margin: 0; padding: 8px 10px; }
.mini-form .btn { padding: 9px 14px; }
.mini-form.stacked { display: block; }
.mini-form.stacked textarea { margin: 0 0 8px; }
form.inline { display: inline; }

/* Approve / reject, stacked */
.decide { display: flex; flex-direction: column; gap: 8px; min-width: 132px; }
.decide form { margin: 0; }
.decide .btn { width: 100%; text-align: center; }
.btn.approve { background: var(--green); color: #fff; }
.btn.approve:hover { background: #137333; }
.btn.reject { background: #fff; color: var(--red); border-color: var(--red); }
.btn.reject:hover { background: var(--red-bg); }

/* Booking picker */
.card.booking { max-width: 760px; }
.label-like { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.picker { margin-bottom: 16px; }
.picker .days { display: none; }
.picker.is-js .days { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.day { flex: none; width: 76px; padding: 8px 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  font: inherit; color: var(--text); text-align: center; cursor: pointer; scroll-snap-align: start; }
.day span { display: block; line-height: 1.3; }
.day .dow, .day .mon { font-size: 12px; color: var(--muted); }
.day .dnum { font-size: 22px; }
.day .count { font-size: 11px; color: var(--green); margin-top: 2px; }
.day:hover { border-color: var(--blue); }
.day[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-bg); box-shadow: inset 0 0 0 1px var(--blue); }
.times { border: 0; padding: 0; margin: 12px 0 0; min-width: 0; }
.times[hidden] { display: none; }
.times legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.time { position: relative; margin: 0; font-size: 14px; }
.time input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.time span { display: block; padding: 10px 0; text-align: center; border: 1px solid var(--line); border-radius: 4px; color: var(--blue); font-weight: 500; background: #fff; cursor: pointer; }
.time span:hover { border-color: var(--blue); background: var(--blue-bg); }
.time input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.time input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.picked { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.picked.is-set { color: var(--text); font-weight: 500; }

/* Product tour */
.tour-shield { position: fixed; inset: 0; z-index: 999; }
.tour-spot { position: fixed; z-index: 1000; border-radius: var(--radius); pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(32, 33, 36, .55); transition: all .2s ease; }
.tour-card { position: fixed; z-index: 1001; width: min(360px, calc(100vw - 24px)); background: #fff; border-radius: var(--radius);
  padding: 16px 18px 14px; box-shadow: 0 4px 24px rgba(0, 0, 0, .25); }
.tour-card h3 { font-size: 17px; font-weight: 500; margin: 2px 0 6px; }
.tour-card p { font-size: 14px; margin: 0 0 14px; }
.tour-step { font-size: 12px; color: var(--muted); }
.tour-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tour-nav { display: flex; gap: 4px; margin-left: auto; }
.tour-foot .link:empty { display: none; }

/* Coach availability calendar: days across, times down */
.page-actions { display: flex; justify-content: flex-end; margin: -52px 0 16px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 12px; color: var(--muted); }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: -8px; vertical-align: -1px; border: 1px solid var(--line); }
.dot.free { background: #fff; border-color: #81c995; }
.dot.blocked, .cell.blocked button, .cell.blocked span { background: repeating-linear-gradient(135deg, #eceff1, #eceff1 5px, #dfe3e6 5px, #dfe3e6 10px); }
.dot.google { background: #dadce0; }
.dot.requested { background: #fde293; }
.dot.booked { background: #aecbfa; }
.cal-wrap { overflow-x: auto; }
.cal { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; margin: 0 -6px; }
.cal th { padding: 4px 2px 8px; text-align: center; font-weight: 400; border: 0; vertical-align: bottom; }
.cal .time-col { width: 60px; text-align: right; padding-right: 8px; color: var(--muted); font-size: 13px; vertical-align: middle; }
.cal-dow { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-date { font-size: 18px; color: var(--text); }
.cal th form { margin: 4px 0 0; }
.day-toggle { font: inherit; font-size: 12px; color: var(--blue); background: none; border: 0; padding: 2px 6px; border-radius: 4px; cursor: pointer; }
.day-toggle:hover { background: var(--blue-bg); }
.day-toggle.on { color: var(--red); }
.cal td { padding: 0; border: 0; height: 44px; }
.cell form { margin: 0; height: 100%; }
.cell button, .cell span { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 44px;
  border-radius: 6px; border: 1px solid transparent; font: inherit; font-size: 13px; line-height: 1.2; }
.cell span small { font-size: 11px; opacity: .8; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 4px; }
.cell button { cursor: pointer; }
.cell.free button { background: #fff; border-color: #81c995; color: var(--green); }
.cell.free button:hover { background: var(--green-bg); }
.cell.blocked button, .cell.blocked span { color: var(--muted); border-color: #cfd4d8; }
.cell.blocked button:hover { border-color: var(--blue); color: var(--blue); }
.cell.google span { background: #dadce0; color: #3c4043; }
.cell.requested span { background: #fef7e0; border-color: #fde293; color: #8a5300; }
.cell.booked span { background: var(--blue-bg); border-color: #aecbfa; color: var(--blue-dark); }
.cell.past span { background: transparent; }

/* Support, referrals, reminders, recognition, owner dashboard */
.app-name b { color: var(--text); font-weight: 600; letter-spacing: .03em; }
.login-name b { color: var(--text); font-weight: 600; letter-spacing: .03em; }
.text-green { color: var(--green); }
.text-amber { color: var(--amber); }
.status.amber { background: var(--amber-bg); color: var(--amber); }
.note.referral { background: #e6f4ea; }
.mini-form select { margin: 0; padding: 8px 10px; width: auto; }
.referral-fields { border: 1px dashed var(--line); border-radius: var(--radius); padding: 8px 12px 0; margin: 0 0 10px; }
.referral-fields legend { font-size: 13px; color: var(--text); padding: 0 4px; }
.referral-fields label { margin-bottom: 8px; }
.reminder { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; margin-bottom: 12px; border-radius: var(--radius);
  background: #fff8e1; border: 1px solid #fde293; }
.reminder::before { content: "🔔"; font-size: 18px; }
.reminder form { margin: 0; }
.list li .decide { min-width: 0; align-items: stretch; }
.list li .decide .btn { padding: 8px 12px; }
.kudos li { align-items: flex-start; }
.badge-icon { font-size: 22px; line-height: 1; width: 32px; text-align: center; }
.attn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 24px; }
.attn-grid h3 { font-size: 14px; font-weight: 500; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.count { font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--amber-bg); color: var(--amber); }
.count.red { background: var(--red-bg); color: var(--red); }
.count.purple { background: #f3e8fd; color: #8430ce; }
ul.plain { list-style: none; padding: 0; margin: 0; font-size: 14px; }
ul.plain li { padding: 4px 0; }

/* ---- Landing page (PACERS model) ---- */
.landing { --navy: #0d2a6b; --royal: #2e6bc6; --cyan: #2aa6e0; background: #fff; }
.landing .bar { position: sticky; flex-wrap: nowrap; }
.landing .bar .app-name { white-space: nowrap; }
.landing .bar .btn { padding: 9px 20px; }
.btn.big { padding: 14px 26px; font-size: 15px; }
.hero { background: linear-gradient(160deg, #f4f8ff 0%, #eef1fb 60%, #f7f7f7 100%); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: 880px; margin: 0 auto; padding: 64px 16px 56px; text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 12px; color: var(--royal); font-weight: 600; margin: 0 0 12px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 500; line-height: 1.15; margin: 0 0 16px; color: var(--navy); }
.pacers { color: var(--cyan); font-weight: 700; letter-spacing: .02em; }
.pacers sup { font-size: .4em; vertical-align: super; }
.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.acronym { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.acronym span { background: #fff; border: 1px solid #cfdcf3; border-radius: 20px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.acronym b { color: var(--royal); font-size: 16px; }
.hero-cta { justify-content: center; gap: 12px; }
.landing-main { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.landing-main > section { padding: 56px 0 8px; }
.landing-main h2 { font-size: 28px; font-weight: 500; text-align: center; color: var(--navy); margin: 0 0 8px; }
.center { text-align: center; max-width: 680px; margin: 0 auto 28px; }

.pc-flow { display: grid; grid-template-columns: 1fr 64px 1fr 56px; gap: 12px; align-items: stretch; }
.pc-col { display: flex; flex-direction: column; gap: 10px; }
.pc-head { text-align: center; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; color: #fff;
  background: var(--royal); border-radius: 6px; padding: 8px; }
.results .pc-head { background: var(--navy); }
.pc-stage { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); background: #f2f6fd; border: 1px solid #d6e2f6; flex: 1; }
.results .pc-stage { background: #eef1f8; border-color: #cdd6ea; }
.pc-letter { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 700; color: #fff; background: var(--royal); }
.results .pc-letter { background: var(--navy); }
.pc-stage b { color: var(--navy); }
.pc-sub { color: var(--muted); font-size: 13px; }
.pc-stage p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.pc-bridge, .pc-key { display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #fff; font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.pc-bridge { background: var(--royal); clip-path: polygon(0 0, 70% 0, 100% 50%, 70% 100%, 0 100%); padding-right: 14px; }
.pc-key { background: var(--navy); }
.pc-bridge span, .pc-key span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.pc-foundation, .pc-loop { margin-top: 12px; text-align: center; border-radius: 6px; padding: 10px; font-weight: 600; font-size: 14px; }
.pc-foundation { background: #e3ebf8; color: var(--navy); }
.pc-loop { background: var(--royal); color: #fff; }


.feature-grid, .role-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.feature, .role-grid > div { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; position: relative; background: #fff; }
.f-icon { font-size: 28px; }
.feature h3, .role-grid h3 { font-size: 17px; font-weight: 500; margin: 8px 0 6px; color: var(--navy); }
.feature p, .role-grid p { margin: 0; color: var(--muted); font-size: 14px; }
.f-stage { position: absolute; top: 18px; right: 18px; font-size: 12px; font-weight: 600; color: var(--royal); background: #eef3fc; border-radius: 12px; padding: 2px 10px; }
.role-grid > div { background: #f8faff; }

.cta-band { text-align: center; margin: 56px 0; padding: 40px 16px !important; border-radius: 12px; background: var(--navy); color: #fff; }
.cta-band h2 { color: #fff !important; }
.cta-band p { color: #c9d4ee; margin: 0 0 20px; }
.landing-foot { text-align: center; padding: 32px 16px 40px; border-top: 1px solid var(--line); font-size: 13px; background: var(--bg); }
.landing-foot .logo { margin: 0 auto 8px; }
.landing-foot p { margin: 4px 0; }

.landing { --gold: #b8893a; --gold-light: #e9cf94; --gold-bg: #fbf5e8; }
.eyebrow.gold { color: var(--gold); }
.eyebrow sup, .landing h2 sup, .chain-title sup { font-size: .6em; }
.center-text { text-align: center; }
.landing h2.left { text-align: left; font-size: 40px; margin: 0 0 20px; }
.engine { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.gold-box { margin: 0; padding: 20px 24px; color: #fff; font-size: 17px; line-height: 1.55; border-radius: 6px;
  background: linear-gradient(135deg, #8a6424, var(--gold) 50%, #9c7330); box-shadow: 0 6px 18px rgba(138, 100, 36, .25);
  outline: 1px solid rgba(255, 255, 255, .5); outline-offset: -8px; }
.blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.block { background: linear-gradient(160deg, #1d3c7a, var(--navy)); color: #e6ecf8; border-radius: 6px; padding: 18px 12px; text-align: center;
  font-size: 14px; font-weight: 500; display: grid; place-items: center; min-height: 84px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .25); }
.block.apex { grid-column: 1 / -1; min-height: 0; padding: 12px; color: #3b2a0c; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(90deg, #c9a15a, var(--gold-light), #c9a15a); box-shadow: none; order: -1; }
.science-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; max-width: 860px; margin: 24px auto 0; }
.sci-card { border-radius: 10px; padding: 24px 26px; border: 3px solid var(--royal); background: linear-gradient(180deg, #f5f8fe, #e8effb); }
.sci-card.pets { border-color: var(--gold); background: linear-gradient(180deg, #fffdf8, var(--gold-bg)); }
.sci-card h3 { margin: 0; font-size: 24px; font-weight: 600; color: var(--navy); }
.sci-card.pets h3 { color: var(--gold); }
.sci-sub { margin: 2px 0 14px; color: var(--muted); }
.sci-card ul { margin: 0; padding: 0; list-style: none; }
.sci-card li { padding: 8px 0 8px 18px; border-top: 1px solid #d0dbef; position: relative; }
.sci-card.pets li { border-top-color: #eedcb4; }
.sci-card li::before { content: "•"; position: absolute; left: 4px; color: var(--muted); }
/* Coacherapy approach: 8 numbered steps on one line (rows of 4 on small screens) */
.chain { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(8, 1fr); gap: 0; counter-reset: step; }
.chain li { counter-increment: step; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  margin: 0 12px; padding: 10px 6px; min-height: 64px; border-radius: 10px; font-size: 14px; font-weight: 500; line-height: 1.25;
  color: var(--navy); background: #f2f6fd; border: 1px solid #d6e2f6; }
.chain li::before { content: counter(step); font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.chain li + li::after { content: "→"; position: absolute; left: -20px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 400; }
.chain li.is-ants { background: var(--royal); border-color: var(--royal); color: #fff; }
.chain li.is-ants::before { color: #cfe0fb; }
.chain li.is-pets { background: linear-gradient(135deg, #c9a15a, var(--gold-light)); border-color: var(--gold); color: #3b2a0c; }
.chain li.is-pets::before { color: #6b4c14; }
.chain-title { text-align: center; font-size: 18px; font-weight: 500; color: var(--navy); margin: 36px 0 14px; }

@media (max-width: 760px) {
  .pc-flow { grid-template-columns: 1fr; }
  .engine { grid-template-columns: 1fr; gap: 24px; }
  .landing h2.left { font-size: 30px; }
  .blocks { grid-template-columns: repeat(2, 1fr); }
  .chain { grid-template-columns: repeat(4, 1fr); row-gap: 14px; }
  .chain li:nth-child(4n + 1)::after { content: none; }
  .chain li { margin: 0 8px; padding: 8px 2px; font-size: 12px; min-height: 58px; hyphens: auto; }
  .chain li + li::after { left: -15px; font-size: 12px; }
  .pc-bridge, .pc-key { padding: 10px; clip-path: none; }
  .pc-bridge span, .pc-key span { writing-mode: horizontal-tb; transform: none; }
  .pc-bridge::after { content: "\00a0\00a0↓"; }
  .hero-inner { padding: 40px 16px; }
  .lead { font-size: 16px; }
  .landing .bar .app-name { display: none; }
}

/* Confidentiality: blur when the window isn't focused, no printing */
.protected.is-hidden main, .protected.is-hidden .bar nav { filter: blur(14px); transition: filter .1s; }
.protected.is-hidden::after { content: "Content hidden — click to continue"; position: fixed; inset: 0; z-index: 950; display: grid; place-items: center;
  font-size: 18px; color: var(--muted); background: rgba(247, 247, 247, .6); }
@media print {
  body.protected * { display: none !important; }
  body.protected::after { content: "Printing is disabled for confidentiality."; display: block; padding: 40px; font-size: 18px; }
}

@media (max-width: 600px) {
  .bar { padding: 10px 16px; }
  .who { display: none; }
  .grid { grid-template-columns: 1fr; }
  .tile.wide { grid-column: 1 / -1; }
  .list li { flex-wrap: wrap; }
  .list li .grow { min-width: 60%; }
  .action-row { flex-wrap: wrap; }
  .decide { flex-direction: row; width: 100%; }
  .decide > * { flex: 1; }
  .app-name { font-size: 15px; }
  .day { width: 64px; }
  .page-actions { margin-top: 0; justify-content: flex-start; }
  .cal .time-col { width: 44px; font-size: 12px; padding-right: 2px; }
  .cell button, .cell span { font-size: 12px; }
  .cell span small { display: none; }
  .cal { border-spacing: 4px; }
  .card-head { flex-wrap: wrap; }
  .card-head .legend { width: 100%; }
  .card { padding: 16px; }
}
