/* OrbKord product page.
   Tokens are taken from the app (css/style.css in the OrbKord repo) so the page and the app look like one product.
   Radius rule: interactive controls are pills, every panel and image is 14px. */

@font-face { font-family: "Archivo"; src: url("fonts/Archivo-normal-100_900.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; }
/* Flat, sharp and natural signs from Noto Music (OFL), merged into the Archivo family for chord names. */
@font-face { font-family: "Archivo"; src: url("fonts/acc.woff2") format("woff2"); unicode-range: U+266D-266F; font-weight: 100 900; font-stretch: 62% 125%; size-adjust: 150%; ascent-override: 62%; descent-override: 12%; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/IBMPlexMono-normal-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/IBMPlexMono-normal-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Bravura"; src: url("fonts/Bravura.woff2") format("woff2"); font-display: block; }

:root {
  --bg: #0b0d11;
  --bg-2: #0f1217;
  --surface: #151920;
  --surface-hi: #1b1f27;
  --line: #262b35;
  --line-soft: #1b1f27;
  --text: #bcc1cb;
  --text-hi: #eef1f5;
  --text-dim: #8b92a1;
  --accent: #5bd1e0;
  --accent-deep: #2e9cad;
  --accent-ink: #04222b;
  --accent-wash: rgba(91, 209, 224, 0.08);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --r: 14px;
  --sans: "Archivo", ui-sans-serif, sans-serif;
  --mono: "Plex Mono", ui-monospace, monospace;
  --wrap: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #eceff3;
    --bg-2: #e4e8ee;
    --surface: #f8f9fb;
    --surface-hi: #ffffff;
    --line: #d4dae2;
    --line-soft: #e3e7ed;
    --text: #373c47;
    --text-hi: #0f1218;
    --text-dim: #5d6473;
    --accent: #1d7181;
    --accent-deep: #1d7181;
    --accent-ink: #ffffff;
    --accent-wash: rgba(42, 147, 165, 0.08);
    --shadow: 0 30px 80px -34px rgba(30, 50, 70, 0.35);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; font-stretch: 100%;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
picture { display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--text-hi); margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1, h2 { font-stretch: 118%; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.9rem); line-height: 1.08; }
h3 { font-size: 1.15rem; font-stretch: 110%; line-height: 1.25; }
p { margin: 0; max-width: 64ch; }
p + p { margin-top: 0.9em; }
b { color: var(--text-hi); font-weight: 600; }
i { font-style: normal; color: var(--text-hi); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 999px; z-index: 100; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  height: 48px; padding: 0 24px; border-radius: 999px; font: 600 1rem/1 var(--sans); font-stretch: 108%;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, white); }
.btn-ghost { border-color: var(--line); color: var(--text-hi); background: transparent; }
.btn-ghost:hover { border-color: var(--accent-deep); color: var(--accent); }
.btn-sm { height: 38px; padding: 0 18px; font-size: 0.92rem; }
.btn .ico { width: 18px; height: 18px; }
.btn-primary .ico { filter: brightness(0) saturate(100%); opacity: 0.85; }
.link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid var(--line-soft); }
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-hi); font-weight: 700; font-stretch: 112%; font-size: 1.12rem; }
.brand .mark { width: 24px; height: 24px; color: var(--accent); }
.nav-links { display: none; gap: 26px; margin-left: auto; font-size: 0.93rem; }
.nav-links a { text-decoration: none; color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-hi); }
.nav .btn { margin-left: auto; }
@media (min-width: 1024px) { .nav-links { display: flex; } .nav .btn { margin-left: 8px; } }

/* ---------- hero ---------- */
.hero { padding: 56px 0 24px; overflow: hidden; }
.hero-text { max-width: 860px; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem); line-height: 1.02; font-stretch: 122%; letter-spacing: -0.02em; }
.lede { margin-top: 22px; font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem); color: var(--text); max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-shot { margin: 48px 0 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0b0d11; }
@media (min-width: 1024px) {
  .hero { padding-top: 72px; }
  .hero-shot { margin-right: -12vw; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-text > * { animation: rise 0.9s var(--ease) both; }
  .hero-text > :nth-child(2) { animation-delay: 0.08s; }
  .hero-text > :nth-child(3) { animation-delay: 0.16s; }
  .hero-shot { animation: rise 1.1s 0.22s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

/* ---------- sections ---------- */
.sec { padding: 88px 0; }
@media (min-width: 768px) { .sec { padding: 120px 0; } }
.sec > .wrap > h2 { margin-bottom: 40px; max-width: 22ch; }

.split { display: grid; gap: 40px; align-items: center; }
.split-text h2 { margin-bottom: 22px; }
.split-media img, .seq-media img, .micro-shot img, .panel img, .cell img { border-radius: var(--r); border: 1px solid var(--line); background: #0b0d11; }
.split-media .mt { margin-top: 16px; }
figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--text-dim); }
@media (min-width: 1024px) {
  .split { grid-template-columns: 5fr 7fr; gap: 64px; }
  .split-rev { grid-template-columns: 7fr 5fr; }
  .split .narrow { max-width: 560px; justify-self: end; }
}

.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.facts li { padding-left: 18px; position: relative; max-width: 52ch; }
.facts li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 2px; background: var(--accent); }

/* ---------- found chords (marquee) ---------- */
.found { padding: 64px 0 72px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.found-h { font-size: clamp(1.1rem, 0.95rem + 0.7vw, 1.5rem); font-stretch: 108%; font-weight: 600; max-width: 40ch; line-height: 1.35; color: var(--text); }
.found-h i { color: var(--text-hi); }
.marquee { margin-top: 32px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 14px; }
.chip { font-family: var(--sans); font-stretch: 112%; font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2.1rem); color: var(--text-hi); padding: 10px 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.chip:nth-child(4n+2) { color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: slide 70s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .marquee-track { flex-wrap: wrap; width: auto; padding: 0 16px; } .marquee { -webkit-mask-image: none; mask-image: none; } }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- bento ---------- */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.cell { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.cell p { color: var(--text); font-size: 0.98rem; }
.cell-file { padding: 0; overflow: hidden; }
.cell-file img { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.cell-file .cell-body { padding: 24px 26px 28px; display: grid; gap: 10px; }
.cell-audio { background: linear-gradient(160deg, var(--accent-wash), transparent 60%), var(--surface); }
.cell-breath { background: radial-gradient(120% 90% at 100% 0%, var(--accent-wash), transparent 60%), var(--surface); }
.cell .link { margin-top: auto; padding-top: 6px; font-size: 0.95rem; }
.keys { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.kc { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; font: 500 0.85rem/1 var(--mono); color: var(--text-hi); background: var(--surface-hi); border: 1px solid var(--line); box-shadow: inset 0 -2px 0 var(--line); }
.kc-alt { color: var(--accent); }
.kc-note { font-size: 0.85rem; color: var(--text-dim); margin-left: 4px; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .cell-file { grid-column: span 4; grid-row: span 2; }
  .cell-keys { grid-column: span 2; }
  .cell-laptop { grid-column: span 2; }
  .cell-audio { grid-column: span 3; }
  .cell-breath { grid-column: span 3; }
}

/* ---------- sequencer ---------- */
.seq { display: grid; gap: 40px; margin-top: 88px; align-items: start; }
.seq-text h3 { font-size: 1.5rem; margin-bottom: 12px; }
.seq-media { margin: 0; max-width: 380px; }
@media (min-width: 1024px) { .seq { grid-template-columns: 7fr 5fr; gap: 64px; } .seq-media { justify-self: center; } }

.spec { margin: 24px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.spec > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.spec dt { color: var(--text-hi); font-weight: 600; }
.spec dd { margin: 0; color: var(--text); }
@media (min-width: 640px) { .spec > div { grid-template-columns: 180px 1fr; gap: 20px; } }

/* ---------- microtonal ---------- */
.micro { background: linear-gradient(180deg, var(--bg-2), var(--bg) 70%); border-top: 1px solid var(--line-soft); }
.micro-lede { font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem); max-width: 58ch; margin-top: -18px; }
.glyphs { list-style: none; padding: 0; margin: 48px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.glyphs li { display: grid; gap: 8px; justify-items: start; padding: 20px 22px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.glyphs .g { font-family: "Bravura"; font-size: 72px; line-height: 1; color: var(--accent); height: 86px; display: flex; align-items: center; }
.glyphs li span:last-child { font-size: 0.9rem; color: var(--text-dim); }
@media (min-width: 768px) { .glyphs { grid-template-columns: repeat(5, 1fr); } }
.micro-shot { margin: 0; }
.micro-notes { display: grid; gap: 22px; margin-top: 40px; }
.micro-notes p { max-width: 52ch; }
@media (min-width: 1024px) { .micro-notes { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

/* ---------- tabs ---------- */
.tablist { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); margin-bottom: 24px; }
.tablist button { font: 600 0.93rem/1 var(--sans); font-stretch: 106%; color: var(--text-dim); background: transparent; border: 0; border-radius: 999px; padding: 11px 18px; cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.tablist button:hover { color: var(--text-hi); }
.tablist button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.panel p { margin-top: 14px; color: var(--text-dim); }
@media (prefers-reduced-motion: no-preference) { .panel:not([hidden]) { animation: fade 0.45s var(--ease); } }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- sound & export ---------- */
.groups { display: grid; gap: 32px; }
.groups > h2 { margin-bottom: 0 !important; }
.group { padding-top: 22px; border-top: 2px solid var(--accent-deep); }
.group h3 { margin-bottom: 10px; }
@media (min-width: 1024px) { .groups { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; align-items: start; } }

.note { margin-top: 22px; padding: 14px 18px; border-left: 2px solid var(--accent); background: var(--accent-wash); border-radius: 0 10px 10px 0; color: var(--text-hi); }

/* ---------- pricing ---------- */
.price-grid { display: grid; gap: 16px; }
@media (min-width: 1024px) { .price-grid { grid-template-columns: 1fr 1fr; } }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.price-main { border-color: var(--accent-deep); background: linear-gradient(170deg, var(--accent-wash), transparent 55%), var(--surface); }
.price { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.price .num { font-family: var(--mono); font-weight: 500; font-size: 3.6rem; line-height: 1; color: var(--text-hi); letter-spacing: -0.03em; }
.price .per { color: var(--text-dim); }
.price-sub { color: var(--text); font-size: 0.98rem; }
.ticks { list-style: none; margin: 4px 0 8px; padding: 0; display: grid; gap: 10px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.price-card .btn { align-self: flex-start; margin-top: auto; }
.packs { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 1rem; }
.packs th { text-align: left; font: 500 0.78rem/1 var(--sans); letter-spacing: 0.04em; color: var(--text-dim); padding: 0 0 12px; }
.packs td { padding: 14px 0; border-top: 1px solid var(--line); color: var(--text-hi); }
.packs td:last-child, .packs th:last-child { text-align: right; color: var(--text-dim); }
.why { margin-top: 56px; display: grid; gap: 14px; max-width: 70ch; }
.why h3 { font-size: 1.35rem; margin-bottom: 4px; }

/* ---------- faq ---------- */
.faq-cols { display: grid; gap: 0 48px; }
@media (min-width: 1024px) { .faq-cols { grid-template-columns: 1fr 1fr; } }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative; color: var(--text-hi); font-weight: 600; font-stretch: 104%; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--text-dim); border-bottom: 2px solid var(--text-dim); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s var(--ease); }
details[open] summary::after { transform: translateY(-25%) rotate(-135deg); border-color: var(--accent); }
details p { padding: 0 0 22px; color: var(--text); }

/* ---------- contact ---------- */
.contact { background: var(--bg-2); border-top: 1px solid var(--line-soft); }
.contact-grid { display: grid; gap: 64px; }
.contact h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); margin-bottom: 18px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1.2fr 1fr; } }
.socials { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.socials a { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text-hi); background: var(--surface); transition: border-color 0.2s, transform 0.2s var(--ease); }
.socials a:hover { border-color: var(--accent-deep); }
.socials a:active { transform: scale(0.98); }
.socials img { width: 20px; height: 20px; filter: invert(1) opacity(0.9); }
@media (prefers-color-scheme: light) { .socials img { filter: none; opacity: 0.85; } .btn-ghost .ico { filter: none; } }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.93rem; }
.foot-links a { color: var(--text-dim); text-decoration: none; }
.foot-links a:hover { color: var(--text-hi); }
.copy { margin-left: auto; color: var(--text-dim); font-size: 0.88rem; }

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
