.landing {
  /* Core tokens + --shadow-hover now in tokens.css (loaded via base.html). */
  /* No background here: body already paints var(--bg-primary) (base.html:73),
     and a second identical coat on this wrapper sat on top of body::after --
     the art-deco tile and the mandala. Measured: the motif moved the mean pixel
     1.1/255 through it, i.e. the layer was being painted and then covered. The
     composite colour is unchanged by this removal; only the motif shows. */
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
}

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

.landing .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.landing .container--narrow {
  max-width: 800px;
}

/* Eyebrow now uses the shared .ds-eyebrow primitive (components.css);
 * landing only adds spacing below it. */
.landing .ds-eyebrow {
  margin-bottom: 18px;
}

.landing .section {
  padding: clamp(5rem, 9vw, 8rem) 0;
}
.landing .section__head {
  margin-bottom: 64px;
}
.landing .section__head--center {
  text-align: center;
}
.landing .section__title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: clamp(1.875rem, 4vw, 3.25rem);
  line-height: 1.05;
  margin: 0 0 12px 0;
  color: var(--text-primary);
  letter-spacing: var(--track-tight);
}
/* Mixed-italic emphasis word (signature editorial element) */
.landing .section__title em {
  font-style: italic;
  color: var(--copper-ink);
}
.landing .section__sub {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0;
}
/* The small line under a CTA: who it's for, or what to expect next. */
.landing .cta-note {
  color: var(--text-tertiary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 14px 0 0 0;
}

/* ───────── Hero ─────────
 * The hero background image + overlay are PRESERVED verbatim. Only the
 * foreground content typography is tuned to the editorial direction. */
/* ── Hero image ──────────────────────────────────────────────────────────
 * Dark mode is the room at night. Light mode is meant to be the same room in
 * daylight — same camera, same props, different hour — so the theme toggle
 * says something rather than just re-tinting one photograph.
 *
 * Both frames come out of one generation, which is the whole point: the props
 * line up exactly — mannequin head, mustard cloth on the floor, camera bodies,
 * whiteboard, office chair — so the toggle reads as the same room a few hours
 * later rather than as two different rooms. Swapping either one alone breaks
 * that, so they are replaced as a pair.
 *
 * The night frame keeps the --hero-day fallback even though the variable is
 * now always defined: if a future theme drops the definition, light mode
 * degrades to the night frame instead of to no background at all.
 *
 * Careful here. Manifest storage resolves every stylesheet asset reference at
 * collectstatic, so naming a file that is not there fails the BUILD, not the
 * page. Its scanner is also a regex that does not understand CSS comments, so
 * a worked example spelled out in this block would be read as a real
 * reference and break the build the same way — which is why this note
 * describes the rules rather than printing them.
 * tests/test_template_hygiene.py guards both.
 *
 * Only the matching rule's image is ever fetched, so carrying both costs a
 * visitor nothing.
 */
:root { --hero-night: url("/static/images/background.c1a2e6b03f73.jpg"); }
[data-theme="light"] { --hero-day: url("/static/images/background-day.c5617fe64e95.jpg"); }

.landing .hero { background-image: var(--hero-night); }
[data-theme="light"] .landing .hero { background-image: var(--hero-day, var(--hero-night)); }

.landing .hero {
  position: relative;
  min-height: calc(100vh - 4.25rem);
  min-height: calc(100svh - 4.25rem);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.landing .hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(10,10,10,0.55), rgba(10,10,10,0.7));
  z-index: 1;
}
.landing .hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
  width: 100%;
}
.landing .hero__left {
  max-width: 720px;
}
.landing .hero__left .ds-eyebrow {
  margin-bottom: 22px;
}
.landing .hero__headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 5.25rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  margin: 0 0 24px 0;
  color: var(--text-primary);
}
.landing .hero__headline .copper {
  color: var(--copper-ink);
  font-style: italic;
}
.landing .hero__subhead {
  color: var(--text-secondary);
  font-size: 1.125rem;
  line-height: 1.6;
  margin: 0 0 40px 0;
  max-width: 540px;
}
.landing .hero__ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.landing .grid {
  display: grid;
  gap: 32px;
}
.landing .grid--4 { grid-template-columns: repeat(4, 1fr); }
.landing .grid--3 { grid-template-columns: repeat(3, 1fr); }

/* Feature cards — editorial: defined by a single top rule, no full box. */
.landing .fcard {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 28px 20px 28px 0;
  /* Letting go, by mouse or finger: the glow holds a beat and tapers off.
     The border colour stays quick so a theme switch doesn't crawl. */
  transition: box-shadow var(--motion-linger) var(--ease-linger),
              background var(--motion-linger) var(--ease-linger),
              border-color var(--motion-press) var(--ease-press);
}
/* The wordmark gradient (.logo-wordmark) traced along every edge. Drawn here,
 * not as border-image on the card: border-image can't animate, so it popped
 * on and off while the glow faded around it. Scrolling past a resting pointer
 * made that a flicker. Opacity fades, with the glow. */
.landing .fcard::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-image: linear-gradient(90deg, #FF6A00 0%, #B7A8FF 50%, #007BFF 100%) 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--motion-linger) var(--ease-linger);
}
.landing .fcard > * {
  transition: transform var(--motion-slow) var(--ease-lux);
}
@media (hover: hover) and (pointer: fine) {
  .landing .fcard:hover {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.25),
                0 0 20px rgba(0, 123, 255, 0.25);
    transition: box-shadow var(--motion-base) var(--ease-lux),
                background var(--motion-base) var(--ease-lux),
                border-color var(--motion-press) var(--ease-press);
  }
  .landing .fcard:hover::after {
    opacity: 1;
    transition: opacity var(--motion-base) var(--ease-lux);
  }
  /* The content slides right. A transform, not padding-left: padding narrowed
   * the text, the longest card wrapped a line, and the grid row grew and
   * pushed the image below it down. */
  .landing .fcard:hover > * {
    transform: translateX(12px);
  }
  @media (prefers-reduced-motion: reduce) {
    .landing .fcard:hover > * { transform: none; }  /* the glow is the feedback; no slide */
  }
}
.landing .fcard__icon {
  font-size: 28px;
  color: #007BFF;
  display: block;
  margin-bottom: 20px;
  line-height: 1;
}
.landing .fcard__title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}
.landing .fcard__desc {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.landing .split {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: center;
}
.landing .split--reverse .split__visual { order: 1; }
.landing .split--reverse .split__text { order: 2; }
.landing .split__text > .ds-eyebrow { margin-bottom: 18px; }

.landing .subblocks {
  list-style: none;
  padding: 0;
  margin: 28px 0 0 0;
}
.landing .subblocks li {
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
}
.landing .subblocks li:last-child {
  border-bottom: 1px solid var(--border-subtle);
}
.landing .subblocks h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}
.landing .subblocks p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin: 0;
}


/* Numbered steps — editorial single top rule + oversized copper numeral. */
.landing .step {
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 32px 24px 32px 0;
  position: relative;
  transition: border-color var(--motion-slow) var(--ease-lux),
              background var(--motion-slow) var(--ease-lux);
}
@media (hover: hover) and (pointer: fine) {
  .landing .step:hover {
    border-top-color: var(--copper);
    background: rgba(255, 255, 255, 0.02);
  }
}
.landing .step__num {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 800;
  font-size: var(--type-4xl);
  color: var(--copper-ink);
  display: block;
  margin-bottom: 16px;
  line-height: 1;
}
.landing .step__title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}
.landing .step__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* Category tags — squared, hairline. */
.landing .pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}
.landing .pill-tag {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: default;
  transition: border-color var(--motion-fast) var(--ease-lux),
              color var(--motion-fast) var(--ease-lux);
}
@media (hover: hover) and (pointer: fine) {
  .landing .pill-tag:hover {
    border-color: var(--copper);
    color: var(--text-primary);
  }
}

.landing .faq {
  margin-top: 32px;
}
.landing .faq__item {
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0;
}
.landing .faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1rem;
  transition: color var(--motion-fast) var(--ease-lux);
}
.landing .faq__item summary::-webkit-details-marker {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .landing .faq__item summary:hover {
    color: var(--copper-ink);
  }
}
.landing .faq__item summary::after {
  content: '+';
  color: var(--copper-ink);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}
.landing .faq__item[open] summary::after {
  content: '\2212';
}
.landing .faq__answer {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 12px 0 0 0;
  max-width: 90%;
}
.landing .faq__item[open] .faq__answer {
  animation: ds-fade-in var(--motion-slow) var(--ease-lux);
}

@media (max-width: 1279px) {
  .landing .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  /* minmax(0, 1fr), not 1fr: a bare `1fr` track is `minmax(auto, 1fr)`, so the
   * image slot's min-content width pushed the track past the container and the
   * whole page scrolled sideways ~10px at 360px wide. */
  .landing .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .landing .split--reverse .split__visual { order: 2; }
  .landing .split--reverse .split__text { order: 1; }
}

@media (max-width: 767px) {
  .landing .grid--4,
  .landing .grid--3 {
    grid-template-columns: 1fr;
  }
  .landing .hero__ctas {
    flex-direction: column;
    align-items: stretch;
  }
  .landing .hero__ctas .ds-btn { width: 100%; }
}

/* See the (hover: none) note in luxury.css. The card and step treatments are
 * feedback, not reveals, so on touch they answer a press instead of a pointer. */
@media not all and (hover: hover) and (pointer: fine) {
  /* The edge and glow from the hover state, on a press. It lands after a 70ms
   * delay (a scroll that starts on a card clears :active before then) and
   * lingers out on the base transitions once the finger lifts. */
  .landing .fcard:active::after {
    opacity: 1;
    transition: opacity var(--motion-press) var(--ease-press) 70ms;
  }
  .landing .fcard:active {
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 0 20px rgba(255, 106, 0, 0.25),
                0 0 20px rgba(0, 123, 255, 0.25);
  }
  .landing .step {
    transition-duration: var(--motion-release);
    transition-timing-function: var(--ease-release);
  }
  .landing .fcard:active, .landing .step:active {
    transition-duration: var(--motion-press);
    transition-timing-function: var(--ease-press);
    transition-delay: 70ms;  /* a scroll that starts on a card cancels before this */
  }
  .landing .step:active {
    border-top-color: var(--copper);
    background: rgba(255, 255, 255, 0.02);
  }
  .landing .pill-tag:active {
    border-color: var(--copper);
    color: var(--text-primary);
  }
}
