/* Readocracy landing (/). Archivo for display, EB Garamond for prose and accents,
   JetBrains Mono for UI labels. */

@keyframes rclPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes rclGlow { 0%, 100% { opacity: .35; box-shadow: 0 0 0 0 rgba(47,210,122,.45); } 50% { opacity: 1; box-shadow: 0 0 18px 2px rgba(47,210,122,.45); } }
@keyframes rclWord { 0% { opacity: 0; transform: translateY(.25em); } 100% { opacity: 1; transform: none; } }
@keyframes rclBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }

html:has(.rcl) { scroll-behavior: smooth; }
body.readocracy:has(.rcl) { margin: 0; background: #1a1a1a; }

.rcl {
  --green: #2fd27a;
  --green-soft: #7ee8a8;
  --bg: #1a1a1a;
  --fg: #f2f2f0;
  --rule: rgba(128,128,128,.2);
  --archivo: 'Archivo', sans-serif;
  --garamond: 'EB Garamond', Garamond, serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--mono);
  transition: background .3s, color .3s;
  overflow-x: clip;
}
.rcl.is-light { --bg: #f4f3ef; --fg: #161616; }

.rcl a { color: inherit; text-decoration: none; }
.rcl a:hover { opacity: .6; }
.rcl button { font: inherit; color: inherit; }

.rcl-nowrap { white-space: nowrap; }
.rcl-serif-em { font-family: var(--garamond); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.rcl-eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }

.rcl-circle {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  letter-spacing: 0;
}
.rcl-circle--lg { width: 52px; height: 52px; font-size: 20px; }

.rcl-soon {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(47,210,122,.16);
  border: 1px solid rgba(47,210,122,.35);
  color: var(--green-soft);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rcl-soon::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.rcl-soon--sm { gap: 6px; padding: 3px 8px; border: 0; font-size: 10px; letter-spacing: .16em; }
.rcl-soon--sm::before { width: 5px; height: 5px; }

/* Header */

.rcl-header { padding: 24px 28px; display: flex; justify-content: flex-end; }
.rcl-theme { display: flex; background: none; border: 0; padding: 0; cursor: pointer; }
.rcl-theme-track { position: relative; display: flex; align-items: center; width: 60px; height: 30px; border-radius: 999px; }
.rcl-theme-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: currentColor;
  opacity: .18;
  transform: translateX(30px);
  transition: transform .3s;
}
.rcl.is-light .rcl-theme-knob { transform: none; }
.rcl-theme-icon { position: relative; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.rcl-theme-icon svg { display: block; }

/* Intro */

.rcl-intro {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 120px;
}
.rcl-brand { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rcl-wordmark { font-family: var(--garamond); font-weight: 600; font-size: 30px; letter-spacing: .02em; }
.rcl-tagline { font-family: var(--garamond); font-style: italic; font-size: 32px; opacity: .7; }

.rcl-dot-stage { width: 240px; height: 240px; display: flex; align-items: center; justify-content: center; margin: 36px 0 44px; }
.rcl-dot { position: relative; width: 66px; height: 66px; display: block; }
.rcl-dot-ring,
.rcl-dot-core { position: absolute; inset: 0; border-radius: 50%; background: var(--green); }
.rcl-dot-ring { animation: rclPulse 6s cubic-bezier(.2,.6,.3,1) infinite; }
.rcl-dot-ring--late { animation-delay: 3s; }
.rcl-dot-core { box-shadow: 0 0 18px var(--green); animation: rclBreathe 6s ease-in-out infinite; }

.rcl .rcl-lede {
  margin: 0 0 72px;
  max-width: 640px;
  font-family: var(--archivo);
  font-weight: 500;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.5;
  letter-spacing: -.005em;
  opacity: .8;
  text-wrap: pretty;
}

/* City map; label offsets are fractions of the 820px-wide design frame */

.rcl-city { position: relative; width: 100%; max-width: 820px; margin-top: 8px; }
.rcl-city-img { width: 100%; height: auto; display: block; }
.rcl-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 18px;
  border-radius: 14px;
  background: rgba(18,18,18,.86);
  backdrop-filter: blur(6px);
  color: #f2f2f0;
  text-align: left;
}
.rcl .rcl-pin { color: #f2f2f0; }
.rcl-pin-glow {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  border: 1.5px solid var(--green);
  pointer-events: none;
  animation: rclGlow 5s ease-in-out infinite;
}
.rcl-pin-name { font-family: var(--archivo); font-weight: 800; font-size: 18px; letter-spacing: -.01em; line-height: 1.15; }
.rcl-pin-sub { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }

.rcl-pin-cta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  color: #141414;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.rcl-pin--syl .rcl-pin-cta { background: #8fd3f4; }
.rcl-pin--ttai .rcl-pin-cta { background: #F80353; }

.rcl-pin--syl { left: 36.8%; top: 19.6%; }
.rcl-pin--ttai { left: 5.6%; top: 40.4%; }
.rcl-pin--app { left: 65.4%; top: 51.5%; }
.rcl-pin--caih { left: 21.6%; top: 66.5%; width: 216px; }
.rcl-pin--ttai .rcl-pin-glow { animation-delay: 1.25s; }
.rcl-pin--app .rcl-pin-glow { animation-delay: 2.5s; }
.rcl-pin--caih .rcl-pin-glow { animation-delay: 3.75s; }

@media (max-width: 760px) {
  .rcl-city-labels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
  .rcl-pin { position: relative; left: auto; top: auto; width: auto; }
  .rcl-pin--caih { width: auto; }
  .rcl-pin-name { font-size: 16px; }
}
@media (max-width: 420px) {
  .rcl-city-labels { grid-template-columns: 1fr; }
}

/* Teaser */

.rcl-teaser { margin-top: 96px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.rcl-teaser[hidden] { display: none; }
.rcl .rcl-teaser-title {
  font-family: var(--archivo);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -.035em;
  max-width: 16ch;
  text-wrap: balance;
}
.rcl-find-out {
  display: flex;
  align-items: center;
  gap: 14px;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* Another world */

.rcl-world[hidden] { display: none; }

.rcl-world-intro { padding: 120px 24px 110px; display: flex; justify-content: center; border-top: 1px solid var(--rule); }
.rcl-world-inner { width: 100%; max-width: 1200px; display: flex; flex-direction: column; gap: 40px; }
.rcl-world-brand { display: flex; flex-direction: column; gap: 6px; }
.rcl-world-wordmark { font-family: var(--garamond); font-weight: 600; font-size: 26px; }
.rcl-world-hero { position: relative; display: flex; align-items: center; min-height: clamp(320px, 42vw, 560px); }
.rcl-world-einstein {
  position: absolute;
  top: -85px;
  left: 31.5%;
  width: 55.25%;
  aspect-ratio: 663 / 473;
  object-fit: cover;
  opacity: .42;
  filter: grayscale(1);
  pointer-events: none;
  display: block;
}
.rcl .rcl-world-title {
  position: relative;
  font-family: var(--archivo);
  font-weight: 800;
  font-size: clamp(44px, 7.5vw, 108px);
  line-height: 1.04;
  letter-spacing: -.04em;
}
.rcl-world-nav-ct { display: flex; flex-direction: column; gap: 20px; }
.rcl-world-nav-lead { font-family: var(--archivo); font-weight: 500; font-size: clamp(18px, 2vw, 24px); opacity: .75; }
.rcl-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.rcl-chips a {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(128,128,128,.4);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rcl-fold { padding: 0 24px; display: flex; flex-direction: column; align-items: center; }
.rcl-fold--ruled { border-top: 1px solid var(--rule); }
.rcl-fold--deep { background: oklch(0.255 0.018 158); color: #f2f2f0; }
.rcl-fold--mid { background: oklch(0.225 0.012 158); color: #f2f2f0; }
.rcl-fold--dark { background: oklch(0.155 0.006 158); color: #f2f2f0; }

.rcl-fold-head {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(26px, 3.2vw, 40px) 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.rcl-fold-label { display: flex; align-items: baseline; gap: clamp(16px, 2.5vw, 36px); }
.rcl-fold-num { font-family: var(--mono); font-size: 13px; letter-spacing: .16em; opacity: .5; }
.rcl-fold-title {
  font-family: var(--archivo);
  font-weight: 800;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1;
  letter-spacing: -.045em;
  text-transform: lowercase;
}
.rcl-fold-sign {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 24px;
  opacity: .8;
}
.rcl-fold-sign::before { content: '+'; }
.rcl-fold-head[aria-expanded="true"] .rcl-fold-sign::before { content: '−'; }

.rcl-fold-body { width: 100%; display: flex; justify-content: center; padding: clamp(8px, 2vw, 24px) 0 clamp(64px, 8vw, 112px); }
.rcl-fold-body[hidden] { display: none; }
.rcl-fold-grid {
  width: 100%;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.rcl-fold-aside { display: flex; flex-direction: column; gap: 28px; position: sticky; top: 40px; }
.rcl-fold-aside h3 {
  font-family: var(--archivo);
  font-weight: 800;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.rcl-fold-img { width: 100%; height: auto; display: block; border-radius: 14px; }
.rcl .rcl-fold-note { font-family: var(--archivo); font-weight: 500; font-size: 19px; line-height: 1.45; opacity: .85; text-wrap: pretty; }
.rcl-fold-prose {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-family: var(--garamond);
  font-size: clamp(19px, 1.6vw, 22px);
  line-height: 1.55;
  text-wrap: pretty;
}

.rcl-reading { display: flex; flex-direction: column; gap: 8px; }
.rcl-reading-label { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; opacity: .6; }
.rcl .rcl-reading a {
  font-family: var(--garamond);
  font-style: italic;
  font-size: 22px;
  color: var(--green-soft);
  border-bottom: 1px dotted var(--green-soft);
  align-self: flex-start;
  padding-bottom: 2px;
}

.rcl-next {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  align-self: flex-start;
}

/* Products */

.rcl-products {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 5vw, 64px);
  padding: clamp(72px, 9vw, 120px) 16px 24px;
  border-top: 1px solid var(--rule);
}
.rcl .rcl-products-title {
  width: 100%;
  max-width: 1160px;
  font-family: var(--archivo);
  font-weight: 800;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-align: center;
}
.rcl-heroes { width: 100%; max-width: 1240px; display: flex; flex-direction: column; gap: 28px; text-align: left; }

.rcl-hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: clamp(350px, 48vh, 510px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f4f3ef;
  background: #111;
}
.rcl-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(.72);
}
.rcl-hero--syl .rcl-hero-img { object-position: center 40%; }
.rcl-hero--ttai .rcl-hero-img { object-position: center 30%; }

.rcl-hero-shade,
.rcl-hero-shade::after { position: absolute; inset: 0; pointer-events: none; }
.rcl-hero-shade { background: linear-gradient(90deg, rgba(10,10,10,.7) 0%, rgba(10,10,10,.4) 45%, rgba(10,10,10,0) 85%); }
.rcl-hero-shade::after { content: ''; }
.rcl-hero--syl .rcl-hero-shade::after { background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.35) 40%, rgba(10,10,10,.88) 100%); }
.rcl-hero--ttai .rcl-hero-shade::after { background: linear-gradient(90deg, rgba(8,8,14,.9) 0%, rgba(8,8,14,.65) 55%, rgba(8,8,14,.1) 90%); }
.rcl-hero--app .rcl-hero-shade::after { background: linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,.35) 35%, rgba(10,10,10,.92) 100%); }
.rcl-hero--caih .rcl-hero-shade::after { background: linear-gradient(180deg, rgba(10,10,10,.6) 0%, rgba(10,10,10,.62) 50%, rgba(10,10,10,.92) 100%); }

.rcl-hero-top {
  position: relative;
  width: 100%;
  padding: clamp(20px, 3vw, 36px) clamp(24px, 3.5vw, 44px) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.rcl-hero-brand { font-family: var(--archivo); font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.rcl-hero--app .rcl-hero-brand b { font-weight: 700; }
.rcl-hero-tag {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(10,10,10,.6);
  backdrop-filter: blur(8px);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.rcl-hero-body {
  position: relative;
  width: 100%;
  max-width: 860px;
  padding: clamp(24px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.rcl-hero--ttai .rcl-hero-body { max-width: 980px; }
.rcl-hero-body h3 {
  font-family: var(--archivo);
  font-weight: 800;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: .98;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.rcl-hero-body p {
  max-width: 520px;
  font-family: var(--archivo);
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.45;
  opacity: .85;
  text-wrap: pretty;
}
.rcl-hero--app .rcl-hero-body p { max-width: 720px; }

.rcl .rcl-hero-cta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 6px 6px 22px;
  border-radius: 999px;
  color: #141414;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rcl-hero--syl .rcl-hero-cta { background: #8fd3f4; }
.rcl-hero--ttai .rcl-hero-cta { background: #F80353; }
.rcl-hero-cta-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #141414;
  color: #f4f3ef;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  letter-spacing: 0;
}
.rcl-cycle { display: inline-block; animation: rclWord .5s ease-out; }

/* Outro & footer */

.rcl-outro { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 72px 24px; }
.rcl-outro-eyebrow { display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; opacity: .5; }
.rcl-rule { width: 24px; height: 1px; background: currentColor; }
.rcl-outro-progress {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .85;
}
.rcl-progress-item { display: flex; align-items: center; gap: 10px; }
.rcl-mini-dot { position: relative; flex: none; width: 8px; height: 8px; display: block; }
.rcl-mini-dot::before,
.rcl-mini-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--green); }
.rcl-mini-dot::before { animation: rclPulse 3.6s cubic-bezier(.2,.6,.3,1) infinite; }
.rcl-mini-dot::after { box-shadow: 0 0 6px var(--green); }
.rcl-progress-item:nth-child(2) .rcl-mini-dot::before { animation-delay: 1.2s; }
.rcl-progress-item:nth-child(3) .rcl-mini-dot::before { animation-delay: 2.4s; }
.rcl-outro-links {
  margin-top: 64px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 48px;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.rcl-footer {
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .6;
}

@media (max-width: 600px) {
  .rcl-tagline { font-size: 26px; }
  .rcl-hero-top { flex-wrap: wrap; }
  .rcl-fold-aside { position: static; }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.rcl) { scroll-behavior: auto; }
  .rcl *, .rcl *::before, .rcl *::after { animation: none !important; transition: none !important; }
}
