/* Preview-only theme controls. The original light palette stays in demo.css. */
.preview-banner { gap: 22px; padding-block: 6px; }
.theme-picker { display: flex; align-items: center; gap: 3px; padding: 3px; border: 1px solid #ccd2bf; border-radius: 7px; }
.theme-picker button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 6px 12px; border: 0; border-radius: 4px; background: transparent; font-size: 10px; cursor: pointer; }
.theme-picker button[aria-pressed="true"] { background: #fff; box-shadow: 0 1px 4px #20251e12; }
.theme-swatch { width: 9px; height: 9px; border-radius: 50%; }
.theme-swatch.purple { background: #a984f6; }
.theme-swatch.pale { background: #e3f4b8; border: 1px solid #b4c792; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0c0b10;
  --ink: #f4f0fb;
  --muted: #aaa4b6;
  --line: #2a2535;
  --lime: #af88ff;
  --white: #130c20;
  --surface: #141119;
  --surface-raised: #1c1724;
  --accent: #b999fb;
  --soft-text: #9890a6;
}
[data-theme="dark"] body {
  background: radial-gradient(ellipse 55% 24% at 82% 9%, #783be415, transparent 85%), var(--paper);
}
[data-theme="dark"] .preview-banner { background: #15111d; color: #b3a7c7; border-bottom: 1px solid #292035; }
[data-theme="dark"] .theme-picker { border-color: #393044; background: #0c0b10; }
[data-theme="dark"] .theme-picker button { color: #9e92b0; }
[data-theme="dark"] .theme-picker button[aria-pressed="true"] { background: #30213f; color: #e5d8fc; box-shadow: none; }
[data-theme="dark"] .logo { filter: invert(1); }
[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible,
[data-theme="dark"] summary:focus-visible { outline-color: var(--accent); }
[data-theme="dark"] .nav a:hover,
[data-theme="dark"] .text-link:hover,
[data-theme="dark"] .footer-bottom a:hover { color: #c5a8ff; }
[data-theme="dark"] .nav-cta { border-color: #4b3b62; background: #1b1425; }
[data-theme="dark"] .status-dot,
[data-theme="dark"] .nav-dot { background: var(--accent); box-shadow: 0 0 9px #ab7aff45; }
[data-theme="dark"] .hero-copy > .eyebrow { color: #c0a5ec; }
[data-theme="dark"] .highlight { color: #c3a0ff; }
[data-theme="dark"] .highlight:after { background: #8f54e92b; inset-block: 65% 1px; }
[data-theme="dark"] .dark { background: #ae85f5; color: #160c26; }
[data-theme="dark"] .dark:hover { background: #c1a0ff; }
[data-theme="dark"] .hero-note,
[data-theme="dark"] .visual-topline { color: var(--soft-text); }
[data-theme="dark"] .task-request,
[data-theme="dark"] .task-request:after { background: #21182e; border-color: #433055; color: #e0d3f1; }
[data-theme="dark"] .ai-icon { color: #c6a5ff; }
[data-theme="dark"] .browser-demo { background: var(--surface); border-color: #443451; box-shadow: 0 22px 60px -25px #7339b64a; }
[data-theme="dark"] .browser-chrome { background: #1c1724; color: #82748f; }
[data-theme="dark"] .address { background: #100d16; border-color: #30263c; color: #a69ab8; }
[data-theme="dark"] .example-badge { color: #978ba7; }
[data-theme="dark"] .hero .result-heading .eyebrow { color: #b193d8; }
[data-theme="dark"] .result-icon { background: #2c1f3d; color: #cba6ff; }
[data-theme="dark"] .table-head,
[data-theme="dark"] .table-row { border-color: #292131; }
[data-theme="dark"] .table-head { color: #9c8dab; }
[data-theme="dark"] .table-row > span:first-child { color: #c6b3df; }
[data-theme="dark"] .table-row > span:last-child { color: #b8afc5; }
[data-theme="dark"] .table-row b { color: #907ca6; }
[data-theme="dark"] .output-line { color: #b99bdc; }
[data-theme="dark"] .demo-switcher { background: #100d16; }
[data-theme="dark"] .demo-switcher button { color: #a396b3; min-height: 44px; }
[data-theme="dark"] .demo-switcher button[aria-pressed="true"] { background: #352248; color: #dfc6ff; }
[data-theme="dark"] .demo-switcher button:hover { background: #261b33; }
[data-theme="dark"] .visual-footnote { color: #a496b4; }
[data-theme="dark"] .capability-strip { color: var(--soft-text); }
[data-theme="dark"] .capability-strip p { color: #c1b6ce; }
[data-theme="dark"] .capability-strip i { color: #5b4c6b; }
[data-theme="dark"] .section-heading .eyebrow,
[data-theme="dark"] .faq-section .eyebrow,
[data-theme="dark"] .start-section .eyebrow { color: #ae95cf; }
[data-theme="dark"] .use-grid { background: var(--surface); }
[data-theme="dark"] .line-icon { color: #bc98f1; }
[data-theme="dark"] .search-icon { border-color: #bc98f1; }
[data-theme="dark"] .search-icon:after { background: #bc98f1; }
[data-theme="dark"] .card-number { color: #9786ad; }
[data-theme="dark"] .mini-flow,
[data-theme="dark"] .mini-search { color: #c5acdF; }
[data-theme="dark"] .mini-flow span:nth-child(odd),
[data-theme="dark"] .mini-search { background: #21182d; border-color: #35283f; }
[data-theme="dark"] .example-caption { color: #9d8cb1; }
[data-theme="dark"] blockquote { color: #c6bdd3; }
[data-theme="dark"] .scope-note { color: #9990a5; }
[data-theme="dark"] .how-section { background: #121016; border-block: 1px solid #211b2a; }
[data-theme="dark"] .how-layout .eyebrow,
[data-theme="dark"] .how-steps li > span { color: #a58cC4; }
[data-theme="dark"] .how-layout h2 span { color: #a18abf; }
[data-theme="dark"] .how-steps li { border-color: #302638; }
[data-theme="dark"] .coming-panel { background: radial-gradient(ellipse at 100% 0%, #7741aa35, transparent 70%), #22142f; border: 1px solid #573771; }
[data-theme="dark"] .coming-panel .eyebrow { color: #cfacf6; }
[data-theme="dark"] .coming-copy > p:not(.eyebrow) { color: #c0aecf; }
[data-theme="dark"] .coming-copy .coming-note { color: #aa92bd !important; }
[data-theme="dark"] .coming-copy .text-link { color: #e1c8ff; }
[data-theme="dark"] .future-visual { background: #17101eeF; border-color: #573b6d; box-shadow: 0 15px 45px -20px #0008; }
[data-theme="dark"] .future-bar { color: #b497c9; }
[data-theme="dark"] .planned-badge { background: #30203e; color: #cfb0e8; }
[data-theme="dark"] .future-spark { color: #c795f7; }
[data-theme="dark"] .future-input { background: #100c15; border-color: #3e2b50; color: #a08aac; }
[data-theme="dark"] .future-input span { background: #352046; color: #d2a3fa; }
[data-theme="dark"] .future-tags { color: #bca4cb; }
[data-theme="dark"] .future-tags span { border-color: #3a2946; }
[data-theme="dark"] .future-visual > p { color: #a08bab; }
[data-theme="dark"] summary span { color: #a58abb; }
[data-theme="dark"] .start-instructions { color: #a496b5; }
[data-theme="dark"] .start-instructions strong { color: #d3b5f7; }
[data-theme="dark"] .footer-bottom { color: #a397b1; }
[data-theme="dark"] .skip { background: #ae85f5; color: #130c20; }

.download-section { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 75px; text-align: left; }
.download-section .eyebrow { margin-bottom: 22px; color: #78826d; }
.download-section h2 { font-size: 46px; }
.download-copy > p:not(.eyebrow) { font-size: 15px; color: var(--muted); margin-top: 23px; max-width: 440px; }
.download-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; margin-top: 29px; }
.play-download { display: inline-flex; align-items: center; gap: 16px; min-height: 82px; padding: 17px 22px; border: 1px solid #b9c1ae; border-radius: 14px; background: linear-gradient(135deg, #eef1e6, #e2ebd5); color: #354629; text-align: left; cursor: pointer; box-shadow: 0 8px 24px #26351b12; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.play-download:hover { transform: translateY(-3px); border-color: #718b58; box-shadow: 0 12px 28px #26351b22; }
.play-download:active { transform: translateY(0); }
.play-download:focus-visible { outline: 3px solid #668c2a; outline-offset: 5px; }
.play-download > span:first-of-type { display: flex; flex-direction: column; gap: 4px; }
.play-download small { font-size: 12px; letter-spacing: .02em; }
.play-download strong { font-size: 21px; letter-spacing: -.025em; font-weight: 500; }
.download-arrow { margin-left: 14px; font-size: 24px; }
.download-copy .download-availability { font-size: 11px !important; margin-top: 13px !important; }
.download-app-card { border: 1px solid var(--line); background: #fbfcf8; border-radius: 12px; padding: 30px; }
.download-app-identity { display: flex; align-items: center; gap: 16px; }
.download-app-identity img { border-radius: 14px; }
.download-app-identity h3 { font-size: 25px; margin-bottom: 5px; }
.download-app-identity p { font-size: 11px; color: var(--muted); }
.android-label { margin-left: auto; align-self: flex-start; font: 8px var(--mono); color: #7b876e; padding: 5px 7px; border: 1px solid var(--line); border-radius: 4px; }
.download-card-intro { font-size: 12px; color: var(--muted); margin: 26px 0 6px; }
.download-steps { margin: 0; padding: 0; list-style: none; }
.download-steps li { display: flex; align-items: flex-start; gap: 15px; padding-top: 19px; margin-top: 16px; border-top: 1px solid var(--line); }
.download-steps li > span { font: 10px var(--mono); color: #849575; padding-top: 3px; }
.download-steps strong { font-size: 13px; font-weight: 500; }
.download-steps p { font-size: 11px; color: var(--muted); margin-top: 6px; }
[data-theme="dark"] .download-section .eyebrow { color: #ae95cf; }
[data-theme="dark"] .play-download { background: linear-gradient(135deg, #30203f, #20172b); border-color: #775695; color: #f0e3ff; box-shadow: 0 8px 28px #07030d40; }
[data-theme="dark"] .play-download:hover { border-color: #b58cde; box-shadow: 0 12px 32px #aa72e026; }
[data-theme="dark"] .play-download:focus-visible { outline-color: #c8a3ee; }
[data-theme="dark"] .download-app-card { background: #141119; }
[data-theme="dark"] .android-label,
[data-theme="dark"] .download-steps li > span { color: #ad95c7; }
@media (max-width: 850px) {
  .download-section { grid-template-columns: 1fr; gap: 36px; }
  .download-app-card { max-width: 520px; width: 100%; }
}
@media (max-width: 560px) {
  .download-section h2 { font-size: 36px; }
  .download-copy > p:not(.eyebrow) { font-size: 14px; }
  .download-app-card { padding: 23px; }
  .download-app-identity { gap: 12px; flex-wrap: wrap; }
  .download-app-identity img { width: 53px; height: 53px; }
  .download-app-identity h3 { font-size: 22px; }
  .android-label { font-size: 7px; }
  .preview-banner { gap: 7px 12px; padding: 9px 15px; }
  .preview-banner > span { display: none; }
  .preview-banner a { font-size: 9px; }
  .theme-picker button { min-height: 36px; padding-inline: 8px; font-size: 9px; }
}
