@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/SchibstedGrotesk-Variable.ttf") format("truetype");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/IBMPlexMono-Medium.ttf") format("truetype");
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f5f3ec;
  --surface: #fffcf5;
  --sunken: #ece8df;
  --ink: #0b2c3d;
  --muted: #546c70;
  --dim: #82918f;
  --line: #dad5ca;
  --hairline: #e8e3d9;
  --accent: #0d7aab;
  --accent-deep: #0a4f72;
  --lagoon: #3ec1d3;
  --foam: #e1f0ef;
  --signal: #d66a58;
  --signal-wash: #f3ddd5;
  --good: #177f73;
  --inverse: #fffcf5;
  --content: 1120px;
  --legal: 760px;
  --radius: 22px;
  --radius-shell: 28px;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow: 0 28px 70px rgb(11 44 61 / 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Schibsted Grotesk", "Avenir Next", ui-sans-serif, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 8;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.28'/%3E%3C/svg%3E");
  content: "";
  opacity: 0.035;
  pointer-events: none;
}

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 12;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--inverse);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: 12px 0 10px;
}

.nav-island {
  display: flex;
  width: min(calc(100% - 40px), var(--content));
  min-height: 64px;
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgb(255 255 255 / 0.42);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.42), rgb(255 252 245 / 0.78)),
    rgb(255 252 245 / 0.72);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.7),
    0 14px 40px rgb(11 44 61 / 0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: 28px;
  height: 22px;
  align-items: flex-end;
  justify-content: center;
  gap: 2.5px;
}

.brand-mark i {
  display: block;
  width: 4px;
  border-radius: 999px;
  background: var(--accent);
}

.brand-mark i:nth-child(1) {
  height: 52%;
  background: var(--lagoon);
}

.brand-mark i:nth-child(2) {
  height: 100%;
  background: var(--accent-deep);
}

.brand-mark i:nth-child(3) {
  height: 68%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 10px;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  min-height: calc(100dvh - 92px);
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  padding: 28px 0 clamp(64px, 8vw, 104px);
}

.hero-copy {
  max-width: 620px;
}

.hero h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(44px, 6.6vw, 78px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero p {
  max-width: 28em;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.4;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 8px 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--inverse);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 420ms var(--ease), background 420ms var(--ease);
}

.button:hover {
  background: var(--accent-deep);
  color: var(--inverse);
  transform: translateY(-1px);
}

.button:active {
  transform: scale(0.98);
}

.button .chev {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
}

.button.secondary {
  padding: 0 22px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--sunken);
  color: var(--ink);
}

.hero-frame {
  padding: 8px;
  border-radius: var(--radius-shell);
  background: color-mix(in srgb, var(--sunken) 70%, white);
  box-shadow: var(--shadow);
}

.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.practice {
  padding: clamp(72px, 10vw, 120px) 0;
  border-top: 1px solid var(--line);
}

.practice h2 {
  max-width: 14ch;
  margin: 0 0 36px;
  font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.practice-list {
  margin: 0;
}

.practice-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 28px;
  padding: 26px 0;
  border-bottom: 1px solid var(--hairline);
}

.practice-item:first-of-type {
  padding-top: 0;
}

.practice-item dt {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.practice-item dd {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
}

.practice-item dd strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 680;
  letter-spacing: -0.03em;
}

.devices {
  margin-top: 42px;
  padding: 8px;
  border-radius: var(--radius-shell);
  background: var(--foam);
}

.devices img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.safety {
  margin: 0 0 clamp(80px, 11vw, 140px);
  padding: clamp(36px, 6vw, 64px);
  border-radius: var(--radius-shell);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.safety h2 {
  max-width: 16ch;
  margin: 0 0 16px;
  color: var(--signal);
  font-size: clamp(32px, 4.4vw, 50px);
  letter-spacing: -0.05em;
  line-height: 1.06;
}

.safety p {
  max-width: 62ch;
  margin: 0 0 14px;
  color: var(--muted);
}

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

.access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: clamp(80px, 11vw, 140px);
}

.plan {
  padding: 8px;
  border-radius: var(--radius-shell);
  background: var(--sunken);
}

.plan-inner {
  min-height: 100%;
  padding: 28px 26px 30px;
  border-radius: 20px;
  background: var(--surface);
}

.plan h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.plan .price {
  margin: 0 0 18px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 13px;
  color: var(--accent-deep);
}

.plan ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--muted);
}

.plan li + li {
  margin-top: 8px;
}

.support-note {
  padding: 42px 0 clamp(80px, 11vw, 140px);
  border-top: 1px solid var(--line);
}

.support-note h2 {
  max-width: 14ch;
  margin: 0 0 14px;
  font-size: clamp(34px, 4.6vw, 54px);
  letter-spacing: -0.05em;
  line-height: 1.05;
}

.support-note p {
  max-width: 58ch;
  margin: 0 0 24px;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--hairline);
  padding-block: 28px 36px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a[aria-current="page"] {
  color: var(--ink);
}

.legal-header {
  padding: 48px 0 36px;
}

.legal-header .shell,
.legal-content,
.document-layout {
  width: min(calc(100% - 40px), var(--legal));
}

.legal-header h1,
.document-header h1 {
  margin: 0;
  font-size: clamp(40px, 6.4vw, 64px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.legal-header p,
.document-meta {
  margin: 16px 0 0;
  color: var(--muted);
}

.document-header {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
  padding: 48px 0 28px;
}

.document-layout {
  display: grid;
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  padding-bottom: clamp(64px, 9vw, 110px);
}

.toc {
  position: sticky;
  top: 92px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.toc strong {
  margin-bottom: 6px;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

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

.legal-document,
.legal-content {
  min-width: 0;
}

.legal-content {
  margin-inline: auto;
  padding-bottom: clamp(64px, 9vw, 110px);
}

.legal-document h2,
.legal-content h2 {
  margin: 48px 0 12px;
  font-size: 26px;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.legal-document h2:first-child,
.legal-content h2:first-child,
.legal-document section:first-child h2 {
  margin-top: 0;
}

.legal-document h3,
.legal-content h3 {
  margin: 28px 0 8px;
  font-size: 18px;
}

.legal-document p,
.legal-document li,
.legal-content p,
.legal-content li {
  color: var(--muted);
}

.legal-document ul,
.legal-content ul {
  padding-left: 1.2em;
}

.legal-document li + li,
.legal-content li + li {
  margin-top: 8px;
}

.callout {
  margin: 28px 0;
  padding: 22px 24px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.callout.signal {
  border-left-color: var(--signal);
  background: var(--signal-wash);
}

.callout p,
.callout strong {
  color: var(--ink);
}

.callout p {
  margin: 0;
}

.support-details {
  max-width: 62ch;
}

.support-details ul {
  margin: 0 0 24px;
  padding-left: 1.2em;
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 20px 0 64px;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .practice-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .access,
  .document-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .shell,
  .nav-island,
  .legal-header .shell,
  .legal-content,
  .document-header,
  .document-layout {
    width: min(calc(100% - 28px), var(--content));
  }

  .nav-island {
    min-height: 58px;
    padding-right: 14px;
  }

  .site-nav {
    gap: 14px;
    font-size: 13px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .safety,
  .plan-inner {
    padding: 24px 20px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body::before,
  .site-header,
  .site-footer,
  .hero-actions,
  .toc {
    display: none;
  }

  body {
    background: white;
    font-size: 12pt;
  }
}
