/* revvie.co.uk: the public home page and privacy notice. Same navy and electric blue as the app, same two fonts,
   served from this site (no Google Fonts), so a visit sends nothing to anyone else. No scripts. */
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-400.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-400i.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-700.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/bricolage.woff2) format("woff2"); }

:root {
  --navy: #13233F; --navy-deep: #0E1A30; --blue: #2F6FE8; --blue-bright: #4C8DFF; --blue-pale: #A8C6FF;
  --paper: #F3F6FB; --surface: #FFFFFF; --surface-2: #EAEFF7; --rule: #DCE3EE;
  --text: #13233F; --muted: #56637A; --link: #1E56C8;
  --on-navy: #FFFFFF; --on-navy-2: #C4D2E8; --on-navy-3: #A9BCDD;
  --g-plan: #1E56C8; --g-learn: #0F7A4F; --g-practise: #B4500C; --g-grow: #08707F;
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 48px); --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --navy: #0F1D36; --navy-deep: #0A1426;
    --paper: #0B1424; --surface: #13233F; --surface-2: #1A2E50; --rule: #253B60;
    --text: #EEF3FB; --muted: #A9B6CC; --link: #A8C6FF;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1.0625rem/1.6 var(--body); }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--blue-bright); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #13233F; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header and hero: navy, with the brochure's soft glows */
.navy { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.navy::before, .navy::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.navy::before { width: 720px; height: 720px; right: -220px; top: -260px; background: radial-gradient(closest-side, rgba(47,111,232,.45), transparent); }
.navy::after { width: 560px; height: 560px; left: -260px; bottom: -320px; background: radial-gradient(closest-side, rgba(123,92,255,.28), transparent); }
.navy > * { position: relative; z-index: 1; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--on-navy); text-decoration: none; }
.brand svg { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: 5px; }
.wordmark { font: 800 1.6rem/1 var(--display); letter-spacing: -0.035em; color: var(--on-navy); }
.wordmark span { color: var(--blue-bright); }
.credit { font-size: .8125rem; color: var(--on-navy-3); letter-spacing: .01em; }
.top nav { display: flex; gap: clamp(14px, 3vw, 28px); }
.top nav a { color: var(--on-navy-2); text-decoration: none; font-weight: 700; font-size: .9375rem; }
.top nav a:hover { color: var(--on-navy); text-decoration: underline; }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 72px); align-items: center; padding-top: clamp(28px, 6vw, 72px); padding-bottom: clamp(56px, 9vw, 112px); }
.pill { display: inline-block; font-weight: 700; font-size: .8125rem; letter-spacing: .02em; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: var(--on-navy); border: 1px solid rgba(255,255,255,.18); }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); font-weight: 800; margin-top: 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, #77A8FF, #B9A6FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--on-navy-2); margin-top: 20px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--blue); color: #fff; font-weight: 700; text-decoration: none; }
.btn:hover { background: #2560D0; }
.text-link { color: var(--on-navy); font-weight: 700; }

/* The "Tonight" card: an example plan, not anyone's real data */
.tonight { background: #fff; color: #13233F; border-radius: 24px; padding: 22px; box-shadow: 0 24px 60px rgba(4,10,24,.45); transform: rotate(1.5deg); max-width: 440px; justify-self: end; width: 100%; }
.tonight-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid #DCE3EE; }
.tonight-head h2 { font-size: 1.375rem; }
.tonight-head span { color: #56637A; font-size: .875rem; }
.tonight ul { list-style: none; margin: 0; padding: 0; }
.tonight li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid #EAEFF7; }
.tonight li:last-child { border-bottom: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.geo { background: #0F7A4F; } .dot.chem { background: #B4500C; } .dot.spa { background: #6A4BDB; }
.tonight strong { display: block; font-size: 1rem; line-height: 1.3; }
.tonight small { display: block; color: #56637A; font-size: .875rem; line-height: 1.35; }
.tick { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #C9D3E3; display: grid; place-items: center; }
.tick.done { border: 0; }
.aim { margin-top: 10px; border-radius: 14px; background: #E7EEFB; color: #1E3A78; padding: 11px 14px; font-size: .9375rem; }
.aim b { color: #13233F; }

/* Sections */
section.band { padding: clamp(56px, 9vw, 104px) 0; }
.eyebrow { font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.band h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; margin-top: 10px; }
.intro { color: var(--muted); font-size: 1.125rem; margin-top: 14px; max-width: 40em; }

.groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
.group { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 24px 22px 26px; }
.tag { display: inline-block; color: #fff; font-weight: 700; font-size: .8125rem; letter-spacing: .02em; padding: 5px 11px; border-radius: 999px; }
.tag.plan { background: var(--g-plan); } .tag.learn { background: var(--g-learn); } .tag.practise { background: var(--g-practise); } .tag.grow { background: var(--g-grow); }
.group h3 { font-size: 1.375rem; font-weight: 700; margin-top: 16px; }
.group ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.group li { padding-left: 20px; position: relative; color: var(--muted); line-height: 1.45; }
.group li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.group.plan li::before { background: var(--g-plan); } .group.learn li::before { background: var(--g-learn); }
.group.practise li::before { background: var(--g-practise); } .group.grow li::before { background: var(--g-grow); }

.trust { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; margin-top: 40px; }
.point { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; }
.icon { width: 48px; height: 48px; border-radius: 14px; background: #13233F; color: #fff; display: grid; place-items: center; }
.point h3 { font-size: 1.25rem; font-weight: 700; }
.point p { color: var(--muted); margin-top: 6px; }
.more { margin-top: 36px; font-weight: 700; }

.schools { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: start; }
.schools p + p { margin-top: 14px; }
.schools .body { color: var(--muted); font-size: 1.125rem; }

.close { text-align: center; padding: clamp(64px, 10vw, 120px) 0; }
.close p { font: 800 clamp(2rem, 5vw, 3.4rem)/1.08 var(--display); letter-spacing: -0.03em; max-width: 14em; margin: 0 auto; text-wrap: balance; }

/* Footer */
footer { background: var(--navy-deep); color: var(--on-navy-2); padding: 40px 0 48px; font-size: .9375rem; }
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.foot .legal { margin-top: 18px; color: var(--on-navy-3); max-width: 44em; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { color: var(--on-navy); font-weight: 700; }

/* Privacy notice */
.page-head { padding-top: clamp(24px, 5vw, 56px); padding-bottom: clamp(36px, 6vw, 64px); }
.page-head h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 800; }
.page-head p { color: var(--on-navy-2); margin-top: 14px; font-size: 1.125rem; max-width: 36em; }
.doc { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 64px) var(--gutter) clamp(56px, 8vw, 96px); }
.summary { background: var(--surface); border: 1px solid var(--rule); border-left: 6px solid var(--blue); border-radius: 18px; padding: 22px 24px; }
.summary h2 { font-size: 1.5rem; }
.doc h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); font-weight: 700; margin-top: 44px; }
.summary h2 { margin-top: 0; }
.doc h3 { font-size: 1.1875rem; font-weight: 700; margin-top: 24px; }
.doc p, .doc ul { margin-top: 12px; }
.doc ul { padding-left: 1.25em; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--blue); }
.doc .muted { color: var(--muted); }
.providers { list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.providers li { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 14px 16px; margin: 0 !important; }
.providers b { display: block; }
.providers span { color: var(--muted); }
.updated { color: var(--muted); margin-top: 40px !important; font-size: .9375rem; }

@media (prefers-color-scheme: dark) {
  .icon { background: #24406E; }
}

/* iPad portrait and smaller */
@media (max-width: 960px) {
  .groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .tonight { justify-self: start; transform: rotate(0); max-width: 520px; }
  .schools { grid-template-columns: minmax(0, 1fr); }
}
/* Phones */
@media (max-width: 600px) {
  .top { padding-top: 16px; padding-bottom: 16px; }
  .wordmark { font-size: 1.4rem; }
  .credit { font-size: .75rem; }
  .top nav a.wide { display: none; }
  .groups, .points { grid-template-columns: minmax(0, 1fr); }
  .tonight { padding: 18px; border-radius: 20px; }
  .foot { grid-template-columns: minmax(0, 1fr); }
}
