:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #090f18;
  color: #e8f0f6;
  --paper: #e8f0f6;
  --muted: #aec4d2;
  --mint: #97dfd0;
  --rule: #2b414f;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-block-start: 1rem; }
body, h1, h2, h3, p, dl, dt, dd { margin: 0; }
body { min-width: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--mint); outline-offset: 5px; }
[hidden] { display: none !important; }
.wrap { width: min(calc(100% - clamp(40px, 13vw, 200px)), 1400px); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; inset: 10px auto auto 12px; z-index: 5; background: var(--paper); color: #101d2b; padding: 10px 16px; border-radius: 8px; }

.site-header { background: #0c1824; border-bottom: 1px solid #2b414f; }
.header-inner, footer .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.header-inner { min-height: clamp(62px, 5.3vw, 82px); }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.68rem; font-weight: 670; letter-spacing: -.065em; line-height: 1; }
.brand img { display: block; object-fit: contain; }
.header-inner nav, footer nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 42px); }
.header-inner nav a, footer nav a { font-size: .92rem; font-weight: 540; }
.header-inner nav a:not(.sign-in), footer nav a { color: #c0d4df; padding-block: 12px; }
.header-inner nav a:hover, footer nav a:hover { color: var(--mint); }
.header-inner .sign-in { padding: 10px 23px; min-height: 42px; display: inline-grid; place-items: center; border: 1px solid #516e81; border-radius: 100px; }
.header-inner .sign-in:hover { background: #182f40; border-color: var(--mint); }

/* The public pages use the same navy surfaces and teal accents as sign-in. */
.hero {
  position: relative;
  border-bottom: 1px solid var(--rule);
  background: radial-gradient(ellipse at 76% 35%, #1b445844, transparent 53%), linear-gradient(108deg, #090f18 4%, #101e30 73%, #0d1928);
}
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .98fr); align-items: center;
  gap: clamp(28px, 5.4vw, 92px); min-height: clamp(460px, 39vw, 625px); padding-block: clamp(48px, 5.4vw, 85px);
}
.hero h1 {
  max-width: 17ch; margin-left: -.035em; font-size: clamp(2.9rem, 4.45vw, 5.7rem);
  font-weight: 640; line-height: 1.03; letter-spacing: -.055em; color: var(--paper);
}
.hero h1 span { display: block; text-wrap: balance; }
.hero h1 em, .tour h2 em { display: block; color: var(--mint); font-style: normal; }
.hero-speaker { margin-bottom: 16px; color: #c7dce6; font-size: clamp(.96rem, 1.25vw, 1.14rem); font-weight: 570; }
.hero-description { margin-block: 19px 25px; max-width: 47ch; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.18rem); line-height: 1.55; }
.button-primary {
  display: inline-grid; place-items: center; min-height: 46px; padding: 0 20px; border-radius: 10px;
  background: linear-gradient(120deg, #99e2d6, #75c9c6); color: #0c2930; font-size: .97rem; font-weight: 660;
}
.button-primary:hover { background: #b5eadc; }
.neo-desk {
  position: relative; min-width: 0; container-type: inline-size; overflow: hidden; border: 1px solid #3a5365; border-radius: 19px;
  background: linear-gradient(142deg, #182c40, #111e2e 72%); box-shadow: 0 16px 60px #03091250, inset 0 1px #a4e6e110;
}
.neo-intro { display: grid; grid-template-columns: minmax(88px, .43fr) 1fr; align-items: center; gap: 13px; padding: 13px clamp(18px, 2.25vw, 34px) 5px; }
.neo-intro h2 { max-width: 14ch; font-size: clamp(1.58rem, 2.62vw, 2.7rem); letter-spacing: -.048em; line-height: 1.1; font-weight: 620; }
.neo-stage { position: relative; display: grid; place-items: center; align-self: stretch; min-height: 146px; isolation: isolate; padding: 0; background: transparent; border: 0; border-radius: 14px; cursor: pointer; }
.neo-stage:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.neo-stage::before { content: ""; position: absolute; width: 100%; height: 100%; z-index: -1; background: radial-gradient(ellipse, #66cfc331, transparent 70%); }
.neo-halo, .neo-halo::after { position: absolute; bottom: 8%; left: 50%; width: min(95%, 140px); height: 23px; border: 1px solid #74bfb953; border-radius: 50%; transform: translateX(-50%); background: #7fded70b; }
.neo-halo::after { content: ""; width: 68%; height: 60%; bottom: 16%; }
.neo-stage .neo-portrait { position: relative; width: min(100%, 98px); height: 136px; }
.neo-guide { padding: 4px clamp(16px, 2.1vw, 32px) clamp(18px, 2vw, 28px); }
.neo-questions { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 4px 16px; }
.neo-questions a { display: inline-flex; align-items: center; padding: 7px 11px; min-height: 38px; border: 1px solid #3a5365; border-radius: 8px; color: #c1d6e0; font-size: .85rem; font-weight: 560; }
.neo-questions a:hover, .neo-questions a[aria-pressed=true] { border-color: #72b9b2; color: #ccf8ee; background: #1b3b46; }
.neo-response { padding: 14px 16px; border: 1px solid #34505f; border-left: 2px solid #74c3bc; border-radius: 0 9px 9px 0; background: #0c1927; }
.example-label { margin-bottom: 7px; color: #a9c7d3; font-size: .78rem; font-weight: 570; }
#neo-question { margin-bottom: 5px; color: #eaf6fa; font-size: 1.035rem; font-weight: 640; line-height: 1.3; }
#neo-answer { min-height: 4.35em; color: #c9dde7; font-size: .94rem; line-height: 1.45; }
@container (max-width: 440px) { #neo-answer { min-height: 5.8em; } }
.neo-response a { display: inline-block; margin-top: 9px; font-size: .88rem; font-weight: 620; color: var(--mint); text-decoration: underline; text-underline-offset: .22em; }

.tour { display: grid; grid-template-columns: minmax(230px, .58fr) minmax(0, 1.42fr); gap: clamp(30px, 4vw, 72px); align-items: center; padding-block: clamp(64px, 7vw, 112px); }
.tour h2 { font-size: clamp(2.65rem, 4.25vw, 4.85rem); letter-spacing: -.052em; font-weight: 550; line-height: .99; text-wrap: balance; }
.tour h2 em { white-space: nowrap; }
.tour-nav { margin-top: 31px; display: flex; flex-wrap: wrap; gap: 5px; }
.tour-nav a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 43px;
  padding: 0 11px; border: 1px solid #354e62; border-radius: 8px; color: #c3d3df;
  font-size: .875rem; font-weight: 555; white-space: nowrap;
}
.tour-nav a:hover { border-color: #86c6bd; color: #e8f3fa; }
.tour-nav a[aria-selected=true] { color: #d9fff4; border-color: #6fb6af; background: #1a3a45; }
.tour-symbol { display: inline-block; position: relative; flex: none; width: 13px; height: 13px; }
.close-symbol { border: 1.3px solid currentColor; border-radius: 3px; }
.close-symbol::before { content: ""; position: absolute; width: 7px; height: 4px; top: 2px; left: 2px; border: solid currentColor; border-width: 0 0 1.3px 1.3px; transform: rotate(-45deg); }
.booking-symbol { height: 12px; border: 1.3px solid currentColor; border-radius: 3px; }
.booking-symbol::before { content: ""; position: absolute; inset: 3px 0 auto; border-top: 1px solid currentColor; }
.rota-symbol::before, .rota-symbol::after { content: ""; position: absolute; width: 6px; height: 8px; border: 1.2px solid currentColor; border-radius: 1.5px; }
.rota-symbol::before { top: 0; left: 0; } .rota-symbol::after { right: 0; bottom: 0; }
.report-symbol { background: linear-gradient(currentColor,currentColor) 0 100% / 2px 42%, linear-gradient(currentColor,currentColor) center bottom / 2px 73%, linear-gradient(currentColor,currentColor) right bottom / 2px 99%; background-repeat: no-repeat; }
.demo { min-width: 0; overflow: hidden; border: 1px solid #3a5365; border-radius: 16px; box-shadow: 0 18px 50px #0003; background: #122030; }
.tour-panel { min-width: 0; padding: clamp(18px, 2.8vw, 32px); }
.tour-panel + .tour-panel:not([hidden]) { border-top: 1px solid var(--rule); }
.tour-panel:focus-visible { outline-offset: -4px; }
.tour-panel h3 { font-size: clamp(1.4rem, 2.45vw, 2.1rem); font-weight: 590; letter-spacing: -.035em; line-height: 1.16; }
.tour-panel > p { margin-top: 9px; max-width: 61ch; color: var(--muted); line-height: 1.5; }
.tour-values, .tour-table { width: 100%; margin: 22px 0 0; }
.tour-values > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.tour-values dt { color: var(--muted); }
.tour-values dd { margin: 0; text-align: right; font-weight: 620; }
#tour-close .tour-values dd { max-width: 62%; }
.tour-table { border-collapse: collapse; text-align: left; font-size: .92rem; }
.tour-table caption { text-align: left; color: var(--muted); padding-bottom: 8px; }
.tour-table th, .tour-table td { padding: 10px 6px; border-bottom: 1px solid var(--rule); }
.tour-table th:first-child { padding-left: 0; }
.tour-table thead th { color: var(--muted); font-weight: 510; }
.tour-table tbody th { font-weight: 600; }
.tour-highlight { color: #a7e5d6; font-weight: 620; }
.tour-workspace {
  margin: 20px 0 0; padding: clamp(10px, 1.65vw, 18px); border: 1px solid #345364;
  border-radius: 12px; background: #0d1b29; font-size: .875rem;
}
.tour-workspace-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.tour-workspace-heading strong { font-size: 1rem; color: var(--paper); }
.tour-workspace-heading time { color: var(--muted); white-space: nowrap; }
.diary-preview-toolbar { display: flex; align-items: center; gap: 4px; margin-block: 11px 8px; color: var(--muted); }
.diary-preview-toolbar > span { padding: 5px 7px; }
.diary-preview-selected { border-radius: 5px; background: #1d4149; color: #c8f0e6; font-weight: 600; }
.diary-preview-toolbar .diary-preview-search { margin-left: auto; border: 1px solid var(--rule); border-radius: 6px; }
.diary-preview-search strong { margin-left: 4px; color: var(--paper); }
.diary-preview-grid { padding-right: 26px; }
.diary-preview-ruler, .diary-preview-row { display: grid; grid-template-columns: 42px minmax(0, 1fr); }
.diary-preview-ruler { align-items: end; min-height: 23px; color: var(--muted); font-size: .72rem; }
.diary-preview-ruler > div { position: relative; height: 100%; }
.diary-preview-ruler > div span { position: absolute; bottom: 5px; }
.diary-preview-ruler > div span:nth-child(1) { left: 0; }
.diary-preview-ruler > div span:nth-child(2) { left: 33.333%; }
.diary-preview-ruler > div span:nth-child(3) { left: 66.667%; }
.diary-preview-ruler > div span:nth-child(4) { left: 100%; }
.diary-preview-ruler > span { padding-bottom: 5px; }
.diary-preview-row { min-height: 30px; border-top: 1px solid var(--rule); }
.diary-preview-row:last-child { border-bottom: 1px solid var(--rule); }
.diary-preview-row > span { display: grid; align-items: center; font-variant-numeric: tabular-nums; }
.diary-preview-row > div {
  display: flex; align-items: center; position: relative; border-inline: 1px solid #395467;
  background-image: linear-gradient(90deg, #395467 1px, transparent 1px), linear-gradient(90deg, #263d4f 1px, transparent 1px);
  background-size: calc(100% / 3) 100%, calc(100% / 12) 100%;
}
.diary-preview-booking {
  margin-left: 20%; width: 63.333%; padding: 3px 4px; border: 1px solid #70c69d; border-radius: 5px;
  color: #e0f7e8; background: #24583e; font-size: clamp(.68rem, 1.1vw, .83rem); text-align: center; font-weight: 635; line-height: 1.1;
}
.diary-preview-detail { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 10px; margin-top: 11px; }
.diary-preview-detail p { color: var(--muted); font-size: .8rem; margin-top: 3px; }
.diary-preview-detail > p { grid-column: 1 / -1; margin-top: 0; }
.labour-preview-option { display: inline-flex; align-items: center; min-height: 36px; gap: 7px; margin-top: 5px; color: #d7e5ed; cursor: pointer; }
.labour-preview-option input { width: 16px; height: 16px; margin: 0; accent-color: var(--mint); }
.labour-preview-option input:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.labour-preview-table { margin: 3px 0 0; font-size: clamp(.75rem, 1.2vw, .9rem); font-variant-numeric: tabular-nums; }
.labour-preview-table :is(th, td) { padding: 8px 4px; }
.labour-preview-table :is(th, td):not(:first-child) { text-align: right; }
.labour-preview-table thead th { vertical-align: bottom; }
.labour-preview-table :is(th, td):last-child { padding-right: 0; white-space: nowrap; }
.labour-preview-table tfoot :is(th, td) { border: 0; padding-bottom: 1px; }
.tour-notes { margin: 15px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.tour-notes strong { color: #e5f0f5; font-weight: 620; }
footer { border-top: 1px solid #2b414f; }
.footer-inner { min-height: 82px; }
footer .brand { font-size: 1.22rem; }
footer nav { gap: clamp(12px, 2vw, 26px); }
footer nav a { font-size: .85rem; }

@media screen and (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  @keyframes welcome-entry { from { opacity: .68; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes neo-arrival { from { opacity: .3; scale: .82; } to { opacity: 1; scale: 1; } }
  .neo-halo { animation: neo-arrival 800ms ease-out; }
  .hero-copy { animation: welcome-entry 420ms cubic-bezier(.22,1,.36,1) backwards; }
  .neo-desk { animation: welcome-entry 460ms 65ms cubic-bezier(.22,1,.36,1) backwards; }
  .tour-panel[role=tabpanel]:not([hidden]) { animation: welcome-entry 185ms ease-out; }
}
@media (max-width: 1050px) {
  .tour { gap: 22px; grid-template-columns: minmax(210px,.53fr) minmax(0,1.47fr); }
  .neo-intro { grid-template-columns: 92px 1fr; }
}
@media (max-width: 820px) {
  .wrap { width: calc(100% - 48px); }
  .tour { grid-template-columns: 1fr; gap: 24px; }
  .tour h2 em { display: inline; }
  .tour-nav { margin-top: 18px; }
  .hero-inner { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); gap: 24px; }
  .hero h1 { font-size: clamp(2.45rem, 5.3vw, 3.6rem); }
  .neo-intro { padding-inline: 15px; gap: 7px; grid-template-columns: 84px 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { min-height: 64px; }
  .brand { font-size: 1.46rem; }
  .brand img { width: 29px; height: 29px; }
  .header-inner nav { gap: 18px; }
  .header-inner .contact-link { display: none; }
  .header-inner .sign-in { padding: 7px 17px; }
  .hero-inner { min-height: 0; grid-template-columns: 1fr; padding-block: 32px 26px; gap: 25px; }
  .hero h1 { max-width: 17ch; font-size: clamp(2.25rem, 8.6vw, 3.55rem); }
  .hero-speaker { margin-bottom: 11px; }
  .hero-description { margin-block: 12px 16px; font-size: 1rem; }
  .button-primary { min-height: 42px; }
  .neo-desk { border-radius: 14px; }
  .neo-intro { grid-template-columns: minmax(78px, .48fr) 1fr; padding-top: 10px; }
  .neo-stage { min-height: 103px; }
  .neo-stage .neo-portrait { width: 72px; height: 101px; }
  .neo-intro h2 { margin-block: 4px; }
  .neo-guide { padding: 5px 13px 14px; }
  .neo-questions { padding-bottom: 10px; gap: 4px; }
  .neo-questions a { padding: 7px 8px; font-size: .805rem; }
  .neo-response { padding: 10px 12px; }
  .tour { padding-block: 42px; gap: 19px; }
  .tour h2 { font-size: clamp(2.35rem, 8vw, 3rem); }
  .tour-nav { gap: 5px; }
  .tour-nav a { padding: 0 9px; gap: 6px; font-size: .82rem; }
  .demo { border-radius: 12px; }
  .tour-values, .tour-table { margin-top: 17px; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding-block: 20px; }
  footer nav { flex-wrap: wrap; }
}
@media (max-width: 370px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner nav { gap: 12px; }
  .tour-symbol { display: none; }
  .diary-preview-ruler, .diary-preview-row { grid-template-columns: 33px minmax(0, 1fr); }
  .labour-preview-table { table-layout: fixed; font-size: .71rem; }
  .labour-preview-table :is(th, td) { padding-inline: 2px; }
  .labour-preview-table tbody th { padding-right: 0; }
  .labour-preview-table thead th:first-child { width: 25.5%; }
  .labour-preview-table thead th:nth-child(2) { letter-spacing: -.025em; }
  .labour-preview-table thead th:nth-child(3) { width: 14%; }
  .labour-preview-table thead th:last-child { width: 28%; }
}
