/* Shared look for the two professional pages (AI at /, radiation at /radiation/).
   Style B: Fraunces headings, navy ink on warm white. Page accent comes from the body class:
   .page-ai uses blue and sky, .page-rad uses amber and peach.
   Phone rules (600px and below): body 17px, nothing under 13px, taps 44px or more. */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #fcfaf5;
  --card: #ffffff;
  --ink: #1b2a4a;
  --muted: #44516a;
  --line: #e4dccb;
  --blue: #1a6fa3;
  --sky: #cfe3f1;
  --sky-2: #b5d3ea;
  --blue-wash: #eef5fb;
  --amber: #9a4a06;
  --peach: #f2c6ad;
  --amber-wash: #fdf3e3;
  --accent: var(--blue);
  --accent-soft: var(--sky);
  --accent-wash: var(--blue-wash);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  --max: 1136px;
  --pad: 72px;
  --radius: 16px;
}
.page-rad { --accent: var(--amber); --accent-soft: var(--peach); --accent-wash: var(--amber-wash); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--accent); }
.h2 { font-size: 40px; }
.h3 { font-size: 22px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 20; background: rgba(252, 250, 245, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 24px; }
.brand { font-family: var(--display); font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand small { font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 8px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.nav .nav-other { color: var(--muted); }
.menu { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px; font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #0f1b33; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); color: #fff; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-text { padding: 0 8px; color: var(--accent); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Hero */
.hero { padding: 48px 0 64px; }
.hero .wrap { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 80px; align-items: center; }
.hero h1 { font-size: 60px; line-height: 1.06; }
.hero .lead { font-size: 20px; }
.photo-frame { position: relative; width: 392px; height: 492px; margin: 0 28px 28px 0; }
.photo-frame::before { content: ""; position: absolute; left: 28px; top: 28px; right: -28px; bottom: -28px; border-radius: 24px; background: var(--accent-soft); }
.photo-frame img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 24px; }
.photo-badge { position: absolute; left: 20px; bottom: 20px; background: #fff; color: var(--ink); padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.write-line { font-size: 15px; color: var(--muted); }
.write-line a { color: var(--ink); font-weight: 600; }
.proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 20px; margin-top: 8px; border-top: 1px solid var(--line); }
.proof b { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; }
.proof span { font-size: 14px; color: var(--muted); line-height: 1.45; display: block; }

/* Two-column intro (hook) */
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.split .h2 { font-size: 42px; }
.split p + p { margin-top: 14px; }
.strong-line { color: var(--ink); font-weight: 500; }

/* Rules row ("In every programme") */
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.rules li { padding-top: 14px; border-top: 2px solid var(--accent-soft); font-size: 16px; line-height: 1.45; }

/* Cards */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 21px; }
.card .who { font-size: 14px; color: var(--muted); }
.card .why { font-size: 15px; line-height: 1.5; }
.card .built { font-size: 13px; color: var(--muted); }
.card .quote { font-size: 15px; font-style: italic; color: var(--muted); }
.card-wash { background: var(--accent-wash); border-color: var(--accent-soft); }
.card-link { background: var(--amber-wash); border-color: var(--peach); }
.card-link a { color: var(--amber); font-weight: 600; }
.group-label { font-size: 14px; font-weight: 600; color: var(--muted); margin: 8px 0 -4px; }
.card .area { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* Four-level ladder inside an application card */
.ladder { list-style: none; margin: 6px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ladder li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.45; }
.ladder .lv { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.ladder .lv-1 { background: var(--sky); color: var(--ink); }
.ladder .lv-2 { background: var(--sky-2); color: var(--ink); }
.ladder .lv-3 { background: var(--blue); color: #fff; }
.ladder .lv-4 { background: var(--ink); color: #fff; }
.ladder b { display: block; font-size: 13px; font-weight: 600; }

/* Outline toggle inside a card (no script needed) */
.outline { margin-top: 4px; }
.outline summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--accent); }
.outline summary::-webkit-details-marker { display: none; }
.outline summary::after { content: " +"; white-space: pre; }
.outline[open] summary::after { content: " \2212"; }
.outline ul { margin: 4px 0 10px; padding-left: 18px; font-size: 15px; line-height: 1.55; }
.decide { font-size: 14px; line-height: 1.45; padding: 10px 12px; border-radius: 10px; background: var(--accent-wash); }
.decide b { font-weight: 600; }

/* Journey (four thinking stages) */
.journey { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.journey li { padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.journey li:first-child { padding-left: 0; }
.journey li + li { border-left: 1px solid var(--line); }
.journey .n { font-size: 13px; font-weight: 600; color: var(--muted); }
.journey h3 { font-size: 22px; }
.journey .q { font-size: 16px; }
.journey .keeps { font-size: 14px; color: var(--muted); }

/* Levels as rising steps */
.levels { display: flex; align-items: flex-end; gap: 16px; list-style: none; margin: 40px 0 0; padding: 0; min-height: 300px; }
.levels li { flex: 1 1 0; border-radius: 16px 16px 0 0; padding: 20px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.levels .lv1 { height: 150px; background: var(--sky); }
.levels .lv2 { height: 200px; background: var(--sky-2); }
.levels .lv3 { height: 250px; background: var(--blue); color: #fff; }
.levels .lv4 { height: 300px; background: var(--ink); color: #fff; }
.levels .lvn { font-size: 13px; font-weight: 600; }
.levels h3 { font-size: 22px; }
.levels p { font-size: 15px; line-height: 1.4; }
.levels .start { position: absolute; top: -32px; left: 0; font-size: 13px; font-weight: 600; color: var(--blue); }
.notes-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 32px; font-size: 16px; margin-top: 20px; }

/* Readiness check */
.check-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.check-who .label { font-weight: 600; margin-right: 6px; }
.check-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.check-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
.check-qs fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.check-qs legend { padding: 0 0 8px; font-weight: 600; font-size: 16px; }
.opt, .toggle { font: inherit; font-size: 15px; line-height: 1.4; text-align: left; min-height: 48px; padding: 10px 14px; border-radius: 12px; cursor: pointer; background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.toggle { min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 600; }
.opt[aria-pressed="true"], .toggle[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.result { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.result .start-line { font-family: var(--display); font-size: 24px; line-height: 1.2; font-weight: 600; }
.watch { font-size: 15px; padding: 12px; border-radius: 10px; background: var(--amber-wash); }

/* Numbered steps and scope bar */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.steps li { padding: 18px 20px; font-size: 15px; display: flex; flex-direction: column; gap: 6px; }
.steps li:first-child { padding-left: 0; }
.steps li + li { border-left: 1px solid var(--line); }
.steps .n { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--accent); }
.bar { background: var(--ink); color: #fff; border-radius: 12px; padding: 16px 20px; font-weight: 500; }

/* Panels, lists, timeline */
.panel { background: var(--accent-wash); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.panel-blue { background: var(--blue-wash); }
.panel-blue a { color: var(--blue); font-weight: 600; }
.ticks { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.timeline { display: grid; grid-template-columns: 120px minmax(0, 1fr); row-gap: 10px; font-size: 15px; margin: 0; }
.timeline dt { font-weight: 600; color: var(--accent); }
.timeline dd { margin: 0; }
.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--muted); }

/* App panel (SiteNote) */
.app { display: flex; align-items: center; gap: 40px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; }
.app img { width: 112px; height: 112px; border-radius: 26px; flex: 0 0 auto; }
.app .facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; list-style: none; margin: 0; padding: 0; }

/* Contact */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font: inherit; font-size: 15px; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.draft { white-space: pre-wrap; font-family: var(--font); font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0; color: var(--muted); max-width: 640px; }
.copied { font-size: 14px; color: var(--muted); min-height: 1.4em; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }

/* Tablet */
@media (max-width: 1080px) {
  :root { --pad: 40px; }
  .hero .wrap { grid-template-columns: 320px minmax(0, 1fr); gap: 48px; }
  .photo-frame { width: 300px; height: 380px; }
  .hero h1 { font-size: 48px; }
  .grid-4, .rules, .journey, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .journey li, .steps li { padding-left: 0; border-left: 0 !important; border-bottom: 1px solid var(--line); }
  .check-body { grid-template-columns: minmax(0, 1fr); }
  .result { position: static; }
  .nav { gap: 18px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 10px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; min-width: 220px; box-shadow: 0 12px 30px -16px rgba(27, 42, 74, .4); }
  .menu nav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink); text-decoration: none; border-radius: 8px; }
  .hero .wrap, .split { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .grid-3, .grid-2, .notes-3 { grid-template-columns: minmax(0, 1fr); }
  .check-qs { grid-template-columns: minmax(0, 1fr); }
  .levels { flex-direction: column; align-items: stretch; min-height: 0; }
  .levels li { height: auto !important; border-radius: 14px; }
  .levels .start { position: static; order: -1; color: inherit; }
  .app { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* Phone */
@media (max-width: 600px) {
  :root { --pad: 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 16px 0 40px; }
  .hero h1 { font-size: 34px; line-height: 1.1; }
  .hero .lead, .lead { font-size: 17px; }
  .h2, .split .h2 { font-size: 30px; }
  .photo-frame { width: calc(100% - 12px); height: 240px; margin: 0 12px 12px 0; }
  .photo-frame::before { left: 12px; top: 12px; right: -12px; bottom: -12px; border-radius: 18px; }
  .photo-frame img { border-radius: 18px; object-position: center 35%; }
  .proof { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .proof div { display: flex; gap: 16px; align-items: baseline; }
  .proof b { flex: 0 0 72px; font-size: 24px; }
  .grid-4, .rules, .journey, .steps { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { width: 100%; }
  .brand small { display: none; }
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 2px; }
  .timeline dd { margin-bottom: 10px; }
  .small, .card .who, .card .built, .proof span, .site-foot { font-size: 14px; }
  /* Inline links in running text still need a 44px tap height on phones. */
  .brand { display: inline-flex; align-items: center; min-height: 44px; }
  .write-line a, .card p a, .card-link a, .section p a { display: inline-flex; align-items: center; min-height: 44px; }
}
