:root {
  --bg-top: #0f2027;
  --bg-mid: #1f4959;
  --bg-bottom: #2c7a7b;
  --circle-color: #7fe7dc;
  --circle-glow: rgba(127, 231, 220, 0.45);
  --circle-highlight: #d7fff9;
  --circle-shade: #3fb6a8;
  --text-main: #eafbf9;
  --text-muted: #9fc9c4;
  --text-dim: #6f9490;
  --panel-bg: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.12);
  --accent: #7fe7dc;
  --accent-light: #97efe5;
  --accent-contrast: #073b3a;
}

:root.night {
  --bg-top: #150b08;
  --bg-mid: #341c11;
  --bg-bottom: #4a2716;
  --circle-color: #ffb27a;
  --circle-glow: rgba(255, 178, 122, 0.4);
  --circle-highlight: #ffe9d6;
  --circle-shade: #c9642f;
  --text-main: #fbe9da;
  --text-muted: #cf9d80;
  --text-dim: #a97355;
  --panel-bg: rgba(255, 255, 255, 0.05);
  --panel-border: rgba(255, 255, 255, 0.1);
  --accent: #ffb27a;
  --accent-light: #ffc999;
  --accent-contrast: #3a1608;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(ellipse at top, var(--bg-mid), var(--bg-top) 70%);
  color: var(--text-main);
  line-height: 1.5;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
}

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

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

/* --- Nav --- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg-top) 72%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

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

.brand-mark {
  flex-shrink: 0;
}

.brand-word-light {
  font-weight: 400;
  color: var(--text-muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-toggle {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.icon-toggle.is-on {
  color: var(--circle-color);
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
}

.icon-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

#navBurger {
  display: none;
}

.lang-select {
  position: relative;
}

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 25;
  min-width: 180px;
  background: color-mix(in srgb, var(--bg-top) 96%, transparent);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.lang-dropdown.open {
  display: block;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

a.lang-option:hover {
  background: var(--panel-bg);
  color: var(--text-main);
}

.lang-option.active {
  color: var(--text-main);
  font-weight: 600;
}

.lang-option.active .lang-check {
  color: var(--circle-color);
  flex-shrink: 0;
}

.lang-option.disabled {
  color: var(--text-dim);
  cursor: default;
}

.lang-soon {
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 2px 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: var(--panel-bg);
  color: var(--text-main);
}

.nav-links a.active {
  background: var(--panel-bg);
  color: var(--text-main);
  border: 1px solid var(--panel-border);
}

.nav-cta {
  background: var(--accent) !important;
  color: var(--accent-contrast) !important;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-light) !important;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 8px 28px var(--circle-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
}

.btn-ghost {
  background: var(--panel-bg);
  color: var(--text-main);
  border: 1px solid var(--panel-border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* --- Hero --- */

.hero {
  padding: 88px 0 72px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--circle-color);
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.hero p.lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Home hero only: phone visual + text side by side */

.hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 96px;
}

.hero-row .hero-text {
  order: 1;
}

.hero-row .hero-phone {
  order: 2;
}

.hero-text {
  text-align: left;
  max-width: 480px;
}

.hero .hero-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.hero .hero-text p.lead {
  max-width: none;
  margin: 0 0 36px;
}

.hero .hero-text .hero-actions {
  justify-content: flex-start;
}

.hero-phone {
  flex-shrink: 0;
  width: 172px;
  height: 348px;
  border-radius: 30px;
  border: 1.25px solid rgba(255, 255, 255, 0.28);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 13px 14px;
  overflow: hidden;
}

.hero-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 46px;
  height: 5px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.hero-phone-field {
  width: 100%;
  border-radius: 17px;
  padding: 7px 10px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.hero-phone-field-label {
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-phone-field-value {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-main);
}

.hero-phone-track {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px 0;
}

.hero-phone-line {
  position: absolute;
  left: 50%;
  top: 8px;
  bottom: 8px;
  width: 1.5px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-50%);
}

.hero-phone-ball {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--circle-highlight), var(--circle-color) 55%, var(--circle-shade) 100%);
  box-shadow: 0 0 28px 5px var(--circle-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hero-phone-rise 10s ease-in-out infinite;
}

@keyframes hero-phone-rise {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-72px); }
}

.hero-phone-ball svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hero-phone-ring-track,
.hero-phone-ring-progress {
  fill: none;
  stroke-width: 7;
}

.hero-phone-ring-track {
  stroke: color-mix(in srgb, var(--accent-contrast) 15%, transparent);
}

.hero-phone-ring-progress {
  stroke: var(--accent-contrast);
  stroke-linecap: round;
  stroke-dasharray: 264;
  animation: hero-phone-ring 10s ease-in-out infinite;
}

@keyframes hero-phone-ring {
  0% { stroke-dashoffset: 264; }
  50% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 264; }
}

.hero-phone-count {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-contrast);
  font-variant-numeric: tabular-nums;
}

.hero-phone-phase {
  position: relative;
  height: 18px;
  width: 100%;
  text-align: center;
  margin-top: 6px;
}

.hero-phone-phase span {
  position: absolute;
  left: 0;
  right: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero-phone-phase-in {
  animation: hero-phone-phase-fade 10s ease-in-out infinite;
}

.hero-phone-phase-out {
  animation: hero-phone-phase-fade 10s ease-in-out infinite;
  animation-delay: -5s;
}

@keyframes hero-phone-phase-fade {
  0%, 40% { opacity: 1; }
  50%, 90% { opacity: 0; }
  100% { opacity: 1; }
}

.hero-phone-timeline {
  width: 100%;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.hero-phone-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.56rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.hero-phone-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.hero-phone-bar > div {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--circle-shade), var(--accent));
  border-radius: 999px;
  animation: hero-phone-progress 10s linear infinite;
}

@keyframes hero-phone-progress {
  0% { width: 0%; }
  100% { width: 92%; }
}

/* Guide page: annotated app preview */

.guide-stage-wrap {
  width: 100%;
  max-width: 640px;
  aspect-ratio: 640 / 560;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.guide-stage {
  width: 640px;
  height: 560px;
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
}

.guide-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.guide-connectors line {
  stroke: color-mix(in srgb, var(--accent) 55%, transparent);
  stroke-width: 1.5;
}

.guide-connectors circle {
  fill: var(--accent);
}

.guide-callout {
  position: absolute;
  width: 160px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-main);
  line-height: 1.35;
}

.guide-callout .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--circle-color);
  font-size: 0.68rem;
  font-weight: 600;
  flex-shrink: 0;
}

.guide-callout.left {
  text-align: right;
  flex-direction: row-reverse;
}

.guide-phone {
  position: absolute;
  left: 190px;
  top: 16px;
  width: 260px;
  height: 520px;
  border: 1.5px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  overflow: hidden;
}

.guide-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 4px;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.guide-field {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 28px;
  height: 40px;
  border-radius: 12px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-size: 0.74rem;
  color: var(--text-main);
  font-weight: 500;
}

.guide-ball {
  position: absolute;
  left: 50%;
  top: 214px;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--circle-highlight), var(--circle-color) 55%, var(--circle-shade) 100%);
  box-shadow: 0 0 24px 4px var(--circle-glow);
}

.guide-phase {
  position: absolute;
  left: 0;
  right: 0;
  top: 374px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.guide-timeline {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 408px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.guide-sidebar-btn {
  position: absolute;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.guide-sidebar-btn.info {
  top: 260px;
}

.guide-sidebar-btn.sound {
  top: 296px;
}

.guide-ctrl {
  position: absolute;
  top: 452px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
}

.guide-ctrl.reset {
  left: 46px;
  width: 34px;
  height: 34px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
}

.guide-ctrl.play {
  left: 50%;
  margin-left: -25px;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--accent-contrast);
}

.guide-ctrl.stop {
  right: 46px;
  width: 34px;
  height: 34px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
}

/* --- Sections --- */

section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 44px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 12px;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

/* --- Benefit cards --- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.benefit-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 26px 24px;
}

.benefit-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--circle-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 1.1rem;
}

.benefit-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

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

.exercise-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.exercise-card-head .icon {
  margin-bottom: 0;
}

.exercise-detail-card h3 {
  font-size: 1.2rem;
}

.exercise-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--panel-border);
}

.exercise-meta-row {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
}

.exercise-meta-label {
  flex-shrink: 0;
  width: 86px;
  color: var(--text-dim);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 2px;
}

.exercise-meta-row span:last-child {
  color: var(--text-muted);
}

/* --- Exercise cards --- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.exercise-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 20px;
  padding: 28px;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.exercise-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  transform: translateY(-2px);
}

.exercise-card .tag {
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--circle-color);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
}

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

.exercise-card-top .icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--circle-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.exercise-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.exercise-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
}

.exercise-card .rhythm {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.exercise-card .go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--circle-color);
}

/* --- Blog cards --- */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-card {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 24px;
  text-decoration: none;
  color: var(--text-main);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.blog-card:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  transform: translateY(-2px);
}

.blog-card .date {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.blog-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-grow: 1;
}

.blog-card .read-more {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--circle-color);
}

/* --- CTA band --- */

.cta-band {
  text-align: center;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 56px 24px;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.cta-band p {
  margin: 0 0 28px;
  color: var(--text-muted);
}

/* --- Article --- */

.article-head {
  padding: 56px 0 32px;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.article-head .date {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.article-head h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 14px;
}

.article-head .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.article-body {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 72px;
}

.article-body p {
  color: var(--text-muted);
  font-size: 1.02rem;
  margin: 0 0 20px;
}

.article-body h2 {
  color: var(--text-main);
  font-size: 1.35rem;
  margin: 40px 0 16px;
}

.article-body h3 {
  color: var(--text-main);
  font-size: 1.1rem;
  margin: 28px 0 12px;
}

.article-body ul, .article-body ol {
  color: var(--text-muted);
  font-size: 1.02rem;
  padding-left: 22px;
  margin: 0 0 20px;
}

.article-body li {
  margin-bottom: 8px;
}

.article-body strong {
  color: var(--text-main);
}

.article-body blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  background: var(--panel-bg);
  border-radius: 0 12px 12px 0;
  color: var(--text-main);
  font-style: italic;
}

.article-callout {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 24px 26px;
  margin: 32px 0;
}

.article-callout h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.article-callout p {
  margin: 0;
}

.article-callout.is-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.article-callout.is-inline h3 {
  margin: 0;
}

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

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.sources {
  margin: 0 0 20px;
}

.sources-label {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
  font-weight: 600;
  margin: 0 0 8px;
}

.sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sources li {
  margin: 0;
  padding-left: 14px;
  position: relative;
  font-size: 0.85rem;
}

.sources li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.sources a {
  color: var(--text-muted);
  text-decoration-color: var(--panel-border);
}

.sources a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

.article-nav {
  max-width: 680px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.article-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.article-nav a:hover {
  color: var(--text-main);
}

/* --- Footer --- */

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

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer .foot-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer .foot-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer .foot-links a:hover {
  color: var(--text-main);
}

.site-footer .copy {
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* --- Responsive --- */

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

@media (max-width: 780px) {
  .hero-row {
    flex-direction: column;
    gap: 40px;
  }
  .hero-text {
    text-align: center;
    max-width: 100%;
  }
  .hero .hero-text .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .site-nav .wrap {
    height: 58px;
  }
  #navBurger {
    display: flex;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 19;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: color-mix(in srgb, var(--bg-top) 98%, transparent);
    border-bottom: 1px solid var(--panel-border);
    padding: 8px 20px 14px;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 11px 10px;
    border-radius: 10px;
    font-size: 0.95rem;
  }
  .hero {
    padding: 24px 0 48px;
  }
  section {
    padding: 40px 0;
  }
  .grid-3, .grid-2, .blog-grid {
    grid-template-columns: 1fr;
  }
  .site-footer .wrap {
    flex-direction: column;
    text-align: center;
  }
}
