/* toggle-music.css — extracted from toggle-music.html (presentation layer) */
  /* ---- Toggle Music page — local styles (editorial product layout) ---- */
  .tm-main section { padding: 96px 0; }
  .tm-hero { padding: 140px 0 90px; text-align: center; }
  .tm-hero .eyebrow {
    display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
    font-size: 10.6px; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted); border: 1px solid var(--border); border-radius: 999px;
    padding: 6px 16px; margin-bottom: 22px;
  }
  .tm-hero h1 { font-size: clamp(34px, 4.2vw, 57.8px); margin-bottom: 28px; }
  .tm-hero .lede { font-size: clamp(14.4px, 1.9vw, 17.8px); color: var(--muted); max-width: 560px; margin: 0 auto 32px; font-weight: 300; line-height: 1.5; }
  .tm-hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
  .tm-hero .meta { font-size: 11px; color: var(--muted); margin-top: 22px; }

  /* ---- Mac App Store badge ---- */
  .as-badge {
    display: inline-flex; align-items: center; gap: 11px;
    background: #000; color: #fff;
    border: 1px solid hsl(0 0% 100% / 0.16); border-radius: 13px;
    padding: 8px 18px 8px 15px; text-decoration: none;
    box-shadow: 0 8px 22px hsl(0 0% 0% / 0.22);
    transition: transform .25s var(--bs-ease), box-shadow .25s var(--bs-ease);
  }
  .as-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 40px hsl(0 0% 0% / 0.3); }
  .as-badge:active { transform: translateY(0); }
  .as-badge .as-logo { width: 23px; height: 23px; flex: none; }
  .as-badge .as-text { display: flex; flex-direction: column; line-height: 1.08; text-align: left; }
  .as-badge .as-text small { font-size: 8.9px; font-weight: 400; letter-spacing: .01em; opacity: .92; }
  .as-badge .as-text strong { font-size: 14.4px; font-weight: 600; letter-spacing: -.01em; }
  .as-badge.is-soon { opacity: .96; }
  /* On matte-black dark a black pill vanishes — switch to Apple's white badge variant. */
  @media (prefers-color-scheme: dark) {
    html:not([data-theme="light"]) .as-badge { background: #FFFFFF; color: #0A0A0A; border-color: hsl(0 0% 0% / 0.12); box-shadow: 0 10px 28px hsl(0 0% 0% / 0.55); }
  }
  html[data-theme="dark"] .as-badge { background: #FFFFFF; color: #0A0A0A; border-color: hsl(0 0% 0% / 0.12); box-shadow: 0 10px 28px hsl(0 0% 0% / 0.55); }

  .tm-sec-head { text-align: center; max-width: 600px; margin: 0 auto 64px; }
  .tm-sec-head h2 { font-size: clamp(28.9px, 4.2vw, 44.2px); margin-bottom: 14px; }
  .tm-sec-head p { color: var(--muted); font-size: 14.4px; font-weight: 300; }

  /* ---- Scroll showcase ---- */
  .sc-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; max-width: 1080px; margin: 0 auto; padding: 0 28px; }
  .sc-stage-wrap { position: sticky; top: 100px; height: calc(100vh - 100px); display: flex; align-items: center; justify-content: center; }
  .sc-stage { display: grid; place-items: center; width: 100%; max-width: 400px; margin: 0 auto; }
  /* The screenshots are transparent PNGs of the app window WITH its own native
     shadow — so we add no frame, background or extra shadow (that produced the
     ugly double-border). Just let them float and cross-fade. */
  .sc-shot {
    grid-area: 1 / 1; width: 100%; height: auto; opacity: 0; transform: scale(.97);
    transition: opacity .55s ease, transform .55s ease;
    /* drop-shadow follows the app's silhouette (unlike a box-shadow), giving the
       transparent screenshot depth and separation on light backgrounds. */
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.10)) drop-shadow(0 22px 48px rgba(0, 0, 0, 0.22));
  }
  .sc-shot.active { opacity: 1; transform: none; }
  .sc-steps { display: flex; flex-direction: column; }
  .sc-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .3; transition: opacity .4s ease; cursor: pointer; }
  .sc-step:hover { opacity: 0.6; }
  .sc-step.on { opacity: 1; }
  .sc-step h3 { font-size: clamp(23.8px, 3.4vw, 35.7px); margin-bottom: 12px; }
  .sc-step p { color: var(--muted); font-size: 14.4px; font-weight: 300; line-height: 1.55; max-width: 380px; }
  @media (max-width: 820px) {
    .sc-layout { grid-template-columns: 1fr; gap: 0; padding: 0 20px; }
    .sc-stage-wrap { position: sticky; top: 78px; z-index: 1; padding: 14px 0; background: var(--bg); height: auto; }
    .sc-stage { max-width: 300px; }
    .sc-step { min-height: 60vh; opacity: 1; text-align: center; align-items: center; margin: 0; }
    .sc-step p { margin: 0 auto; }
  }

  /* ---- Extra features (4-up grid) ---- */
  .tm-extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 80px auto 0; max-width: 1120px; padding: 0 28px; }
  .tm-feature {
    flex: 1 1 180px; max-width: 220px;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 14px; padding: 24px 22px; box-shadow: var(--card-inner-glow);
    transition: transform .4s var(--bs-ease), border-color .3s ease, box-shadow .4s var(--bs-ease);
  }
  .tm-feature:hover { transform: translateY(-4px); border-color: var(--muted); box-shadow: var(--shadow-cinematic), var(--card-inner-glow); }
  .tm-feature .ico {
    width: 40px; height: 40px; border-radius: 10px; background: var(--surface);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
    transition: background .3s ease, color .3s ease;
  }
  .tm-feature:hover .ico { background: var(--ink); color: var(--bg); }
  .tm-feature .ico svg { width: 20px; height: 20px; }
  .tm-feature h3 { font-size: 17px; margin-bottom: 8px; }
  .tm-feature p { color: var(--muted); font-size: 12.3px; font-weight: 300; line-height: 1.55; }

  /* ---- Install ---- */
  .tm-install { background: var(--surface); }
  .install-steps { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 880px; margin: 0 auto; padding: 0 28px; }
  @media (max-width: 820px) { .install-steps { grid-template-columns: 1fr; gap: 8px; padding: 0 20px; } }
  .istep { padding: 28px; transition: background .3s ease; }
  .istep:hover { background: var(--card); }
  .istep:not(:last-child) { border-right: 1px solid var(--border); }
  @media (max-width: 820px) { .istep:not(:last-child) { border-right: none; border-bottom: 1px solid var(--border); } }
  .istep .num { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--muted); opacity: .5; margin-bottom: 10px; }
  .istep h3 { font-size: 17.8px; margin-bottom: 8px; }
  .istep p { color: var(--muted); font-size: 11.9px; font-weight: 300; line-height: 1.55; }
  .istep code { font-family: var(--font-mono); font-size: 10.6px; background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
  .istep b { color: var(--fg); font-weight: 600; }
  .note-box {
    max-width: 880px; margin: 36px auto 0; padding: 0 28px;
    display: flex; gap: 14px; align-items: flex-start;
  }
  .note-box-inner {
    background: var(--card); border: 1px solid var(--border); border-radius: 14px;
    padding: 20px 24px; font-size: 11.9px; color: var(--muted);
    display: flex; gap: 14px; align-items: flex-start; width: 100%;
  }
  .note-box-inner svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
  .note-box-inner b { color: var(--fg); font-weight: 600; }

  /* ---- Pricing ---- */
  .pricing-card {
    max-width: 420px; margin: 0 auto; text-align: center;
    background: var(--card); border: 1px solid var(--border);
    border-radius: 22px; padding: 48px 40px; box-shadow: var(--shadow-cinematic);
    transition: transform .5s var(--bs-ease), box-shadow .5s var(--bs-ease);
  }
  .pricing-card:hover { transform: translateY(-6px); box-shadow: 0 45px 120px hsl(0 0% 0% / 0.18); }
  .pricing-card .price { font-family: var(--font-display); font-size: 61.2px; font-weight: 600; line-height: 1; }
  .pricing-card .price small { font-size: 22.1px; vertical-align: super; }
  .pricing-card .once { color: var(--muted); font-size: 11.9px; margin: 8px 0 28px; }
  .pricing-card ul { list-style: none; text-align: left; margin: 0 auto 32px; max-width: 260px; padding: 0; }
  .pricing-card li { padding: 8px 0 8px 28px; font-size: 12.3px; position: relative; }
  .pricing-card li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; }
  .pricing-card .status { margin-bottom: 16px; }
  .pricing-card .status.online .sdot { background: var(--status-online, #34c759); }
  .pricing-card .meta { margin-top: 18px; font-size: 11px; color: var(--muted); }

  /* ---- Buy + Download CTA (direct distribution) ---- */
  .tm-buy-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; margin-top: 36px; }
  .tm-buy-note { text-align: center; color: var(--muted); font-size: 11px; line-height: 1.55; max-width: 460px; margin: 16px auto 0; }

  /* ---- Trust line (signed & notarized + version) ---- */
  .tm-hero .tm-trust { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 10.6px; color: var(--muted); }
  .tm-hero .tm-trust svg { width: 15px; height: 15px; flex: none; color: var(--accent-fg); }

  /* ---- Pre-launch — minimal inline countdown (no boxes, no emoji) ---- */
  /* Authoritative hide: a CSS display rule would otherwise defeat the `hidden`
     attribute, so force it for the launch toggle. */
  [hidden] { display: none !important; }
  .cta-row .tm-cta-live { display: inline-flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: center; }

  .tm-hero .tm-launch-line {
    margin-top: 20px;
    display: inline-flex; align-items: baseline; justify-content: center;
    flex-wrap: wrap; gap: 12px;
    font-family: var(--font-mono); font-weight: 400;
    font-size: 12px; letter-spacing: 0.04em; color: var(--muted);
  }
  .tm-launch-line .tm-launch-word { text-transform: uppercase; letter-spacing: 0.14em; font-size: 10.6px; white-space: nowrap; }
  .tm-launch-line time { color: var(--fg); white-space: nowrap; }
  .tm-launch-line .tm-launch-sep { color: var(--border); }
  .tm-countdown { display: inline-flex; align-items: baseline; gap: 1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .tm-countdown .cd-num { color: var(--accent-fg); font-weight: 500; }
  .tm-countdown i { font-style: normal; color: var(--muted); margin-right: 8px; }
  .tm-countdown i:last-of-type { margin-right: 0; }

  /* ---- Footer legal links ---- */
  .f-legal { display: flex; gap: 8px; font-size: 11px; margin-bottom: 6px; }
  .f-legal a { color: var(--muted); text-decoration: none; }
  .f-legal a:hover { color: var(--fg); }
  .f-legal span { color: var(--muted); }

  /* ---- Contact Form ---- */
  .tm-contact { background: var(--surface); }
  .tm-contact .cform { margin: 0 auto; }

  .back-row { padding-bottom: 64px; }
