:root {
  --ink: #481221;
  --wine: #9f1739;
  --wine-dark: #7b102c;
  --cream: #fbf6ef;
  --cream-2: #f5ede5;
  --paper: #fffdf9;
  --body: #4e4545;
  --line: #dfd3cb;
  --shadow: 0 24px 70px rgba(62, 22, 30, 0.12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--body);
  background: rgba(251, 246, 239, 0.93);
  font-family: var(--sans);
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  position: relative;
  z-index: 10;
  background: var(--cream);
  border-bottom: 1px solid rgba(72, 18, 33, 0.07);
}
.nav { min-height: 108px; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand img { width: 210px; height: 96px; object-fit: contain; object-position: left center; }
.nav-right { display: flex; align-items: center; gap: 38px; }
.nav-links { display: flex; align-items: center; gap: 38px; font-size: 16px; color: var(--ink); }
.nav-links a { text-decoration: none; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--wine); }
.nav-links a[aria-current="page"] { color: var(--wine); border-bottom-color: var(--wine); }
.nav-toggle { display: none; }
.login-menu { position: relative; }
.login-trigger { border: 0; cursor: pointer; }
.login-dropdown {
  display: none;
  flex-direction: column;
  gap: 2px;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 210px;
  padding: 8px;
  background: var(--paper);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 20;
}
.login-dropdown.open { display: flex; }
.login-dropdown a { display: block; padding: 11px 14px; border-radius: 9px; color: var(--ink); font-size: 14px; font-weight: 600; text-decoration: none; }
.login-dropdown a:hover, .login-dropdown a:focus-visible { background: var(--cream-2); color: var(--wine); }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(110deg, var(--wine-dark), #bb2047);
  box-shadow: 0 12px 28px rgba(159, 23, 57, 0.2);
  font: 650 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(159, 23, 57, 0.26); }
.button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(159,23,57,.28); outline-offset: 3px; }
.button.small { min-height: 44px; padding-inline: 26px; }
.eyebrow { color: #7c2b3e; font-size: 12px; font-weight: 700; letter-spacing: .29em; text-transform: uppercase; }
h1, h2 { margin: 0; color: var(--ink); font-family: var(--serif); font-weight: 600; line-height: 1.04; }
h1 { font-size: clamp(44px, 5.1vw, 76px); }
h2 { font-size: clamp(34px, 4vw, 56px); }
.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #f8eee5;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 42%;
  background: linear-gradient(90deg, #f8eee5 0%, rgba(248,238,229,.18) 26%, rgba(248,238,229,0) 45%), url('/assets/elcompas-hero-clean.jpg') center/cover no-repeat;
}
.hero-content { position: relative; z-index: 1; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 120px 0 88px; }
.hero-copy { width: min(570px, 52%); }
.hero h1 { max-width: 620px; margin-top: 22px; }
.hero p { max-width: 530px; margin: 26px 0 34px; font-size: 18px; }
.hero-note { margin-top: 22px; color: var(--wine); font: italic 18px/1.55 var(--sans); }
.section { padding: 92px 0; }
.features-section { background: var(--paper); }
.steps-section { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 58px; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin: 18px auto 0; max-width: 620px; font-size: 17px; }
.manage-section { background: var(--paper); }
.manage-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 48px;
  align-items: center;
  margin-top: 58px;
}
.manage-label { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.manage-label svg { flex: none; color: var(--wine); }
.manage-label span { font-family: var(--serif); font-size: 19px; font-weight: 600; line-height: 1.28; color: var(--ink); }
.manage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.manage-list li { position: relative; padding-left: 26px; font-size: 15px; }
.manage-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--wine); font-weight: 700; }
.manage-devices { position: relative; display: flex; justify-content: center; padding-bottom: 40px; }
.device-mock {
  padding: 2px;
  background: #241a1c;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.device-mock .device-screen {
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}
.device-mock .device-screen img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-desktop { width: 82%; }
.device-desktop .device-screen { aspect-ratio: 1432 / 920; }
.device-mobile {
  position: absolute;
  right: 4%;
  bottom: -8%;
  width: 30%;
  border-radius: 18px;
}
.device-mobile .device-screen { border-radius: 15px; aspect-ratio: 921 / 2048; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto 18px;
  background: var(--cream-2);
  border-radius: 50%;
}
.feature h3 { margin: 0 0 8px; color: var(--ink); font-family: var(--serif); font-size: 23px; }
.feature p { margin: 0; font-size: 15px; }
.events { background: linear-gradient(115deg, #f7efe8, #fffaf4); }
.events-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.events-copy p { max-width: 500px; margin: 24px 0 32px; font-size: 17px; }
.event-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.event-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease;
}
.event-card:hover { transform: translateY(-3px); }
.event-card-image { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; background: #21161c; box-shadow: var(--shadow); }
.event-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.event-card-caption { padding: 16px 2px 0; }
.event-card-caption h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 18px; color: var(--ink); }
.event-card-caption p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--body); }
.partner-media { position: relative; }
.carousel-next {
  position: absolute;
  top: 50%;
  right: -22px;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--wine-dark);
  box-shadow: var(--shadow);
  cursor: pointer;
}
.carousel-next svg { width: 20px; height: 20px; }
.carousel-next:hover { color: var(--wine); }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.carousel-dots .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.carousel-dots .dot.active { background: var(--wine); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 64px; text-align: center; }
.step { position: relative; }
.step + .step::before { content: ""; position: absolute; top: 34px; left: -48px; width: 32px; border-top: 1px solid var(--line); }
.step-number { display: grid; width: 70px; height: 70px; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: #f2e5e2; color: var(--ink); font: 32px/1 var(--serif); }
.step h3 { margin: 0 0 8px; color: var(--ink); font-family: var(--serif); font-size: 22px; }
.step p { margin: 0 auto; max-width: 245px; }
.steps-cta { margin-top: 52px; text-align: center; }
.steps-cta .note { margin: 14px 0 0; color: #74686a; font-size: 14px; }
.final-cta { position: relative; min-height: 430px; overflow: hidden; display: flex; align-items: center; background: #2e1616; color: #fff; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(25,8,12,.62), rgba(25,8,12,.62)), url('/assets/dance-banner-clean.jpg') center/cover; filter: saturate(.75); }
.final-cta .shell { position: relative; z-index: 1; text-align: center; }
.final-cta h2 { max-width: 760px; margin: 18px auto 26px; color: #fff; }
.final-cta .eyebrow { color: #f8e9e5; }
.final-cta .button { display: flex; width: max-content; margin: 0 auto; }
.page-hero { padding: 94px 0 70px; text-align: center; background: radial-gradient(circle at 50% 0, #fff 0, var(--cream) 58%); }
.page-hero p { max-width: 680px; margin: 22px auto 0; font-size: 18px; }
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 72px; }
.about-image { overflow: hidden; border-radius: 24px; box-shadow: var(--shadow); }
.about-copy p { margin: 0 0 18px; font-size: 17px; }
.about-copy .lead { color: var(--ink); font: 600 30px/1.22 var(--serif); }
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content > p { margin: 0 0 18px; font-size: 16px; line-height: 1.75; color: var(--body); }
.legal-content h2 { margin: 46px 0 14px; font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content a { color: var(--wine); font-weight: 600; }
.legal-content strong { color: var(--ink); }
.legal-content ul { margin: 0 0 18px; padding-left: 22px; }
.legal-content li { margin-bottom: 10px; font-size: 16px; line-height: 1.65; color: var(--body); }
.legal-content li::marker { color: var(--wine); }
.contact-wrap { display: grid; grid-template-columns: .78fr 1.22fr; gap: 70px; align-items: start; }
.contact-copy p { font-size: 17px; }
.contact-email { color: var(--wine); font-weight: 700; }
.contact-form { padding: 38px; border: 1px solid rgba(72,18,33,.1); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.field { margin-bottom: 22px; }
label { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
input, textarea {
  width: 100%;
  border: 1px solid #cdbfba;
  border-radius: 12px;
  background: #fff;
  color: #2f2829;
  font: 16px/1.4 var(--sans);
}
input { height: 50px; padding: 0 15px; }
textarea { min-height: 170px; resize: vertical; padding: 14px 15px; }
.form-note { margin: 15px 0 0; color: #74686a; font-size: 13px; }
.site-footer { padding: 28px 0; border-top: 1px solid rgba(72,18,33,.1); background: var(--paper); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer-brand img { width: 180px; height: 80px; object-fit: contain; object-position: left center; }
.footer-links { display: flex; gap: 28px; color: var(--ink); font-size: 15px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--wine); }
.footer-social { display: grid; place-items: center; width: 34px; height: 34px; color: var(--ink); }
.footer-social svg { width: 20px; height: 20px; }
.footer-social:hover { color: var(--wine); }
.copyright { font-size: 12px; color: #786d6e; }

@media (max-width: 860px) {
  .shell, .hero-content { width: min(100% - 32px, 680px); }
  .nav { min-height: 88px; }
  .brand img { width: 158px; height: 74px; }
  .nav-right { gap: 14px; }
  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 160ms ease, opacity 160ms ease; }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    background: var(--cream);
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(62, 22, 30, .14);
    transition: max-height 220ms ease, opacity 200ms ease;
  }
  .nav-links.open { max-height: 420px; opacity: 1; visibility: visible; }
  .nav-links a { padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .hero { min-height: 840px; }
  .hero::before { inset: 480px 0 0; background: linear-gradient(180deg, #f8eee5 0%, rgba(248,238,229,0) 26%), url('/assets/elcompas-hero-clean.jpg') center/cover; }
  .hero-content { padding-top: 72px; }
  .hero-copy { width: 100%; }
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .events-grid, .about-grid, .contact-wrap { grid-template-columns: 1fr; gap: 44px; }
  .events-copy { text-align: center; }
  .events-copy p { margin-inline: auto; }
  .trust-divider { display: none; }
  .carousel-next { right: 6px; }
  .manage-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .manage-label { justify-content: center; }
  .manage-list { justify-items: center; }
  .manage-list li { padding-left: 0; }
  .manage-list li::before { position: static; margin-right: 8px; }
  .manage-devices { order: -1; padding-bottom: 40px; }
  .device-desktop { width: 84%; }
  .device-mobile { width: 24%; }
}

@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .brand img { width: 128px; height: 60px; }
  .nav-right { gap: 10px; }
  .nav-right .button { min-height: 40px; padding-inline: 14px; font-size: 13px; white-space: nowrap; }
  .hero { min-height: 970px; }
  .hero::before { inset: 610px 0 0; }
  .hero-content { padding-top: 58px; }
  .hero-copy p { font-size: 16px; }
  .features, .event-cards, .steps { grid-template-columns: 1fr; }
  .step + .step::before { display: none; }
  .contact-form { padding: 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-brand img { object-position: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
