/*
  site/styles.css -- www.r3kimun.com's one page (site/index.html).

  White, with the brand's blues in shades rather than a blue page (Rick,
  10 October: "dont make the full background blue ... shades of blue and
  white"): navy #00103E for words, the R3 cube's blues #1B86F9 and
  #2CACFA, KymunAV's teal, and pale blue washes behind sections. The
  system's own fonts: the marks are drawn, not typed, so the page asks no
  font service for anything. A file rather than a <style> block, so the
  site's Content-Security-Policy can forbid inline styles.
*/

:root {
  --navy: #00103e;
  --navy-soft: #1d2b55;
  --blue: #1b86f9;
  --blue-deep: #0b5fd0;
  --sky: #2cacfa;
  --teal: #14a3b4;
  --wash: #f3f8fe;
  --wash-2: #e8f2fd;
  --ink: #0e1730;
  --muted: #55627f;
  --border: #e1e9f5;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(0, 16, 62, 0.07);
  --shadow-soft: 0 6px 18px rgba(0, 16, 62, 0.05);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ── The bar: white frosted glass, a hairline under it, kept in view ── */
.bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
/* Where frosted glass is not drawn, plain white, so nothing shows through. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bar {
    background: var(--white);
  }
}
.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  text-decoration: none;
  color: var(--navy);
}
/* The R3 mark is drawn once (#r3-mark in index.html) and used in the bar
   and the hero; its letters take the color around them. */
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.mark {
  height: 30px;
  width: 57px;
  color: var(--navy);
}
.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}
.nav a:not(.btn) {
  text-decoration: none;
  color: var(--navy-soft);
}
.nav a:not(.btn):hover {
  color: var(--blue);
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}
.btn:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(27, 134, 249, 0.28);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(27, 134, 249, 0.34);
}
.btn-outline {
  border-color: #c9daf2;
  color: var(--navy);
  background: var(--white);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue-deep);
}
.btn-small {
  padding: 8px 18px;
  font-size: 14px;
  background: var(--navy);
  color: var(--white);
}
.btn-small:hover {
  background: var(--navy-soft);
}

/* ── The company: white, with pale blue light behind it ── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(44, 172, 250, 0.16), transparent 42%),
    radial-gradient(circle at 4% 30%, rgba(27, 134, 249, 0.07), transparent 32%),
    linear-gradient(180deg, var(--white) 0%, var(--wash) 100%);
  padding: 88px 0 96px;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  align-items: center;
  gap: 48px;
}
/* The company's logo, large, over the slogan: R3 and Kimün as in the
   bar, at the size of a name on its own page (Rick, 10 October: "should
   we make it bigger?"). */
.hero-brand {
  display: inline-flex;
  align-items: flex-end;
  gap: 12px;
  margin: 0 0 24px;
  color: var(--navy);
}
.hero-mark {
  height: 64px;
  width: 122px;
}
.hero-brand-name {
  font-size: 42px;
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: 0.01em;
  padding-bottom: 3px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--wash-2);
  color: var(--blue-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.eyebrow-teal {
  background: rgba(20, 163, 180, 0.1);
  color: #0d7f8d;
}
.slogan {
  margin: 0;
  color: var(--navy);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  font-style: italic;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.slogan-accent {
  background: linear-gradient(90deg, var(--blue-deep) 0%, var(--sky) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin: 20px 0 0;
  max-width: 36em;
  font-size: 18px;
  color: var(--muted);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.note {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* R to the power of three: three cubes, the mark's blues in three shades. */
.hero-art {
  width: 100%;
  max-width: 340px;
  justify-self: end;
  filter: drop-shadow(0 24px 30px rgba(0, 16, 62, 0.12));
}
.cube-1 .face-top { fill: #8fd3fd; }
.cube-1 .face-left { fill: #2cacfa; }
.cube-1 .face-right { fill: #1b86f9; }
.cube-2 .face-top { fill: #c4e6fe; }
.cube-2 .face-left { fill: #6cc1fb; }
.cube-2 .face-right { fill: #3b98f8; }
.cube-3 .face-top { fill: #5c9df0; }
.cube-3 .face-left { fill: #1b6fe0; }
.cube-3 .face-right { fill: #0b4fb8; }

/* ── KymunAV: a white card on a pale blue wash, the logo beside it ── */
.product {
  background: linear-gradient(180deg, var(--wash) 0%, var(--white) 70%);
  padding: 24px 0 88px;
  scroll-margin-top: 72px;
}
.product-card {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  padding: 40px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.product-logo {
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(44, 172, 250, 0.14), transparent 60%),
    var(--wash);
}
.product-logo img {
  width: 100%;
  max-width: 240px;
  height: auto;
}
.product-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.grid-title {
  margin: 64px 0 10px;
  color: var(--navy);
  font-size: 22px;
}
.grid-lead {
  margin: 0 0 24px;
  max-width: 46em;
  font-size: 17px;
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.card {
  padding: 24px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #c9daf2;
  box-shadow: var(--shadow);
}
.icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--wash-2) 0%, #d6ebfe 100%);
  fill: none;
  stroke: var(--blue-deep);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card h4 {
  margin: 14px 0 6px;
  color: var(--navy);
  font-size: 17px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ── The early access guide (early-access.html): one step at a time,
      with no script. Each step is a section with its own address; only
      the one the address names is shown, the first when none is. The
      list of steps marks the one shown. Where :has() is not understood,
      every step shows, one after the other. ── */
.guide {
  background: linear-gradient(180deg, var(--wash) 0%, var(--white) 60%);
  padding: 48px 0 88px;
}
.guide-head {
  max-width: 46em;
  margin-bottom: 32px;
}
.guide-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.guide-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.guide-rail {
  position: sticky;
  top: 88px;
}
.guide-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.guide-rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--navy-soft);
  font-weight: 600;
  font-size: 15px;
}
.guide-rail a:hover {
  background: var(--wash-2);
}
.rail-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
}
.guide-body:has(#step-1:target) .guide-rail a[href="#step-1"],
.guide-body:has(#step-2:target) .guide-rail a[href="#step-2"],
.guide-body:has(#step-3:target) .guide-rail a[href="#step-3"],
.guide-body:has(#step-4:target) .guide-rail a[href="#step-4"],
.guide-body:has(#step-5:target) .guide-rail a[href="#step-5"],
.guide-body:has(#step-6:target) .guide-rail a[href="#step-6"],
.guide-body:has(#step-7:target) .guide-rail a[href="#step-7"],
.guide-body:has(#step-8:target) .guide-rail a[href="#step-8"],
.guide-body:has(#step-9:target) .guide-rail a[href="#step-9"],
.guide-body:has(#step-10:target) .guide-rail a[href="#step-10"],
.guide-body:not(:has(.step:target)) .guide-rail a[href="#step-1"] {
  background: var(--wash-2);
  color: var(--blue-deep);
}
.guide-body:has(#step-1:target) .guide-rail a[href="#step-1"] .rail-n,
.guide-body:has(#step-2:target) .guide-rail a[href="#step-2"] .rail-n,
.guide-body:has(#step-3:target) .guide-rail a[href="#step-3"] .rail-n,
.guide-body:has(#step-4:target) .guide-rail a[href="#step-4"] .rail-n,
.guide-body:has(#step-5:target) .guide-rail a[href="#step-5"] .rail-n,
.guide-body:has(#step-6:target) .guide-rail a[href="#step-6"] .rail-n,
.guide-body:has(#step-7:target) .guide-rail a[href="#step-7"] .rail-n,
.guide-body:has(#step-8:target) .guide-rail a[href="#step-8"] .rail-n,
.guide-body:has(#step-9:target) .guide-rail a[href="#step-9"] .rail-n,
.guide-body:has(#step-10:target) .guide-rail a[href="#step-10"] .rail-n,
.guide-body:not(:has(.step:target)) .guide-rail a[href="#step-1"] .rail-n {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}
.step {
  display: none;
  padding: 32px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  scroll-margin-top: 88px;
}
.step:target,
.guide-steps:not(:has(.step:target)) .step:first-child {
  display: block;
}
@supports not selector(:has(*)) {
  .step {
    display: block;
    margin-bottom: 24px;
  }
}
@media print {
  .step {
    display: block;
    box-shadow: none;
    margin-bottom: 16px;
  }
  .guide-rail,
  .step-nav {
    display: none;
  }
}
.step-count {
  margin: 0 0 4px;
  color: #0d7f8d;
  font-size: 14px;
  font-weight: 600;
}
.step h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 26px;
  line-height: 1.2;
}
.step-why {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 17px;
}
.step-list {
  margin: 16px 0 0;
  padding-left: 1.4em;
  font-size: 16px;
}
.step-list li {
  margin: 0 0 10px;
  padding-left: 4px;
}
.step-list li::marker {
  color: var(--blue-deep);
  font-weight: 700;
}
.step-look {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  background: var(--wash);
}
.step-look h3,
.step-done h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 16px;
}
.step-look ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  font-size: 15px;
}
.step-look li {
  margin: 4px 0;
}
.step-stop {
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid #f1d9a8;
  background: #fff8ea;
  color: #6b4a0c;
  font-size: 15px;
}
.step-done {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 16px;
  background: rgba(20, 163, 180, 0.08);
}
.step-done p {
  margin: 0;
  color: var(--muted);
}
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* The drawing of the Feedback button, the numbers and the panel: drawn,
   not photographed, so no sample record is on a public page. */
.demo {
  margin: 20px 0 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--wash);
}
.demo-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--navy);
}
.demo-search {
  flex: 1;
  max-width: 220px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}
.demo-pill {
  margin-left: auto;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 0 0 3px rgba(44, 172, 250, 0.35);
}
.demo-bell,
.demo-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.demo-avatar {
  background: rgba(255, 255, 255, 0.85);
}
.demo-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 16px;
  padding: 22px 16px 16px;
}
.demo-cards {
  display: grid;
  gap: 20px;
  align-content: start;
}
.demo-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
}
.demo-card i {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--wash-2);
}
.demo-card i + i {
  width: 60%;
}
.demo-card-title {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}
.demo-card-picked {
  border: 2px solid #d9a441;
}
.demo-n {
  position: absolute;
  top: -11px;
  left: -11px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
}
.demo-n-picked {
  background: #d9a441;
}
.demo-panel {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #c9daf2;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 12px;
}
.demo-panel-title {
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.demo-about b {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 2px 8px 2px 3px;
  border-radius: 999px;
  background: var(--wash-2);
  color: var(--navy);
}
.demo-chip-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d9a441;
  color: var(--white);
  font-size: 10px;
}
.demo-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.demo-kinds u {
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
}
.demo-kinds .demo-kind-on {
  border-color: var(--blue);
  background: var(--wash-2);
  color: var(--blue-deep);
}
.demo-text {
  min-height: 44px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
}
.demo-send {
  justify-self: end;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
}

/* A phone: the list of steps as a row of numbers, the drawing in one
   column, less padding. */
@media (max-width: 860px) {
  .guide {
    padding: 32px 0 64px;
  }
  .guide-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .guide-rail {
    position: static;
  }
  .guide-rail ol {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 2px;
  }
  .guide-rail a {
    justify-content: center;
    padding: 4px 0;
    font-size: 0;
  }
  .step {
    padding: 20px;
    border-radius: 18px;
  }
  .demo-page {
    grid-template-columns: 1fr;
  }
}

/* ── The foot ── */
.foot {
  border-top: 1px solid var(--border);
  background: var(--wash);
  padding: 26px 0 34px;
  font-size: 14px;
  color: var(--muted);
}
.foot-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
}
.foot-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.foot-links a {
  color: var(--navy);
}
.faint {
  opacity: 0.85;
}

/* ── Narrow screens: one column, the art smaller and after the words ── */
@media (max-width: 860px) {
  .hero {
    padding: 56px 0 64px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-art {
    max-width: 220px;
    justify-self: center;
  }
  .hero-mark {
    height: 48px;
    width: 91px;
  }
  .hero-brand-name {
    font-size: 32px;
  }
  .product-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .product-logo img {
    max-width: 200px;
  }
}
@media (max-width: 520px) {
  .nav a:not(.btn) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .card {
    transition: none;
  }
  .btn-primary:hover,
  .card:hover {
    transform: none;
  }
}
