/* Unscripted Levels: a calm, corporate take on Unmuted's "Cobalt Glow" tokens.
   Light only. Colours come from unmuted-design/tokens.css. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F5F5F4;
  --surface: #FFFFFF;
  --ink: #18181B;
  --muted: #52525B;
  --line: #E4E4E7;
  --chip: #EDEDEC;
  --cobalt: #1F4FD8;
  --cobalt-hover: #163BA6;
  --cobalt-bright: #3461F5;
  --cobalt-tint: #E6ECFD;
  --navy: #0F1B3D;
  --navy-muted: #AEB9D6;
  --glow-rgb: 47, 94, 240;
  --wave-mid: #6E86CF;
  --wave-loud: #9DB8FF;

  --font: "Inter", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;
  --r-card: 18px;
  --r-hero: 28px;
  --r-pill: 9999px;
  --wrap: 1040px;
  --measure: 720px;
  --gutter: 20px;

  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}

h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
address { font-style: normal; }
p + p { margin-top: 0.9em; }

a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cobalt-hover); }

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

.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: var(--r-pill);
  font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(245, 245, 244, 0.88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand svg { width: 24px; height: 24px; flex: none; }
.glyph rect { fill: var(--cobalt); }

.site-nav ul {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover { background: var(--chip); color: var(--ink); }

.site-nav a { white-space: nowrap; }
@media (max-width: 520px) {
  .brand-name { font-size: 16px; }
  .site-nav a { padding: 0 10px; font-size: 14px; }
}
@media (max-width: 430px) {
  .site-nav li:first-child { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-top: 8px;
  padding: 44px 28px 36px;
  border-radius: var(--r-hero);
  background:
    radial-gradient(80% 90% at 85% 55%, rgba(var(--glow-rgb), 0.30), transparent 70%),
    var(--navy);
  color: #fff;
}
.hero h1 {
  color: #fff;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.hero-lede {
  margin-top: 20px;
  max-width: 34em;
  color: var(--navy-muted);
  font-size: 18px;
  line-height: 1.6;
}
.hero-actions { margin-top: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  background: var(--cobalt-bright);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 10px 30px -8px rgba(var(--glow-rgb), 0.8);
  transition: background-color 150ms ease;
}
.btn:hover { background: var(--cobalt); color: #fff; }
.btn:focus-visible { outline-color: #fff; border-radius: var(--r-pill); }
.btn svg { width: 18px; height: 18px; }

.wave {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  justify-self: center;
  align-self: center;
  filter: drop-shadow(0 0 7px rgba(157, 184, 255, 0.45));
}
.wave rect { transform-box: fill-box; transform-origin: center; }
.wave .q { fill: var(--wave-mid); opacity: 0.55; }
.wave .m { fill: var(--wave-mid); }
.wave .l { fill: var(--wave-loud); }

@media (prefers-reduced-motion: no-preference) {
  .wave rect { animation: level 3.2s ease-in-out infinite; }
  .wave rect:nth-child(3n+1) { animation-delay: -1.1s; }
  .wave rect:nth-child(3n+2) { animation-delay: -2.2s; }
  .wave rect:nth-child(5n) { animation-duration: 4.1s; }
}
@keyframes level {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.78); }
}

@media (min-width: 860px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 72px 56px;
    min-height: 440px;
  }
}

/* ---------- Sections ---------- */

main { padding-bottom: 32px; }

.section { padding-top: 72px; }
.section-head { max-width: var(--measure); margin-bottom: 24px; }
.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section h2 {
  font-size: clamp(26px, 3.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.section-intro { margin-top: 14px; color: var(--muted); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
}

.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--cobalt-tint);
  color: var(--cobalt);
}
.tile svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.card p { color: var(--muted); font-size: 16px; }

/* Business model */
.split {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1.15fr 0.85fr; }
}
.lead p { color: var(--ink); font-size: 18px; max-width: 46em; }

.facts { margin: 0; display: grid; gap: 0; }
.facts div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts div:last-child { padding-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-weight: 600; font-size: 16px; }

/* Product */
.product {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 760px) {
  .product { grid-template-columns: auto 1fr; gap: 28px; }
}
.app-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--navy);
}
.app-mark svg { width: 30px; height: 30px; }
.product-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 10px;
}
.product-title h3 { margin: 0; font-size: 22px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--chip);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
}
.product p { max-width: 40em; }
.product .launch { margin-top: 16px; color: var(--ink); font-weight: 500; font-size: 15px; }

.ahead {
  max-width: var(--measure);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* Contact */
.contact {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .contact { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.contact dt { color: var(--muted); font-size: 14px; margin-bottom: 4px; }
.contact dd { margin: 0; font-size: 18px; font-weight: 600; line-height: 1.45; }
.contact dd a { overflow-wrap: anywhere; }
.contact address { font-style: normal; }

/* ---------- Document pages ---------- */

.doc { max-width: var(--measure); padding-top: 40px; }
.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.doc .meta { margin-top: 12px; color: var(--muted); font-size: 15px; }
.doc .intro { margin-top: 24px; font-size: 18px; }
.doc h2 {
  margin-top: 44px;
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.doc h3 { margin-top: 24px; margin-bottom: 8px; font-size: 17px; }
.doc ul { margin: 12px 0 0; padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc ul + p, .doc .table-wrap + p { margin-top: 16px; }
.doc .card { margin-top: 28px; }

.table-wrap { overflow-x: auto; margin-top: 12px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
thead th { border-top: 0; background: var(--chip); font-weight: 600; }

.details { margin: 0; }
.details div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.details div:first-child { border-top: 0; padding-top: 0; }
.details div:last-child { padding-bottom: 0; }
.details dt { color: var(--muted); font-size: 14px; }
.details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (min-width: 640px) {
  .details div { grid-template-columns: 220px 1fr; gap: 16px; }
}

.num { font-variant-numeric: tabular-nums; }

.notfound { padding: 96px 0 48px; max-width: var(--measure); }
.notfound .glyph-lg { width: 56px; height: 56px; margin-bottom: 28px; }
.notfound h1 { font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.03em; line-height: 1.1; }
.notfound p { margin-top: 16px; color: var(--muted); font-size: 18px; }
.notfound .btn { margin-top: 28px; }

/* ---------- Footer ---------- */

.site-footer { margin-top: 72px; padding-bottom: 32px; }
.footer-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}
.footer-card address { font-style: normal; }
.footer-name {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.footer-card a { color: var(--muted); }
.footer-card a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-links { display: flex; gap: 20px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--ink); font-weight: 500; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-links a[aria-current="page"] { color: var(--cobalt); }

@media print {
  .site-header, .skip, .wave { display: none; }
  .hero { background: none; color: var(--ink); padding: 0; }
  .hero h1 { color: var(--ink); }
  .hero-lede { color: var(--ink); }
}

/* ---------- Values: tall mint columns ---------- */

:root {
  --mint: #EAF5ED;
  --mint-line: #D2E9D8;
  --mint-ink: #306339;
}

.values {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 78%);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 8px;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.values::-webkit-scrollbar { display: none; }
@media (min-width: 640px) {
  .values {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: minmax(150px, 1fr) auto auto;
    overflow: visible;
    margin: 0;
    padding: 0;
    gap: 0 16px;
  }
  /* Subgrid lines up the headings and text across the three columns. */
  .values article.card {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    align-items: start;
  }
}

.values .card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: 28px 24px;
  background: var(--mint);
  border-color: var(--mint-line);
}
.values .tile {
  background: var(--surface);
  color: var(--mint-ink);
  margin-bottom: auto;
}
.values h3 {
  margin-top: 48px;
  color: var(--mint-ink);
}
.values p { color: #3F4A42; }
