/* BIRO404 Color Harmony product page. Scoped to main.chp so the site chrome
 * (header, footer, search) keeps its own styles. Reuses the R01 showcase look. */
.chp {
  --ink: #0b0a12; --ink-2: #12101b; --line: #2a2734; --text: #f0eef6; --muted: #a7a3b6; --faint: #8f8ba3;
  --violet: #9b82ff; --magenta: #e05cc4; --cyan: #5ad2e6; --ease: cubic-bezier(0.22, 1, 0.36, 1); --r: 18px;
  background: var(--ink); color: var(--text); font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; color-scheme: dark; overflow-x: clip;
}
.chp *, .chp *::before, .chp *::after { box-sizing: border-box; }
.chp img { max-width: 100%; display: block; }
.chp a { color: inherit; }
.chp .mono { font-family: "IBM Plex Mono", Consolas, monospace; }
.chp .w { max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 48px); }
.chp :focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.chp h1, .chp h2, .chp h3 { color: var(--text); font-family: inherit; margin: 0; }
.chp p { margin: 0; }

/* Hero */
.chp .hero { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(40px, 6vw, 72px) clamp(48px, 6vw, 80px); }
.chp .hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(ellipse 60% 55% at 72% 46%, rgba(124, 92, 240, 0.22), transparent 70%),
  radial-gradient(ellipse 50% 40% at 18% 90%, rgba(224, 92, 196, 0.10), transparent 70%), var(--ink); }
.chp .hero-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chp .hero-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 38% 46% at 24% 50%, rgba(11, 10, 18, 0.82), rgba(11, 10, 18, 0) 72%); }
.chp .hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 24px; }
.chp .eyebrow { color: var(--muted); font-size: 15px; font-weight: 600; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.chp .mark { display: inline-flex; gap: 3px; align-items: center; }
.chp .mark i { display: block; width: 5px; height: 18px; border-radius: 3px; background: var(--violet); }
.chp .mark i:nth-child(2) { height: 12px; background: var(--magenta); }
.chp .mark i:nth-child(3) { background: var(--cyan); }
.chp h1 { font-size: clamp(40px, 4.6vw, 68px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 800; max-width: 14ch; text-wrap: balance; }
.chp .lede { color: var(--muted); font-size: clamp(17px, 1.35vw, 20px); font-weight: 450; max-width: 36ch; margin: 20px 0 30px; }
.chp .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.chp .btn-dl, .chp .btn-ghost { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease); }
.chp .btn-dl { color: #fbf9ff; background: linear-gradient(90deg, #6a50d8, #a23f9a); border: 1px solid #8a6cf5; }
.chp .btn-dl:hover { border-color: #c4b2ff; }
.chp .btn-ghost { color: var(--text); background: rgba(255,255,255,0.04); border: 1px solid #3a3745; }
.chp .btn-ghost:hover { border-color: #6b6680; background: rgba(255,255,255,0.07); }
.chp .btn-dl:active, .chp .btn-ghost:active { transform: scale(0.97); }
.chp .btn-dl svg { width: 18px; height: 18px; }
.chp .facts { margin-top: 18px; color: var(--faint); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.chp .facts a { color: var(--muted); text-underline-offset: 3px; }

.chp .stage { position: relative; height: min(74vh, 720px); min-height: 520px; perspective: 1900px; }
.chp .device { position: absolute; right: 2%; top: 50%; height: 100%; aspect-ratio: 300 / 900; transform: translateY(-50%) rotateY(-17deg) rotateX(3deg); transform-style: preserve-3d;
  padding: 1.5px; border-radius: 13px; background: linear-gradient(160deg, #b9a6ff, #e05cc4 45%, #5ad2e6);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 0 60px rgba(155,130,255,0.35), 0 0 140px rgba(90,210,230,0.18), 0 40px 90px rgba(0,0,0,0.6); }
.chp .device-inner { width: 100%; height: 100%; border-radius: 11.5px; overflow: hidden; position: relative; background: #131218; }
.chp .device-inner img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.chp .device-inner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.03) 32%, transparent 33%); pointer-events: none; }
.chp .plane { position: absolute; left: 0; bottom: 9%; width: 58%; transform: rotateY(-17deg) rotateX(3deg) translateZ(90px);
  padding: 14px; border-radius: 20px; background: rgba(20, 18, 28, 0.9); border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), 0 0 50px rgba(155,130,255,0.18); }
.chp .plane-head { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 12px; font-size: 15px; }
.chp .plane-head span { color: var(--faint); font-size: 13px; }
.chp .plane-fields { display: flex; height: 160px; border-radius: 12px; overflow: hidden; }
.chp .plane-fields div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 12px; font-size: 13px; font-weight: 600; }
.chp .plane-fields small { font-size: 11px; opacity: 0.85; margin-bottom: 2px; font-weight: 400; }

/* Sections */
.chp .sec { padding-block: clamp(56px, 7vw, 104px); }
.chp h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; max-width: 22ch; text-wrap: balance; margin-bottom: 14px; }
.chp .body { color: var(--muted); max-width: 58ch; }
.chp .video { margin-top: 32px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--ink-2); aspect-ratio: 16 / 9; }
.chp .video video { width: 100%; height: 100%; display: block; }

.chp .try { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.chp .sim { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; border: 1px solid #4a3f73; background: rgba(155,130,255,0.08); color: #cfc4ff; font-size: 14px; font-weight: 600; }
.chp .try-frame { border-radius: 16px; padding: 1px; background: linear-gradient(160deg, #6f5bd6, #2a2734 40%, #2a2734 70%, #3d8fa0); }
.chp .try-frame iframe { display: block; width: 100%; height: 900px; border: 0; border-radius: 15px; background: #131218; }
.chp .picker { margin-top: 28px; }
.chp .picker-label { color: var(--muted); font-size: 15px; margin-bottom: 12px; }
.chp .picker-row { display: flex; flex-wrap: wrap; gap: 12px; }
.chp .pick { width: 52px; height: 52px; border-radius: 14px; border: 1px solid rgba(255,255,255,0.14); cursor: pointer; transition: transform 160ms var(--ease), border-color 160ms var(--ease); }
.chp .pick:hover { border-color: rgba(255,255,255,0.6); }
.chp .pick:active { transform: scale(0.95); }
.chp .fg { margin-top: 24px; display: inline-flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--ink-2); border: 1px solid var(--line); }
.chp .fg-chip { width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(255,255,255,0.16); }
.chp .fg small { display: block; color: var(--faint); font-size: 12px; }
.chp .note { color: var(--faint); font-size: 14px; margin-top: 16px; max-width: 52ch; }

.chp .bento { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; margin-top: 36px; }
.chp .cell { border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 30px); overflow: hidden; display: flex; flex-direction: column; gap: 14px; }
.chp .cell.big { grid-row: span 2; background: radial-gradient(ellipse 80% 60% at 30% 10%, rgba(124,92,240,0.16), transparent 70%), var(--ink-2); }
.chp .cell.cy { background: radial-gradient(ellipse 80% 70% at 90% 100%, rgba(90,210,230,0.12), transparent 70%), var(--ink-2); }
.chp .cell h3 { font-size: 20px; letter-spacing: -0.01em; }
.chp .cell p { color: var(--muted); font-size: 15px; max-width: 42ch; }
.chp .cell .shot { margin-top: auto; border-radius: 12px; overflow: hidden; }
.chp .cell.big .shot { height: 540px; }
.chp .cell.big .shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }

.chp .dl { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; border-radius: 28px; padding: clamp(28px, 5vw, 64px);
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(224, 92, 196, 0.14), transparent 70%), radial-gradient(ellipse 50% 70% at 0% 100%, rgba(90, 210, 230, 0.10), transparent 70%), var(--ink-2); border: 1px solid var(--line); }
.chp .dl-meta { margin: 22px 0 26px; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: 15px; }
.chp .dl-meta dt { color: var(--faint); }
.chp .dl-meta dd { margin: 0; }
.chp .dl ul { list-style: none; padding: 0; margin: 0; }
.chp .dl li { padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.chp .dl li:last-child { border-bottom: 0; }
.chp .dl li span { display: block; color: var(--faint); font-size: 14px; }
.chp .sha { margin-top: 16px; color: var(--faint); font-size: 12px; word-break: break-all; }

.chp details.spec { margin-top: 8px; }
.chp details.spec summary { cursor: pointer; list-style: none; }
.chp details.spec summary::-webkit-details-marker { display: none; }
.chp details.spec summary h2 { display: inline; }
.chp .specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); margin-top: 28px; }
.chp .specs h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chp .specs ul { list-style: none; margin: 0; padding: 0; }
.chp .specs li { padding: 7px 0; font-size: 16px; }

.chp .custom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px 56px; color: var(--muted); font-size: 16px; }
.chp .custom a { color: var(--text); font-weight: 600; text-underline-offset: 4px; }
.chp .tm { color: var(--faint); font-size: 13px; padding-bottom: 40px; }

/* Download files, install steps, privacy and license. Same tokens as above. */
.chp .rc-note { margin: 0; padding-top: 14px; color: #ffd77a; font-size: 14px; }
.chp .btn-dl.is-ph { background: rgba(255,215,122,0.06); border: 1px dashed #b89a4e; color: #ffd77a; cursor: default; }
.chp .files { display: grid; gap: 10px; margin-top: 26px; }
.chp .file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); text-decoration: none;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease); }
.chp a.file:hover { border-color: #6b6680; background: rgba(255,255,255,0.05); }
.chp .file b { font-weight: 650; font-size: 16px; }
.chp .file small { grid-column: 1 / -1; color: var(--faint); font-size: 13px; }
.chp .file .size { color: var(--muted); font-size: 14px; white-space: nowrap; }
.chp .file.is-ph { border-style: dashed; border-color: #6e5e36; }
.chp .file.is-ph b { color: #ffd77a; }
.chp .file.is-soon { border-style: dashed; }
.chp .ch-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: 32px; }
.chp .ch-steps h3 { font-size: 17px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.chp .ch-steps ol { margin: 0; padding-left: 1.2em; color: var(--muted); font-size: 15px; }
.chp .ch-steps li { padding: 4px 0; }
.chp .ch-steps li::marker { color: var(--faint); }
.chp .ui { color: var(--text); font-weight: 600; }
.chp .legal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chp .legal > div { border-radius: var(--r); border: 1px solid var(--line); background: var(--ink-2); padding: clamp(20px, 3vw, 34px); scroll-margin-top: 90px; }
.chp .legal h2 { font-size: clamp(24px, 2.4vw, 32px); }
.chp .legal ul { margin: 14px 0 0; padding-left: 1.1em; color: var(--muted); font-size: 15px; }
.chp .legal li { padding: 4px 0; }
.chp .legal p { color: var(--muted); font-size: 15px; margin-top: 12px; }
.chp .legal a { text-underline-offset: 3px; }
.chp #download, .chp #install { scroll-margin-top: 90px; }

@media (max-width: 900px) {
  .chp .hero-grid { grid-template-columns: 1fr; }
  .chp .stage { height: 540px; min-height: 0; }
  .chp .plane { width: 70%; }
  .chp .try { grid-template-columns: 1fr; }
  .chp .try-frame { max-width: 360px; }
  .chp .bento { grid-template-columns: 1fr; }
  .chp .cell.big { grid-row: auto; }
  .chp .specs { grid-template-columns: 1fr; }
  .chp .dl { grid-template-columns: 1fr; }
  .chp .ch-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chp .legal { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .chp .plane { display: none; }
  .chp .device { right: 50%; transform: translate(50%, -50%) rotateY(-12deg); }
  .chp .bento-sec { display: none; }
  .chp .stage { height: 400px; }
  .chp .try-frame iframe { height: 780px; }
  .chp .sec { padding-block: 48px; }
  .chp .btn-dl, .chp .btn-ghost { flex: 1 1 100%; justify-content: center; }
  .chp .ch-steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .chp *, .chp *::before, .chp *::after { transition-duration: 0ms !important; }
}

/* BIRO404_COLOR_HARMONY_FINAL_PRODUCT_SHOWCASE_R01 (1.3.0): wheel in action, wheel bento cell */
.chp .act { padding-top: 0; }
.chp .act-row { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.chp .act-row figure { margin: 0; border-radius: var(--r); background: var(--ink-2); border: 1px solid var(--line); padding: 14px 14px 18px; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.chp .act-row img { width: 100%; height: auto; display: block; border-radius: 12px; }
.chp .act-row figcaption { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--muted); padding: 0 4px; }
.chp .act-row figcaption b { color: var(--text); font-size: 17px; letter-spacing: -0.01em; }
.chp .cell.big .shot.wheel { height: auto; max-width: 440px; width: 100%; margin-left: auto; margin-right: auto; }
.chp .cell.big .shot.wheel img { height: auto; object-fit: contain; }
@media (max-width: 900px) { .chp .act-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  .chp .act-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-right: calc(-1 * var(--gut, 20px)); padding-right: var(--gut, 20px); padding-bottom: 6px; }
  .chp .act-row li { flex: 0 0 80%; scroll-snap-align: start; }
}
