/* The logged-out landing page (home/show.html.erb), restyled per
   /home/hhh/mockups/ArteSphera Your Musical World.png: navy and gold on
   ivory, serif headings. Its colors are scoped to .landing rather than
   :root, since the rest of the app keeps its own blue palette. */
.landing {
  --landing-navy: #13305f;
  --landing-navy-dark: #0c2147;
  --landing-gold: #c3913f;
  --landing-ivory: #fbf9f5;
  --landing-mist: #ebf1f9;
  --landing-ink: #1d2b45;
  --landing-muted: #5d6b82;
  --landing-line: #dde5f0;
  --landing-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  background: var(--landing-ivory);
  color: var(--landing-ink);
  overflow-x: hidden;
}

.landing h1,
.landing h2,
.landing h3 {
  font-family: var(--landing-serif);
  font-weight: 600;
  color: var(--landing-navy);
}

.landing-container {
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
}

.landing-eyebrow {
  display: block;
  margin: 0 0 0.75rem;
  color: var(--landing-gold);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* "— EXPLORE THE PLATFORM —": a short gold rule on each side. */
.landing-eyebrow--ruled {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.landing-eyebrow--ruled::before,
.landing-eyebrow--ruled::after {
  content: "";
  width: 40px;
  border-top: 1px solid currentColor;
}

/* "— WHO IT'S FOR": a rule on the leading side only. */
.landing-eyebrow--lead::before {
  content: "";
  display: inline-block;
  width: 20px;
  margin-right: 0.35rem;
  vertical-align: middle;
  border-top: 1px solid currentColor;
}

.landing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  border: 1.5px solid var(--landing-navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.landing-button--solid {
  background: var(--landing-navy);
  color: #fff;
}

.landing-button--solid:hover {
  background: var(--landing-navy-dark);
}

.landing-button--outline {
  color: var(--landing-navy);
  background: rgba(255, 255, 255, 0.6);
}

.landing-button--outline:hover {
  background: #fff;
}

/* Brand bar */
.landing-bar {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
  padding: 1rem 0;
}

.landing-logo {
  position: relative;
  display: inline-block;
  padding: 0.2rem 0.4rem 0.4rem 0.6rem;
  font-family: var(--landing-serif);
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1;
  color: var(--landing-navy);
  text-decoration: none;
}

.landing-logo span {
  position: relative;
}

.landing-logo__swoosh {
  position: absolute;
  inset: -0.35rem -0.6rem -0.2rem -0.4rem;
  width: calc(100% + 1rem);
  height: calc(100% + 0.55rem);
  color: var(--landing-gold);
}

.landing-nav {
  display: flex;
  gap: 2.25rem;
  margin-left: auto;
}

.landing-nav a {
  color: var(--landing-navy);
  font-size: 0.9rem;
  text-decoration: none;
}

.landing-nav a:hover {
  color: var(--landing-gold);
}

.landing-bar__login {
  padding: 0.6rem 1.5rem;
}

/* Hero: the photo sits behind the right side, its left edge faded
   into the mist background by a mask -- on the photo itself, so the
   fade stays put however wide the window is. */
.landing-hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  background: var(--landing-mist);
}

.landing-hero__photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 45%);
}

.landing-hero__text {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 1120px);
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}

.landing-hero h1 {
  max-width: 520px;
  margin: 0 0 1.25rem;
  font-size: clamp(2.6rem, 5.5vw, 3.9rem);
  line-height: 1.05;
}

.landing-hero__lead {
  max-width: 420px;
  margin: 0 0 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--landing-muted);
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.landing-hero__flourish {
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: -20px;
  width: 100%;
  height: 120px;
  color: var(--landing-gold);
  pointer-events: none;
}

/* Invitation notice, both the light card under the hero and the navy
   closing band's version (--dark). */
.landing-notice {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
  padding: 1.25rem 2.5rem;
  background: var(--landing-mist);
  border-radius: 14px;
  color: var(--landing-ink);
  text-decoration: none;
}

.landing-notice__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--landing-navy);
  color: #fff;
}

.landing-notice__body {
  flex: 1;
  padding-left: 1.5rem;
  border-left: 1px solid var(--landing-gold);
  line-height: 1.5;
}

.landing-notice__body strong {
  display: block;
  font-family: var(--landing-serif);
  font-size: 1.2rem;
  font-weight: 600;
}

.landing-notice__body .landing-eyebrow {
  margin-bottom: 0.25rem;
  color: var(--landing-ink);
}

.landing-notice__sub {
  font-size: 0.85rem;
  color: var(--landing-muted);
}

.landing-notice__arrow {
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}

.landing-notice:hover .landing-notice__arrow {
  transform: translateX(4px);
}

.landing-notice--dark {
  margin-top: 0;
  padding: 0 0 0 2rem;
  background: none;
  border-left: 1px solid var(--landing-gold);
  border-radius: 0;
  color: #fff;
}

.landing-notice--dark .landing-notice__icon {
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--landing-gold);
}

.landing-notice--dark .landing-notice__body {
  padding-left: 0;
  border-left: none;
}

.landing-notice--dark .landing-notice__body strong {
  font-family: inherit;
  font-size: 0.95rem;
}

.landing-notice--dark .landing-notice__sub {
  color: rgba(255, 255, 255, 0.7);
}

/* Feature cards */
.landing-section {
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.landing-section h2 {
  margin: 0 0 2rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.landing-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  text-align: left;
}

.landing-feature {
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--landing-line);
  border-radius: 14px;
}

.landing-feature__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--landing-navy);
  color: #fff;
}

.landing-feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.45rem;
}

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

/* Tools that save you time: measure numbering featured, then the rest. */
.landing-tools {
  padding-top: 1rem;
}

.landing-tool-feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 2rem;
  text-align: left;
  background: #fff;
  border: 1px solid var(--landing-line);
  border-top: 3px solid var(--landing-gold);
  border-radius: 14px;
}

.landing-tool-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.7rem;
}

.landing-tool-feature p {
  margin: 0 0 1rem;
  line-height: 1.6;
  color: var(--landing-muted);
}

.landing-checklist {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-checklist li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
  line-height: 1.45;
}

.landing-checklist svg {
  flex: none;
  margin-top: 0.1rem;
  color: var(--landing-gold);
}

.landing-tool-feature__art {
  width: 100%;
  height: auto;
  padding: 0.5rem;
  background: var(--landing-ivory);
  border-radius: 10px;
}

.landing-staff__line,
.landing-staff__bar {
  stroke: var(--landing-ink);
  stroke-opacity: 0.45;
  stroke-width: 1;
}

.landing-staff__note {
  fill: var(--landing-ink);
  fill-opacity: 0.75;
}

.landing-staff__number {
  fill: var(--landing-gold);
  font-family: Georgia, serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 700;
}

@media (max-width: 760px) {
  .landing-tool-feature {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
}

/* Who it's for */
.landing-built-for {
  padding: 3.5rem 0;
  background: var(--landing-mist);
}

.landing-built-for__inner {
  display: grid;
  grid-template-columns: minmax(240px, 300px) 1fr;
  gap: 3rem;
}

.landing-built-for h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 2.4rem);
  line-height: 1.1;
}

.landing-audiences {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-audiences li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--landing-navy);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  color: var(--landing-navy);
  font-size: 0.92rem;
  font-weight: 500;
}

.landing-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  padding-left: 3rem;
  border-left: 1px solid rgba(195, 145, 63, 0.5);
}

.landing-highlight svg {
  color: var(--landing-gold);
}

.landing-highlight h3 {
  margin: 0.6rem 0 0.3rem;
  font-family: inherit;
  font-size: 0.95rem;
}

.landing-highlight p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--landing-muted);
}

/* Closing band */
.landing-cta {
  padding: 3rem 0;
  background: radial-gradient(ellipse at 85% 120%, #2a4677 0%, transparent 55%), var(--landing-navy-dark);
  color: #fff;
}

.landing-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
}

.landing .landing-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  color: #fff;
}

/* The landing page ends on its dark call to action; the site-wide footer
   (layouts/_site_footer) follows it directly. */
.landing + .site-footer {
  margin-top: 0;
}

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

  .landing-bar__login {
    margin-left: auto;
  }

  .landing-built-for__inner,
  .landing-cta__inner {
    grid-template-columns: 1fr;
  }

  .landing-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 0;
    border-left: none;
  }
}

@media (max-width: 640px) {
  .landing-logo {
    font-size: 1.9rem;
  }

  /* No room for the photo beside the text, so it moves behind it under
     a heavier wash. */
  .landing-hero__photo {
    width: 100%;
    mask-image: none;
    opacity: 0.18;
  }

  .landing-notice {
    padding: 1.25rem;
    gap: 1rem;
  }

  .landing-notice__body {
    padding-left: 1rem;
  }

  .landing-highlights {
    grid-template-columns: 1fr;
  }

  .landing-notice--dark {
    padding-left: 1rem;
  }
}

/* The brand bar on its own, above any page but the home page for a
   logged-out visitor (see layouts/application.html.erb) — just the
   landing page's band, not its whole ivory page. */
.landing-header {
  border-bottom: 1px solid var(--landing-line);
  overflow-x: visible;
}
