:root {
  --bg0: #120a0c;
  --bg1: #1a0f12;
  --bg2: #2a151c;
  --ink: #f3e8e4;
  --muted: #b9a39c;
  --amber: #c9a46a;
  --champagne: #d4b896;
  --burgundy: #6b2438;
  --burgundy-deep: #3d1522;
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia,
    serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: min(40rem, 100%);
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --hero-copy: min(22rem, 100%);
}

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

html {
  color-scheme: dark;
  background: var(--bg0);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background-color: var(--bg0);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -10%, var(--burgundy-deep), transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 100%, rgba(107, 36, 56, 0.35), transparent 50%),
    linear-gradient(165deg, var(--bg1), var(--bg0));
  /* fixed bg janks mobile Safari; enable on desktop below */
  background-attachment: scroll;
  line-height: 1.55;
  overflow-x: clip;
}

.hero {
  position: relative;
  min-height: 100dvh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--pad) + env(safe-area-inset-top, 0)) var(--pad)
    calc(4.25rem + env(safe-area-inset-bottom, 0px));
  animation: hero-in 0.9s ease both;
}

.hero-mark {
  display: block;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 0 0.15rem;
  object-fit: contain;
  /* Transparent mark-hero.png — no black plate / blend hack */
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(3.4rem, 14vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  color: var(--champagne);
}

.hero-tagline,
.hero-en {
  margin: 0.5rem 0 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0.85;
}

.hero-lead {
  margin: 0.85rem 0 0;
  max-width: var(--hero-copy);
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 0.9rem + 1.2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.3;
  color: var(--ink);
}

.hero-sub {
  margin: 0.75rem 0 0;
  max-width: var(--hero-copy);
  width: 100%;
  color: var(--muted);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.1rem);
}

.hero-what {
  margin: 0.85rem 0 0;
  max-width: var(--hero-copy);
  width: 100%;
  color: var(--muted);
  font-size: clamp(0.92rem, 0.88rem + 0.25vw, 1.02rem);
  line-height: 1.45;
}

.hero-cta {
  margin: 1.75rem 0 0;
  width: min(100%, 20rem);
}

.hero-cta-note {
  margin: 0.55rem 0 0;
  max-width: var(--hero-copy);
  width: 100%;
  color: var(--amber);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.35rem 0.75rem;
  color: var(--amber);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  opacity: 1;
  outline: none;
}

.hero-scroll-label {
  line-height: 1.2;
}

.hero-scroll-chevron {
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0;
  animation: hero-scroll-nudge 1.6s ease-in-out infinite;
}

@keyframes hero-scroll-nudge {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

.modos-note {
  margin-top: 1rem !important;
}

.modos-note a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
}

.modos-note a:hover {
  text-decoration: underline;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease,
    box-shadow 0.15s ease, border-color 0.15s ease;
}

.hero-cta .btn,
.cta-final .btn,
.share-row .btn,
.sticky-cta-btn {
  width: min(100%, 20rem);
}

.btn-primary {
  background: var(--amber);
  color: #1a0f12;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  background: #d4b37a;
}

.btn-primary:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.btn-ghost {
  background: transparent;
  color: var(--amber);
  border: 1px solid rgba(201, 164, 106, 0.35);
  box-shadow: none;
  cursor: pointer;
  font: inherit;
}

.btn-ghost:hover {
  background: rgba(201, 164, 106, 0.08);
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

main {
  width: min(100%, var(--measure));
  margin: 0 auto;
  padding: 0 var(--pad) 3rem;
}

.section {
  padding: 2.75rem 0 0;
  animation: section-in 0.7s ease both;
  animation-timeline: view();
  animation-range: entry 0% cover 30%;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  line-height: 1.15;
}

.steps-intro {
  margin: 0 0 1rem !important;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.section p,
.steps,
.paths,
.why,
.pain,
.trust {
  margin: 0;
  color: var(--muted);
}

.section p strong,
.steps strong,
.paths strong {
  color: var(--ink);
  font-weight: 500;
}

.steps,
.paths,
.why,
.pain,
.trust {
  padding-left: 1.15rem;
  display: grid;
  gap: 0.85rem;
}

.trust {
  list-style: none;
  padding-left: 0;
}

.trust li {
  position: relative;
  padding-left: 1.35rem;
}

.trust li::before {
  content: "◆";
  position: absolute;
  left: 0;
  color: var(--amber);
  opacity: 0.75;
  font-size: 0.65em;
  top: 0.35em;
}

.ritmo-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 0.35rem;
}

.ritmo-label {
  margin: 0 0 0.65rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
}

.ritmo-lead {
  margin: 0 0 0.75rem !important;
  font-size: 0.95rem;
}

.paths-compact {
  gap: 0.55rem;
}

.share-row {
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
}

.share-status {
  color: var(--amber);
  font-size: 0.88rem;
}

.pain {
  list-style: none;
  padding-left: 0;
}

.pain li {
  position: relative;
  padding-left: 1.35rem;
}

.pain li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: var(--amber);
  opacity: 0.7;
  font-size: 0.85em;
}

.bridge {
  margin: 1.35rem 0 0 !important;
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--amber);
  background: rgba(201, 164, 106, 0.06);
  border-radius: 0 0.65rem 0.65rem 0;
  color: var(--ink) !important;
  font-size: 1.02rem;
  line-height: 1.5;
}

.compare {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.compare-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(201, 164, 106, 0.14);
  font-size: 0.9rem;
  color: var(--muted);
}

.compare-row > :last-child {
  color: var(--ink);
  font-weight: 500;
}

.compare-head {
  background: transparent;
  border-color: transparent;
  padding-bottom: 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
}

.compare-head > * {
  color: var(--amber) !important;
  font-weight: 500;
}

@media (max-width: 35.99rem) {
  .compare-head {
    display: none;
  }

  .compare-row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding: 0.8rem 0.85rem;
  }

  .compare-row > :first-child {
    font-size: 0.8rem;
    text-decoration: line-through;
    text-decoration-color: rgba(185, 163, 156, 0.55);
    opacity: 0.7;
  }

  .compare-row > :last-child {
    font-size: 0.95rem;
  }
}

.ritmo-levels {
  margin-top: 0.35rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(201, 164, 106, 0.18);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.15rem 0.85rem 0.15rem;
}

.ritmo-levels summary {
  cursor: pointer;
  list-style: none;
  padding: 0.75rem 0;
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}

.ritmo-levels summary::-webkit-details-marker {
  display: none;
}

.ritmo-levels summary::after {
  content: "+";
  float: right;
  color: var(--amber);
  font-weight: 400;
}

.ritmo-levels[open] summary::after {
  content: "–";
}

.ritmo-levels .paths {
  margin: 0 0 0.85rem;
}

.previews {
  display: grid;
  gap: 1.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 36rem) {
  .previews {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
  }
}

.preview {
  margin: 0;
  text-align: center;
}

.preview figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.phone {
  position: relative;
  width: min(100%, 14.5rem);
  margin: 0 auto;
  padding: 0.55rem;
  border-radius: 1.35rem;
  background: linear-gradient(160deg, #2a151c, #120a0c);
  border: 1px solid rgba(201, 164, 106, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.phone-notch {
  width: 2.6rem;
  height: 0.28rem;
  margin: 0.15rem auto 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 17.5rem;
  padding: 0.65rem 0.6rem 0.7rem;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(107, 36, 56, 0.35), transparent 70%),
    #160c10;
  text-align: left;
}

.phone-brand {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.85;
}

.phone-brand-mark {
  width: 0.85rem;
  height: 0.85rem;
  object-fit: contain;
}

.phone-eyebrow {
  margin: 0;
  text-align: center;
  font-size: 0.68rem;
  color: var(--amber);
}

.phone-card,
.phone-dice-face {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 0.75rem 0.7rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(201, 164, 106, 0.35);
  background: linear-gradient(160deg, rgba(42, 21, 28, 0.95), rgba(18, 10, 12, 0.98));
}

.phone-dice-face {
  position: relative;
  padding-top: 1.2rem;
}

.phone-ref {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  font-size: 0.58rem;
  color: rgba(243, 232, 228, 0.45);
}

.phone-card-text,
.phone-dice-text {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ink);
  text-align: center;
}

.phone-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone-dots {
  letter-spacing: 0.12em;
  color: var(--amber);
}

.phone-meta-chip {
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(201, 164, 106, 0.3);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
}

.phone-meta-val {
  margin: 0;
  font-size: 0.78rem;
  color: var(--ink);
  text-align: center;
}

.phone-signals {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.25rem;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.phone-signals-main {
  color: var(--amber);
  font-weight: 600;
}

.faq {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.faq-item {
  border-radius: 0.75rem;
  border: 1px solid rgba(201, 164, 106, 0.18);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.15rem 0.85rem;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 0;
  font-weight: 500;
  color: var(--ink);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--amber);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 0 0 0.9rem !important;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 0.65rem var(--pad) calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(
    180deg,
    transparent,
    rgba(18, 10, 12, 0.92) 28%,
    rgba(18, 10, 12, 0.98)
  );
  pointer-events: none;
}

.sticky-cta[hidden] {
  display: none !important;
}

.sticky-cta-btn {
  pointer-events: auto;
  width: min(100%, 20rem);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

body.has-sticky-cta {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

.cta-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  text-align: center;
  padding-top: 3.5rem;
}

.cta-final > p {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0 !important;
}

.cta-final-line {
  margin: 0 0 0.4rem;
  max-width: 28rem;
  width: 100%;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  color: var(--ink);
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  justify-content: center;
  align-items: center;
  padding: 2rem var(--pad) calc(2rem + env(safe-area-inset-bottom, 0));
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer-brand {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--champagne);
  opacity: 0.9;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.15rem;
  justify-content: center;
  font-size: 0.88rem;
}

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

.footer-nav a:hover,
.footer-nav a:focus-visible {
  text-decoration: underline;
  outline: none;
}

.footer a {
  color: var(--amber);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

/* —— Responsive: phone / tablet / desktop —— */

@media (max-width: 22.5rem) {
  .hero-title {
    font-size: clamp(3rem, 15vw, 3.75rem);
  }

  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .faq-item summary,
  .ritmo-levels summary {
    font-size: 0.92rem;
    padding-right: 1.25rem;
  }
}

@media (min-width: 36rem) {
  .ritmo-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 1.75rem;
    align-items: start;
  }

  .ritmo-block:last-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 48rem) {
  :root {
    --measure: min(46rem, 100%);
    --hero-copy: min(28rem, 100%);
  }

  body {
    background-attachment: fixed;
  }

  .hero-title {
    font-size: clamp(4.25rem, 7vw, 6rem);
  }

  .hero-mark {
    width: 3.85rem;
    height: 3.85rem;
  }

  .section {
    padding-top: 3.35rem;
  }

  .phone {
    width: min(100%, 15.25rem);
  }

  .phone-screen {
    min-height: 18.5rem;
  }
}

@media (min-width: 64rem) {
  :root {
    --measure: min(52rem, 100%);
    --hero-copy: min(30rem, 100%);
  }

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

  .ritmo-block:last-child {
    grid-column: auto;
  }

  /* Desktop: mid sticky feels app-like; final CTA is enough */
  .sticky-cta {
    display: none !important;
  }

  body.has-sticky-cta {
    padding-bottom: 0;
  }

  .cta-final {
    padding-top: 4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .section {
    animation: none;
  }

  .hero-scroll-chevron {
    animation: none;
  }

  .btn {
    transition: none;
  }

  .sticky-cta {
    transition: none;
  }

  body {
    background-attachment: scroll;
  }
}

/* Fallback when animation-timeline unsupported: sections still visible */
@supports not (animation-timeline: view()) {
  .section {
    animation: none;
  }
}
