/* Irish Bouzouki Chords — the app's own "Bog Oak" look (IBC R1 Gate A): dark green-black,
   cream text, one brass accent, serif chord names, every course drawn as its pair of strings.
   The colours are the app's tokens (play/styles/app.css), so the page, the live chord box and
   the screenshots agree.

   Loaded AFTER ../style.css on every page in this folder: it re-points the house variables,
   so privacy.html and support.html take the look with no markup changes, and adds the
   components only index.html uses. No web fonts and no requests: the serif stack is the app's.
   The app is dark-only, so this page is too. */

:root {
  --bg: #121b17;
  --fg: #f1e8d6;
  --muted: #b8ad98;
  --faint: #a09783;
  --rule: #33463d;
  --surface: #1b2722;
  --surface-2: #233229;
  --accent: #e3a83f;
  --accent-soft: rgba(227, 168, 63, .14);
  --on-accent: #1a1408;
  --wire: #6b8275;
  --string: #c9bda5;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
/* the house sheet flips to its own dark palette here; keep Bog Oak instead */
@media (prefers-color-scheme: dark) {
  :root { --bg: #121b17; --fg: #f1e8d6; --muted: #b8ad98; --rule: #33463d; }
}

body { background: var(--bg); color: var(--fg); font-family: var(--sans); }
main a { text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* privacy and support: the house page, set in the app's type */
main h1, main h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; text-transform: none; color: var(--fg); }
main h1 { font-size: clamp(2rem, 6vw, 2.75rem); line-height: 1.05; }
main h2 { font-size: 1.375rem; margin-top: 2.5rem; }
main .sub { color: var(--accent); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8125rem; }

/* ------------------------------------------------------------------ the landing page */
.ibc { --gut: clamp(1rem, 5vw, 3rem); overflow-x: hidden; }
.ibc main { max-width: none; padding: 0; line-height: 1.55; }
.ibc main h2 { border-bottom: 0; padding-bottom: 0; }

/* Four courses run down the whole page behind everything, and shiver when you strum. */
.ibc .strings {
  position: fixed; inset: 0 auto 0 50%; width: min(86vw, 30rem); transform: translateX(-50%);
  display: flex; justify-content: space-between; pointer-events: none; z-index: 0; opacity: .13;
}
.ibc .strings i { display: block; width: 5px; height: 100%; border-left: 1px solid var(--string); border-right: 1px solid var(--string); }
.ibc .strings i.shiver { animation: shiver 1.6s cubic-bezier(.2, .7, .3, 1); }
@keyframes shiver {
  0% { transform: translateX(0); opacity: 1; } 6% { transform: translateX(3px); } 12% { transform: translateX(-3px); }
  18% { transform: translateX(2px); } 26% { transform: translateX(-2px); } 36% { transform: translateX(1px); }
  50% { transform: translateX(-.5px); } 100% { transform: translateX(0); }
}
.ibc .top, .ibc main, .ibc footer { position: relative; z-index: 1; }

.ibc .top { padding: 1.25rem var(--gut); font-size: 0.9375rem; }
.ibc .top a { text-decoration: none; color: var(--muted); display: inline-flex; min-height: 40px; align-items: center; }
.ibc .top a:hover { color: var(--fg); }

/* ---------------------------------------------------------------- the hero */
.ibc .hero {
  max-width: 68rem; margin: 0 auto; padding: clamp(0.5rem, 4vw, 3.5rem) var(--gut) clamp(2rem, 6vw, 4rem);
  display: grid; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 56rem) { .ibc .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* on a phone the chord box comes straight after the name, before the copy and the buttons */
@media (max-width: 55.99rem) {
  .ibc .hero { gap: 0; }
  .ibc .hero > div { display: contents; }
  .ibc .hero .stage { order: 1; margin: .5rem 0 1.75rem; }
  .ibc .hero .lede, .ibc .hero .actions, .ibc .hero .small { order: 2; }
}
.ibc .kicker { margin: 0 0 0.6rem; color: var(--accent); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.ibc h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 9vw, 4.75rem); line-height: 0.98; letter-spacing: -0.02em; margin: 0 0 1rem; }
.ibc h1 em { font-style: italic; font-weight: 400; color: var(--accent); }
.ibc .tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.3; margin: 0 0 1rem; max-width: 30rem; }
.ibc .lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); line-height: 1.55; color: var(--muted); margin: 0 0 1.75rem; max-width: 32rem; }

.ibc .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin: 0 0 1rem; }
.ibc .btn {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 48px; padding: 0 1.4rem;
  border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none;
  background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent);
}
.ibc .btn:hover { background: var(--fg); border-color: var(--fg); }
.ibc .btn svg { width: 15px; height: 18px; fill: currentColor; }
.ibc .btn.alt { background: transparent; color: var(--fg); border-color: var(--rule); }
.ibc .btn.alt:hover { border-color: var(--fg); }
.ibc .soon {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: 0 1.2rem; border-radius: 999px;
  border: 1px solid var(--rule); color: var(--muted); font-weight: 600; font-size: 0.9375rem;
}
.ibc .soon svg { width: 15px; height: 18px; fill: currentColor; }
.ibc .small { color: var(--faint); font-size: 0.875rem; margin: 0; }
.ibc .small a { color: var(--muted); }

/* the stage: a real chord box from the app's engine, played by dragging across it */
.ibc .stage {
  position: relative; border-radius: 28px; padding: 1.25rem 1rem 1rem;
  background: radial-gradient(120% 90% at 50% 35%, var(--surface-2), var(--surface) 60%, #16211c);
  border: 1px solid var(--rule); overflow: hidden; isolation: isolate;
}
.ibc .ghost {
  position: absolute; z-index: -1; left: -0.04em; top: -0.18em; margin: 0;
  font: 400 clamp(11rem, 52vw, 17rem)/1 var(--serif); color: var(--accent); opacity: .09; letter-spacing: -0.04em;
  transition: opacity .25s; pointer-events: none; white-space: nowrap;
}
.ibc .ghost.swap { opacity: 0; }
.ibc .stage-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin: 0 .25rem; }
.ibc .stage-name { font: 400 clamp(1.9rem, 7vw, 2.4rem)/1 var(--serif); margin: 0; }
.ibc .stage-name small { font: 600 .75rem var(--sans); color: var(--faint); letter-spacing: .1em; text-transform: uppercase; margin-left: .4rem; }
.ibc .stage-open { color: var(--accent); font-size: .875rem; text-decoration: none; white-space: nowrap; display: inline-flex; min-height: 40px; align-items: center; }

.ibc .strum {
  display: flex; justify-content: center; align-items: center; min-height: 15.5rem; margin: .25rem 0 0;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.ibc .strum:active { cursor: grabbing; }
.ibc .strum svg { width: min(58vw, 15.5rem); height: auto; overflow: visible; }
.ibc .bx text { font-family: var(--sans); text-anchor: middle; dominant-baseline: middle; }
.ibc .bx-fret { stroke: var(--wire); stroke-width: 1.2; }
.ibc .bx-nut { stroke: var(--fg); stroke-width: 4; stroke-linecap: round; }
.ibc .bx-str { stroke: var(--string); stroke-width: 1; }
.ibc .bx-open { fill: none; stroke: var(--muted); stroke-width: 1.4; }
.ibc .bx-mute { stroke: var(--faint); stroke-width: 1.4; }
.ibc .bx-dot { fill: var(--fg); }
.ibc .bx-dot.is-root { fill: var(--accent); }
.ibc .bx-fn { fill: #121b17; font-size: 10px; font-weight: 700; }
.ibc .bx-fn.is-root { fill: var(--on-accent); }
.ibc .bx-barre { fill: var(--fg); opacity: .55; }
.ibc .bx-note { fill: var(--muted); font-size: 10px; }
.ibc .bx-note.is-root { fill: var(--accent); font-weight: 700; }
.ibc .bx .bx-pos { fill: var(--accent); font-size: 12px; font-weight: 700; text-anchor: end; }
/* a new chord's fingers land one after another */
.ibc .strum .enter .bx-dot, .ibc .strum .enter .bx-fn, .ibc .strum .enter .bx-open, .ibc .strum .enter .bx-barre {
  transform-box: fill-box; transform-origin: center; animation: land .38s cubic-bezier(.3, 1.5, .5, 1) backwards;
}
.ibc .strum .enter :nth-child(3n+1) { animation-delay: .03s; } .ibc .strum .enter :nth-child(3n+2) { animation-delay: .08s; }
@keyframes land { from { transform: scale(.2); opacity: 0; } }
/* a plucked course shivers; an open course that rings glows */
.ibc .bx-str.vib { animation: vib 1.5s cubic-bezier(.15, .7, .3, 1); stroke: var(--accent); }
@keyframes vib {
  0% { transform: translateX(0); } 5% { transform: translateX(1.6px); } 10% { transform: translateX(-1.6px); }
  16% { transform: translateX(1.1px); } 23% { transform: translateX(-1px); } 32% { transform: translateX(.6px); }
  45% { transform: translateX(-.3px); } 100% { transform: translateX(0); stroke: var(--string); }
}
.ibc .bx-open.glow { animation: glow 1.6s ease-out; }
@keyframes glow { 0% { stroke: var(--accent); stroke-width: 3; } 100% { stroke: var(--muted); stroke-width: 1.4; } }

.ibc .ring { min-height: 2.6em; margin: .25rem .25rem .75rem; color: var(--muted); font-size: .9375rem; text-align: center; }
.ibc .ring b { color: var(--accent); font-weight: 600; }
.ibc .hint { margin: 0 0 .75rem; text-align: center; font-size: .8125rem; color: var(--faint); letter-spacing: .04em; }
.ibc .hint span { display: inline-block; animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(-4px); } 50% { transform: translateX(4px); } }

/* the rail: slide it and the centred chord comes up on the box */
.ibc .rail {
  display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: .35rem calc(50% - 1.4rem); margin: 0 -1rem; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.ibc .rail::-webkit-scrollbar { display: none; }
.ibc .rail button {
  flex: 0 0 auto; scroll-snap-align: center; min-width: 4.8rem; min-height: 48px; padding: 0 .9rem;
  border-radius: 999px; border: 1px solid var(--rule); background: transparent; color: var(--muted);
  font: 400 1.35rem/1 var(--serif); cursor: pointer; transition: color .2s, border-color .2s, background .2s, transform .2s;
}
.ibc .rail button[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); transform: scale(1.06); }

.ibc .controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .9rem; }
.ibc .seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; gap: 2px; }
.ibc .seg button {
  min-height: 40px; min-width: 40px; padding: 0 .7rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font: 600 .8125rem var(--sans); letter-spacing: .02em; cursor: pointer;
}
.ibc .seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--accent); }
.ibc .drone {
  min-height: 40px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--rule); background: transparent;
  color: var(--muted); font: 600 .8125rem var(--sans); cursor: pointer; display: inline-flex; align-items: center; gap: .45rem;
}
.ibc .drone i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; }
.ibc .drone[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.ibc .drone[aria-pressed="true"] i { background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px var(--accent-soft); } }

/* ---------------------------------------------------------------- the neck */
.ibc .neck { max-width: 68rem; margin: 0 auto; padding: 0 var(--gut) clamp(2.5rem, 7vw, 4.5rem); }
.ibc .sec-h { font: 600 clamp(1.6rem, 4.5vw, 2.25rem)/1.1 var(--serif); margin: 0 0 .6rem; }
.ibc .sec-h em { color: var(--accent); }
.ibc .sec-p { color: var(--muted); margin: 0 0 1.25rem; max-width: 36rem; }
.ibc .neck-wrap { background: var(--surface); border: 1px solid var(--rule); border-radius: 22px; padding: 1rem .5rem .75rem; }
.ibc .neck svg { display: block; width: 100%; height: auto; }
.ibc .nk-fret { stroke: var(--wire); stroke-width: 1.5; }
.ibc .nk-nut { stroke: var(--fg); stroke-width: 6; stroke-linecap: round; }
.ibc .nk-str { stroke: var(--string); stroke-width: 1; }
.ibc .nk-inlay { fill: var(--rule); }
.ibc .nk-num { fill: var(--faint); font: 600 11px var(--sans); text-anchor: middle; }
.ibc .nk-name { fill: var(--muted); font: 600 12px var(--sans); text-anchor: end; dominant-baseline: middle; }
.ibc .nk-dot { transition: transform .55s cubic-bezier(.5, 0, .2, 1), opacity .3s; }
.ibc .nk-dot circle { fill: var(--fg); }
.ibc .nk-dot.root circle { fill: var(--accent); }
.ibc .nk-dot.open circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.ibc .nk-dot text { fill: #121b17; font: 700 11px var(--sans); text-anchor: middle; dominant-baseline: central; }
.ibc .nk-dot.open text { fill: var(--accent); }
.ibc .nk-dot.mute { opacity: 0; }
.ibc .nk-shapes { display: flex; flex-wrap: wrap; gap: .5rem; margin: .9rem .25rem 0; }
.ibc .nk-shapes button {
  min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--rule); background: transparent;
  color: var(--muted); font: 600 .875rem var(--sans); cursor: pointer;
}
.ibc .nk-shapes button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ibc .nk-cap { margin: .75rem .25rem 0; color: var(--faint); font-size: .875rem; }

/* ---------------------------------------------------------------- features */
.ibc .features {
  max-width: 68rem; margin: 0 auto; padding: 0 var(--gut) clamp(2.5rem, 7vw, 5rem);
  display: grid; gap: 0 clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.ibc .feature { border-top: 1px solid var(--rule); padding: 1.5rem 0 .5rem; }
.ibc .feature h2 { font: 600 1.45rem/1.2 var(--serif); margin: 0 0 .6rem; }
.ibc .feature p { margin: 0 0 1rem; line-height: 1.6; color: var(--muted); }
.ibc .feature p strong { color: var(--fg); font-weight: 600; }
.ibc .feature a { color: var(--fg); }
.ibc .tunings { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.ibc .tunings li { border: 1px solid var(--rule); border-radius: 999px; padding: .2rem .65rem; font: 600 .8125rem var(--sans); color: var(--fg); }

/* ---------------------------------------------------------------- screens */
.ibc .more { max-width: 68rem; margin: 0 auto; padding: 0 var(--gut) clamp(2.5rem, 7vw, 5rem); }
.ibc .screens {
  display: flex; gap: 1rem; margin: 0; padding: 0 0 .5rem; list-style: none;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.ibc .screens li { flex: 0 0 auto; width: min(62vw, 14.5rem); scroll-snap-align: start; }
.ibc .screens img {
  display: block; width: 100%; height: auto; border-radius: 1.4rem; border: 1px solid var(--rule);
  background: var(--surface); box-shadow: 0 14px 40px rgba(0, 0, 0, .35);
}
@media (min-width: 60rem) { .ibc .screens li:nth-child(even) { margin-top: 2.5rem; } }
.ibc .note { color: var(--faint); font-size: .875rem; margin: .75rem 0 0; }

/* ---------------------------------------------------------------- charts teaser + facts */
.ibc .charts {
  max-width: 68rem; margin: 0 auto clamp(2.5rem, 7vw, 4rem); padding: 0 var(--gut);
}
.ibc .charts a {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 1.5rem; text-decoration: none;
  border: 1px solid var(--accent); border-radius: 22px; padding: 1.25rem 1.4rem; background: var(--accent-soft);
}
.ibc .charts strong { font: 600 1.35rem/1.2 var(--serif); display: block; }
.ibc .charts span { color: var(--muted); }
.ibc .charts .go { color: var(--accent); font-weight: 700; white-space: nowrap; }
/* The printable chord charts as little A4 sheets */
.ibc .chart-sheets-t { margin: 1.5rem 0 .75rem; font: 600 .8125rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.ibc .chart-sheets-t span { margin-left: .4rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.ibc .chart-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(7rem, 8.5rem)); gap: 1.1rem .9rem; }
.ibc .charts .chart-sheets a { display: block; padding: 0; border: 0; border-radius: 0; background: none; color: var(--fg); font: 400 1.05rem/1.25 var(--serif); text-align: center; }
.ibc .chart-sheets img { display: block; width: 100%; height: auto; margin-bottom: .5rem; background: #fff; border-radius: 2px; box-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 6px 16px rgba(0, 0, 0, .35); }
.ibc .charts .chart-sheets a:hover { color: var(--accent); }
.ibc .chart-sheets a:hover img { box-shadow: 0 0 0 2px var(--accent), 0 6px 16px rgba(0, 0, 0, .35); }
/* R9: the popular chords under the teaser, one row per tuning */
.ibc .chart-links { margin-top: 1rem; display: grid; gap: .25rem; }
.ibc .chart-links p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .1rem .35rem; color: var(--muted); }
.ibc .chart-links a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 .55rem; border: 0; border-radius: 999px; background: none;
  color: var(--fg); font: 400 1.05rem var(--serif); text-decoration: none; }
.ibc .chart-links a:hover { color: var(--accent); background: var(--surface); }
.ibc .chart-links a.t { font: 600 .8125rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); padding-left: 0; }
.ibc .chart-links a.pdf { font: 600 .875rem var(--sans); color: var(--accent); }

.ibc .facts {
  max-width: 68rem; margin: 0 auto; padding: 1.5rem var(--gut) 3rem;
  display: flex; gap: 1.5rem; align-items: flex-start; border-top: 1px solid var(--rule);
}
.ibc .facts .icon { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.ibc .facts p { margin: 0 0 .5rem; line-height: 1.55; }
.ibc .facts .links { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.ibc .facts .links a { display: inline-flex; min-height: 36px; align-items: center; }
.ibc footer { max-width: 68rem; margin: 0 auto; padding: 0 var(--gut) 3rem; color: var(--faint); font-size: .875rem; }

/* fade-up as sections arrive (page.js adds .rise-on and .seen; without script everything simply shows) */
.ibc.rise-on .rise { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s cubic-bezier(.2, .7, .2, 1); }
.ibc.rise-on .rise.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .ibc *, .ibc *::before, .ibc *::after { animation: none !important; transition: none !important; }
  .ibc.rise-on .rise { opacity: 1; transform: none; }
}
