/* Ardea website styles.
   Look: Apple's product pages for clarity, the Land Rover brochure for structure
   (wide "spread" panels in alternating tones, spaced capital labels).
   Colour: neutral white and warm grey in light mode, graphite in dark mode.
   Navy is kept for one brand moment (the Ardea Lock panel) and the icon; amber
   marks actions and labels. Light and dark follow the device's own setting.
   No web fonts: on Apple devices the system font is San Francisco.
   Contrast for every text colour is checked by test/contrast.test.js. */

:root {
  color-scheme: light dark;

  /* Brand, from the logo files */
  --navy: #22344a;
  --amber: #f0a63e;
  --ember: #ffe2a6;

  /* Light */
  --bg: #ffffff;
  --surface: #f4f3f0;          /* warm grey "mist" panels */
  --surface-strong: #ffffff;
  --text: #121417;
  --muted: #545961;
  --rule: #e3e1dc;
  --link: #a14b00;
  --link-hover: #7a3800;
  --accent: #b86a12;           /* lines and icons, not text */
  --action-bg: #f2a33a;
  --action-text: #121417;
  --action-edge: #b86a12;
  --note-bg: #fff1db;
  --note-edge: #b86a12;
  --focus: #1c5fd1;
  --glow: rgba(242, 163, 58, 0.2);
  --header-bg: rgba(255, 255, 255, 0.82);
  --shadow: 0 30px 60px -20px rgba(18, 20, 23, 0.35), 0 12px 24px -12px rgba(18, 20, 23, 0.25);

  /* Panel tones, the same in light and dark unless redefined below */
  --ink-bg: #131518;           /* dark panel */
  --ink-text: #f4f2ee;
  --ink-muted: #b3b7be;
  --ink-accent: #f7b95e;
  --ember-bg: #fbf1df;         /* warm panel */
  --ember-text: #1d1408;
  --ember-muted: #5b4a33;
  --ember-accent: #8f4300;
  --band-bg: #1a2a40;          /* navy: the Ardea Lock panel */
  --band-text: #fdf8ef;
  --band-muted: #c3cbd8;
  --band-accent: #f7b95e;

  --radius: 28px;
  --measure: 42rem;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui,
    Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0f11;
    --surface: #1a1b1e;
    --surface-strong: #222428;
    --text: #f4f2ee;
    --muted: #aaaeb5;
    --rule: #2b2d32;
    --link: #f7b95e;
    --link-hover: #ffe2a6;
    --accent: #f2aa45;
    --action-bg: #f2aa45;
    --action-text: #121417;
    --action-edge: #f7b95e;
    --note-bg: #33260f;
    --note-edge: #f2aa45;
    --focus: #8cb8ff;
    --glow: rgba(242, 170, 69, 0.16);
    --header-bg: rgba(14, 15, 17, 0.82);
    --shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.75), 0 12px 24px -12px rgba(0, 0, 0, 0.5);
    --ink-bg: #000000;
    --ember-bg: #241a0c;
    --ember-text: #fbf1df;
    --ember-muted: #d5c3a6;
    --ember-accent: #f7b95e;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

svg {
  display: block;
}

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--link-hover);
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: 82rem;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 40rem) {
  .wrap {
    padding: 0 1.5rem;
  }
}

@media (min-width: 64rem) {
  .wrap {
    padding: 0 2.5rem;
  }
}

/* Skip link: hidden until a keyboard user tabs to it. */
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--surface-strong);
  color: var(--text);
  border: 2px solid var(--focus);
  border-radius: 10px;
  z-index: 20;
}

.skip:focus {
  top: 1rem;
}

/* Spaced capital labels, as on the Land Rover brochure */
.label {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--link);
}

/* Header: the icon and wordmark, with a see-through bar that stays at the top. */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--rule);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  min-height: 4.75rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 22%;
}

.brand-word {
  height: 2.25rem;
  width: auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 -0.7rem 0 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;      /* 44-point touch target */
  padding: 0 0.7rem;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--link);
}

.site-nav a[aria-current="page"] {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.6em;
}

@media (max-width: 30rem) {
  .bar {
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
  }
  .brand-icon {
    width: 2.4rem;
    height: 2.4rem;
  }
  .brand-word {
    height: 1.9rem;
  }
  .site-nav {
    width: 100%;
  }
  .site-nav ul {
    margin: 0 0 0 -0.5rem;
  }
  .site-nav a {
    padding: 0 0.5rem;
    letter-spacing: 0.1em;
  }
}

/* Shared pieces */

.arrow-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
}

.arrow-link::after {
  content: "›";
  margin-left: 0.3rem;
  font-size: 1.3em;
  line-height: 1;
}

.arrow-link:hover {
  text-decoration: underline;
}

/* "Coming soon to the App Store": a label, not a link, until the app is live. */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--action-bg);
  color: var(--action-text);
  border: 1px solid var(--action-edge);
  font-weight: 650;
}

.soon svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: none;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

/* A picture of the app in a phone frame. */
.phone {
  margin: 0;
  width: 100%;
  max-width: 17rem;
  padding: 0.55rem;
  border-radius: 3rem;
  background: #0b0c0e;
  box-shadow: var(--shadow), inset 0 0 0 1.5px #3a3d43;
}

.phone img {
  width: 100%;
  border-radius: 2.5rem;
}

/* Home: hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: 3.5rem 0 0;
  text-align: center;
}

@media (min-width: 48rem) {
  .hero {
    padding-top: 5rem;
  }
}

.hero h1 {
  font-size: clamp(3rem, 1.6rem + 7vw, 6.5rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
}

.hero-lede {
  max-width: 40rem;
  margin: 1.5rem auto 0;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
  line-height: 1.4;
  color: var(--muted);
}

.hero-stage {
  position: relative;
  margin-top: 3rem;
}

.glow {
  position: absolute;
  inset: 10% 0 auto;
  height: 70%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  pointer-events: none;
}

.trio {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 1rem;
  /* The phones run off the bottom edge, like a product photo. */
  max-height: clamp(24rem, 52vw, 34rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent);
  mask-image: linear-gradient(#000 78%, transparent);
}

.trio .phone {
  flex: 0 0 auto;
  width: min(17rem, 62vw);
}

.trio .phone:nth-child(1),
.trio .phone:nth-child(3) {
  display: none;
  margin-top: 4rem;
  width: min(15rem, 26vw);
}

.trio .phone:nth-child(1) {
  margin-right: -1.5rem;
}

.trio .phone:nth-child(3) {
  margin-left: -1.5rem;
}

.trio .phone:nth-child(2) {
  position: relative;
  z-index: 1;
}

@media (min-width: 40rem) {
  .trio .phone:nth-child(1),
  .trio .phone:nth-child(3) {
    display: block;
  }
  .trio .phone:nth-child(2) {
    width: min(18rem, 34vw);
  }
}

/* Sections and panels ("spreads") */

.section {
  padding: 3rem 0 0;
}

.section.tight {
  padding-top: 1rem;
}

.section.last {
  padding-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.4rem);
  letter-spacing: -0.025em;
  margin: 1rem 0 2rem;
  max-width: 56rem;
}

.section-title span {
  color: var(--muted);
}

.panel-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 52rem) {
  .panel-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.panel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  padding: 2rem 1.5rem 0;
}

@media (min-width: 40rem) {
  .panel {
    padding: 2.75rem 2.75rem 0;
  }
}

.panel h2,
.panel h3 {
  font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.9rem;
}

.panel-copy p {
  font-size: 1.12rem;
  line-height: 1.55;
  margin: 0 0 1rem;
  max-width: 34rem;
}

/* The phone peeks up from the bottom of a panel. */
.panel-media {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  max-height: 22rem;
  overflow: hidden;
}

.panel-media .phone {
  max-width: 16rem;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.5), inset 0 0 0 1.5px #3a3d43;
}

.panel-media.duo .phone {
  width: 50%;
  max-width: 15rem;
}

.panel-media.duo .phone:nth-child(2) {
  margin-top: 2.5rem;
}

/* Wide panel: words on the left, the app on the right */
@media (min-width: 52rem) {
  .spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding-bottom: 0;
  }
  .spread .panel-copy {
    padding-bottom: 2.75rem;
  }
  .spread .panel-media {
    margin-top: 0;
    max-height: 26rem;
    align-self: end;
  }
}

/* Tones */
.tone-mist {
  background: var(--surface);
}

.tone-mist .panel-copy p,
.tone-mist p {
  color: var(--muted);
}

.tone-mist .label {
  color: var(--link);
}

.tone-ink {
  background: var(--ink-bg);
  color: var(--ink-text);
}

.tone-ink p {
  color: var(--ink-muted);
}

.tone-ink .label,
.tone-ink a {
  color: var(--ink-accent);
}

.tone-ember {
  background: var(--ember-bg);
  color: var(--ember-text);
}

.tone-ember p {
  color: var(--ember-muted);
}

.tone-ember .label,
.tone-ember a {
  color: var(--ember-accent);
}

.tone-ember .soon {
  color: var(--action-text);
  margin-top: 0.5rem;
}

.tone-navy {
  background: var(--band-bg);
  background-image: radial-gradient(40rem 20rem at 85% 0, rgba(242, 170, 69, 0.2), transparent 70%);
  color: var(--band-text);
}

.tone-navy p {
  color: var(--band-muted);
}

.tone-navy .label,
.tone-navy a {
  color: var(--band-accent);
}

.tone-ink a:hover,
.tone-navy a:hover {
  color: var(--ember);
}

/* The Ardea Lock panel: words and big numbers side by side */
.lock-panel {
  display: grid;
  gap: 2rem 3rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 52rem) {
  .lock-panel {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    padding: 3.5rem;
  }
}

.stats {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stats li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(253, 248, 239, 0.18);
}

.stats strong {
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  font-weight: 750;
  color: var(--band-accent);
}

.stats span {
  color: var(--band-muted);
  font-size: 1.05rem;
}

/* Tiles */

.bento {
  display: grid;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 40rem) {
  .bento {
    grid-template-columns: 1fr 1fr;
  }
  .bento .wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .bento {
    grid-template-columns: repeat(4, 1fr);
  }
  .bento .wide {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.tile {
  border-radius: var(--radius);
  padding: 1.75rem;
  overflow: hidden;
}

.tile h3 {
  font-size: 1.45rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}

.tile p {
  margin: 0;
  font-size: 1.05rem;
}

.tile svg {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.tile.wide {
  display: grid;
  gap: 1.5rem;
  padding-bottom: 0;
}

@media (min-width: 40rem) {
  .tile.wide {
    grid-template-columns: 1fr 13rem;
    align-items: start;
  }
}

.tile.wide .phone {
  max-width: 13rem;
  margin: 0 auto;
  max-height: 17rem;
  overflow: hidden;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 0;
}

/* Story panel */
.story {
  display: grid;
  gap: 1.5rem 3rem;
  align-items: center;
  padding-bottom: 2.75rem;
}

@media (min-width: 46rem) {
  .story {
    grid-template-columns: 10rem 1fr;
  }
}

.story-mark {
  width: 10rem;
  border-radius: 22%;
  box-shadow: var(--shadow);
}

/* Inner pages: a large opening */

.page-hero {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.5vw, 5rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 auto;
  max-width: 56rem;
}

.page-hero .hero-lede {
  max-width: 42rem;
}

.page-hero .duo,
.page-hero .single {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  max-height: clamp(20rem, 45vw, 28rem);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 75%, transparent);
  mask-image: linear-gradient(#000 75%, transparent);
}

.page-hero .duo .phone {
  width: 45%;
  max-width: 16rem;
}

.page-hero .duo .phone:nth-child(2) {
  margin-top: 3rem;
}

/* Section tabs under the header, as in the brochure */
.tabs {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--bg);
}

@media (min-width: 52rem) {
  .tabs {
    position: sticky;
    top: 4.8rem;
    z-index: 5;
    background: var(--header-bg);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}

.tabs ul {
  display: flex;
  gap: 0 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0 0.8rem;
  white-space: nowrap;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
}

.tabs a:hover {
  color: var(--link);
}

/* Topic spreads on inner pages: heading and summary on the left, detail on the right */
.topics {
  display: grid;
  gap: 1rem;
  padding: 2rem 0 4rem;
}

.topic {
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  scroll-margin-top: 9rem;
  display: grid;
  gap: 0.5rem 3rem;
}

@media (min-width: 40rem) {
  .topic {
    padding: 2.5rem 2.75rem;
  }
}

@media (min-width: 52rem) {
  .topic {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}

.topic h2 {
  font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.topic-lede {
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0;
}

.topic-body > :first-child {
  margin-top: 0;
}

.topic-body p,
.topic-body li {
  font-size: 1.02rem;
}

.topic-body ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 1rem;
}

.topic-body li + li {
  margin-top: 0.35rem;
}

.topic.tone-mist .topic-body,
.topic.tone-mist .topic-lede {
  color: var(--text);
}

.topic.tone-mist .topic-body p,
.topic.tone-mist .topic-body li {
  color: var(--muted);
}

.topic .phone {
  max-width: 14rem;
  margin: 0 auto;
}

/* Small cards inside a topic */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.facts li {
  margin: 0;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: var(--bg);
}

.tone-ink .facts li,
.tone-navy .facts li {
  background: rgba(255, 255, 255, 0.07);
}

.facts strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.tone-mist .facts strong {
  color: var(--text);
}

/* Questions that open on tap: no script needed */
.faq {
  display: grid;
  gap: 0.6rem;
}

details {
  border-radius: 16px;
  background: var(--bg);
}

.tone-ink details {
  background: rgba(255, 255, 255, 0.07);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.2rem;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details > :not(summary) {
  margin: 0;
  padding: 0 1.2rem 1rem;
}

details > ul {
  padding-left: 2.4rem;
}

/* Contact cards */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contacts li {
  border-radius: var(--radius);
  padding: 1.75rem;
}

.contacts h2 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
}

.contacts p {
  margin: 0 0 1rem;
}

.contacts li > a {
  font-weight: 650;
  font-size: 1.1rem;
}

/* Long documents (privacy, terms): contents on the left, text on the right */

.doc {
  display: grid;
  gap: 2rem 4rem;
  padding: 2.5rem 0 4rem;
}

@media (min-width: 60rem) {
  .doc {
    grid-template-columns: 17rem minmax(0, 46rem);
  }
  .doc-side {
    position: sticky;
    top: 6.5rem;
    align-self: start;
    max-height: calc(100vh - 8rem);
    overflow-y: auto;
  }
}

.doc-side .toc {
  margin: 0;
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-radius: 20px;
  background: var(--surface);
}

.doc-side h2 {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--muted);
}

.doc-side ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
}

.doc-side li + li {
  margin-top: 0.3rem;
}

/* Readable text pages */

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2.75rem 0 4rem;
}

.page.after-hero {
  padding-top: 0;
}

.doc .page {
  margin: 0;
  padding: 0;
  max-width: none;
}

.page h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem;
}

.page .lede {
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.4rem);
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 1rem;
}

.page h2 {
  font-size: 1.55rem;
  letter-spacing: -0.015em;
  margin: 2.75rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 6.5rem;
}

.page h3 {
  font-size: 1.2rem;
  margin: 1.75rem 0 0.3rem;
}

.page ul,
.page ol {
  padding-left: 1.3rem;
}

.page li + li {
  margin-top: 0.4rem;
}

.meta {
  color: var(--muted);
  margin: 0;
}

/* Boxes */

.summary {
  background: var(--surface);
  border-left: 5px solid var(--accent);
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  margin: 1.75rem 0 0;
}

.summary h2 {
  margin: 0 0 0.25rem;
  padding: 0;
  border: 0;
  font-size: 1.15rem;
}

.summary ul {
  margin: 0.25rem 0 0;
}

.summary p {
  margin: 0.25rem 0 0;
}

/* "Draft, pending legal review" and other notices. Words and an icon, never colour alone. */
.notice {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--note-bg);
  border: 2px solid var(--note-edge);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0 0;
  color: var(--text);
}

.notice svg {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  margin-top: 0.1rem;
  color: var(--text);
}

.notice p {
  margin: 0;
  color: var(--text);
}

.notice strong {
  display: block;
}

.later {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.05rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--note-edge);
  background: var(--note-bg);
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 0.15em;
  white-space: nowrap;
}

.contact {
  font-size: 1.25rem;
  font-weight: 600;
}

/* A table that becomes a list on narrow screens */
.sees {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.sees caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.5rem;
}

.sees th,
.sees td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.75rem 0.7rem 0;
  border-top: 1px solid var(--rule);
}

.sees thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 36rem) {
  .sees thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .sees tr {
    display: block;
    border-top: 1px solid var(--rule);
    padding: 0.6rem 0;
  }
  .sees th,
  .sees td {
    display: block;
    border: 0;
    padding: 0.15rem 0;
  }
  .sees td::before {
    content: attr(data-label) ": ";
    font-weight: 700;
  }
}

/* Footer */

.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding: 3rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-top {
  display: grid;
  gap: 0.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  text-decoration: none;
}

.footer-brand > img {
  width: 3rem;
  border-radius: 22%;
}

.footer-word {
  height: 2rem;
  width: auto;
}

.footer-top p {
  margin: 0;
  max-width: 30rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1.5rem 2rem;
  padding: 2rem 0;
}

.footer-cols h2 {
  font-size: 0.78rem;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 0.25rem;
}

.footer-cols ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-cols a:hover {
  color: var(--text);
  text-decoration: underline;
}

.copyright {
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

/* Gentle fade-in as sections scroll into view. Only in browsers that can do it
   without a script, and never for people who have asked for less motion.
   Anywhere else, everything simply shows. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  @supports (animation-timeline: view()) {
    .panel,
    .tile,
    .topic,
    .contacts li {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 8rem;
    }
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Text for screen readers only. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media print {
  .site-header,
  .tabs,
  .skip,
  .phone {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
}
