/* ============================================================
   SOPHIE — Simplify, Organise, Price, Help, Index, Execute
   Sharp, professional, easy to use.
   Red -> amber -> green, like a checklist progressing:
   red = to do, amber = in progress, green = done.
   Big text, clear headings, big tap targets.
   Mobile first. Nothing cluttered, nothing cheap-looking.
   ============================================================ */
:root {
  --navy: #111827;
  --navy-2: #1F2937;
  --navy-3: #374151;
  --teal: #15803D;
  --teal-bright: #22C55E;
  --teal-soft: #DCFCE7;
  --red: #DC2626;
  --red-bright: #EF4444;
  --amber: #B45309;
  --amber-bright: #F59E0B;
  --amber-soft: #FEF3C7;
  --green: #15803D;
  --green-bright: #22C55E;
  --ink: #16222E;
  --muted: #5B6B7A;
  --line: #DCE3E9;
  --bg: #F2F4F7;
  --card: #FFFFFF;
  --ok-bg: #DCFCE7;
  --ok-line: #86EFAC;
  --err-bg: #FEE2E2;
  --err-line: #FCA5A5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(17, 24, 39, .08), 0 4px 14px rgba(17, 24, 39, .06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  /* 5 Dec 2026 21:22 — Anthony: the whole site back to his
     professional design, homepage palette everywhere.
     Light navy #C6D5E9, same as body.home. White cards
     (boards, panels) still sit on it, unchanged. */
  background: #C6D5E9;
}
a { color: var(--teal); }
img { max-width: 100%; }

/* ---------- Beta badge — top left of every screen ---------- */
/* Anthony, 5 Dec 2026: "add a beta v0.2 to top left of screen
   and we can adjust that as we progress". Version in
   config.php (SOPHIE_VERSION). Fixed, small, always visible,
   never covering the page content below it. */
.beta-badge {
  position: fixed; top: 8px; left: 8px; z-index: 999;
  background: #16324F; color: #fff; font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase;
  border-radius: 999px; padding: 4px 10px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, .35);
  pointer-events: none;
}
body.home .beta-badge { background: #16324F; }

/* ---------- layout ---------- */
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px 48px; }
.narrow { max-width: 480px; }
main.wrap { padding-top: 8px; }

/* ---------- header / banner ---------- */
/* 5 Dec 2026 21:22 — Anthony: "I want it back to my
   professional site then add things without changing and
   keep new additions in same style". The signed-in header
   was a red-orange-green gradient with white writing and
   Sophie in a tiny circle, head cropped out — nothing like
   the homepage he designed (16:40, locked). So the header
   is now the homepage design: light navy #C6D5E9 page,
   deep navy #16324F writing, Sophie FULL BODY centre top,
   no gradient anywhere, no circle crop. The red-to-green
   checklist colours are NOT in this header any more; they
   still live only where they mean something — the boards,
   where red = to do, amber = in progress, green = done.
   The header progress strip below is recoloured to the
   homepage palette (navy / gold / emerald), same as the
   side tab on the homepage. */
.top {
  background: #C6D5E9;
  color: #16324F;
  margin-bottom: 20px;
  border-bottom: 1px solid #B9C9DE;
  box-shadow: none;
}
.top .wrap { padding-bottom: 0; }
/* Sophie centre top, like the homepage — full body, head
   to boots, in a tall rounded-rectangle frame (same frame
   as .hp-sophie on the homepage, smaller so the boards
   still sit near the top). NEVER a circle here: a circle
   cuts her body off and cropped her head out on 5 Dec.
   Height 220px at the 1:2 ratio = 110px wide, whole body
   in frame, nothing cropped. */
.brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 24px 0 8px; }
.brand img { flex: none; }
.brand-sophie, header.top .avatar-mini {
  width: auto; height: 220px; max-width: 80vw; aspect-ratio: 1 / 2;
  object-fit: cover; object-position: center top;
  border-radius: 18px; border: 3px solid #FFFDF8;
  box-shadow: 0 10px 24px rgba(22, 50, 79, .25);
  background: #C6D5E9;
}
/* header.top .avatar-mini covers tier.php's own header,
   which still uses class="avatar-mini" — that header gets
   the same full-body frame through this rule, with no
   change to tier.php itself. .avatar-mini elsewhere
   (footer, coming-soon top bar) is untouched and stays a
   circle. Login/setup used to be in that list too — they
   are not any more: 5 Dec 2026 21:46 they use .brand-sophie
   instead, same as the header, so Sophie's head is in
   frame there as well. */
.brand h1 { margin: 0; font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', serif; font-size: 34px; letter-spacing: .12em; font-weight: 700; line-height: 1; color: #16324F; }
.brand h1 a { color: #16324F; text-decoration: none; }
.brand .tagline { margin: 7px 0 0; font-size: 14px; color: #16324F; letter-spacing: .03em; font-weight: 600; }
.brand .company { margin: 4px 0 0; font-size: 15px; color: #1E4266; font-weight: 700; }
/* 6 Dec 2026 — Anthony: the acronym's first letters
   (S O P H I E) must ALL be the same colour, bold, so they
   spell SOPHIE. They used to be split navy / gold / emerald
   (S,O navy; P,H gold #B98A2F — the random orange; I,E
   emerald), which looked random. Then all six were emerald
   #0E7C5B, but Anthony said they were too similar to the
   rest of the text — so now every first letter is YELLOW
   #EAB308, a strong yellow (not pale) that stands out on
   the light navy background and next to the dark navy
   text. The .r/.a/.g classes stay on the <b>s (same markup
   everywhere); only the colour is unified. The progress
   strip below uses the same class names on <span>s and is
   NOT touched — its red/amber/green is the board status
   colours. */
.brand .tagline b.r { color: #EAB308; font-weight: 800; }
.brand .tagline b.a { color: #EAB308; font-weight: 800; }
.brand .tagline b.g { color: #EAB308; font-weight: 800; }
/* Checklist progress strip under the brand, recoloured
   into the homepage palette — navy / gold / emerald. */
.progress { display: flex; gap: 6px; padding: 0 0 14px; }
.progress span { height: 6px; flex: 1; border-radius: 999px; }
.progress .r { background: var(--red-bright); }
.progress .a { background: var(--amber-bright); }
.progress .g { background: var(--green-bright); }
.top .progress { max-width: 560px; margin: 0 auto; }
.top .progress .r { background: #16324F; }
.top .progress .a { background: #B98A2F; }
.top .progress .g { background: #0E7C5B; }
.top nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; padding: 8px 0 12px; }
.top nav a {
  color: #16324F; text-decoration: none; font-size: 16px; font-weight: 600;
  padding: 10px 14px; border-radius: 999px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.top nav a:hover { background: #E7EEF7; color: #16324F; }
.top nav a.on { background: #0E7C5B; color: #fff; box-shadow: 0 2px 10px rgba(14, 124, 91, .35); }
.top nav .who { font-size: 14px; color: #4A5A6B; margin-left: auto; padding: 10px 6px; }
.top nav a.signout { color: #4A5A6B; }

/* ---------- by OPUP badge ---------- */
/* Small, professional "by OPUP" badge — Anthony, 5 Dec 2026:
   SOPHIE PA is made by OPUP, so people know it is by OPUP.
   It links to https://opup.co.uk (live). The matching link
   back from OPUP to SOPHIE is "Coming Soon" until SOPHIE is
   ready — see opup-link-snippet.html, NOT added to OPUP yet. */
.by-op { margin: 6px 0 0; }
.opup-badge {
  display: inline-block; font-size: 12px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  background: #fff; color: var(--green); border: 1px solid var(--ok-line);
  border-radius: 999px; padding: 3px 10px; text-decoration: none;
  box-shadow: 0 1px 4px rgba(17, 24, 39, .18);
}
a.opup-badge:hover { background: var(--teal-soft); color: var(--green); }
.foot .opup-badge { font-size: 12px; }
.top .by-op { margin-top: 8px; }
/* Header badge, homepage style: dark navy, white text —
   same as the by OPUP badge under Sophie on home.php. */
.top .by-op .opup-badge { background: #16324F; color: #fff; border-color: #16324F; }
.top .by-op .opup-badge:hover { background: #1E4266; color: #fff; }

/* ---------- headings / summary ---------- */
h1 { font-size: 30px; margin: 20px 0 4px; letter-spacing: -.01em; }
h2 { font-size: 23px; margin: 26px 0 6px; letter-spacing: -.01em; }
h3 { margin: 0 0 4px; }
.lede { color: var(--muted); margin: 0 0 18px; font-size: 17px; }
.summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 22px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow);
}
.stat .num { font-size: 34px; font-weight: 800; line-height: 1; color: var(--navy); }
.stat .lbl { font-size: 14px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.stat.measure .num { color: var(--amber); }
.stat.work .num { color: var(--teal); }

/* ---------- boards ---------- */
.board {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 22px; box-shadow: var(--shadow);
}
.board > h2 { margin-top: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.board > h2 .count {
  font-size: 14px; font-weight: 700; color: #fff; background: var(--teal);
  border-radius: 999px; padding: 3px 11px;
}
.board.measure > h2 .count { background: var(--amber); }
.stage { border-top: 2px solid var(--line); padding: 14px 0 6px; }
.stage:first-of-type { border-top: 0; }
.stage > h3 { color: var(--navy); font-size: 18px; display: flex; align-items: center; gap: 8px; }
.stage > h3 .n {
  font-size: 13px; font-weight: 700; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 9px;
}
.site { margin: 16px 0 2px; font-size: 18px; color: var(--navy); }
.site.big { font-size: 21px; margin-top: 24px; }
.ward { margin: 10px 0 6px; color: var(--muted); font-size: 15px; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- job cards ---------- */
.job {
  border: 1px solid var(--line); border-left: 5px solid var(--teal);
  border-radius: var(--radius-sm); padding: 14px 16px; margin: 10px 0; background: var(--card);
}
.job.measure { border-left-color: var(--amber); }
.job p { margin: 5px 0; }
.job h3 { font-size: 19px; color: var(--navy); }
.meta { color: var(--muted); font-size: 15px; }
.notes { font-size: 15px; color: #42536A; background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 700; border-radius: 999px;
  padding: 3px 10px; margin-left: 6px; vertical-align: middle;
  background: var(--teal-soft); color: var(--teal);
}
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.quote { font-weight: 700; color: var(--navy); }
.jobactions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.jobactions form { margin: 0; }

/* ---------- buttons / forms ---------- */
button, input[type="submit"] {
  font-size: 17px; font-weight: 600; padding: 13px 20px; min-height: 50px;
  border-radius: var(--radius-sm); border: 1px solid var(--teal);
  background: #fff; color: var(--teal); cursor: pointer;
}
button:hover, input[type="submit"]:hover { background: var(--teal-soft); }
button.big { width: 100%; background: var(--teal); color: #fff; font-weight: 700; margin-top: 14px; border-color: var(--teal); }
button.big:hover { background: #14532D; }
/* Payment Link buttons look exactly like the big buttons. */
a.big { display: block; width: 100%; box-sizing: border-box; text-align: center; background: var(--teal); color: #fff; font-weight: 700; margin-top: 14px; border: 2px solid var(--teal); border-radius: 12px; padding: 14px; text-decoration: none; }
a.big:hover { background: #14532D; }
button.done { background: var(--teal); color: #fff; font-weight: 700; border-color: var(--teal); }
button.done:hover { background: #14532D; }
button.done.big { width: 100%; }
/* 5 Dec 2026 — Fix #2: Delete is trash-first, so the button
   is a quiet red outline, not a shouty solid red — the job
   is not gone, it is in Deleted jobs and can come back. */
button.delete { border-color: var(--red-bright, #EF4444); color: var(--red-bright, #EF4444); }
button.delete:hover { background: #FEF2F2; }
button.ghost { border-color: var(--line); color: var(--muted); }
label { display: block; margin: 14px 0; font-weight: 600; }
label .hint { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%; font-size: 17px; padding: 13px; border: 1.5px solid #9AA9B8;
  border-radius: var(--radius-sm); margin-top: 5px; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(34, 197, 94, .45); border-color: var(--teal); }
input[type="radio"], input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--teal); vertical-align: middle; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin: 14px 0; }
legend { font-weight: 700; padding: 0 6px; }
.radio-row { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.radio-row label { margin: 0; font-weight: 600; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.radio-row label:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }

/* ---------- notices / panels ---------- */
.ok { background: var(--ok-bg); border: 1px solid var(--ok-line); padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.error { background: var(--err-bg); border: 1px solid var(--err-line); padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 600; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 22px; box-shadow: var(--shadow); }
.panel h2 { margin-top: 0; }
.add { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.finished { opacity: .88; }
.finished .job { border-left-color: #9AA9B8; }
.muted { color: var(--muted); font-size: 15px; }
.draft { border: 2px dashed var(--teal); border-radius: var(--radius); padding: 16px; background: var(--teal-soft); margin: 16px 0; }
.draft h3 { color: var(--navy); }
table.log { width: 100%; border-collapse: collapse; font-size: 15px; }
table.log th, table.log td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.log th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.foot { text-align: center; color: var(--muted); font-size: 14px; padding: 18px 0 4px; }
.foot b { color: var(--navy); }

/* ---------- auth pages ---------- */
.auth-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 24px; margin-top: 32px; box-shadow: var(--shadow); text-align: center;
}
/* 5 Dec 2026 21:46 — login/setup used to show Sophie in a
   96x96 circle (.avatar-auth), which cropped her head out.
   They now use .brand-sophie (same full-body frame as the
   homepage and the signed-in header), so this 96px rule
   must not apply to it — hence :not(.brand-sophie). */
.auth-card img:not(.brand-sophie) { width: 96px; height: 96px; filter: drop-shadow(0 6px 12px rgba(17, 24, 39, .35)); }
.auth-card h1 { letter-spacing: .14em; margin: 12px 0 2px; }
.auth-card .tagline { color: var(--muted); margin: 0 0 8px; font-size: 14px; }
.auth-card form { text-align: left; }
.auth-card .foot { padding-bottom: 0; }

/* ---------- Sophie avatar ---------- */
/* The face of SOPHIE PA — like OPUP's AJ face, it gives SOPHIE
   a person to trust: friendly, professional, human-like, in
   the red-to-green colours. An illustration only — no real
   person's face (mystery rule, like OPUP). */
.avatar-mini { border-radius: 50%; flex: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); background: #F2F4F7; }
.avatar-hero { border-radius: 50%; flex: none; box-shadow: 0 8px 24px rgba(17, 24, 39, .25); background: #F2F4F7; object-fit: cover; }
.avatar-mini, .avatar-auth { object-fit: cover; }
/* Sophie doing the work on that page: one scene picture per page. */
.sophie-scene { display: block; width: 100%; max-width: 560px; margin: 0 auto 12px; border-radius: 14px; box-shadow: 0 8px 24px rgba(17, 24, 39, .2); }
.sophie-scene figcaption { text-align: center; font-size: 15px; color: var(--muted); margin-top: 6px; }
.hero-face .sophie-scene { width: 280px; flex: none; margin: 0; }
.avatar-auth { border-radius: 50%; box-shadow: 0 4px 14px rgba(17, 24, 39, .2); background: #F2F4F7; margin-left: 8px; }
.hero-face { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hero-face .avatar-hero { width: 140px; height: 140px; }

/* ---------- coming soon ---------- */
/* The OPUP link points here until the full site is ready:
   a big Sophie avatar, SOPHIE PA, "Coming Soon", one line
   about what it does, and a "by OPUP" badge. Nothing else
   is promised — no sign-in, no boards, no prices. */
.coming-soon { text-align: center; padding: 36px 20px; margin-top: 24px; }
.coming-soon h2 { font-size: 32px; margin: 14px 0 4px; color: var(--navy); }
.coming-soon .avatar-coming-soon { width: 200px; height: 200px; }
.coming-soon-badge {
  display: inline-block; font-size: 15px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--amber);
  background: var(--amber-soft); border: 1px solid #FCD34D;
  border-radius: 999px; padding: 5px 14px;
}
.coming-soon .lede { max-width: 560px; margin-left: auto; margin-right: auto; }
.coming-soon .cta-row { justify-content: center; }

/* ---------- homepage ---------- */
.hero { text-align: center; padding: 18px 0 8px; }
.hero h2 { font-size: 32px; margin: 6px 0 10px; color: var(--navy); letter-spacing: -.01em; }
.hero .lede { font-size: 19px; }
.cta-row { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 8px; }
a.cta {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; text-decoration: none;
  padding: 15px 26px; min-height: 56px; border-radius: var(--radius-sm);
  border: 2px solid var(--teal); background: #fff; color: var(--teal);
}
a.cta:hover { background: var(--teal-soft); }
a.cta.primary { background: var(--teal); color: #fff; border-color: var(--teal); }
a.cta.primary:hover { background: #14532D; }
.steps { margin: 10px 0 4px; padding-left: 22px; }
.steps li { margin: 12px 0; font-size: 17px; }
.steps .r { color: var(--red); }
.steps .a { color: var(--amber); }
.steps .g { color: var(--green); }
.tier-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 16px 0; }
.tier {
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.tier.pick { border-color: var(--green-bright); box-shadow: 0 2px 6px rgba(21, 128, 61, .18), 0 8px 22px rgba(21, 128, 61, .10); }
.tier h3 { font-size: 22px; color: var(--navy); margin: 0; }
.tier .price { font-size: 26px; font-weight: 800; color: var(--navy); margin: 8px 0 4px; }
.tier ul { margin: 8px 0 16px; padding-left: 20px; }
.tier li { margin: 7px 0; }

/* ---------- side tab (homepage + tier pages) ---------- */
/* The homepage is just the explanation; the tiers live in a
   side tab. Red -> amber -> green throughout, like the
   checklist: red = to do, amber = in progress, green = done. */
.page-side { display: block; }
.sidetab { display: none; }
.side-menu { display: block; margin: 0 0 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow); }
.side-menu summary { font-size: 17px; font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.side-menu h3 { margin: 16px 0 6px; font-size: 16px; color: var(--navy); text-transform: uppercase; letter-spacing: .05em; }
.side-menu nav a { display: flex; flex-direction: column; gap: 2px; padding: 11px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; min-height: 44px; justify-content: center; }
.side-menu nav a:hover { background: var(--bg); }
.side-menu nav a.on { background: var(--teal-soft); color: var(--teal); }
.side-menu nav a span { font-size: 14px; color: var(--muted); font-weight: 400; }
.preview { border: 2px dashed var(--green-bright); border-radius: var(--radius); padding: 16px; background: #F0FDF4; margin: 16px 0; }
.preview h3 { color: var(--navy); margin-top: 0; }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  /* Homepage hero: Sophie's avatar next to the explanation,
     text on the left, avatar on the right on desktop. */
  .hero-face { flex-direction: row; text-align: left; gap: 28px; align-items: center; }
  .hero-face .avatar-hero { width: 168px; height: 168px; order: 2; }
  .hero-face > div { flex: 1; min-width: 0; }
  .hero-face .cta-row { justify-content: flex-start; }
  .cta-row { flex-direction: row; justify-content: center; }
  .cta-row a.cta { min-width: 220px; }
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
  /* Side tab: fixed column on the left on desktop, content
     on the right. On a phone the side tab hides and the
     menu above (details.side-menu) is used instead. */
  .page-side { display: flex; gap: 24px; align-items: flex-start; }
  .sidetab {
    display: block; flex: 0 0 250px; position: sticky; top: 16px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow);
  }
  .sidetab h2 { margin: 0; font-size: 20px; letter-spacing: .12em; color: var(--navy); }
  .sidetab .side-tag { margin: 6px 0 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
  .sidetab .side-progress { padding-bottom: 10px; }
  .sidetab h3 { margin: 16px 0 6px; font-size: 15px; color: var(--navy); text-transform: uppercase; letter-spacing: .05em; }
  .sidetab nav a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-weight: 600; }
  .sidetab nav a:hover { background: var(--bg); }
  .sidetab nav a.on { background: var(--teal-soft); color: var(--teal); box-shadow: inset 3px 0 0 var(--green-bright); }
  .sidetab nav a span { font-size: 13px; color: var(--muted); font-weight: 400; }
  .side-menu { display: none; }
  .side-main { flex: 1; min-width: 0; }
  .board .stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 20px; }
  .board.work .stages { grid-template-columns: repeat(4, 1fr); }
  .stage { border-top: 0; border-left: 2px solid var(--line); padding: 0 0 0 18px; }
  .stage:first-of-type { border-left: 0; padding-left: 0; }
  .radio-row { flex-direction: row; }
  .radio-row label { flex: 1; }
}

/* ============================================================
   HOMEPAGE — SIMPLE, CENTRED — 5 Dec 2026 16:40
   Anthony: "home screen Sophie center top with her name
   under her a nice light navy blue background to page and
   an introduction telling people about Sophie and what she
   can do in a stylish but easy to read font with certain
   words in bold that highlight the main jobs she does".
   So: Sophie top centre, large, name under her, SOPHIE PA
   under that, a short introduction, Get started / Sign in,
   then How it works in 3 steps below, tiers in the side tab.
   NO dark navy hero, NO trust bar, NO big company sections
   from the last redesign — those are gone, and their CSS
   went with them.

   Scoped to body.home (home.php + coming-soon.php only) so
   the signed-in app — boards, tier pages, settings,
   billing — keeps its own look and nothing underneath
   changes. The homepage palette is fixed — a company's
   Settings colours personalise the app, not the homepage.

   PALETTE:
   - Light navy blue #C6D5E9 — the whole page background.
   - Deep navy #16324F — headings, the name, bold words.
   - Warm emerald #0E7C5B — the Get started button.
   - White #FFFDF8 — the cards (steps, side tab, Coming Soon).
   The old red-to-green checklist theme lives ONLY in the
   signed-in app, where red = to do, amber = in progress,
   green = done is the working system — it is not on the
   homepage at all.
   ============================================================ */
body.home {
  --hp-navy: #16324F;
  --hp-navy-2: #1E4266;
  --hp-page: #C6D5E9;
  --hp-emerald: #0E7C5B;
  --hp-emerald-bright: #14A176;
  --hp-emerald-soft: #E2F2EB;
  --hp-cream: #FAF6EF;
  --hp-card: #FFFDF8;
  --hp-ink: #1D2A38;
  --hp-muted: #4A5A6B;
  --hp-line: #B9C9DE;
  --hp-gold: #B98A2F;
  background: var(--hp-page);
  color: var(--hp-ink);
}
body.home a { color: var(--hp-emerald); }
body.home section { scroll-margin-top: 92px; }

/* ---------- top bar (Coming Soon page only now) ---------- */
.hp-top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 248, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hp-line);
}
.hp-top-inner {
  max-width: 1180px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; gap: 20px;
}
.hp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--hp-navy); flex: none; }
.hp-brand img { width: 44px; height: 44px; filter: drop-shadow(0 3px 6px rgba(22, 50, 79, .25)); }
.hp-brand strong { display: block; font-size: 19px; letter-spacing: .12em; line-height: 1.1; }
.hp-brand small { display: block; font-size: 12px; color: var(--hp-muted); font-weight: 600; letter-spacing: .02em; }
.hp-nav { display: none; gap: 4px; margin-left: 12px; }
.hp-nav a {
  color: var(--hp-ink); text-decoration: none; font-size: 15px; font-weight: 600;
  padding: 9px 13px; border-radius: 999px;
}
.hp-nav a:hover { background: #E7EEF7; color: var(--hp-navy); }
.hp-top-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------- buttons (homepage + Coming Soon) ---------- */
.hp-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; text-decoration: none;
  padding: 12px 22px; min-height: 50px; border-radius: 12px;
  border: 2px solid transparent; cursor: pointer; white-space: nowrap;
}
.hp-btn-primary { background: var(--hp-emerald); color: #fff; box-shadow: 0 4px 14px rgba(14, 124, 91, .35); }
.hp-btn-primary:hover { background: #0A6A4E; color: #fff; }
.hp-btn-ghost { background: #FFFDF8; color: var(--hp-navy); border-color: var(--hp-line); }
.hp-btn-ghost:hover { background: #E7EEF7; color: var(--hp-navy); }
.hp-btn-light { background: #fff; color: var(--hp-navy); box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.hp-btn-light:hover { background: var(--hp-emerald-soft); color: var(--hp-navy); }
.hp-btn-outline { background: transparent; color: var(--hp-navy); border-color: var(--hp-navy); }
.hp-btn-outline:hover { background: rgba(22, 50, 79, .08); color: var(--hp-navy); }
.hp-btn-dark { color: var(--hp-navy); border-color: var(--hp-line); }
.hp-btn-dark:hover { background: #E7EEF7; color: var(--hp-navy); }

/* ---------- Sophie, centre top ---------- */
.hp-simple {
  max-width: 760px; margin: 0 auto; padding: 44px 20px 20px;
  text-align: center;
}
/* 5 Dec 2026 17:31 — Anthony, live: the hero was rendering
   long and narrow, ~50% of the screen, cropping Sophie out.
   17:35 — Anthony: full body, not just torso and head,
   holding a clipboard. So the hero is now a FULL-BODY
   portrait (sophie-hero-v02.webp, 800x1600, 1:2), and the frame
   matches it exactly: height is capped at 480px / 52vh so
   it can never eat half the screen again, width follows
   from the 1:2 ratio, and the image file itself is 1:2 —
   so even a browser that ignores aspect-ratio renders it
   at natural size, whole body in frame, nothing cropped.
   No circle (a circle would cut her body off), rounded
   rectangle instead. Never width:100% with no height. */
.hp-sophie {
  display: block; width: auto; height: min(480px, 52vh); max-width: 80vw;
  aspect-ratio: 1 / 2;
  object-fit: cover; object-position: center top; margin: 0 auto 20px;
  border-radius: 28px; border: 4px solid #FFFDF8;
  box-shadow: 0 18px 44px rgba(22, 50, 79, .35);
}
.hp-name {
  margin: 0; font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', serif;
  font-size: 58px; line-height: 1; letter-spacing: -.01em;
  color: var(--hp-navy); font-weight: 700;
}
/* What SOPHIE stands for, under her name — 5 Dec 2026,
   Anthony: "under Sophie avatar it should explain her
   name with capital letters at start of each word then
   under that say SOPHIE". Same serif as the headings,
   centred, wraps to two lines on a phone. The first
   letter of each word is bold AND yellow #EAB308 — all
   six the same colour, so S O P H I E stands out and
   spells SOPHIE (6 Dec 2026, Anthony — yellow, because
   emerald was too similar to the rest of the text). */
.hp-acronym {
  margin: 12px auto 0; max-width: 560px;
  font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', serif;
  font-size: 22px; line-height: 1.5;
  color: var(--hp-navy); font-weight: 600;
}
.hp-acronym b { font-weight: 800; color: #EAB308; } /* 6 Dec 2026 — all six first letters, same strong yellow, so S O P H I E stands out and spells SOPHIE */
.hp-pa {
  margin: 10px 0 14px; font-size: 17px; font-weight: 800;
  letter-spacing: .34em; color: var(--hp-navy-2);
}
.hp-simple .by-op { margin: 0 0 26px; }
.hp-simple .by-op .opup-badge { background: var(--hp-navy); color: #fff; border-color: var(--hp-navy); }

/* The introduction: stylish but easy to read — a serif
   face, generous size and line height, on the light navy.
   The main jobs she does are bold, in deep navy. */
.hp-intro {
  font-family: Georgia, 'Palatino Linotype', 'Book Antiqua', serif;
  font-size: 21px; line-height: 1.7; color: #24344A;
  margin: 0 auto 30px; max-width: 640px; text-align: center;
}
.hp-intro strong { color: var(--hp-navy); font-weight: 700; }
.hp-cta-row { display: flex; flex-direction: column; gap: 12px; margin: 0 0 16px; align-items: center; }
.hp-cta-row .hp-btn { min-width: 220px; }
.hp-note { margin: 0; font-size: 15px; font-weight: 600; color: var(--hp-muted); }

/* ---------- page column: side tab + content ---------- */
body.home .hp-layout { max-width: 1180px; margin: 0 auto; padding: 8px 20px 64px; }

/* Side tab, restyled for the homepage theme. Tier pages keep
   the standard side tab — this only applies under body.home. */
body.home .sidetab { background: var(--hp-card); border: 1px solid var(--hp-line); border-radius: 18px; }
body.home .sidetab h2 { color: var(--hp-navy); }
body.home .sidetab .side-tag { color: var(--hp-muted); }
body.home .sidetab .side-progress { padding-bottom: 12px; }
/* The three-bar strip in the side tab, recoloured into the
   homepage palette — navy / gold / emerald, NOT the
   red-to-green checklist strip used in the app. */
body.home .sidetab .side-progress .r { background: var(--hp-navy); }
body.home .sidetab .side-progress .a { background: var(--hp-gold); }
body.home .sidetab .side-progress .g { background: var(--hp-emerald); }
body.home .sidetab nav a { border: 1px solid transparent; margin-bottom: 4px; }
body.home .sidetab nav a:hover { background: #E7EEF7; }
body.home .sidetab nav a.on {
  background: var(--hp-emerald-soft); color: var(--hp-emerald);
  border-color: #BFE0D2; box-shadow: inset 3px 0 0 var(--hp-emerald);
}
body.home .sidetab nav.tiers a { border-color: var(--hp-line); margin-bottom: 8px; }
body.home .sidetab nav.tiers a:hover { border-color: var(--hp-emerald-bright); background: #E7EEF7; }
body.home .sidetab nav.tiers a.on { border-color: var(--hp-emerald); }
body.home .sidetab .opup-badge { background: var(--hp-navy); color: #fff; border-color: var(--hp-navy); }
body.home .side-menu { background: var(--hp-card); border: 1px solid var(--hp-line); border-radius: 16px; }
body.home .side-menu nav a.on { background: var(--hp-emerald-soft); color: var(--hp-emerald); }
body.home .side-menu nav.tiers a { border: 1px solid var(--hp-line); margin-bottom: 6px; }

/* ---------- sections ---------- */
.hp-section { padding: 36px 0 8px; }
.hp-kicker {
  margin: 0 0 10px; font-size: 13px; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--hp-emerald);
}
.hp-section h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.015em; color: var(--hp-navy); margin: 0 0 12px; }
.hp-cta-note { font-size: 15px; color: var(--hp-muted); margin: 22px 0 0; }

/* ---------- 3 steps ---------- */
.hp-steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
.hp-steps li {
  background: var(--hp-card); border: 1px solid var(--hp-line);
  border-radius: 18px; padding: 26px 24px; position: relative;
  box-shadow: 0 2px 10px rgba(22, 50, 79, .08);
}
.hp-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%; margin-bottom: 16px;
  background: var(--hp-navy); color: #fff; font-size: 19px; font-weight: 800;
}
.hp-steps li:nth-child(3) .hp-step-num { background: var(--hp-emerald); }
.hp-steps h3 { font-size: 20px; color: var(--hp-navy); margin: 0 0 8px; }
.hp-steps p { margin: 0; font-size: 16px; color: var(--hp-muted); line-height: 1.55; }

/* ---------- One job, start to paid — 6 Dec 2026 ---------- */
/* One section on the homepage, below the intro and before
   Get started / Sign in: the whole job journey in 6 steps,
   each step saying what carries over so nothing is typed
   twice. Same homepage style only — white card, deep navy
   text, emerald for the final Paid step, no new colours. */
.hp-journey {
  background: var(--hp-card); border: 1px solid var(--hp-line);
  border-radius: 18px; padding: 28px 24px; margin: 28px 0;
  box-shadow: 0 2px 10px rgba(22, 50, 79, .08);
  text-align: left;
}
.hp-journey h2 {
  margin: 0 0 8px; font-size: 26px; line-height: 1.2;
  color: var(--hp-navy); text-align: center;
}
.hp-journey-lede { margin: 0 0 20px; font-size: 16px; color: var(--hp-muted); line-height: 1.55; text-align: center; }
.hp-journey-steps { list-style: none; margin: 0; padding: 0; }
.hp-journey-steps li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-top: 1px solid var(--hp-line);
}
.hp-journey-steps li:first-child { border-top: 0; padding-top: 0; }
.hp-journey-steps li:last-child { padding-bottom: 0; }
.hp-journey-num {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--hp-navy); color: #fff; font-size: 18px; font-weight: 800;
}
.hp-journey-steps li:last-child .hp-journey-num { background: var(--hp-emerald); }
.hp-journey-steps h3 { font-size: 19px; color: var(--hp-navy); margin: 0 0 4px; }
.hp-journey-steps p { margin: 0; font-size: 16px; color: var(--hp-muted); line-height: 1.55; }

/* ---------- homepage footer ---------- */
.hp-foot { background: var(--hp-navy); color: #AEBECD; margin-top: 8px; }
.hp-foot-inner {
  max-width: 1180px; margin: 0 auto; padding: 48px 20px 32px;
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
.hp-foot-brand img { filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .4)); margin-bottom: 12px; }
.hp-foot-brand p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.hp-foot-brand strong { color: #fff; font-size: 17px; letter-spacing: .1em; }
.hp-foot-col h3 { margin: 0 0 12px; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.hp-foot-col a { display: block; color: #AEBECD; text-decoration: none; font-size: 15px; padding: 5px 0; }
.hp-foot-col a:hover { color: #fff; text-decoration: underline; }
.hp-foot-col p { margin: 0; font-size: 15px; line-height: 1.6; }
.hp-foot-col p a { display: inline; padding: 0; color: #fff; }
.hp-foot .opup-badge { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.hp-foot .opup-badge:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.hp-foot-base {
  max-width: 1180px; margin: 0 auto; padding: 18px 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 14px;
}
.hp-foot-base b { color: #fff; }
.hp-foot-base a { color: #AEBECD; text-decoration: none; }
.hp-foot-base a:hover { color: #fff; }

/* ---------- coming soon ---------- */
.hp-coming { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.hp-coming-card {
  background: var(--hp-card); border: 1px solid var(--hp-line);
  border-radius: 24px; padding: 40px 28px; text-align: center;
  box-shadow: 0 16px 44px rgba(22, 50, 79, .18);
}
/* Same full-body portrait frame as .hp-sophie (unused since
   coming-soon.php uses .hp-sophie now, kept so nothing can
   fall back to a stretched image here). */
.hp-coming-img {
  display: block; width: auto; height: min(480px, 52vh); max-width: 80vw;
  aspect-ratio: 1 / 2; object-fit: cover; object-position: center top;
  margin: 0 auto 8px;
  border-radius: 28px; border: 4px solid #FFFDF8;
  box-shadow: 0 12px 32px rgba(22, 50, 79, .28);
}
.hp-coming-card h1 { font-size: 38px; color: var(--hp-navy); margin: 18px 0 10px; letter-spacing: -.015em; }
.hp-coming-badge {
  display: inline-block; font-size: 14px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--hp-gold);
  background: #FBF3DF; border: 1px solid #EAD9A8;
  border-radius: 999px; padding: 6px 16px;
}
.hp-coming-card .hp-lede { font-size: 18px; color: var(--hp-muted); max-width: 560px; margin: 18px auto; line-height: 1.55; }
.hp-coming-card .hp-muted { color: var(--hp-muted); font-size: 15px; }
.hp-coming-card .hp-cta-row { flex-direction: row; flex-wrap: wrap; justify-content: center; margin-top: 26px; }

/* ---------- wider screens ---------- */
@media (min-width: 760px) {
  .hp-nav { display: flex; }
  .hp-cta-row { flex-direction: row; justify-content: center; }
  .hp-steps { grid-template-columns: repeat(3, 1fr); }
  .hp-foot-inner { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  /* Side tab sits under the sticky top bar on the homepage. */
  body.home .sidetab { top: 88px; }
  body.home .page-side { gap: 32px; }
}
