/* MeusVere landing — brand teal, not purple / not cream-terracotta */
:root {
  --brand: 15 118 96;
  --brand-deep: 6 78 59;
  --ink: 15 32 28;
  --mute: 70 90 84;
  --paper: 244 250 247;
  --paper-2: 232 242 237;
  --line: 15 118 96 / 0.14;
  --on: 255 255 255;
  --radius: 0.85rem;
  --font-display: "Fraunces", "Georgia", serif;
  --font: "Nunito Sans", "Segoe UI", sans-serif;
  --max: 68rem;
  --app: https://app.meusvere.com;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: rgb(var(--ink));
  background:
    radial-gradient(1200px 600px at 10% -10%, rgb(var(--brand) / 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgb(52 180 140 / 0.1), transparent 50%),
    linear-gradient(180deg, rgb(var(--paper)) 0%, rgb(var(--paper-2)) 40%, rgb(var(--paper)) 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: rgb(var(--brand));
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: rgb(var(--brand-deep));
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Top bar —— */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  animation: fade-down 0.7s ease both;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-lockup img {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
}

.brand-lockup span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.lang {
  display: inline-flex;
  border: 1px solid rgb(var(--line));
  border-radius: 999px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.55);
}

.lang button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  cursor: pointer;
  color: rgb(var(--mute));
}

.lang button.is-on {
  background: rgb(var(--brand));
  color: rgb(var(--on));
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font: inherit;
  font-weight: 750;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: rgb(var(--brand));
  color: rgb(var(--on));
  box-shadow: 0 10px 28px rgb(var(--brand) / 0.28);
}

.btn-primary:hover {
  background: rgb(var(--brand-deep));
  color: rgb(var(--on));
}

.btn-ghost {
  background: rgb(255 255 255 / 0.65);
  border-color: rgb(var(--line));
  color: rgb(var(--ink));
}

.btn-ghost:hover {
  background: #fff;
  color: rgb(var(--ink));
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.9rem;
}

/* —— Hero —— */
.hero {
  padding: 2.5rem 0 3.5rem;
  min-height: min(78vh, 40rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 9vw, 5.25rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin: 0 0 1.25rem;
  color: rgb(var(--brand-deep));
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
  max-width: 22ch;
  animation: rise 0.85s 0.08s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero .lead {
  margin: 0 0 1.75rem;
  max-width: 36ch;
  color: rgb(var(--mute));
  font-size: 1.05rem;
  animation: rise 0.85s 0.14s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  animation: rise 0.85s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* —— Sections —— */
.section {
  padding: 2.75rem 0;
}

.section-head {
  margin-bottom: 1.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: rgb(var(--mute));
  max-width: 40rem;
}

.modules {
  display: grid;
  gap: 1.25rem 1.75rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: mod;
}

@media (min-width: 640px) {
  .modules {
    grid-template-columns: 1fr 1fr;
  }
}

.modules li {
  counter-increment: mod;
  padding-top: 0.35rem;
  border-top: 1px solid rgb(var(--line));
  animation: rise 0.7s ease both;
}

.modules li:nth-child(1) { animation-delay: 0.05s; }
.modules li:nth-child(2) { animation-delay: 0.1s; }
.modules li:nth-child(3) { animation-delay: 0.15s; }
.modules li:nth-child(4) { animation-delay: 0.2s; }

.modules .mod-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
  margin: 0 0 0.25rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.modules .mod-name::before {
  content: counter(mod, decimal-leading-zero);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 800;
  color: rgb(var(--brand));
  letter-spacing: 0.04em;
}

.modules p {
  margin: 0;
  color: rgb(var(--mute));
  font-size: 0.95rem;
}

/* —— Free —— */
.free-band {
  margin: 1rem 0 2rem;
  padding: 2rem 0;
  border-block: 1px solid rgb(var(--line));
  background:
    linear-gradient(90deg, rgb(var(--brand) / 0.06), transparent 40%, rgb(var(--brand) / 0.05));
}

.free-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.free-band p {
  margin: 0 0 1.25rem;
  color: rgb(var(--mute));
  max-width: 38rem;
}

/* —— Legal pages —— */
.legal {
  padding: 1.5rem 0 3rem;
  max-width: 42rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.35rem;
}

.legal .meta {
  color: rgb(var(--mute));
  font-size: 0.9rem;
  margin: 0 0 1.75rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 1.5rem 0 0.4rem;
}

.legal p,
.legal li {
  color: rgb(var(--mute));
  font-size: 0.98rem;
}

.legal ul {
  padding-left: 1.2rem;
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid rgb(var(--line));
  margin-top: 1rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

.footer-links a {
  color: rgb(var(--mute));
  text-decoration: none;
}

.footer-links a:hover {
  color: rgb(var(--brand));
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgb(var(--mute));
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-0.4rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
