/* Miami Cruise - generated by build.py. Dark is the default; light via [data-theme="light"]. */

:root, [data-theme="dark"] {
  color-scheme: dark;
  --mc-bg: #0d1d22;
  --mc-panel: #04161a;
  --mc-border: #253c42;
  --mc-hover: #182c32;
  --mc-row: #122428;
  --mc-text: #deebec;
  --mc-muted: #9fbabf;
  --mc-disabled: #6a8d94;
  --mc-accent: #ff7fc0;
  --mc-on-accent: #04161a;
  --mc-focus: #ff7fc0;
  --mc-success: #5ed99e;
  --mc-warning: #ecd065;
  --mc-danger: #fd717c;
  --mc-info: #70d5ed;
  --mc-orange: #fb9d59;
  --mc-orchid: #d7a0e3;
}

[data-theme="light"] {
  color-scheme: light;
  --mc-bg: #f1f8f9;
  --mc-panel: #e4eff1;
  --mc-border: #c9dcde;
  --mc-hover: #dfecee;
  --mc-row: #ebf4f5;
  --mc-text: #142a30;
  --mc-muted: #3a5157;
  --mc-disabled: #566e74;
  --mc-accent: #b51c79;
  --mc-on-accent: #f1f8f9;
  --mc-focus: #b51c79;
  --mc-success: #008254;
  --mc-warning: #906b00;
  --mc-danger: #c8414c;
  --mc-info: #007c91;
  --mc-orange: #b35713;
  --mc-orchid: #935ba0;
}

/* Miami Cruise glow layer - OPTIONAL. Decoration only; nothing here carries meaning.
   Every glow sits on something that already has a solid state (stripe, outline, fill).
   Import after miami-cruise.css; skip it where shadows/blur are unsupported. */
:root, [data-theme] {
  --mc-glow-strength: 45%;
  --mc-glow-soft: 22%;
}
@supports (color: color-mix(in oklab, red, blue)) {
  :root, [data-theme] {
    --mc-glow-hero:  0 0 14px color-mix(in oklab, var(--mc-accent) var(--mc-glow-strength), transparent);
    --mc-glow-focus: 0 0 0 3px color-mix(in oklab, var(--mc-accent) var(--mc-glow-soft), transparent),
                     0 0 12px color-mix(in oklab, var(--mc-accent) calc(var(--mc-glow-strength) - 10%), transparent);
    --mc-glow-text:  0 0 8px color-mix(in oklab, var(--mc-accent) 50%, transparent);
    --mc-select-bg:  color-mix(in oklab, var(--mc-accent) 18%, transparent);
    --mc-vignette:   radial-gradient(120% 90% at 50% 0, color-mix(in oklab, var(--mc-accent) 8%, var(--mc-bg)), var(--mc-bg) 55%);
  }
  .mc-primary  { box-shadow: var(--mc-glow-hero); }
  .mc-focus:focus-visible { box-shadow: var(--mc-glow-focus); }
  .mc-selected { background: var(--mc-select-bg); text-shadow: var(--mc-glow-text); }
  .mc-surface  { background: var(--mc-vignette); }
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --mc-bg: #f1f8f9;
    --mc-panel: #e4eff1;
    --mc-border: #c9dcde;
    --mc-hover: #dfecee;
    --mc-row: #ebf4f5;
    --mc-text: #142a30;
    --mc-muted: #3a5157;
    --mc-disabled: #566e74;
    --mc-accent: #b51c79;
    --mc-on-accent: #f1f8f9;
    --mc-focus: #b51c79;
    --mc-success: #008254;
    --mc-warning: #906b00;
    --mc-danger: #c8414c;
    --mc-info: #007c91;
    --mc-orange: #b35713;
    --mc-orchid: #935ba0;
  }
}

/* Miami Cruise site. The palette variables (--mc-*) and the glow layer are prepended at build time,
   and "auto" follows the system through prefers-color-scheme unless data-theme is set. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--mc-bg);
  color: var(--mc-text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; overflow-wrap: anywhere; }
a { color: var(--mc-accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code, pre, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
code { background: var(--mc-panel); border-radius: 4px; padding: .1em .25em; font-size: .9em; overflow-wrap: anywhere; }
pre code { background: none; border: 0; border-radius: 0; padding: 0; font-size: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 2px solid var(--mc-focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mc-accent); color: var(--mc-on-accent); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in oklab, var(--mc-panel) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--mc-border); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 60px; flex-wrap: wrap; padding-block: 6px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--mc-text); text-decoration: none; font-weight: 700; letter-spacing: .01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand:hover { text-decoration: none; color: var(--mc-accent); }
nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; flex-wrap: wrap; }
nav a { color: var(--mc-muted); text-decoration: none; padding: 6px 12px; border-radius: 8px; }
nav a:hover, nav a[aria-current="page"] { color: var(--mc-text); background: var(--mc-hover); }
.seg { display: inline-flex; border: 1px solid var(--mc-border); border-radius: 10px; overflow: hidden; background: var(--mc-bg); }
.seg button { font: inherit; font-size: .85rem; color: var(--mc-muted); background: none; border: 0; padding: 6px 12px; cursor: pointer; }
.seg button + button { border-left: 1px solid var(--mc-border); }
.seg button:hover { color: var(--mc-text); background: var(--mc-hover); }
.seg button[aria-pressed="true"] { background: var(--mc-accent); color: var(--mc-on-accent); font-weight: 700; }
.seg button:focus-visible { outline-offset: -3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  color: var(--mc-on-accent); background: var(--mc-accent); border: 1px solid var(--mc-accent); border-radius: 10px; padding: 10px 18px; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--mc-text); border-color: var(--mc-border); box-shadow: none; font-weight: 600; }
.btn.ghost:hover { border-color: var(--mc-accent); color: var(--mc-accent); filter: none; }
.btn small { font-weight: 500; opacity: .85; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding: 56px 0 36px; }
.eyebrow { color: var(--mc-info); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; margin: 0 0 10px; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 14px; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--mc-accent); }
h2 { font-size: 1.5rem; margin: 0 0 6px; }
h3 { font-size: 1.1rem; margin: 22px 0 6px; }
.lead { font-size: 1.15rem; color: var(--mc-text); max-width: 34em; margin: 0 0 24px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.scene { border-radius: 18px; overflow: hidden; border: 1px solid var(--mc-border); box-shadow: 0 18px 50px -18px color-mix(in oklab, var(--mc-accent) 40%, transparent); background: #04161a; }
.scene svg { display: block; width: 100%; height: auto; }

/* Search + cards */
.section { padding: 28px 0; }
.section > .wrap > p.sub { color: var(--mc-muted); margin: 0 0 18px; }
.search { display: flex; align-items: center; gap: 10px; background: var(--mc-panel); border: 1px solid var(--mc-border); border-radius: 12px; padding: 4px 14px; margin: 0 0 8px; max-width: 560px; }
.search:focus-within { border-color: var(--mc-focus); }
.search input { flex: 1; font: inherit; color: var(--mc-text); background: none; border: 0; outline: 0; padding: 10px 0; min-width: 0; }
.search input::placeholder { color: var(--mc-disabled); }
.search kbd { font-size: .75rem; color: var(--mc-muted); border: 1px solid var(--mc-border); border-radius: 6px; padding: 1px 7px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.chips button { font: inherit; font-size: .85rem; color: var(--mc-muted); background: var(--mc-panel); border: 1px solid var(--mc-border); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.chips button:hover { color: var(--mc-text); border-color: var(--mc-accent); }
.chips button[aria-pressed="true"] { background: var(--mc-accent); border-color: var(--mc-accent); color: var(--mc-on-accent); font-weight: 700; }
.count { color: var(--mc-muted); font-size: .9rem; min-height: 1.5em; margin: 0 0 14px; }
.app-groups { display: grid; gap: 26px; }
.app-groups[hidden], .app-group[hidden] { display: none; }
.app-group h3 { margin: 0 0 12px; color: var(--mc-text); font-size: 1.15rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; padding: 0; margin: 0; list-style: none; }
.grid[hidden], [data-card][hidden] { display: none; }
.card { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 20px; color: var(--mc-text); text-decoration: none;
  background: var(--mc-panel); border: 1px solid var(--mc-border); border-radius: 14px; transition: border-color .15s, transform .15s; }
.card:hover { text-decoration: none; border-color: var(--mc-accent); transform: translateY(-2px); }
.app-icon { width: 56px; height: 56px; flex-shrink: 0; position: relative; display: grid; place-items: center;
  border-radius: 14px; font-weight: 800; font-size: 1.1rem; overflow: hidden;
  color: var(--mc-accent); background: var(--mc-bg); border: 1px solid var(--mc-border); }
.app-icon img { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; padding: 10px;
  object-fit: contain; background: var(--mc-bg); }
.app-icon img[hidden] { display: none; }
.icon-fallback { position: absolute; inset: 0; display: grid; place-items: center;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 20px; font-weight: 700;
  letter-spacing: -.7px; box-shadow: inset 0 1px 0 color-mix(in srgb, var(--mc-text) 6%, transparent); }
.icon-fallback::after { content: ""; position: absolute; bottom: 0; left: 15px; right: 15px; height: 2px;
  background: currentColor; opacity: .8; }
.badge-info { color: var(--mc-info); }
.badge-orchid { color: var(--mc-orchid); }
.badge-length-4 .icon-fallback { font-size: 16px; letter-spacing: -.6px; }
.apphead .icon-fallback { font-size: 26px; }
.apphead .badge-length-4 .icon-fallback { font-size: 21px; }
.apphead .icon-fallback::after { left: 20px; right: 20px; }
.card:hover .app-icon { border-color: var(--mc-accent); }
.credits { display: grid; gap: 18px; margin-top: 28px; }
.credits p { overflow-wrap: anywhere; }
.card strong { font-size: 1.1rem; }
.card p { margin: 0; color: var(--mc-text); font-size: .95rem; flex: 1; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.tag { font-size: .75rem; color: var(--mc-muted); border: 1px solid var(--mc-border); border-radius: 999px; padding: 1px 10px; }
.empty { padding: 24px; border: 1px dashed var(--mc-border); border-radius: 12px; color: var(--mc-muted); }

/* Palette */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.swatch { font: inherit; cursor: pointer; text-align: left; padding: 0; border: 1px solid var(--mc-border); border-radius: 12px; overflow: hidden; background: var(--mc-panel); color: var(--mc-text); }
.swatch:hover { border-color: var(--mc-accent); }
.swatch i { display: block; height: 52px; }
.swatch span { display: block; padding: 6px 10px 8px; font-size: .78rem; line-height: 1.35; }
.swatch b { display: block; font-size: .82rem; }
.swatch code { background: none; border: 0; padding: 0; color: var(--mc-muted); }
.ramp { margin: 0 0 22px; }
.ramp h3 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--mc-border); vertical-align: middle; }
th { color: var(--mc-muted); background: var(--mc-panel); font-weight: 600; }
td .dot { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 8px; border: 1px solid var(--mc-border); }
.tablewrap { overflow-x: auto; border: 1px solid var(--mc-border); border-radius: 12px; }
.tablewrap table { min-width: 560px; }
.tablewrap tr:last-child td { border-bottom: 0; }

/* App page */
.crumbs { color: var(--mc-muted); font-size: .9rem; padding: 26px 0 0; }
.crumbs a { color: var(--mc-muted); }
.apphead { display: flex; gap: 18px; align-items: center; padding: 14px 0 6px; flex-wrap: wrap; }
.apphead .app-icon { width: 72px; height: 72px; font-size: 1.6rem; border-radius: 18px; }
.apphead .app-icon img { padding: 13px; }
.apphead h1 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.apphead p { margin: 8px 0 0; color: var(--mc-text); max-width: 65ch; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; align-items: start; padding-bottom: 40px; }
.side { display: grid; gap: 20px; min-width: 0; }
.instructions { min-width: 0; font-size: 1.0625rem; line-height: 1.75; }
.instructions p { max-width: 68ch; }
.instructions :is(h2, h3) { scroll-margin-top: 140px; }
.box { background: var(--mc-panel); border: 1px solid var(--mc-border); border-radius: 14px; padding: 22px; }
.box h2 { font-size: 1rem; margin: 0 0 10px; }
.dl { display: grid; gap: 10px; }
.dl .btn { overflow-wrap: anywhere; min-width: 0; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
.meta { margin: 8px 0 0; font-size: .8rem; color: var(--mc-muted); word-break: break-all; }
.meta code { font-size: .72rem; }
.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; font-size: .95rem; color: var(--mc-text); }
.facts b { color: var(--mc-text); font-weight: 600; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; margin: 28px 0 40px; }
.shots figure { margin: 0; min-width: 0; max-width: 760px; }
.shot-preview { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  padding: 0; background: var(--mc-panel);
  border: 1px solid var(--mc-border); border-radius: 12px; cursor: zoom-in; }
.shot-preview:hover { border-color: var(--mc-accent); }
.shot-preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.screenshot-dialog { width: min(1400px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px);
  padding: 20px; color: var(--mc-text); background: var(--mc-bg); border: 1px solid var(--mc-border); border-radius: 14px; }
.screenshot-dialog::backdrop { background: rgb(0 0 0 / .8); }
.zoom-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.zoom-toolbar p { margin: 0; flex: 1 1 260px; }
.zoom-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.zoom-actions .btn { padding: 6px 12px; font-size: .9rem; }
.zoom-stage { overflow: auto; max-height: calc(100dvh - 180px); background: var(--mc-panel); border-radius: 6px; }
.zoom-stage img { margin-inline: auto; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 180px); object-fit: contain; }
.zoom-actual .zoom-stage img { max-width: none; max-height: none; }
html:has(.screenshot-dialog[open]) { overflow: hidden; }
@media (max-width: 540px) {
  .screenshot-dialog { padding: 14px; }
  .zoom-stage, .zoom-stage img { max-height: calc(100dvh - 230px); }
}
.shots figcaption { color: var(--mc-muted); font-size: .85rem; padding-top: 6px; }
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
ol.steps > li { counter-increment: s; position: relative; padding-left: 48px; min-width: 0; }
ol.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  font-weight: 800; color: var(--mc-on-accent); background: var(--mc-accent); }
ol.steps h3 { margin: 0 0 16px; line-height: 1.4; font-size: 1.2rem; }
ol.steps p { margin: 0 0 18px; }
.code { position: relative; margin: 0 0 12px; min-width: 0; }
.code .os { display: block; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mc-muted); margin: 0 0 4px; }
.code pre { margin: 0; padding: 14px 16px; padding-bottom: 48px; background: var(--mc-panel); border: 1px solid var(--mc-border); border-radius: 10px; overflow-x: auto; font-size: .92rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.copy { position: absolute; right: 8px; bottom: 8px; font: inherit; font-size: .78rem; color: var(--mc-text); background: var(--mc-hover); border: 1px solid var(--mc-border); border-radius: 8px; padding: 3px 10px; cursor: pointer; }
.copy:hover { border-color: var(--mc-accent); color: var(--mc-accent); }
.copy[hidden] { display: none; }
.note { border-left: 3px solid var(--mc-info); background: var(--mc-panel); padding: 10px 14px; border-radius: 0 10px 10px 0; color: var(--mc-text); margin: 0 0 10px; }
.note b { color: var(--mc-text); }
.note.warn { border-left-color: var(--mc-warning); }
.hl { color: var(--mc-accent); }
.logos { display: flex; gap: 22px; flex-wrap: wrap; }
.logos figure { margin: 0; text-align: center; }
.logos img { border-radius: 22px; border: 1px solid var(--mc-border); }
.logos figcaption { padding-top: 6px; font-size: .85rem; }

/* Secondary details remain accessible without competing with setup steps. */
.disclosure { margin: 18px 0; }
.disclosure summary, .checksum summary { cursor: pointer; color: var(--mc-muted); font-size: .9rem; }
.disclosure summary:hover, .checksum summary:hover { color: var(--mc-accent); }
.disclosure[open] > summary { margin-bottom: 14px; }
.disclosure p { font-size: .95rem; }
.checksum { margin: 0 0 10px; }
.checksum code { display: block; overflow-wrap: anywhere; margin-top: 8px; font-size: .8rem; }
@media (max-width: 540px) {
  .wrap { width: calc(100% - 32px); }
  ol.steps > li { padding-left: 0; padding-top: 42px; }
  ol.steps > li::before { top: 0; }
  .instructions { font-size: 1rem; }
  .code pre { padding-inline: 12px; font-size: .85rem; }
}

/* Footer */
footer { border-top: 1px solid var(--mc-border); background: var(--mc-panel); color: var(--mc-muted); padding: 22px 0; font-size: .9rem; margin-top: 30px; }
footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer a { color: var(--mc-muted); }
footer a:hover { color: var(--mc-accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 34px; }
  .scene { order: -1; max-width: 420px; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  nav { order: 3; flex-basis: 100%; margin-left: 0; }
  .top .wrap { gap: 8px 14px; }
  .top .seg { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
  .card:hover { transform: none; }
}
