:root {
  /* Mirrors Ausculte/src/theme/colors.ts */
  --bg: #f2f5f0;
  --card: #ffffff;
  --text: #1a2d09;
  --muted: #4a5745;
  --warm: #5e6b58;
  --forest: #1a2d09;
  --brand: #2c6322;
  --lime: #c2ff60;
  --coral: #ff5a50;
  --teal: #8fd8c8;
  --on-dark-muted: #cfe0c6;
  --shadow: 0 10px 28px rgba(26, 36, 32, 0.08);
  --shadow-lg: 0 22px 48px rgba(26, 36, 32, 0.14);
  --radius: 24px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: hidden;
}

/* Same four glows as the app's MeshBackground */
.mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 5%, rgba(143, 216, 200, 0.45), transparent 45%),
    radial-gradient(circle at 95% 12%, rgba(255, 90, 80, 0.14), transparent 38%),
    radial-gradient(circle at 0% 55%, rgba(44, 99, 34, 0.08), transparent 40%),
    radial-gradient(circle at 70% 100%, rgba(194, 255, 96, 0.35), transparent 50%),
    var(--bg);
}

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

a:hover {
  text-decoration: underline;
}

/* —— Header —— */
.site-header {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav a {
  color: var(--muted);
}

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

.nav-cta {
  background: var(--coral);
  color: #fff !important;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  opacity: 0.92;
}

main {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

/* —— Hero —— */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 3rem;
  align-items: center;
  padding: 2.5rem 0 4.5rem;
}

.pill {
  display: inline-block;
  background: rgba(143, 216, 200, 0.45);
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  animation: rise 0.6s ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  animation: rise 0.7s 0.06s ease both;
}

.hero h1 em {
  font-style: normal;
}

.hero h1 .green {
  color: var(--brand);
}

.hero h1 .coral {
  color: var(--coral);
  display: block;
}

.hero-lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 30rem;
  margin-bottom: 1.75rem;
  animation: rise 0.7s 0.12s ease both;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.7s 0.18s ease both;
}

.store {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 160px;
  padding: 0.7rem 1.25rem;
  border-radius: 16px;
  line-height: 1.15;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.store-small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.8;
}

.store-big {
  font-size: 1.1rem;
  font-weight: 700;
}

.store-dark {
  background: var(--forest);
  color: #fff;
}

.store-light {
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
}

.store-lime {
  background: var(--lime);
  color: var(--forest);
}

.store-onDark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.store-web {
  background: var(--coral);
  color: #fff;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 22rem);
  padding: 1.15rem 2.25rem;
  border-radius: 18px;
  background: var(--coral);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 14px 32px rgba(255, 90, 80, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  animation: rise 0.7s 0.18s ease both;
}

.hero-cta::after {
  content: '→';
  margin-left: 0.6rem;
  transition: transform 0.15s ease;
}

.hero-cta:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(255, 90, 80, 0.42);
}

.hero-cta:hover::after {
  transform: translateX(3px);
}

.hero-note {
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--warm);
  animation: rise 0.7s 0.24s ease both;
}

/* Phone mock: CSS only, no screenshots */
.hero-visual {
  position: relative;
  justify-self: center;
  animation: float-in 0.9s 0.15s ease both;
}

.phone {
  width: 290px;
  background: var(--card);
  border: 10px solid var(--forest);
  border-radius: 44px;
  padding: 2.4rem 1.1rem 1.4rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  border-radius: 12px;
  background: var(--forest);
}

.mock-kicker {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm);
}

.mock-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.2;
  margin: 0.2rem 0 0.9rem;
}

.mock-bars {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 130px;
  background: var(--bg);
  border-radius: 18px;
  padding: 0.9rem 0.6rem 0.5rem;
  margin-bottom: 0.8rem;
}

.mock-bar {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 0.35rem;
}

.bar {
  width: 34px;
  height: var(--h);
  border-radius: 10px;
  animation: grow 1s 0.5s ease both;
  transform-origin: bottom;
}

.bar-logos {
  background: var(--lime);
}

.bar-ethos {
  background: var(--teal);
}

.bar-pathos {
  background: var(--coral);
}

.bar-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--warm);
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--bg);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  margin-top: 0.45rem;
}

.mock-row strong {
  color: var(--text);
  font-weight: 700;
}

.mock-row .ok {
  color: var(--brand);
}

.mock-row .warn {
  color: var(--coral);
}

.float {
  position: absolute;
  background: var(--card);
  border-radius: 14px;
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.float-top {
  top: 40px;
  right: -70px;
  animation: bob 4s ease-in-out infinite;
}

.float-bottom {
  bottom: 60px;
  left: -80px;
  color: var(--brand);
  animation: bob 4s 1.2s ease-in-out infinite;
}

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

.section h2,
.compare h2,
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 0.9rem;
}

.section h2 {
  margin-bottom: 1.75rem;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: -0.9rem 0 2rem;
}

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.1rem;
}

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

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

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

/* Cards: solid white, no outline, soft shadow */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

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

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  font-weight: 700;
  margin-bottom: 1rem;
}

.icon-lime {
  background: var(--lime);
  color: var(--forest);
}

.icon-teal {
  background: var(--teal);
  color: var(--forest);
}

.icon-coral {
  background: var(--coral);
  color: #fff;
}

/* Core */
.core {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.core .section-lead {
  margin-top: -0.9rem;
}

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

.chip {
  background: var(--card);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.live {
  background: var(--forest);
  color: #fff;
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}

.live-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--on-dark-muted);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  animation: blink 1.6s ease-in-out infinite;
}

.live-time {
  margin-left: auto;
}

.live-score {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 600;
  color: var(--lime);
  line-height: 1;
  margin: 1.1rem 0 1rem;
}

.live-score span {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--on-dark-muted);
}

.live-row {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.92rem;
  color: var(--on-dark-muted);
}

.live-row strong {
  color: #fff;
}

.live-next {
  margin-top: 1.1rem;
  background: rgba(194, 255, 96, 0.12);
  border-radius: 16px;
  padding: 0.9rem 1rem;
}

.live-next-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lime);
}

.live-next p {
  margin-top: 0.3rem;
  font-size: 0.95rem;
}

/* Steps */
.step-n {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--lime);
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Pillars */
.pillar-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.tag-logos {
  background: var(--lime);
  color: var(--forest);
}

.tag-ethos {
  background: var(--teal);
  color: var(--forest);
}

.tag-pathos {
  background: var(--coral);
  color: #fff;
}

.pillar p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--text);
}

/* Exercises */
.ex {
  padding: 1.35rem 1.3rem;
}

.ex h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
}

.ex p {
  font-size: 0.92rem;
}

/* Compare: dark hero card like the app's score card */
.compare {
  background: var(--forest);
  color: #fff;
  border-radius: 32px;
  padding: 3rem 2.25rem;
  margin: 1rem 0;
  box-shadow: var(--shadow-lg);
}

.compare-lead {
  color: var(--on-dark-muted);
  margin-bottom: 1.75rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare-card {
  border-radius: 22px;
  padding: 1.5rem;
}

.compare-old {
  background: rgba(255, 255, 255, 0.06);
}

.compare-new {
  background: var(--card);
  color: var(--text);
}

.compare-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.compare-old h3 {
  color: var(--on-dark-muted);
}

.compare-card ul {
  list-style: none;
}

.compare-card li {
  position: relative;
  padding: 0.4rem 0 0.4rem 1.6rem;
  font-size: 0.97rem;
}

.compare-old li {
  color: var(--on-dark-muted);
}

.compare-new li {
  color: var(--muted);
}

.compare-old li::before,
.compare-new li::before {
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
}

.compare-old li::before {
  content: '×';
  background: rgba(255, 90, 80, 0.2);
  color: var(--coral);
}

.compare-new li::before {
  content: '✓';
  background: var(--lime);
  color: var(--forest);
}

/* Pricing */
.price {
  position: relative;
  padding-top: 2rem;
}

.price h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.badge {
  position: absolute;
  top: -0.7rem;
  right: 1.25rem;
  background: var(--forest);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.badge-coral {
  background: var(--coral);
}

.price-featured {
  box-shadow: var(--shadow-lg);
}

.amount {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 600;
  margin: 0.4rem 0 0.2rem;
}

.amount .per {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--warm);
}

.price-desc {
  margin-bottom: 1rem;
}

.price ul {
  list-style: none;
}

.price li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.7rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.price li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--coral);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* Final CTA */
.cta-final {
  background: var(--forest);
  color: #fff;
  border-radius: 32px;
  padding: 3.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-final p {
  color: var(--on-dark-muted);
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 0 auto 1.75rem;
}

.cta-final .store-row {
  justify-content: center;
}

.cta-final p.cta-apps {
  font-size: 0.9rem;
  margin: 1.75rem auto 0.85rem;
}

/* Privacy */
.privacy {
  max-width: 44rem;
}

.privacy ul {
  margin: 1rem 0 0 1.1rem;
  color: var(--muted);
}

.privacy li {
  margin-bottom: 0.4rem;
}

.privacy-links {
  margin-top: 1rem;
}

/* —— Footer —— */
.site-footer {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  color: var(--warm);
  font-size: 0.88rem;
}

.site-footer nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* —— Legal pages —— */
.wrap {
  width: min(960px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.wrap .site-header,
.wrap .site-footer {
  width: 100%;
}

.legal {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  margin: 1rem 0 2rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.legal .meta {
  color: var(--warm);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.75rem 0 0.6rem;
}

.legal p,
.legal li {
  color: var(--muted);
  max-width: 42rem;
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

/* —— Guide articles —— */
.article {
  padding: 2.75rem clamp(1.25rem, 4vw, 3rem);
}

.article h1 {
  font-size: clamp(2rem, 5vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.article h2 {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
  margin-top: 2.5rem;
}

.article h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.25rem 0 0.4rem;
}

.article .article-lead {
  font-size: 1.15rem;
  color: var(--text);
}

.article ol.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 1.5rem;
}

.article ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1.1rem 1rem 3.4rem;
  background: rgba(143, 216, 200, 0.18);
  border-radius: 16px;
  max-width: none;
  margin: 0;
}

.article ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}

.article ol.steps strong {
  color: var(--text);
}

.cta-box {
  background: var(--forest);
  color: #fff;
  border-radius: 24px;
  padding: 1.75rem;
  margin: 2rem 0;
  text-align: center;
}

.legal .cta-box p {
  color: var(--on-dark-muted);
  margin: 0 auto 1.1rem;
}

.cta-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
  color: #fff;
}

.article details {
  border-top: 1px solid rgba(26, 36, 32, 0.1);
  padding: 0.9rem 0;
}

.article details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
}

.article details p {
  margin-top: 0.6rem;
}

.lang-switch {
  font-size: 0.88rem;
  color: var(--warm);
  margin-bottom: 1.5rem;
}

.lang-switch a + a::before {
  content: '·';
  margin: 0 0.5rem;
  color: var(--warm);
}

/* —— Motion —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes grow {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

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

  .float-top {
    right: -20px;
  }

  .float-bottom {
    left: -20px;
  }
}

@media (max-width: 880px) {
  .hero,
  .core {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero {
    padding-top: 1rem;
  }

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

  .compare,
  .cta-final {
    padding: 2.25rem 1.25rem;
  }
}

@media (max-width: 560px) {
  .nav a:not(.nav-cta) {
    display: none;
  }

  .hero-cta {
    width: 100%;
  }

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

  .phone {
    width: 260px;
  }

  .float-top {
    right: -10px;
    top: -14px;
  }

  .float-bottom {
    left: -10px;
    bottom: -14px;
  }
}

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