/* Novable public site: one stylesheet for every page, see public_site.py.
   Nothing is hidden without JavaScript. The starting state of .reveal is scoped
   to html.js, which the inline page script sets, and reduced motion or print
   always get the final state. */

:root {
  /* Palette of the Novable mark (the bot avatar): mint frame #5ee0a8, pale play
     #f0fff8, near-black ground with a faint green cast. Colours used with
     transparency are "r, g, b" triples, so any rule can say
     rgba(var(--mint-rgb), 0.2) and a recolour only touches this block. */
  --bg: #040907;
  --text: #ecf6f1;
  --muted: #a3b6ad;
  --faint: #748a80;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --mint-rgb: 94, 224, 168;
  --teal-rgb: 38, 196, 172;
  --aqua-rgb: 64, 200, 222;
  --mint: #5ee0a8;
  --accent: #8ef0c6;
  /* Text on mint fills: white on a light mint is unreadable */
  --on-mint: #03130c;
  --grad: linear-gradient(135deg, #b6f7dc 0%, #5ee0a8 45%, #26c4ac 100%);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

[id] {
  scroll-margin-top: 110px;
}

::selection {
  background: rgba(var(--mint-rgb), 0.35);
  color: #fff;
}

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  letter-spacing: -0.035em;
}

h1,
h2 {
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.9rem);
}

h3 {
  font-size: 1.18rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-color: rgba(var(--mint-rgb), 0.4);
  text-underline-offset: 3px;
  transition: color 0.28s var(--ease);
}

a:hover {
  color: #fff;
}

a:focus-visible,
summary:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

code {
  padding: 0.12em 0.45em;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #c7f5e1;
  font-family: var(--mono);
  font-size: 0.86em;
  white-space: nowrap;
}

.skip {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: #fff;
  color: var(--bg);
  transition: top 0.3s var(--ease);
}

.skip:focus {
  top: 12px;
}

/* ---- Backdrop: slow, faint mint glow behind everything, like the avatar ---- */

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(1100px 620px at 50% -12%, rgba(var(--mint-rgb), 0.12), transparent 65%);
}

.bg::before,
.bg::after,
.bg-orb {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.bg::before {
  top: -22vmax;
  left: -16vmax;
  width: 58vmax;
  height: 58vmax;
  background: radial-gradient(circle, rgba(var(--mint-rgb), 0.16), transparent 62%);
}

.bg::after {
  right: -18vmax;
  bottom: -24vmax;
  width: 52vmax;
  height: 52vmax;
  background: radial-gradient(circle, rgba(var(--aqua-rgb), 0.1), transparent 62%);
}

.bg-orb {
  top: 32%;
  right: -6vmax;
  width: 40vmax;
  height: 40vmax;
  background: radial-gradient(circle, rgba(var(--teal-rgb), 0.12), transparent 62%);
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: no-preference) {
  .bg::before {
    animation: drift-a 28s ease-in-out infinite alternate;
  }

  .bg::after {
    animation: drift-b 34s ease-in-out infinite alternate;
  }

  .bg-orb {
    animation: drift-c 40s ease-in-out infinite alternate;
  }
}

@keyframes drift-a {
  to {
    transform: translate3d(14vmax, 10vmax, 0) scale(1.12);
  }
}

@keyframes drift-b {
  to {
    transform: translate3d(-12vmax, -8vmax, 0) scale(1.08);
  }
}

@keyframes drift-c {
  to {
    transform: translate3d(-10vmax, 12vmax, 0) scale(0.92);
  }
}

/* ---- Layout ---------------------------------------------------------------- */

.container {
  width: min(1160px, calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

.narrow {
  width: min(860px, calc(100% - 2 * var(--gutter)));
}

.section {
  padding-block: clamp(64px, 9vw, 112px);
}

.section-tight {
  padding-block: clamp(24px, 5vw, 56px) clamp(56px, 8vw, 96px);
}

.section-flush {
  padding-top: 0;
}

.section-head {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}

.section-head .lead {
  margin-inline: auto;
}

.more {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 40px);
}

.note {
  margin-top: 28px;
  color: var(--muted);
  text-align: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.spaced {
  margin-top: 20px;
}

/* ---- Type helpers ---------------------------------------------------------- */

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lead {
  max-width: 62ch;
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 1px solid rgba(var(--mint-rgb), 0.32);
  border-radius: 999px;
  background: rgba(var(--mint-rgb), 0.1);
  color: #bff6de;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---- Glass surfaces (only a few per page, blur is not free) ---------------- */

.glass {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 18px 50px rgba(0, 5, 3, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass {
    background: rgba(8, 16, 13, 0.94);
  }
}

/* ---- Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.btn-primary {
  background: var(--grad);
  color: var(--on-mint);
  box-shadow:
    0 10px 30px rgba(var(--mint-rgb), 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn-primary:hover {
  color: var(--on-mint);
  transform: translateY(-2px);
  box-shadow:
    0 16px 40px rgba(var(--mint-rgb), 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn-ghost:hover {
  color: #fff;
  border-color: rgba(var(--mint-rgb), 0.45);
  background: rgba(var(--mint-rgb), 0.08);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 18px;
  font-size: 0.93rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 14px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

/* The same soft glow the frame has on the avatar */
.logo {
  filter: drop-shadow(0 0 6px rgba(var(--mint-rgb), 0.45));
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
  text-decoration: none;
  transition:
    color 0.28s var(--ease),
    background-color 0.28s var(--ease);
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(var(--mint-rgb), 0.1);
  color: var(--text);
}

.menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.menu summary {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  list-style: none;
}

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

.menu summary span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.menu[open] summary span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu[open] summary span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: grid;
  gap: 2px;
  width: min(290px, calc(100vw - 2 * var(--gutter)));
  padding: 10px;
  border-radius: 20px;
  /* Nearly opaque on purpose: the panel sits inside the header, which already has
     a backdrop filter, so its own blur would only blur the header and the page
     text behind would show through the links */
  background: rgba(6, 14, 11, 0.97);
}

.menu-panel a:not(.btn) {
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.menu-panel a:not(.btn):hover,
.menu-panel a[aria-current="page"] {
  background: rgba(var(--mint-rgb), 0.1);
}

.menu-panel .btn {
  margin-top: 6px;
}

@media (max-width: 880px) {
  .nav,
  .header-cta {
    display: none;
  }

  .menu {
    display: block;
  }

  .header-inner {
    padding: 8px 8px 8px 16px;
  }
}

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

.hero {
  padding-block: clamp(32px, 6vw, 72px) clamp(48px, 7vw, 88px);
  /* The phone glow and the floating cards reach past the column edge */
  overflow-x: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(36px, 5vw, 72px);
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: 22px;
}

.hero-copy .actions {
  margin-top: 6px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 8px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.93rem;
  list-style: none;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust svg {
  flex: none;
  color: var(--mint);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Product mockup: a phone with a conversation in it. Its frame glows mint like
   the vertical frame of the logo. */

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  margin: 0;
  padding-block: 12px;
}

.phone {
  position: relative;
  width: min(330px, 100%);
  padding: 12px;
  border: 1.5px solid rgba(var(--mint-rgb), 0.5);
  border-radius: 44px;
  background: linear-gradient(160deg, #11271e, #050b09 60%);
  box-shadow:
    0 0 36px rgba(var(--mint-rgb), 0.18),
    0 40px 90px rgba(0, 8, 5, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.phone::before {
  content: "";
  position: absolute;
  inset: -25% -35%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(var(--mint-rgb), 0.16), transparent);
}

.phone-screen {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 33px;
  background: #050a08;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.chat-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #0a1511;
}

.chat-name b {
  display: block;
  font-size: 0.95rem;
  line-height: 1.2;
}

.chat-name small {
  color: var(--faint);
  font-size: 0.78rem;
}

.chat {
  display: grid;
  gap: 10px;
  padding: 16px 14px 20px;
  font-size: 0.86rem;
  line-height: 1.45;
}

.msg {
  justify-self: start;
  max-width: 88%;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px 16px 16px 6px;
  background: rgba(255, 255, 255, 0.07);
}

.msg-out {
  justify-self: end;
  border-color: rgba(var(--mint-rgb), 0.3);
  border-radius: 16px 16px 6px 16px;
  background: linear-gradient(135deg, rgba(var(--mint-rgb), 0.24), rgba(var(--teal-rgb), 0.2));
}

.msg.file {
  display: flex;
  align-items: center;
  gap: 10px;
}

.msg small {
  display: block;
  color: rgba(236, 246, 241, 0.68);
  font-size: 0.75rem;
}

.file-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.78rem;
}

.chip-on {
  border-color: rgba(var(--mint-rgb), 0.55);
  background: rgba(var(--mint-rgb), 0.18);
  color: #d6fbea;
}

.msg.clip {
  width: 64%;
  padding: 8px;
}

.clip-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 2px;
  font-size: 0.8rem;
}

/* Yellow on purpose: it is the real karaoke highlight colour in the bot */
.score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #ffd60a;
  font-weight: 700;
}

.score svg {
  fill: currentColor;
}

.msg.done {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #d8f7ea;
}

.msg.done svg {
  flex: none;
  color: var(--mint);
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.3;
}

.float-card small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.fc-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--grad);
  color: var(--on-mint);
}

/* Over the empty corners of the mockup: the top of the clip preview on the
   left, the chat header on the right. Never over text someone would read */
.fc-1 {
  top: 52%;
  left: -6%;
}

.fc-2 {
  top: 1%;
  right: -6%;
}

@media (prefers-reduced-motion: no-preference) {
  .fc-1 {
    animation: bob 7s ease-in-out infinite;
  }

  .fc-2 {
    animation: bob 8s ease-in-out -3s infinite;
  }
}

@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 980px) {
  .fc-1 {
    left: calc(50% - 260px);
  }

  .fc-2 {
    right: calc(50% - 260px);
  }
}

@media (max-width: 560px) {
  .float-card {
    display: none;
  }
}

/* Clip frames shared by the mockup and the feature visuals */

.clip-frame,
.mini-frame {
  position: relative;
  display: block;
  overflow: hidden;
  max-width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  background:
    radial-gradient(120% 70% at 25% 15%, rgba(var(--mint-rgb), 0.55), transparent 55%),
    radial-gradient(110% 70% at 85% 95%, rgba(var(--aqua-rgb), 0.4), transparent 55%),
    linear-gradient(160deg, #0f3a2f, #06120e);
}

.mini-frame {
  border-radius: 16px;
}

.mini-frame.alt {
  background:
    radial-gradient(120% 70% at 75% 12%, rgba(var(--teal-rgb), 0.55), transparent 55%),
    radial-gradient(110% 70% at 15% 95%, rgba(var(--mint-rgb), 0.4), transparent 55%),
    linear-gradient(160deg, #0c3434, #051110);
}

.clip-person {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 62%;
  height: 46%;
  border-radius: 48% 48% 0 0 / 30% 30% 0 0;
  background: linear-gradient(180deg, rgba(3, 10, 7, 0.55), rgba(3, 10, 7, 0.9));
  transform: translateX(-50%);
}

.clip-person::before {
  content: "";
  position: absolute;
  bottom: 88%;
  left: 50%;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(3, 10, 7, 0.72);
  transform: translateX(-50%);
}

.clip-caption {
  position: absolute;
  right: 8%;
  bottom: 13%;
  left: 8%;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.clip-caption mark {
  background: none;
  color: #ffd60a;
}

.mini-frame .clip-caption {
  font-size: clamp(0.78rem, 1.9vw, 1rem);
}

/* ---- Platform band --------------------------------------------------------- */

.band {
  padding-block: 0 clamp(24px, 4vw, 40px);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 36px;
  padding: 20px 28px;
  border-radius: var(--radius);
}

.platforms-label {
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.platform svg {
  color: var(--mint);
}

/* ---- Cards ----------------------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.card:hover {
  border-color: rgba(var(--mint-rgb), 0.32);
  transform: translateY(-4px);
}

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

/* Outlined and glowing, like the frame of the logo, rather than a solid fill */
.icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid rgba(var(--mint-rgb), 0.55);
  border-radius: 14px;
  background: rgba(var(--mint-rgb), 0.08);
  color: var(--mint);
  box-shadow:
    0 0 22px rgba(var(--mint-rgb), 0.16),
    inset 0 0 12px rgba(var(--mint-rgb), 0.08);
}

.icon svg {
  width: 24px;
  height: 24px;
}

.icon-lg {
  width: 60px;
  height: 60px;
  border-radius: 18px;
}

.icon-lg svg {
  width: 28px;
  height: 28px;
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-num {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

/* ---- Permissions ----------------------------------------------------------- */

.panel-title {
  display: flex;
  align-items: center;
  gap: 14px;
}

.panel-title small {
  color: var(--faint);
  font-size: 0.88rem;
}

.scope-list {
  display: grid;
  gap: 12px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.scope-list li {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.scope-list code {
  justify-self: start;
}

.scope-list span {
  color: var(--muted);
  font-size: 0.96rem;
}

.never {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.never li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
}

/* A warm "no" next to the mint: these are the things that never happen */
.never svg {
  flex: none;
  margin-top: 3px;
  color: #ff9f8f;
}

/* ---- FAQ ------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.faq details[open] {
  border-color: rgba(var(--mint-rgb), 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

/* A plus that turns into a cross: no arrows on anything clickable */
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--mint), var(--mint)) center / 100% 2px no-repeat,
    linear-gradient(var(--mint), var(--mint)) center / 2px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}

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

.faq .answer {
  padding: 0 24px 22px;
  color: var(--muted);
}

.faq-group + .faq-group {
  margin-top: clamp(40px, 6vw, 60px);
}

.faq-group h2 {
  margin-bottom: 18px;
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
}

/* ---- Call to action -------------------------------------------------------- */

.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(40px, 7vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 28px;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 90% at 20% 0%, rgba(var(--mint-rgb), 0.2), transparent 70%),
    radial-gradient(60% 90% at 85% 100%, rgba(var(--aqua-rgb), 0.12), transparent 70%);
}

.cta .lead {
  margin-inline: auto;
}

.cta .actions {
  justify-content: center;
  margin-top: 6px;
}

/* ---- Inner page heroes ----------------------------------------------------- */

.page-hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(40px, 6vw, 64px);
  text-align: center;
}

.page-hero .container {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.page-hero h1 {
  max-width: 18ch;
}

.page-hero .lead {
  margin-inline: auto;
}

.page-hero-doc h1 {
  max-width: none;
}

.updated {
  color: var(--faint);
}

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

.feature-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.feature-block.flip .fb-visual {
  order: -1;
}

.fb-copy {
  display: grid;
  justify-items: start;
  gap: 16px;
}

.feature-list {
  display: grid;
  gap: 20px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
}

.feature-list .icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.feature-list .icon svg {
  width: 22px;
  height: 22px;
}

.feature-list h3 {
  margin-bottom: 4px;
  font-size: 1.08rem;
}

.feature-list p {
  color: var(--muted);
  font-size: 0.98rem;
}

.fb-visual {
  padding: clamp(20px, 4vw, 32px);
  border-radius: 26px;
}

@media (max-width: 900px) {
  .feature-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-block.flip .fb-visual {
    order: 0;
  }
}

.visual-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.visual-head h3 {
  font-size: 1.02rem;
}

.visual-head small {
  color: var(--faint);
  font-size: 0.85rem;
}

.visual-head.spaced {
  margin-top: 28px;
}

.frames {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.frames figure {
  display: grid;
  gap: 10px;
  margin: 0;
  text-align: center;
}

.frames figcaption {
  color: var(--muted);
  font-size: 0.9rem;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.segmented span {
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
}

.segmented .on {
  background: var(--grad);
  color: var(--on-mint);
}

.rank,
.schedule {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank li {
  display: grid;
  grid-template-columns: minmax(84px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.94rem;
}

.rank .top {
  border-color: rgba(var(--mint-rgb), 0.42);
  background: rgba(var(--mint-rgb), 0.09);
}

.rank-name small,
.schedule small {
  display: block;
  color: var(--faint);
  font-size: 0.8rem;
}

.bar {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
}

.bar i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: var(--grad);
}

.rank-score {
  font-variant-numeric: tabular-nums;
}

.schedule li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
}

.schedule time {
  color: #9ef3d0;
  font-family: var(--mono);
  font-weight: 700;
}

.tag {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 0.78rem;
}

/* ---- How it works timeline ------------------------------------------------- */

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  bottom: 28px;
  left: 27px;
  width: 2px;
  background: linear-gradient(180deg, rgba(var(--mint-rgb), 0.8), rgba(var(--aqua-rgb), 0.2));
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 20px;
}

.tl-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--grad);
  color: var(--on-mint);
  font-size: 1.1rem;
  font-weight: 800;
  box-shadow:
    0 0 26px rgba(var(--mint-rgb), 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.tl-body {
  gap: 10px;
  padding: 24px 26px;
}

.tl-body h2 {
  font-size: 1.3rem;
  letter-spacing: -0.015em;
}

.tl-icon {
  color: var(--mint);
}

@media (max-width: 560px) {
  .timeline::before {
    left: 21px;
  }

  .tl-item {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .tl-dot {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 1rem;
  }

  .tl-body {
    padding: 20px;
  }
}

/* ---- Support --------------------------------------------------------------- */

.contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 5vw, 40px);
  border-radius: 26px;
}

.contact-main {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.contact-main > div {
  min-width: 0;
}

.contact-label {
  display: block;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-email {
  display: block;
  color: #fff;
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-main p {
  margin-top: 2px;
  color: var(--muted);
}

/* ---- Legal documents ------------------------------------------------------- */

.doc {
  display: block;
  max-width: 820px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 52px);
}

.doc:hover {
  border-color: var(--line);
  transform: none;
}

.doc h2 {
  margin: 36px 0 12px;
  font-size: 1.4rem;
}

.doc p,
.doc li {
  color: #cfe0d8;
}

.doc > p:first-child {
  font-size: 1.08rem;
}

.doc ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 1.2em;
}

.doc li::marker {
  color: var(--mint);
}

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

.site-footer {
  margin-top: clamp(24px, 6vw, 64px);
  padding-block: 56px 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 9, 7, 0), rgba(4, 9, 7, 0.85));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 36px;
}

.footer-brand p {
  max-width: 36ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-title {
  margin-bottom: 14px;
  color: var(--faint);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer ul a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.site-footer ul a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.88rem;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---- OAuth result page ----------------------------------------------------- */

.status {
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding-block: 32px;
}

.status-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 560px;
  margin-inline: auto;
  padding: clamp(28px, 6vw, 48px);
  border-radius: 28px;
  text-align: center;
}

.status-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

.status-card p {
  color: var(--muted);
}

/* ---- Entrance animations (progressive enhancement) -------------------------- */

.js .reveal {
  opacity: 0;
}

.js .reveal.is-visible {
  animation: rise 0.9s var(--ease) var(--d, 0s) both;
}

@keyframes rise {
  from {
    opacity: 0;
    translate: 0 26px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

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

  .js .reveal {
    opacity: 1;
  }

  .js .reveal.is-visible {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .js .reveal {
    opacity: 1;
    animation: none;
  }

  .bg,
  .site-header {
    display: none;
  }
}
