/* SHIFT — Luminous Minimalist (aligné sur lib/core/theme/luminous_palette.dart) */
:root {
  --bg: #fdf9f5;
  --bg-elevated: #ffffff;
  --bg-muted: #f7f3ef;
  --text: #1c1b1a;
  --text-muted: #474741;
  --text-soft: #787770;
  --border: #e6e2de;
  --primary: #5f5e5a;
  --accent: #4ade80;
  --accent-warm: #c4795a;
  --shadow: 0 24px 64px rgba(28, 27, 26, 0.06);
  --shadow-sm: 0 8px 24px rgba(28, 27, 26, 0.05);
  --radius: 20px;
  --radius-sm: 12px;
  --max-width: 1120px;
  --nav-height: 72px;
  --font: "Manrope", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* —— Navigation —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(253, 249, 245, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text);
}

.brand-mark svg {
  display: block;
  width: 26px;
  height: 26px;
}

.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--text);
}

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

.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-select {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--bg-elevated) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23474741' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
  border-radius: 999px;
  padding: 0.45rem 1.85rem 0.45rem 0.85rem;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.lang-select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#lang-switcher-mobile {
  display: none;
}

.nav-menu-footer {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.nav-menu-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.nav-cta--menu {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1.25rem;
  text-align: center;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  color: var(--text);
  line-height: 0;
}

.menu-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
}

.menu-toggle-bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
}

/* —— Hero —— */
.hero {
  padding: 5.5rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 70%;
  background: radial-gradient(ellipse at 30% 20%, rgba(74, 222, 128, 0.12), transparent 55%),
    radial-gradient(ellipse at 80% 10%, rgba(196, 121, 90, 0.1), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.2);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  font-weight: 800;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--text-muted);
  max-width: 34rem;
  margin: 0 0 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

@keyframes shift-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  animation: shift-fade-in 0.85s ease forwards;
}

.fade-in--1 {
  animation-delay: 0.06s;
}

.fade-in--2 {
  animation-delay: 0.2s;
}

.fade-in--3 {
  animation-delay: 0.34s;
}

.fade-in--4 {
  animation-delay: 0.48s;
}

.fade-in--5 {
  animation-delay: 0.28s;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.85s ease var(--reveal-delay, 0s),
    transform 0.85s ease var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  [data-reveal],
  .hero-rhythm-path,
  .hero-rhythm-line,
  .hero-rhythm-mark {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
    stroke-dashoffset: 0 !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
}

.hero-visual {
  position: relative;
}

.hero-rhythm {
  position: relative;
  min-height: 340px;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: calc(var(--radius) + 4px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-rhythm-glow {
  position: absolute;
  inset: -30% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at 40% 30%, rgba(74, 222, 128, 0.18), transparent 55%),
    radial-gradient(ellipse at 75% 20%, rgba(196, 121, 90, 0.14), transparent 50%);
  pointer-events: none;
}

.hero-rhythm-curve {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 120px;
  margin-bottom: 1.25rem;
}

.hero-rhythm-path {
  stroke: var(--text);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: hero-draw-curve 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.35s forwards;
}

.hero-rhythm-feed {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.hero-rhythm-line {
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  width: fit-content;
  max-width: 100%;
  opacity: 0;
  transform: translateY(8px);
  animation: hero-line-in 0.65s ease forwards;
}

.hero-rhythm-line--1 {
  animation-delay: 0.9s;
}

.hero-rhythm-line--2 {
  animation-delay: 1.15s;
}

.hero-rhythm-line--3 {
  animation-delay: 1.4s;
}

.hero-rhythm-line--4 {
  animation-delay: 1.65s;
  color: var(--text);
  border-color: rgba(74, 222, 128, 0.35);
  background: rgba(74, 222, 128, 0.08);
}

.hero-rhythm-mark {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  opacity: 0;
  animation: hero-line-in 0.5s ease 0.55s forwards;
}

@keyframes hero-draw-curve {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes hero-line-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phone-mock {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 32px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.phone-screen {
  border-radius: 24px;
  background: linear-gradient(180deg, #f7f3ef 0%, #fdf9f5 100%);
  padding: 1.5rem;
  min-height: 420px;
  border: 1px solid var(--border);
}

.mock-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.mock-tab {
  flex: 1;
  text-align: center;
  padding: 0.55rem 0.35rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.mock-tab.active {
  background: var(--text);
  color: #fff;
}

.mock-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.mock-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
}

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

.mock-chip {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.15);
  color: #166534;
  font-size: 0.68rem;
  font-weight: 700;
}

/* —— Sections —— */
section {
  padding: 4.5rem 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 800;
}

.section-lead {
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 0 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

/* —— Pillars —— */
.pillars {
  background: var(--bg-muted);
  border-block: 1px solid var(--border);
}

.pillar-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.pillar {
  text-align: center;
  padding: 1.5rem 1rem;
}

.pillar-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.pillar h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.pillar p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* —— Science block —— */
.science-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.science-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.science-points li {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.science-points li:last-child {
  border-bottom: none;
}

.science-points strong {
  display: block;
  margin-bottom: 0.15rem;
}

.science-points span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.science-badge {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.science-badge h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
}

.science-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  font-size: 0.88rem;
}

.science-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.science-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-warm), var(--accent));
}

/* —— Pricing —— */
.pricing {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 45%, var(--bg) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.pricing-grid--premium {
  grid-template-columns: repeat(3, 1fr);
  max-width: 960px;
  margin-inline: auto;
}

.pricing-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem 1.35rem 1.35rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.pricing-card--featured {
  border-color: var(--text);
  box-shadow: var(--shadow);
  background: linear-gradient(165deg, #fff 0%, #faf6f2 55%, #f3efe9 100%);
  transform: scale(1.03);
  z-index: 1;
}

.pricing-card--featured:hover {
  transform: scale(1.03) translateY(-3px);
}

.pricing-badge {
  position: absolute;
  top: -0.65rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-badge--save {
  background: linear-gradient(135deg, var(--accent-warm), #d4956f);
}

.pricing-plan-name {
  margin: 0.5rem 0 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.pricing-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.pricing-period {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.pricing-desc {
  margin: 0 0 1.1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  min-height: 2.6rem;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  flex: 1;
}

.pricing-features li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.84rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
}

.pricing-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.pricing-features--muted li {
  opacity: 0.55;
}

.pricing-features--muted li::before {
  content: "·";
  color: var(--text-soft);
}

.pricing-cta {
  width: 100%;
  margin-top: auto;
}

.pricing-cta--soon {
  background: var(--bg-muted);
  color: var(--text-muted);
  border: 1px dashed var(--border);
  cursor: default;
  pointer-events: none;
}

.pricing-cta--soon:hover {
  transform: none;
  box-shadow: none;
}

.pricing-disclaimer {
  margin: 2rem auto 0;
  max-width: 42rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* —— Marketing reflection —— */
.reflect-section {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-muted) 50%, var(--bg) 100%);
}

.reflect-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.reflect-block {
  margin-top: 2rem;
}

.reflect-block + .reflect-block {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.reflect-q-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.reflect-q-hint {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.reflect-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.reflect-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.reflect-chip:hover {
  border-color: var(--primary);
  color: var(--text);
}

.reflect-chip--active {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.reflect-chip--active:hover {
  color: #fff;
}

.reflect-insight {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.reflect-insight-inner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.reflect-insight-icon {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--bg-muted);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.reflect-insight h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

.reflect-insight-body p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.reflect-insight-body p:last-child {
  margin-bottom: 0;
}

.reflect-insight-bridge {
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.55;
}

.reflect-insight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.reflect-insight-actions .btn {
  flex: 1 1 auto;
  justify-content: center;
  min-width: 10rem;
}

@media (max-width: 900px) {
  .reflect-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .reflect-insight {
    position: static;
  }
}

/* —— CTA —— */
.cta-band {
  background: var(--text);
  color: #fff;
  border-radius: calc(var(--radius) + 4px);
  padding: 3rem;
  text-align: center;
  margin: 2rem 0 0;
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 32rem;
  margin-inline: auto;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--text);
}

/* —— Trust / privacy marketing —— */
.trust-section {
  padding: 5rem 0;
  background: var(--bg-muted);
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.trust-badge {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.trust-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.trust-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--bg-muted);
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.trust-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

.trust-footer {
  margin: 2rem 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.6;
}

.trust-footer a {
  display: inline-block;
  margin-left: 0.35rem;
  font-weight: 700;
}

@media (max-width: 700px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Footer —— */
.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 22rem;
  margin: 0.75rem 0 0;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

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

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-soft);
}

/* —— Legal pages —— */
.legal-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}

.legal-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.legal-meta {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.legal-content {
  max-width: 46rem;
  padding-bottom: 4rem;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.legal-content h3 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 1.25rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--bg-muted);
  font-weight: 700;
}

.legal-content a {
  color: var(--primary);
  font-weight: 600;
}

.legal-toc {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.legal-toc h2 {
  margin: 0 0 0.75rem !important;
  font-size: 0.85rem !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
}

.legal-toc a {
  font-size: 0.9rem;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero-grid,
  .science-grid {
    grid-template-columns: 1fr;
  }

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

  .pricing-grid,
  .pricing-grid--premium {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-card--featured {
    transform: none;
    grid-column: span 2;
  }

  .pricing-card--featured:hover {
    transform: translateY(-3px);
  }

  .pillar-list {
    grid-template-columns: 1fr 1fr;
  }

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

  .hero-visual {
    order: -1;
    max-width: 360px;
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .nav-actions {
    display: none;
  }

  #lang-switcher-mobile {
    display: block;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem 1.25rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.65rem 0;
  }

  .features-grid,
  .pillar-list,
  .footer-grid,
  .pricing-grid,
  .pricing-grid--premium {
    grid-template-columns: 1fr;
  }

  .pricing-card--featured {
    grid-column: auto;
  }

  .nav-actions .lang-select {
    display: none;
  }

  #lang-switcher-mobile {
    display: block;
  }

  #lang-switcher-mobile .lang-select {
    width: 100%;
    padding: 0.65rem 1.85rem 0.65rem 0.95rem;
    font-size: 0.9rem;
  }

  .nav-links .nav-menu-footer .nav-cta--menu {
    box-sizing: border-box;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .cta-band {
    padding: 2rem 1.25rem;
  }

  .chronotype-promo-grid {
    grid-template-columns: 1fr;
  }

  .quiz-container {
    padding-top: 2rem;
    padding-bottom: 3rem;
  }
}

/* —— Chronotype promo (landing) —— */
.chronotype-promo {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg) 100%);
}

.chronotype-promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.chrono-preview-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.chrono-preview-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.chrono-preview-type {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.chrono-preview-metrics {
  display: grid;
  gap: 0.85rem;
  margin: 0;
}

.chrono-preview-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
}

.chrono-preview-metrics dt {
  color: var(--text-muted);
  font-weight: 500;
}

.chrono-preview-metrics dd {
  margin: 0;
  font-weight: 700;
  color: var(--text);
}

/* —— Chronotype quiz page —— */
.quiz-page .quiz-main {
  min-height: calc(100vh - var(--nav-height) - 120px);
}

.quiz-container {
  max-width: 640px;
  padding: 4rem 0 5rem;
}

.quiz-panel[hidden] {
  display: none !important;
}

.quiz-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.quiz-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.quiz-benefits {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.quiz-benefits li {
  margin-bottom: 0.5rem;
}

.quiz-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.quiz-start-btn {
  min-width: 220px;
}

.quiz-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.quiz-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.quiz-progress-bar span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.quiz-progress-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-soft);
  white-space: nowrap;
}

.quiz-question {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 1.5rem;
}

.quiz-options {
  display: grid;
  gap: 0.75rem;
}

.quiz-option {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.quiz-option:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.quiz-result-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  margin-bottom: 1.5rem;
}

.quiz-result-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
}

.quiz-result-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin: 0 0 0.35rem;
}

.quiz-result-type {
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 1rem;
}

.quiz-result-desc {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.quiz-metrics {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  text-align: left;
}

.quiz-metrics div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.quiz-metrics dt {
  color: var(--text-muted);
  font-weight: 500;
}

.quiz-metrics dd {
  margin: 0;
  font-weight: 700;
}

.quiz-result-cta-lead {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
}

.quiz-result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.quiz-result-actions .btn {
  min-width: min(100%, 280px);
  justify-content: center;
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* —— Knowledge library —— */
.knowledge-promo {
  padding: 5rem 0;
  background: var(--bg-muted);
  border-block: 1px solid var(--border);
}

.knowledge-promo-cta {
  margin: 2rem 0 0;
  text-align: center;
}

.knowledge-main {
  padding: 2.5rem 0 4rem;
}

.knowledge-container {
  max-width: 720px;
}

.knowledge-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--primary);
  background: rgba(95, 94, 90, 0.08);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.knowledge-hub-title {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
}

.knowledge-hub-lead {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.knowledge-hub-note {
  margin: 0 0 2rem;
  padding: 1rem 1.15rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  line-height: 1.55;
}

.knowledge-cards {
  display: grid;
  gap: 1.25rem;
}

.knowledge-cards--home {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.knowledge-card-meta > span:first-child {
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.knowledge-card--deepwork {
  border-top: 3px solid #7c6cab;
}

.knowledge-card--reward {
  border-top: 3px solid var(--accent);
}

.knowledge-card--break {
  border-top: 3px solid #5b8cab;
}

.knowledge-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.knowledge-card--sleep {
  border-top: 3px solid #5b6cab;
}

.knowledge-card--trigger {
  border-top: 3px solid var(--accent-warm);
}

.knowledge-card-tag {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-soft);
}

.knowledge-card-head h2,
.knowledge-card-head h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
}

.knowledge-card-teaser {
  margin: 0;
  flex: 1;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.knowledge-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-soft);
  font-weight: 600;
}

.knowledge-card-link {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.knowledge-card-link:hover {
  text-decoration: underline;
}

/* Article pages */
.article-container {
  max-width: 680px;
}

.article-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
}

.article-back:hover {
  color: var(--text);
  text-decoration: underline;
}

.article-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
}

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

.article-read-time {
  margin: 0 0 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-soft);
}

.article-intro {
  margin: 0 0 2rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--text);
}

.article-section {
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.article-section h2 {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
}

.article-section-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(95, 94, 90, 0.08);
  border-radius: 8px;
}

.article-section p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.article-bridge {
  margin: 2rem 0;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-muted));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.article-bridge h3 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 800;
}

.article-bridge p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.article-sources {
  margin-top: 2.5rem;
  padding: 1.5rem 1.65rem;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.article-sources h3 {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.article-sources ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: source;
}

.article-sources li {
  counter-increment: source;
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.55;
}

.article-sources li::before {
  content: counter(source) ".";
  position: absolute;
  left: 0;
  font-style: normal;
  font-weight: 700;
  color: var(--text-soft);
}

@media (max-width: 768px) {
  .knowledge-cards--home {
    grid-template-columns: 1fr;
  }
}

/* —— Article contributions (Wikipedia-style) —— */
.article-contribute {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.article-contribute-details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  overflow: hidden;
}

.article-contribute-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  user-select: none;
}

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

.article-contribute-summary::before {
  content: "✎ ";
  opacity: 0.55;
}

.article-contribute-details[open] .article-contribute-summary {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.article-contribute-inner {
  padding: 1.35rem 1.25rem 1.5rem;
  background: var(--bg-elevated);
}

.article-contribute-title {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.article-contribute-lead {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.article-contribute-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.article-contribute-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.article-contribute-fieldset {
  margin: 0;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-contribute-fieldset legend {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.article-contribute-radio {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.article-contribute-radio input {
  margin-top: 0.2rem;
  accent-color: var(--text);
}

.article-contribute-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.article-contribute-label textarea,
.article-contribute-label input[type="text"],
.article-contribute-label input[type="email"] {
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  resize: vertical;
}

.article-contribute-label textarea:focus,
.article-contribute-label input:focus {
  outline: 2px solid rgba(74, 222, 128, 0.35);
  outline-offset: 1px;
}

.article-contribute-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.article-contribute-submit {
  align-self: flex-start;
}

.article-contribute-status {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.5;
}

.article-contribute-status.is-success {
  color: #166534;
}

.article-contribute-status.is-error {
  color: #9a3412;
}
