/* Scene pages: the marketing pages styled after the home page (pricing, sign in).
   A full-bleed photograph runs up behind the navigation, the intro sits on the
   left, a glass card on the right, and sections end in the home page's curve.

   Everything that changes with the theme is a custom property on .scene-page: colours use
   light-dark(), which follows the color-scheme the tokens set. In dark mode the glass darkens,
   the photographs dim, accents turn gold. Type sizes mirror listening-home.css, which scales
   its supporting type by .75. */
.scene-page {
  --scene-curve: max(1.75rem, calc(100vw / 28.8));
  --scene-hero-bg: light-dark(#f1e5d2, #2a1a10);
  --scene-photo-opacity: 1;
  --scene-glass: light-dark(rgb(255 250 242 / .84), rgb(33 20 14 / .86));
  --scene-glass-rule: light-dark(rgb(255 255 255 / .6), rgb(255 255 255 / .12));
  --scene-field: light-dark(rgb(255 255 255 / .7), rgb(255 255 255 / .06));
  --scene-field-rule: light-dark(rgb(124 74 30 / .3), rgb(255 255 255 / .18));
  --scene-field-ink: light-dark(var(--landing-ink), #f3e9dc);
  --scene-google-bg: light-dark(rgb(255 255 255 / .75), var(--scene-field));
  --scene-amber: #c98a3d;
  --scene-gold: #e9c58a;
  --scene-gold-deep: #cf9a4c;
  --scene-accent: light-dark(#7c4a1e, var(--scene-gold));   /* links, chevrons, rules under the motto */
  --scene-kicker-ink: light-dark(#544436, var(--scene-gold));
  --scene-copy: light-dark(#443b33, #e6d6c3);               /* ledes and section copy */
  --scene-copy-soft: light-dark(#645c53, #e6d6c3);          /* supporting copy */
  --scene-motto-ink: light-dark(#4a3b2d, #e6d6c3);
  --scene-wave-fill: var(--color-paper);
  --scene-card-width: 24rem;
  overflow-x: clip;
}
.scene-page section, .scene-page aside { position: relative; isolation: isolate; }

/* Curved section edges, as on the home page: each section ends in the next section's colour. */
.scene-page .listening-wave { position: absolute; z-index: 2; bottom: -1px; left: 0; width: 100%; height: var(--scene-curve); fill: var(--scene-wave-fill); pointer-events: none; }
.scene-page .listening-wave--top { top: -1px; bottom: auto; transform: rotate(180deg); }

/* The photograph behind a section. */
.scene-photo { position: absolute; inset: 0; z-index: -1; width: 100%; max-width: none; height: 100%; object-fit: cover; opacity: var(--scene-photo-opacity); display: block; pointer-events: none; }

/* Hero: runs up behind the navigation. */
.scene-hero { min-height: calc(clamp(38rem, 62vw, 52rem) + var(--header-height)); margin-top: calc(-1 * var(--header-height)); padding-block: calc(var(--header-height) + clamp(3rem, 6vw, 5.5rem)) clamp(4rem, 8vw, 7rem); background: var(--scene-hero-bg); }
.scene-hero__inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(20rem, var(--scene-card-width)); gap: clamp(2rem, 5vw, 4rem); align-items: start; }

/* Headings and the eyebrow take the shared scale from brand-surfaces.css; only the tones differ here.
   The html/body prefix outranks brand-surfaces, which loads later. */
html body.landing-page .scene-page .landing-kicker { margin: 0 0 1.25rem; color: var(--scene-kicker-ink); }
.scene-intro h1 { max-width: 12ch; }
.scene-page .scene-lede { max-width: 34ch; margin: 1.5rem 0 0; font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.3; color: var(--scene-copy); text-wrap: pretty; }
.scene-page .scene-motto { margin: 0; font: italic 400 calc(34px * .75)/1.2 var(--font-display); font-optical-sizing: auto; color: var(--scene-motto-ink); letter-spacing: 0; text-wrap: balance; }
.scene-page .scene-motto::after { content: ""; display: block; width: 3.25rem; height: 1px; margin-top: 1.1rem; background: var(--scene-accent); opacity: .6; }
.scene-intro .scene-motto { margin-top: clamp(1.5rem, 3vw, 2.5rem); }

/* The glass card and its controls. */
.scene-card { position: relative; padding: clamp(1.5rem, 2.6vw, 2rem); border: 1px solid var(--scene-glass-rule); border-radius: 1.75rem; background: var(--scene-glass); backdrop-filter: blur(18px) saturate(1.1); -webkit-backdrop-filter: blur(18px) saturate(1.1); box-shadow: 0 1px 0 rgb(255 255 255 / .5) inset, 0 24px 50px -30px rgb(41 24 14 / .5); }
.scene-badge { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; flex-shrink: 0; border-radius: .6rem; background: var(--scene-gold); color: #4a2a0c; font: 600 .8125rem/1 var(--font-body); }
.scene-card :is(input[type="email"], input[type="text"], input[type="password"]) { width: 100%; min-height: 50px; padding: .6rem 1.1rem; border: 1px solid var(--scene-field-rule); border-radius: 99px; background: var(--scene-field); color: var(--scene-field-ink); font: 400 1rem/1.4 var(--font-body); }
.scene-card input::placeholder { color: #8a7a68; }
.scene-card input:focus-visible { outline: 2px solid var(--scene-amber); outline-offset: 2px; }
.scene-page .scene-card .ui-button { width: 100%; min-height: 48px; padding: 12px 25px; border-radius: 99px; border-color: transparent; background: linear-gradient(180deg, #efd3a2, var(--scene-gold-deep)); color: #2d190b; font-size: .75rem; font-weight: 500; box-shadow: 0 10px 22px -14px rgb(120 70 20 / .8); transition: filter .2s, transform .2s; }
.scene-page .scene-card .ui-button:hover:not(:disabled) { filter: brightness(1.04); transform: translateY(-1px); }
.scene-page .scene-card .ui-button.scene-google { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; background: var(--scene-google-bg); border: 1px solid var(--scene-field-rule); color: var(--scene-field-ink); box-shadow: none; }
.scene-google svg { flex-shrink: 0; }
.scene-page .scene-fineprint { margin: .85rem 0 0; font-size: .75rem; line-height: 1.55; color: var(--landing-muted); text-align: center; }
.scene-fineprint a { color: inherit; text-underline-offset: .2em; }

/* Folding disclosure with a chevron. */
.scene-page summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; color: var(--landing-ink); font-weight: 500; }
.scene-page summary::-webkit-details-marker { display: none; }
.scene-page summary::after { content: ""; width: .55rem; height: .55rem; margin-inline-end: .35rem; flex-shrink: 0; border: solid var(--scene-accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .2s; }
.scene-page details[open] summary::after { transform: rotate(225deg); }
.scene-page summary:hover { color: var(--scene-accent); }

@media (max-width: 63.999rem) {
  .scene-hero__inner { grid-template-columns: minmax(0, 1fr); }
  /* One column: the copy stacks on the photograph, so it fades into the section colour. */
  .scene-hero { --scene-photo-opacity: .55; }
  .scene-card { max-width: 28rem; }
}
@media (max-width: 47.999rem) {
  .scene-card { padding: 1.35rem; border-radius: 1.5rem; }
}

/* Opacity is not a colour, so the photograph's dimming still needs the theme selectors. */
:root[data-theme="dark"] .scene-page { --scene-photo-opacity: .55; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scene-page { --scene-photo-opacity: .55; }
}
