/* Kenshall website. Brand colours: navy #0B2545, teal #14A39A, white. */

:root {
  --navy: #0b2545;
  --teal: #14a39a;
  --teal-light: #22b8ae;
  --teal-ink: #0e7c75; /* teal dark enough for small text on white */
  --ink: #1b2a3e;
  --muted: #4a5a70;
  --line: #dce3eb;
  --soft: #f3f6f9;
  --on-navy: #c9d5e3;
  --placeholder: #fff1b8;
  --radius: 10px;
  --font-heading: Bahnschrift, "DIN Alternate", "Barlow", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p,
ul,
ol {
  margin: 0 0 1em;
}

a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--teal);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--teal-ink);
}

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

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

/* Bracketed placeholders still to fill in, such as [LEGAL NAME]. */
mark.ph {
  background: var(--placeholder);
  color: inherit;
  padding: 0 0.2em;
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 #e0b400;
}

a[href^="["] {
  outline: 2px dashed #b7791f;
  outline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 6px 6px;
}

.skip-link:focus {
  top: 0;
}

/* Header */

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  line-height: 0;
  /* The lockup image has the logo's clear space built in. */
  margin-left: -12px;
}

.brand img {
  height: 52px;
  width: auto;
}

.nav {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-radius: 6px;
}

.nav a:hover {
  background: var(--soft);
  color: var(--navy);
}

.nav a[aria-current="page"],
.nav a.active {
  box-shadow: inset 0 -3px 0 var(--teal);
  border-radius: 0;
}

/* Hero and page headers */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6rem) 0;
  background: var(--navy);
  color: #fff;
}

/* A teal corner, like the piece under the logo's lower leg. */
.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(80px, 15vw, 200px);
  aspect-ratio: 1;
  background: linear-gradient(to top left, var(--teal) 50%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: #fff;
  max-width: 22ch;
}

.hero .lead {
  color: var(--on-navy);
  max-width: 60ch;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--teal);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin: 0;
  color: var(--on-navy);
  font-weight: 600;
}

.page-header {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 2.5rem);
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}

.page-header h1 {
  margin-bottom: 0.25em;
}

.page-header .lead {
  max-width: 60ch;
  color: var(--muted);
  margin: 0;
}

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

/* Buttons */

.button {
  display: inline-block;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--teal);
  border-radius: 8px;
  background: var(--teal);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.button:hover {
  background: var(--teal-light);
  border-color: var(--teal-light);
  color: var(--navy);
}

.button-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
}

.hero .button:focus-visible {
  outline-color: #fff;
}

/* Sections */

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-soft {
  background: var(--soft);
}

/* Readable line length, while staying aligned with the container's edge. */
.prose > * {
  max-width: 72ch;
}

.prose h2 {
  margin-top: 2rem;
}

.prose > h2:first-child,
.prose > section:first-child > h2:first-child {
  margin-top: 0;
}

.note {
  color: var(--muted);
  font-size: 0.95rem;
}

.small {
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.card {
  padding: 1.5rem 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--teal);
  border-radius: var(--radius);
}

.card h3 {
  font-size: 1.4rem;
}

.card h3 a {
  text-decoration: none;
}

.card h3 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--teal);
}

.kicker {
  margin-bottom: 0.4rem;
  color: var(--teal-ink);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-card {
  display: grid;
  gap: 0.5rem 2.5rem;
}

.product-card p:last-child {
  margin-bottom: 0;
}

@media (min-width: 800px) {
  .cards:has(> .product-card:only-child) .product-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .cards:has(> .product-card:only-child) .product-card .link-list {
    padding-left: 2.5rem;
    border-left: 1px solid var(--line);
  }
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

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

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
}

.feature {
  padding: 1.25rem 1.25rem 0.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
}

.feature h3 {
  font-size: 1.125rem;
  margin-bottom: 0.35em;
}

.support-product {
  padding: 1.25rem 1.5rem 0.25rem;
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
}

.support-product h2 {
  font-size: 1.35rem;
  margin-top: 0;
}

/* Product documents (privacy policy, terms) */

.doc {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 clamp(2.5rem, 6vw, 4rem);
}

.breadcrumb {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.legal {
  max-width: 780px;
}

.legal > .table-wrap {
  max-width: none;
}

.legal h1 {
  margin-bottom: 0.5rem;
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.4rem;
  scroll-margin-top: 1rem;
}

.legal > h1 + p {
  color: var(--muted);
}

.legal ul {
  padding-left: 1.4rem;
}

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

.doc-related {
  max-width: 780px;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.table-wrap {
  margin: 0 0 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.5;
}

th,
td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--navy);
}

td:first-child {
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 720px) {
  .legal table,
  .legal thead,
  .legal tbody,
  .legal tr,
  .legal th,
  .legal td {
    display: block;
  }

  .legal thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .legal tr {
    margin-bottom: 1rem;
    padding: 0.4rem 0;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .legal td {
    padding: 0.35rem 0.9rem;
    border: 0;
  }

  .legal td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .legal td:first-child {
    font-size: 1.05rem;
  }

  .legal td:first-child::before {
    content: none;
  }
}

/* Footer */

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--navy);
  color: var(--on-navy);
  font-size: 0.95rem;
}

.site-footer a {
  color: #fff;
  text-decoration-color: var(--teal);
}

.site-footer a:hover {
  color: #fff;
  text-decoration-thickness: 3px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2rem;
}

.footer-brand img {
  margin-left: -10px;
}

.site-footer h2 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 1rem;
}

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

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

.footer-legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.875rem;
}

.footer-legal p {
  max-width: 80ch;
  margin-bottom: 0.5rem;
}

/* Small screens */

@media (max-width: 480px) {
  .container {
    width: min(100% - 2rem, 1120px);
  }

  .brand img {
    height: 44px;
  }

  .nav a {
    padding: 0.5rem 0.55rem;
  }
}

/* Print: the documents, without navigation */

@media print {
  .skip-link,
  .site-header nav,
  .site-footer,
  .breadcrumb,
  .doc-related,
  .hero::after {
    display: none;
  }

  body {
    font-size: 11pt;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  .hero {
    background: none;
    color: inherit;
  }

  .hero h1 {
    color: var(--navy);
  }
}
