/* The website's styles (#234): the app's colours (web/src/ui/tokens.css) and the phone's own font, so nothing waits
   for a font to load. Works from 320 px up; laid out for 390 px phones and computers. */
:root {
  --c-navy: #0b2545;
  --c-navy-2: #12305a;
  --c-on-navy: #ffffff;
  --c-on-navy-muted: #bfd0ea;
  --c-blue: #2563eb;
  --c-blue-dark: #1d4ed8;
  --c-blue-tint: #e8effd;
  --c-blue-choice: #eef4ff;
  --c-bg: #f4f7fc;
  --c-surface: #ffffff;
  --c-text: #0f1b2d;
  --c-muted: #556070;
  --c-line: #dde2e8;
  --c-green: #166534;
  --c-green-bg: #dcfce7;
  --c-amber: #854d0e;
  --c-amber-bg: #fef3c7;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --tap: 44px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.55; color: var(--c-text); background: var(--c-surface); }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); }
a:hover { color: var(--c-blue-dark); }
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--c-surface); padding: 8px 12px; border-radius: var(--r-sm); z-index: 10; }
.skip:focus { left: 8px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 10px 20px;
  border-radius: var(--r-sm); font-weight: 700; font-size: 1rem; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.button-primary { background: var(--c-blue); color: #fff; }
.button-primary:hover { background: var(--c-blue-dark); color: #fff; }
.button-secondary { background: var(--c-surface); color: var(--c-text); border-color: var(--c-line); }
.button-secondary:hover { border-color: var(--c-blue); color: var(--c-blue-dark); }
.button-on-navy { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.button-on-navy:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.button-large { min-height: 52px; padding: 14px 26px; font-size: 1.0625rem; }

/* Header: the logo, Pricing and Help centre, and Book a demo; on a phone the two links go on their own row. */
.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line); position: sticky; top: 0; z-index: 5; }
.header-row { display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.brand img { width: 136px; height: auto; }
.site-nav { display: flex; gap: 4px; order: 3; width: 100%; margin: 0 -10px; }
.site-nav a { color: var(--c-text); text-decoration: none; font-weight: 600; padding: 8px 10px; border-radius: var(--r-sm); min-height: var(--tap); display: inline-flex; align-items: center; }
.site-nav a:hover { background: var(--c-bg); }
.site-nav a[aria-current="page"] { color: var(--c-blue); }
.header-demo { margin-left: auto; padding: 8px 16px; }
@media (min-width: 720px) {
  .brand img { width: 152px; }
  .site-nav { order: 0; width: auto; margin: 0 0 0 16px; }
}

/* Home: hero */
.hero { background: var(--c-navy); color: var(--c-on-navy); padding: 48px 0 56px; }
.hero-row { display: grid; gap: 32px; align-items: center; }
.hero h1 { max-width: 15em; }
.hero-shot { display: none; }
@media (min-width: 900px) {
  .hero-row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
  .hero-shot { display: block; justify-self: end; width: 100%; max-width: 360px; height: 330px; overflow: hidden; border-radius: var(--r-md);
    background: var(--c-surface); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35); }
  .hero-shot img { width: 100%; height: auto; }
}
.hero .lead { font-size: 1.1875rem; color: var(--c-on-navy-muted); max-width: 36em; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 479px) { .hero-actions .button { width: 100%; } }
@media (min-width: 720px) { .hero { padding: 64px 0 72px; } }

.section { padding: 56px 0; }
.section-alt { background: var(--c-bg); }
.section-head { max-width: 40em; margin-bottom: 28px; }
.section-head p { color: var(--c-muted); font-size: 1.0625rem; }
.eyebrow { display: block; color: var(--c-blue); font-weight: 700; font-size: 0.875rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.section-tight { padding-top: 0; }
.section-last { padding-bottom: 72px; }
@media (min-width: 720px) { .section { padding: 64px 0; } .section-tight { padding-top: 0; } }

/* See it in 30 seconds: the player, with the chapters on the side (under it on a phone). */
.player { display: grid; gap: 16px; }
.player .frame { order: -1; }
@media (min-width: 900px) { .player { grid-template-columns: 280px minmax(0, 1fr); align-items: start; gap: 20px; } .player .frame { order: 0; } }
.frame { position: relative; background: var(--c-navy); border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 9; box-shadow: 0 12px 32px rgba(11, 37, 69, 0.18); }
.frame video, .frame > img { width: 100%; height: 100%; object-fit: contain; background: var(--c-navy); }
.frame:fullscreen { border-radius: 0; aspect-ratio: auto; }
.controls { display: none; position: absolute; left: 0; right: 0; bottom: 0; align-items: center; gap: 8px; padding: 8px;
  background: linear-gradient(transparent, rgba(11, 37, 69, 0.85)); }
.player-ready .controls { display: flex; }
.controls button { min-width: var(--tap); height: var(--tap); border: 0; background: transparent; color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; font: inherit; font-size: 0.875rem; }
.controls .control-round::before { content: ""; position: absolute; width: 32px; height: 32px; border-radius: 50%; background: var(--c-blue); z-index: -1; }
.controls .control-round { position: relative; z-index: 0; }
.controls .control-text { padding: 0 8px; border-radius: var(--r-sm); }
.controls .control-text:hover { background: rgba(255, 255, 255, 0.14); }
.controls svg { width: 16px; height: 16px; fill: currentColor; }
.controls .time { color: #fff; font-size: 0.875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 479px) { .controls .time { display: none; } }
[data-pause] .icon-play { display: none; }
[data-pause][data-state="paused"] .icon-play { display: block; }
[data-pause][data-state="paused"] .icon-pause { display: none; }
.progress { flex: 1; height: 4px; background: rgba(255, 255, 255, 0.3); border-radius: 2px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: #fff; }
.chapters { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.chapters button { width: 100%; text-align: left; font: inherit; color: var(--c-text); background: var(--c-surface); border: 1px solid var(--c-line);
  border-radius: var(--r-md); padding: 14px 16px; cursor: pointer; display: grid; min-height: var(--tap); }
.chapters button:hover { border-color: var(--c-blue); }
.chapters button[aria-current="true"] { border-color: var(--c-blue); box-shadow: 0 0 0 1px var(--c-blue); }
.chapter-where { font-size: 0.75rem; color: var(--c-muted); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.chapters button[aria-current="true"] .chapter-where { color: var(--c-blue); }
.chapter-title { font-weight: 700; }
.chapter-text { font-size: 0.875rem; color: var(--c-muted); }
.chapter-bar { height: 3px; background: var(--c-line); border-radius: 2px; margin-top: 10px; overflow: hidden; }
.chapter-bar i { display: block; height: 100%; width: 0; background: var(--c-blue); }
.player-note { color: var(--c-muted); font-size: 0.875rem; margin: 4px 0 0; }

/* How it works, roles, security: cards in a grid */
.grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 560px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 22px; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--c-muted); }
.card h3 { margin-bottom: 0.3em; }
.card-key { border-color: var(--c-blue); background: var(--c-blue-choice); box-shadow: 0 0 0 1px var(--c-blue); }
.card-soft { background: var(--c-bg); border-color: transparent; }

/* The pricing box, on Home and Pricing */
.price-box { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-lg); padding: 28px; max-width: 560px;
  box-shadow: 0 12px 32px rgba(11, 37, 69, 0.08); }
.price-plan { font-weight: 700; color: var(--c-muted); margin: 0 0 6px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; }
.price-amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.price-unit { color: var(--c-muted); font-weight: 600; }
.price-tax { color: var(--c-muted); font-size: 0.875rem; margin-bottom: 20px; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-green-bg)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23166534' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.price-box .button { width: 100%; }
.price-band { display: grid; gap: 20px; align-items: center; background: var(--c-blue-choice); border: 2px solid var(--c-blue);
  border-radius: var(--r-lg); padding: 24px; }
.price-band-amount { margin: 0; display: grid; justify-items: start; }
.price-band .price-amount { color: var(--c-blue); }
.price-band-list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
@media (min-width: 720px) { .price-band { grid-template-columns: auto 1fr auto; gap: 40px; padding: 24px 32px; } .price-band-amount { justify-items: center; } }
.pricing-layout { display: grid; gap: 32px; }
@media (min-width: 900px) { .pricing-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.faq h3 { margin-top: 1.4em; }
.faq p { color: var(--c-muted); }

/* Pages of text: privacy, terms, help */
.page { padding: 40px 16px 64px; max-width: 760px; margin: 0 auto; }
@media (min-width: 720px) { .page { padding: 56px 32px 80px; } }
.page-wide { max-width: var(--wrap); }
.page-lead { color: var(--c-muted); font-size: 1.0625rem; }
.page h1 { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.5rem); }
.doc h2 { font-size: 1.375rem; margin-top: 1.8em; }
.doc ol, .doc ul { padding-left: 1.4em; margin: 0 0 1em; }
.doc li { margin-bottom: 0.4em; }
.doc figure { margin: 1em 0 1.4em; }
.doc figure img { border: 1px solid var(--c-line); border-radius: var(--r-md); max-height: 640px; width: auto; }
.doc code { background: var(--c-bg); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
.doc hr { border: 0; border-top: 1px solid var(--c-line); margin: 2em 0; }
.crumbs { color: var(--c-muted); font-size: 0.9375rem; }
.help-more { color: var(--c-muted); font-size: 0.9375rem; border-top: 1px solid var(--c-line); padding-top: 16px; margin-top: 2em; }
.review-note { background: var(--c-amber-bg); color: var(--c-amber); border-radius: var(--r-md); padding: 14px 16px; font-weight: 600; }
.updated { color: var(--c-muted); }
.doc .roles-list, .roles-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
@media (min-width: 560px) { .roles-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .roles-list { grid-template-columns: repeat(4, 1fr); } }
.role-card { display: block; height: 100%; text-decoration: none; color: var(--c-text); border: 1px solid var(--c-line); border-radius: var(--r-md); padding: 16px 18px; }
.role-card:hover { border-color: var(--c-blue); color: var(--c-text); }
.role-name { display: block; font-weight: 700; color: var(--c-text); margin-bottom: 4px; }
.role-card:hover .role-name { color: var(--c-blue); }
.role-what { display: block; color: var(--c-muted); font-size: 0.9375rem; }

/* Footer */
.site-footer { background: var(--c-navy); color: var(--c-on-navy-muted); padding: 20px 0; font-size: 0.875rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 24px; }
.site-footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.site-footer a { color: var(--c-on-navy-muted); text-decoration: none; min-height: var(--tap); display: inline-flex; align-items: center; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
