/* Design tokens of the suite (same values as Lamio, Cairn and Metricove):
   only the accent changes. Maya Studio takes the red of the REC light.
   Light is the default, dark follows the system, and the toggle forces either one
   with data-theme="light" | "dark" on <html>. */
:root {
  --bg: #efede8;
  --bg-2: #e7e4dd;
  --surface: #fbfaf8;
  --surface-2: #f4f2ee;
  --line: rgba(23, 22, 20, 0.09);
  --line-strong: rgba(23, 22, 20, 0.16);
  --ink: #181715;
  --ink-2: #57544e;
  --ink-3: #8c8880;
  --accent: #e5384a;
  --accent-ink: #ffffff;
  --accent-soft: rgba(229, 56, 74, 0.12);
  --ok: #1f9d55;
  --warn: #c98a04;
  --danger: #dc3a2f;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 1px 2px rgba(20, 18, 14, 0.06), 0 8px 24px -12px rgba(20, 18, 14, 0.18);
  --grain-opacity: 0.11;
  --grain-blend: multiply;
  --grain-filter: none;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --font-display: "Instrument Serif", Georgia, serif;

  /* Colours of the other apps of the suite, for their chips. */
  --app-lamio: #6f42e6;
  --app-cairn: #4f56e8;
  --app-metricove: #ff5a1f;
  --app-alfred: #2f5bff;
  --app-nino: #1f9d55;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0e;
    --bg-2: #151513;
    --surface: #1a1a18;
    --surface-2: #222220;
    --line: rgba(255, 252, 245, 0.07);
    --line-strong: rgba(255, 252, 245, 0.14);
    --ink: #f3f1ec;
    --ink-2: #b2aea6;
    --ink-3: #75726b;
    --accent: #ff6b78;
    --accent-ink: #2e0d12;
    --accent-soft: rgba(255, 107, 120, 0.16);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --grain-opacity: 0.07;
    --grain-blend: screen;
    --grain-filter: invert(1);
    --app-lamio: #a488ff;
    --app-cairn: #7c82ff;
    --app-metricove: #ff7a45;
    --app-alfred: #4166f5;
    --app-nino: #3cc47a;
    color-scheme: dark;
  }
}

/* Same values as above, for the theme forced with the toggle. */
:root[data-theme="dark"] {
  --bg: #0f0f0e;
  --bg-2: #151513;
  --surface: #1a1a18;
  --surface-2: #222220;
  --line: rgba(255, 252, 245, 0.07);
  --line-strong: rgba(255, 252, 245, 0.14);
  --ink: #f3f1ec;
  --ink-2: #b2aea6;
  --ink-3: #75726b;
  --accent: #ff6b78;
  --accent-ink: #2e0d12;
  --accent-soft: rgba(255, 107, 120, 0.16);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --grain-opacity: 0.07;
  --grain-blend: screen;
  --grain-filter: invert(1);
  --app-lamio: #a488ff;
  --app-cairn: #7c82ff;
  --app-metricove: #ff7a45;
  --app-alfred: #4166f5;
  --app-nino: #3cc47a;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Film grain, as in every app of the suite. */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 100;
  pointer-events: none;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: var(--grain-blend);
  filter: var(--grain-filter);
}

/* Soft glow behind the page so the grain has something to sit on. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60rem 40rem at 85% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(50rem 30rem at -10% 110%, rgba(255, 150, 80, 0.06), transparent 60%);
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a {
  color: inherit;
}

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

code,
pre,
.mono {
  font-family: var(--font-mono);
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background-color 200ms ease;
}
.top.scrolled {
  border-bottom-color: var(--line);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.top .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: 12px;
}
.nav a {
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.nav a:hover {
  background: color-mix(in oklab, var(--ink) 5%, transparent);
  color: var(--ink);
}
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Buttons (same recipe as the apps) ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font: 500 13.5px/1 var(--font-sans);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  user-select: none;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, border-color 150ms ease, color 150ms ease, filter 150ms ease;
}
.btn:active {
  transform: scale(0.97);
}
.btn:focus-visible,
.icon-btn:focus-visible,
.input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.btn-lg {
  height: 42px;
  padding: 0 18px;
  font-size: 14.5px;
  border-radius: 10px;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 1px 2px rgba(0, 0, 0, 0.12), 0 6px 16px -6px var(--accent);
}
.btn-primary:hover {
  filter: brightness(1.06);
}
.btn-secondary {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
}
.btn-secondary:hover {
  background: var(--surface-2);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.icon-btn:hover {
  background: color-mix(in oklab, var(--ink) 5%, transparent);
  color: var(--ink);
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}
.theme-dark-icon {
  display: none;
}
:root[data-theme="dark"] .theme-dark-icon {
  display: block;
}
:root[data-theme="dark"] .theme-light-icon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-dark-icon {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-light-icon {
    display: none;
  }
}

/* ---------- Common bits ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  font-size: 12.5px;
  color: var(--ink-2);
  box-shadow: var(--shadow);
}
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  animation: blink 1.6s ease-in-out infinite;
}
@keyframes blink {
  50% {
    opacity: 0.35;
  }
}

.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 0;
}
.display em {
  font-style: italic;
  color: var(--accent);
}

.section {
  padding: 96px 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}
.section-head .kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.section-head h2 {
  font-size: clamp(34px, 4.6vw, 48px);
  margin-top: 10px;
}
.section-head p {
  margin: 14px 0 0;
  color: var(--ink-2);
  font-size: 16px;
}

.card {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font: 500 11.5px/1 var(--font-sans);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  white-space: nowrap;
}
.chip-accent {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

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

.hero {
  padding: 72px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(46px, 8.4vw, 92px);
  margin: 24px auto 0;
  max-width: 14ch;
}
.hero .lead {
  max-width: 600px;
  margin: 22px auto 0;
  font-size: 17.5px;
  color: var(--ink-2);
}
.hero .ctas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.hero .meta {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.shot {
  margin: 56px auto 0;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow), 0 40px 100px -40px rgba(20, 18, 14, 0.45);
  overflow: hidden;
}
.shot-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.shot-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}
.shot-bar b {
  margin-left: auto;
  margin-right: auto;
  font: 500 12px/1 var(--font-sans);
  color: var(--ink-3);
  transform: translateX(-24px);
}
.shot img {
  width: 100%;
  height: auto;
  background: #111;
}

/* ---------- Features ---------- */

.grid {
  display: grid;
  gap: 14px;
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.feature .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature .ic svg {
  width: 18px;
  height: 18px;
}
.feature h3 {
  margin: 16px 0 6px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.gallery figure {
  margin: 0;
}
.gallery figcaption {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.gallery .shot {
  margin: 0;
}

/* ---------- API ---------- */

.api {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}
.api ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 12px;
}
.api li {
  display: flex;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.api li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.api li b {
  color: var(--ink);
  font-weight: 600;
}
.code {
  margin: 0;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: #141413;
  color: #e9e6df;
  box-shadow: var(--shadow), 0 30px 80px -40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 252, 245, 0.08);
  font: 500 11.5px/1 var(--font-mono);
  color: #8c8880;
}
.code pre {
  margin: 0;
  padding: 18px;
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
}
.code .d {
  color: #75726b;
}
.code .k {
  color: #ff8a95;
}
.code .s {
  color: #c9e5a7;
}

/* ---------- Platforms ---------- */

.platform {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.platform h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
}
.platform p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-3);
}
.status-dot.ok {
  background: var(--ok);
}
.status-dot.warn {
  background: var(--warn);
}

/* ---------- Suite ---------- */

.suite {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.app {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.app-mark {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-mark i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c);
}
.app h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.app p {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
}
.app.current {
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  box-shadow: var(--shadow), 0 0 0 3px var(--accent-soft);
}

/* ---------- Soon ---------- */

.soon {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 150px;
  text-decoration: none;
  transition: border-color 150ms ease, transform 160ms var(--ease-out);
}
.soon h3 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.05;
}
.soon p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.soon .chip {
  align-self: flex-start;
}
a.soon:hover {
  border-color: var(--line-strong);
}

/* ---------- Beta ---------- */

.beta {
  position: relative;
  overflow: hidden;
  padding: 56px;
  text-align: center;
  border-radius: 22px;
}
.beta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(40rem 20rem at 50% -20%, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.beta > * {
  position: relative;
}
.beta h2 {
  font-size: clamp(36px, 5vw, 54px);
}
.beta > p {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--ink-2);
  font-size: 16px;
}
.beta-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
  margin: 30px auto 0;
}
.input {
  height: 42px;
  min-width: 0;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font: 400 14.5px/1 var(--font-sans);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input::placeholder {
  color: var(--ink-3);
}
.input:focus {
  border-color: color-mix(in oklab, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
}
.beta-form input[type="email"] {
  flex: 1 1 240px;
}
.beta-form select {
  flex: 0 1 170px;
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c8880' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.form-note {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--ink-3);
}
.form-note.ok {
  color: var(--ok);
}
.form-note.err {
  color: var(--danger);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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

.foot {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  font-size: 13px;
  color: var(--ink-3);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}
.foot .brand {
  color: var(--ink);
  font-size: 14px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}
.foot a {
  text-decoration: none;
  color: var(--ink-2);
}
.foot a:hover {
  color: var(--ink);
}

/* ---------- Entrance ---------- */

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.rise {
  animation: rise 520ms var(--ease-out) both;
}
.rise-2 {
  animation-delay: 80ms;
}
.rise-3 {
  animation-delay: 160ms;
}
.rise-4 {
  animation-delay: 260ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .rise,
  .rec-dot {
    animation: none;
  }
  .btn:active {
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3,
  .suite {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .api {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .nav {
    display: none;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding: 0 16px;
  }
  .grid-3,
  .grid-2,
  .suite {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 64px 0;
  }
  .hero {
    padding-top: 48px;
  }
  .hero .lead {
    font-size: 16px;
  }
  .shot {
    margin-top: 40px;
    border-radius: 12px;
  }
  .beta {
    padding: 36px 18px;
  }
  .beta-form select,
  .beta-form .btn {
    flex: 1 1 100%;
  }
  .top-actions .btn {
    display: none;
  }
  .foot nav {
    margin-left: 0;
  }
}
