/* Shared Personal Mix illustration and conversion controls. Uses each page's tokens. */
[hidden] { display: none !important; }
button { font: inherit; }
button:focus-visible { outline: 3px solid var(--purple-dark); outline-offset: 4px; }
.text-link, .mix-page .content-section a { color: var(--purple-dark); text-underline-offset: 4px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; font-size: 14px; font-weight: 700; }
.hero-meet { margin-top: 10px; }
.personal-mix-section { padding: 112px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.personal-mix-inner { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); grid-template-areas: "copy demo" "download demo"; align-items: center; gap: 24px clamp(48px, 7vw, 100px); }
.personal-mix-inner > .mix-copy { grid-area: copy; align-self: end; }
.personal-mix-inner > .mix-demo { grid-area: demo; }
.mix-download { grid-area: download; align-self: start; }
.mix-download .store-actions { margin-top: 0; }
.mix-download a:focus-visible { outline: 3px solid var(--purple-dark); outline-offset: 4px; }
.mix-copy h2 { margin: 0; font-size: clamp(38px, 4vw, 58px); font-weight: 700; line-height: 1.08; letter-spacing: -.047em; }
.mix-copy > p:not(.eyebrow):not(.mix-reassurance) { margin: 24px 0 0; color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.mix-reassurance { margin: 14px 0 6px; color: var(--ink-soft); font-size: 13px; }
.mix-demo { min-width: 0; }
.mix-demo-label { margin: 0 0 14px; color: var(--ink-soft); font-size: 12px; font-weight: 700; }
.mix-context-label { margin: 0 0 10px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
.mix-context-text { min-height: 3em; margin: 0; font-size: 18px; line-height: 1.5; font-weight: 600; }
.mix-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.mix-picker button { min-height: 44px; padding: 10px 15px; border: 1px solid var(--line-dark); border-radius: 24px; color: var(--ink-soft); background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; }
.mix-picker button:hover { border-color: var(--purple-dark); color: var(--purple-dark); }
.mix-picker button:disabled { cursor: default; }
.mix-picker button[aria-pressed="true"] { background: var(--purple-dark); border-color: var(--purple-dark); color: var(--surface); }
.mix-example { border: 1px solid #d7d0eb; border-radius: 16px; background: var(--surface); padding: 28px; }
.mix-example-heading { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 17px; font-weight: 800; }
.mix-example-heading img { width: 30px; height: 30px; }
.mix-preferences { margin: 0; }
.mix-preferences > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 13px; }
.mix-preferences dt { color: var(--ink-soft); }
.mix-preferences dd { margin: 0; font-weight: 700; }
.mix-preferences [data-mix-avoid] { min-height: 42px; }
.mix-result-label { margin: 20px 0 10px; color: var(--purple-dark); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.mix-notification { padding: 20px; border-radius: 12px; background: var(--surface-soft); }
.mix-notification-head { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.mix-notification-head img { border-radius: 8px; }
.mix-notification-head span { margin-left: auto; color: var(--ink-soft); font-size: 11px; }
.mix-notification blockquote { min-height: 84px; margin: 16px 0 0; font-size: 21px; line-height: 1.35; font-weight: 600; letter-spacing: -.025em; }
.mix-demo-note { margin: 14px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.mix-page .hero { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 70px; }
.mix-page h1 { font-size: clamp(46px, 4.7vw, 64px); line-height: 1.05; }
.mix-page .eyebrow { margin-top: 0; }
.mix-editorial { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 110px); }
.mix-prose p { margin: 0 0 20px; color: var(--ink-soft); font-size: 17px; }
.mix-prose p:last-child { margin-bottom: 0; }
.mix-prose .eyebrow { color: var(--purple-dark); font-size: 12px; }
.mix-steps { margin: 36px 0 0; padding: 0; list-style: none; counter-reset: mix-step; }
.mix-steps li { position: relative; padding: 24px 0 24px 54px; border-top: 1px solid var(--line); counter-increment: mix-step; }
.mix-steps li::before { content: "0" counter(mix-step); position: absolute; left: 0; top: 24px; color: var(--purple-dark); font-size: 13px; font-weight: 800; }
.mix-steps h3 { font-size: 20px; }
.mix-steps p { font-size: 16px; }
.mix-premium { background: var(--surface-soft); }
.mix-page .cta { background: var(--purple-dark); }
.mix-page .cta p { color: var(--surface); }
.mix-page .faq-list summary { min-height: 44px; display: flex; align-items: center; }
.mix-page .faq-list summary::after { top: 5px; }
.mix-page .footer-links a, .mix-page .breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }
.mix-page .breadcrumb { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.mobile-download { display: none; }

@media (max-width: 940px) {
  .personal-mix-inner { column-gap: 40px; }
  .mix-context-demo .mix-notification blockquote { min-height: 5.4em; }
  .mix-page .hero { grid-template-columns: 1fr; gap: 44px; }
  .mix-page .hero > div:first-child { max-width: 700px; }
  .mix-page .hero .mix-demo { width: min(560px, 100%); }
}

@media (max-width: 680px) {
  html { scroll-padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
  body.has-mobile-download { padding-bottom: 0; }
  /* Give the existing mobile action its own space, outside the page's scroll area. */
  html:has(body.download-enabled) { height: 100%; overflow: hidden; }
  body.download-enabled { height: 100dvh; overflow-y: auto; scroll-behavior: smooth; scroll-padding: 24px 0; }
  body.download-docked { height: calc(100dvh - 90px - env(safe-area-inset-bottom)); }
  .site-nav { gap: 16px; }
  .nav-links { display: flex; gap: 14px; }
  .nav-links a { display: none; }
  .nav-links .nav-mix { display: inline-flex; font-size: 12px; }
  .personal-mix-section { padding: 64px 0; }
  .personal-mix-inner { grid-template-columns: 1fr; grid-template-areas: "copy" "demo" "download"; gap: 28px; }
  .mix-copy h2 { font-size: clamp(36px, 10.5vw, 46px); }
  .mix-copy > p:not(.eyebrow):not(.mix-reassurance) { font-size: 16px; }
  .mix-example { padding: 22px; }
  .mix-picker { gap: 6px; }
  .mix-picker button { padding-inline: 12px; }
  .mix-preferences > div { grid-template-columns: 76px minmax(0, 1fr); gap: 12px; }
  .mix-notification { padding: 16px; }
  .mix-notification blockquote { font-size: 19px; min-height: 104px; }
  .mix-context-demo .mix-context-text { min-height: 4.5em; }
  .mix-context-demo .mix-notification blockquote { min-height: 4.05em; }
  .mix-editorial { grid-template-columns: 1fr; gap: 24px; }
  .mix-page .hero { padding-top: 28px; }
  .mix-page .hero .lead { font-size: 16px; line-height: 1.6; }
  .mix-page .hero .store-links { margin-top: 24px; }
  .mix-page h1 { font-size: clamp(40px, 10.7vw, 52px); }
  .store-actions, .store-links { gap: 8px; }
  .store-actions .store-link, .store-actions .store-link img,
  .store-links a, .store-links img { min-height: 44px; height: 44px; }
  html[data-platform="android"] [data-download-actions] [data-store="google"] { order: -1; }
  .mobile-download { position: fixed; z-index: 50; inset: auto 10px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; border: 1px solid #302d36; border-radius: 12px; padding: 8px 12px; background: #1f1c24; color: var(--surface); opacity: 1; transform: none; }
  .mobile-download > div { display: flex; align-items: center; gap: 8px; }
  .mobile-download img { flex-shrink: 0; border-radius: 9px; }
  .mobile-download strong { font-size: 13px; }
  .mobile-store-link { min-height: 46px; min-width: 94px; display: grid; place-items: center; border-radius: 8px; padding: 0 13px; background: var(--surface); color: var(--ink); font-size: 12px; font-weight: 800; text-decoration: none; }
  .mobile-alternative { min-height: 44px; display: inline-flex; align-items: center; color: #e0dbe9; font-size: 11px; text-underline-offset: 3px; }
  .mobile-download .mobile-apple, .mobile-download .mobile-google { display: none; }
  html[data-platform="ios"] .mobile-download .mobile-apple,
  html[data-platform="android"] .mobile-download .mobile-google { display: grid; }
  html[data-platform="ios"] .mobile-choose, html[data-platform="android"] .mobile-choose { display: none; }
  html[data-platform="desktop"] .mobile-alternative { display: none; }
}

@media (max-width: 360px) {
  .mix-example { padding: 18px; }
  .mix-picker button { padding-inline: 10px; font-size: 11px; }
  .mobile-download img { display: none; }
  .mix-context-demo .mix-notification blockquote { min-height: 5.4em; }
}

@media (prefers-reduced-motion: reduce) {
  body.download-enabled { scroll-behavior: auto; }
}
