/* ==========================================================================
   BeatForge product page
   --------------------------------------------------------------------------
   Page-scoped. style.css still dresses index.html, manual.html and the two
   pedal pages; this page does not load it.

   THE RULES
     * The UI is the pitch. Screenshots are the argument; text is a label and
       a line. If a sentence can be a caption, it is a caption.
     * Structure you can see: every section is numbered on a spine down the
       left. You always know where you are and how much is left.
     * One accent (cyan). Amber means free. The three machine hues encode
       WHICH Roland and nothing else.
     * height:auto on every image. An <img> with a height ATTRIBUTE and a CSS
       width of 100% keeps the attribute's height and squashes horizontally -
       that bug shipped once and it is the first thing anyone notices.
   ========================================================================== */

:root {
    --bg:        #0b0d0f;
    --bg-2:      #101316;
    --surface:   #15191d;
    --surface-2: #1b2126;
    --line:      #232a30;
    --line-2:    #323b43;

    --accent:      #4fd1c5;
    --accent-lite: #6fe3d8;
    --accent-dim:  #2f8a82;

    --warm:      #ffb454;
    --warm-line: rgba(255, 180, 84, 0.34);

    --m606: #7ddf9a;
    --m808: #ffb454;
    --m909: #ff7a7a;
    --msy1: #6ec8ff;

    --tx:     #e8ecef;
    --tx-2:   #a8b2ba;
    --tx-dim: #76808a;

    --r-s: 6px;
    --r-m: 10px;
    --r-l: 14px;
    --r-pill: 999px;

    --shadow: 0 20px 50px rgba(0, 0, 0, 0.55);

    --f-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --f-disp: 'Space Grotesk', 'Inter', sans-serif;
    --f-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --maxw: 1140px;
    --gut: 24px;
    --spine: 92px;            /* width of the numbered spine column */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--f-main);
    background: var(--bg);
    color: var(--tx-2);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }

h1, h2, h3 {
    color: var(--tx);
    font-family: var(--f-disp);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.028em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.6vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.5rem, 3.3vw, 2rem); }
h3 { font-size: 0.97rem; letter-spacing: -0.008em; }
strong { color: var(--tx); font-weight: 600; }

/* ==========================================================================
   THE SPINE
   Every section is a two-column grid: a numbered rail, then the content.
   The number is the structure - it is visible before you read a word, and it
   is the reason the page does not read as one long scroll of equal bands.
   ========================================================================== */
.sec {
    display: grid;
    grid-template-columns: var(--spine) minmax(0, 1fr);
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 72px var(--gut);
    border-bottom: 1px solid var(--line);
}
.sec > .rail {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--tx-dim);
    padding-top: 5px;
}
.sec > .rail b { display: block; color: var(--accent); font-weight: 500; }
.sec > .body { min-width: 0; }

.sec h2 { margin-bottom: 10px; }
.sec .lede { max-width: 56ch; font-size: 1.02rem; margin-bottom: 30px; }
.sec .foot { margin-top: 24px; font-size: 0.85rem; color: var(--tx-dim); }

.full { max-width: 100%; }              /* section that wants to go edge to edge */

/* --- Buttons ---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 13px 24px;
    border-radius: var(--r-pill);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    white-space: nowrap;
    transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease),
                background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent-lite); outline-offset: 3px; }
.btn-1 {
    background: linear-gradient(135deg, var(--accent-lite), var(--accent) 58%, #38b2a5);
    color: #04201d;
    box-shadow: 0 4px 20px rgba(79, 209, 197, 0.25);
}
.btn-1:hover { box-shadow: 0 8px 28px rgba(79, 209, 197, 0.4); }
.btn-2 { background: var(--surface); border-color: var(--line-2); color: var(--tx); }
.btn-2:hover { border-color: var(--accent-dim); background: var(--surface-2); }
.btn-3 { border-color: var(--warm-line); color: var(--warm); }
.btn-3:hover { background: rgba(255, 180, 84, 0.08); border-color: var(--warm); }
.btn-s { padding: 9px 17px; font-size: 0.84rem; }

/* --- Topbar ----------------------------------------------------------------- */
.top {
    position: sticky; top: 0; z-index: 50;
    background: rgba(11, 13, 15, 0.86);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.top-in {
    max-width: var(--maxw); margin: 0 auto;
    padding: 10px var(--gut);
    display: flex; align-items: center; gap: 24px;
}
.brand {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--f-disp); font-weight: 700; font-size: 0.97rem;
    color: var(--tx); text-decoration: none; letter-spacing: -0.02em;
}
.brand-mk {
    display: grid; place-items: center;
    width: 25px; height: 25px; border-radius: 7px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dim));
    color: #04201d; font-family: var(--f-mono); font-size: 0.64rem; font-weight: 700;
}
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { font-size: 0.86rem; color: var(--tx-2); text-decoration: none; }
.top nav a:hover { color: var(--tx); }

/* --- Hero ------------------------------------------------------------------- */
.hero {
    text-align: center;
    padding: 82px var(--gut) 0;
    background: radial-gradient(56% 64% at 50% -6%, rgba(79, 209, 197, 0.12), transparent 62%), var(--bg);
}
.hero-in { max-width: 820px; margin: 0 auto; }
.hero h1 { margin-bottom: 16px; }
.hero-fmt {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 15px;
    font-family: var(--f-mono); font-size: 0.65rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--tx-dim); margin-bottom: 18px;
}
.hero-fmt b { color: var(--accent); font-weight: 500; }
.hero .lede { font-size: 1.08rem; max-width: 44ch; margin: 0 auto 28px; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
.hero-fine { margin-top: 15px; font-size: 0.85rem; color: var(--tx-dim); }

/* The product shot bleeds down into the first section. */
.shot { max-width: 1240px; margin: 48px auto -70px; padding-inline: var(--gut); }
.shot img {
    width: 100%;
    border-radius: var(--r-l);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow);
}
.after-shot { padding-top: 118px; }

/* --- Machines --------------------------------------------------------------- */
.machines { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mach {
    --m: var(--accent);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-m);
    padding: 20px;
}
.mach.m606 { --m: var(--m606); }
.mach.m808 { --m: var(--m808); }
.mach.m909 { --m: var(--m909); }
.mach.msy1 { --m: var(--msy1); }
.mach-hd { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.mach-n {
    font-family: var(--f-disp); font-size: 1.28rem; font-weight: 700;
    color: var(--m); letter-spacing: -0.025em;
}
.mach-c {
    font-family: var(--f-mono); font-size: 0.68rem;
    color: var(--tx-dim); font-variant-numeric: tabular-nums;
    margin-left: auto;
}
.mach p { font-size: 0.88rem; }

.claim {
    margin-top: 22px;
    padding: 16px 20px;
    border-left: 2px solid var(--accent);
    background: var(--surface);
    border-radius: 0 var(--r-s) var(--r-s) 0;
    font-size: 0.95rem;
}

/* --- Engine chips ----------------------------------------------------------- */
.engines { display: flex; flex-direction: column; gap: 16px; }
.eg { --c: var(--accent); }
.eg.e808 { --c: var(--m808); }
.eg.e909 { --c: var(--m909); }
.eg.e606 { --c: var(--m606); }
.eg.esy1 { --c: var(--msy1); }
.eg.esyn { --c: #c792ea; }
.eg-l {
    font-family: var(--f-mono); font-size: 0.63rem;
    letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--c); margin-bottom: 8px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--f-mono); font-size: 0.69rem;
    padding: 6px 11px; border-radius: 6px;
    border: 1px solid var(--line); background: var(--surface); color: var(--tx-2);
}
.chip::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: var(--c); flex: none; }

/* --- Screenshot switcher ---------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.tab {
    font-family: var(--f-mono); font-size: 0.7rem;
    letter-spacing: 0.06em; text-transform: uppercase;
    padding: 8px 14px; border-radius: var(--r-pill);
    border: 1px solid var(--line); background: transparent;
    color: var(--tx-dim); cursor: pointer;
    transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.tab:hover { color: var(--tx-2); border-color: var(--line-2); }
.tab.on { background: var(--surface-2); border-color: var(--accent-dim); color: var(--accent); }
.tab:focus-visible { outline: 2px solid var(--accent-lite); outline-offset: 2px; }
.pane { display: none; margin: 0; }
.pane.on { display: block; }
.pane img { width: 100%; border-radius: var(--r-m); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.pane figcaption { margin-top: 12px; font-size: 0.88rem; color: var(--tx-dim); }

/* --- Feature list: heading + one line, two columns -------------------------- */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.feat { padding: 13px 0; border-bottom: 1px solid var(--line); }
.feat h3 { margin-bottom: 2px; }
.feat p { font-size: 0.87rem; color: var(--tx-dim); margin: 0; }

/* --- Release log ------------------------------------------------------------ */
.log { list-style: none; }
.log li {
    display: grid;
    grid-template-columns: 52px 72px minmax(0, 1fr);
    gap: 12px;
    align-items: baseline;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}
.log li:first-child { border-top: 1px solid var(--line); }
.log .v, .log .d { font-family: var(--f-mono); font-size: 0.73rem; font-variant-numeric: tabular-nums; }
.log .v { color: var(--accent); }
.log .d { color: var(--tx-dim); }
.log b { color: var(--tx); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.split p { font-size: 0.93rem; }
.split p + p { margin-top: 11px; }

/* --- Tracks ----------------------------------------------------------------- */
.trk + .trk { margin-top: 16px; }
.trk h3 { margin-bottom: 1px; }
.trk .by { font-size: 0.81rem; color: var(--tx-dim); margin-bottom: 10px; }
.trk audio { width: 100%; }
.trk iframe { width: 100%; height: 110px; border: 0; border-radius: var(--r-s); display: block; }

/* --- Video (click to load) --------------------------------------------------- */
.vid { margin-top: 34px; }
.vid h3 { margin-bottom: 1px; }
.vid .by { font-size: 0.81rem; color: var(--tx-dim); margin-bottom: 10px; }
.vid-play, .vid-frame { display: block; width: 100%; max-width: 760px; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r-s); overflow: hidden; background: #000; }
.vid-play { position: relative; padding: 0; cursor: pointer; }
.vid-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.vid-play:hover img { opacity: .85; }
.vid-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.vid-btn { position: absolute; left: 50%; top: 50%; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--accent); box-shadow: 0 6px 24px rgba(0, 0, 0, .45); }
.vid-btn::after { content: ''; position: absolute; left: 27px; top: 22px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #04201d; }

/* --- Download / price ------------------------------------------------------- */
.get { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.get a {
    display: grid; justify-items: center; gap: 4px;
    padding: 24px 18px; border-radius: var(--r-m);
    border: 1px solid var(--line); background: var(--surface);
    text-decoration: none;
    transition: border-color 0.15s var(--ease), background 0.15s var(--ease), transform 0.15s var(--ease);
}
.get a:hover { border-color: var(--accent-dim); background: var(--surface-2); transform: translateY(-2px); }
.get i { font-size: 1.45rem; color: var(--tx); margin-bottom: 2px; }
.get .os { font-family: var(--f-disp); font-weight: 700; font-size: 1rem; color: var(--tx); }
.get .meta { font-family: var(--f-mono); font-size: 0.66rem; color: var(--tx-dim); text-align: center; line-height: 1.75; }
.get .go { margin-top: 7px; font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.price { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.price-n { font-size: 0.96rem; margin: 0; }
.price-n strong { font-family: var(--f-disp); font-size: 1.4rem; }

/* --- Free strip ------------------------------------------------------------- */
.free {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px; align-items: center;
    padding: 20px 22px;
    border: 1px solid var(--warm-line);
    border-radius: var(--r-m);
    background: rgba(255, 180, 84, 0.04);
}
.free h3 { color: var(--warm); margin-bottom: 3px; }
.free p { font-size: 0.88rem; margin: 0; }
.free-b { display: flex; gap: 9px; flex-wrap: wrap; }

/* --- Footer ----------------------------------------------------------------- */
.foot-sec { padding: 48px 0 24px; background: var(--bg-2); }
.foot-grid {
    max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut);
    display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 30px;
}
.foot-grid h4 {
    font-family: var(--f-mono); font-weight: 500; font-size: 0.63rem;
    letter-spacing: 0.14em; text-transform: uppercase; color: var(--tx-dim);
    margin-bottom: 10px;
}
.foot-grid a { display: block; font-size: 0.85rem; color: var(--tx-2); text-decoration: none; padding: 3px 0; }
.foot-grid a:hover { color: var(--accent); }
.foot-note { font-size: 0.83rem; color: var(--tx-dim); margin-top: 10px; }
.legal {
    max-width: var(--maxw); margin: 32px auto 0;
    padding: 16px var(--gut) 0; border-top: 1px solid var(--line);
    font-size: 0.78rem; color: var(--tx-dim);
}

/* --- Sticky bar ------------------------------------------------------------- */
.bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; align-items: center; justify-content: center; gap: 13px;
    padding: 10px var(--gut);
    background: rgba(16, 19, 22, 0.95);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(115%);
    transition: transform 0.25s var(--ease);
}
.bar.on { transform: translateY(0); }
.bar span { font-size: 0.85rem; }

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 900px) {
    .sec { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
    .sec > .rail { margin-bottom: 14px; padding-top: 0; }
    .sec > .rail b { display: inline; margin-right: 8px; }
    .machines, .feats, .split { grid-template-columns: 1fr; }
    .split { gap: 30px; }
    .foot-grid { grid-template-columns: repeat(2, 1fr); }
    .shot { margin-bottom: -44px; }
    .after-shot { padding-top: 88px; }
}
@media (max-width: 620px) {
    .hero { padding-top: 58px; }
    .top nav { display: none; }
    .get, .free { grid-template-columns: 1fr; }
    .bar span { display: none; }
    .log li { grid-template-columns: 48px 1fr; }
    .log .d { grid-column: 2; text-align: right; }
    .log .w { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
