/* bluemaple.ai — one stylesheet, no JavaScript. Colors follow the bluemaple
   logo (navy #02132d, leaf cyan #00dbf9) and the Magentic app palette. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/open-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/open-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/open-sans-700.woff2") format("woff2");
}

:root {
  --bg: #02132d;
  --surface: #0a2142;
  --surface-2: #0d2850;
  --line: rgba(130, 190, 255, 0.14);
  --line-strong: rgba(130, 190, 255, 0.26);
  --ink: #e8f4ff;
  --ink-soft: #c9dbee;
  --muted: #9db4cf;
  --accent: #00d4f5;
  --accent-hover: #4ae4ff;
  --accent-ink: #02132d;
  --accent-soft: rgba(0, 212, 245, 0.12);
  --accent-line: rgba(0, 212, 245, 0.4);
  --good: #34e3b0;
  --warn: #ffc857;
  --radius: 18px;
  --container: 1160px;
  --font: "Open Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial,
    sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 96px;
  color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink-soft);
  background:
    radial-gradient(1100px 620px at 10% -10%, rgba(0, 212, 245, 0.17), transparent 62%),
    radial-gradient(900px 520px at 100% 0%, rgba(52, 227, 176, 0.07), transparent 60%),
    var(--bg);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

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

.hero h1 {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

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

p {
  margin: 0 0 1.1em;
}

ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

strong {
  color: var(--ink);
  font-weight: 600;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(2, 19, 45, 0.84);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  flex: none;
  border-radius: 8px;
}

.brand img {
  width: 163px;
  height: 36px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

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

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px rgba(0, 212, 245, 0.22);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  box-shadow: 0 14px 36px rgba(0, 212, 245, 0.3);
  transform: translateY(-1px);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--ink);
}

.btn-sm {
  padding: 9px 16px;
  border-radius: 10px;
  font-size: 0.95rem;
  box-shadow: none;
}

.btn-sm:hover {
  box-shadow: none;
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 104px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 600;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(52, 227, 176, 0.16);
}

.accent {
  color: var(--accent);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .accent {
    background: linear-gradient(92deg, #00dbf9 0%, #5cefd2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

.lede {
  max-width: 36em;
  margin-bottom: 36px;
  color: var(--ink-soft);
  font-size: clamp(1.125rem, 1.6vw, 1.3rem);
}

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

.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -22% -26% -22% -18%;
  background: url("/assets/img/network.svg") center / contain no-repeat;
  opacity: 0.6;
  pointer-events: none;
}

/* Illustrative assessment card */

.assess {
  position: relative;
  margin: 0;
  padding: 26px 26px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(14, 42, 82, 0.94), rgba(8, 28, 58, 0.94));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.assess-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.assess-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.assess-label img {
  width: 22px;
  height: 22px;
}

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.chip-good {
  border: 1px solid rgba(52, 227, 176, 0.28);
  background: rgba(52, 227, 176, 0.12);
  color: var(--good);
}

.assess-verdict {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dot-good {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 5px rgba(52, 227, 176, 0.16);
}

.assess-summary {
  margin-bottom: 18px;
  font-size: 1rem;
}

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

.assess-list li {
  position: relative;
  padding: 12px 14px 12px 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.95rem;
  line-height: 1.5;
}

.assess-list li::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 14px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px;
}

.assess-list .ok::before {
  background-color: rgba(52, 227, 176, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.2 2.2 4.8-4.9' fill='none' stroke='%2334e3b0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.assess-list .note::before {
  background-color: rgba(255, 200, 87, 0.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 2.6v4.3' stroke='%23ffc857' stroke-width='1.8' stroke-linecap='round'/%3E%3Ccircle cx='6' cy='9.3' r='1.05' fill='%23ffc857'/%3E%3C/svg%3E");
}

.assess-caption {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-align: right;
}

/* Sections */

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

.section-alt {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.eyebrow {
  display: block;
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.split-copy p {
  font-size: 1.125rem;
}

.moments-title {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.moments li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.moments .num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.moments h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.moments p {
  margin: 0;
  color: var(--muted);
  font-size: 0.975rem;
}

/* Cards */

.grid {
  display: grid;
  gap: 20px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card h3 {
  margin-bottom: 10px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

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

.compare .card {
  display: flex;
  flex-direction: column;
}

.compare .card p {
  margin-bottom: 22px;
}

.compare .answers {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.975rem;
  line-height: 1.5;
}

.answers-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card-featured {
  border-color: var(--accent-line);
  background: linear-gradient(180deg, rgba(0, 212, 245, 0.15), rgba(0, 212, 245, 0.04));
  box-shadow: 0 20px 50px rgba(0, 212, 245, 0.12);
}

.card-featured h3,
.card-featured .answers-label {
  color: var(--accent);
}

.card-featured p {
  color: var(--ink-soft);
}

/* Footer */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 48px;
}

.footer-brand img {
  width: 145px;
  height: 32px;
}

.footer-brand p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}

.footer-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

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

.footer-legal {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}

/* The 404 footer has no brand row, so it should not draw a second rule. */
.footer-legal:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.footer-legal p {
  margin: 0;
}

/* Inner pages */

.page-hero {
  padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px);
}

.page-hero .lede {
  max-width: none;
  margin-bottom: 20px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  color: var(--muted);
  font-size: 0.9rem;
  list-style: none;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}

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

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

.byline {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Same width as the header and the home page. On a phone the screen is
   already narrower than this, so the mobile layout does not change. */
.narrow {
  max-width: var(--container);
}

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

.article h2 {
  margin-top: 2.1em;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.article > h2:first-child {
  margin-top: 0;
}

.article li {
  margin-bottom: 0.55em;
}

.definition {
  margin: 0 0 12px;
  padding: 28px 30px;
  border: 1px solid rgba(0, 212, 245, 0.36);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0, 212, 245, 0.12), rgba(0, 212, 245, 0.03));
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.65;
}

.definition p {
  margin: 0;
}

.table-wrap {
  margin: 0 0 1.4em;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.975rem;
  line-height: 1.55;
}

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

thead th {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
}

tbody th {
  color: var(--ink);
  font-weight: 600;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tr.highlight th,
tr.highlight td {
  background: rgba(0, 212, 245, 0.08);
}

.steps {
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  margin-bottom: 1.1em;
  padding-left: 52px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 700;
}

.article ul li::marker {
  color: var(--accent);
}

.callout {
  margin-top: 2.4em;
  padding: 28px 30px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.callout h2 {
  margin-top: 0;
}

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

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 28px;
  margin: 0 0 1.2em;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.facts dt {
  color: var(--muted);
  font-weight: 600;
}

.facts dd {
  margin: 0;
  color: var(--ink);
}

.beliefs {
  display: grid;
  gap: 14px;
  margin: 0 0 1.2em;
  padding: 0;
  list-style: none;
}

.beliefs li {
  margin: 0;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  background: var(--surface);
}

.beliefs strong {
  display: block;
  margin-bottom: 4px;
}

/* 404 */

.notfound {
  padding: clamp(80px, 14vw, 160px) 0;
  text-align: center;
}

.notfound .lede {
  margin-inline: auto;
}

.notfound .actions {
  justify-content: center;
}

/* Responsive */

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

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

  .hero-visual {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 6px 16px;
    min-height: 0;
    padding: 12px 0 6px;
  }

  .site-nav {
    order: 3;
    width: calc(100% + 24px);
    margin: 0 -12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .footer-brand p {
    white-space: normal;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 36px, var(--container));
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }

  .brand img {
    width: 136px;
    height: 30px;
  }

  .assess {
    padding: 20px 18px 16px;
  }

  .assess-verdict {
    font-size: 1.5rem;
  }

  .facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .facts dd {
    margin-bottom: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
