/* Songhearth shell (2026-12-03): ONE header, footer and guarantee strip for every funnel page.
 * Link it AFTER the page's own CSS (and after sale.css). Static mockup, nothing live.
 * Header: .sh-hd--sales (index.html: sticky, logo + nav) or .sh-hd--inner (static, logo + 3-step tracker; legal has no tracker).
 * Footer: .sh-ft--full (index.html, legal.html: four columns + bottom bar) or .sh-ft--slim (every other page).
 * 2026-12-05: red top bar .sh-bar and header meter .sh-meter (both drawn by shell.js from <body data-bar data-step>);
 * the header image banner is retired. One :root token block (--shl-*) for the new shell + upsell CSS. See SHELL-NOTES.md.
 * Every rule sets its own margin, padding and color: the pages around it use different resets. */
:root{
  --shl-orange:#ff5b02;--shl-blue:#1986e7;--shl-blue-press:#0067c4;--shl-red:#c8102e;
  --shl-ink:#010101;--shl-heading:#171717;--shl-muted:#555;--shl-cream:#fff3ea;--shl-line:#e3e3e3;
  --shl-brown:#7a3f12;--shl-price:#c43d00;--shl-ok-bg:#dcfce7;--shl-ok-ink:#14532d;
  --shl-font:Outfit,-apple-system,"Segoe UI",Roboto,sans-serif;
  --shl-r-card:8px;--shl-r-pill:32px;--shl-gap:14px;--shl-pad:20px;
  --shl-bar-h:36px;
}
.sh-hd,.sh-ft,.sh-guar{--shell-max:1505px;--shell-pad:24px;--shell-h:69px;--shell-font:Outfit,-apple-system,"Segoe UI",Roboto,sans-serif;box-sizing:border-box}
.sh-hd *,.sh-hd *::before,.sh-hd *::after,.sh-ft *,.sh-ft *::before,.sh-ft *::after,.sh-guar *,.sh-guar *::before,.sh-guar *::after{box-sizing:border-box}

/* ---------- header ---------- */
.sh-hd{position:static;display:block;width:100%;margin:0;padding:0;border:0;background:#000;color:#fff;font-family:var(--shell-font);text-align:left}
.sh-hd--sales{position:sticky;top:0;z-index:50}
.sh-hd :focus-visible{outline:3px solid #fff;outline-offset:2px}
.sh-hd-in{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;column-gap:12px;row-gap:0;max-width:var(--shell-max);min-height:var(--shell-h);margin:0 auto;padding:0 var(--shell-pad)}
/* the logo carries the row height, so the first row stays 69 / 58 px when the banner wraps under it */
.sh-hd .sh-logo{display:flex;align-items:center;flex:none;height:var(--shell-h);margin:0;padding:0;text-decoration:none}
.sh-hd .sh-logo svg{display:block;width:173px;height:43px;max-width:none}
.sh-hd .sh-nav{display:flex;align-items:center;gap:6px;min-width:0}

/* journey tracker (inner pages): done = orange check dot, now = white ring + bold white label, upcoming = grey. No links. */
.sh-hd .sh-track{position:relative;display:flex;align-items:center;flex:none;list-style:none;margin:0;padding:0;font:500 14px/1 var(--shell-font);color:#8f8f8f}
.sh-hd .sh-track li{display:flex;align-items:center;gap:8px;margin:0;padding:0;white-space:nowrap}
.sh-hd .sh-track li::before{content:"";flex:none;width:18px;height:18px;border:2px solid #6f6f6f;border-radius:50%}
.sh-hd .sh-track li:not(:last-child)::after{content:"";flex:none;width:22px;height:2px;margin:0 10px 0 2px;border-radius:2px;background:#4a4a4a}
.sh-hd .sh-track li.is-done{color:#e9e9e9}
.sh-hd .sh-track li.is-done::before{border:0;background:#ff5b02 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M5.8 10.9l3.2 3.2 6.2-6.6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px 14px no-repeat}
.sh-hd .sh-track li.is-done:not(:last-child)::after{background:#ff5b02}
.sh-hd .sh-track li.is-now{color:#fff;font-weight:700}
.sh-hd .sh-track li.is-now::before{border-color:#fff}

/* the meter replaces the tracker on pages with <body data-step> */
.sh-hd .sh-track[hidden]{display:none}

/* ---------- red top bar (above the header; shell.js). White bold text, 15px (14px on phones). Scrolls away; not sticky. ---------- */
.sh-bar{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:var(--shl-bar-h);margin:0;padding:4px 16px;border:0;background:var(--shl-red);color:#fff;font:700 15px/1.2 var(--shl-font);text-align:center}
.sh-bar *{box-sizing:border-box}
.sh-bar .sh-bar-t{display:flex;align-items:center;justify-content:center;gap:10px;min-width:0;margin:0;padding:0;color:#fff;font:inherit}
.sh-bar--offer .sh-bar-t{display:block}
.sh-bar .sh-bar-clk{display:inline-block;min-width:5ch;font-weight:800;font-variant-numeric:tabular-nums;text-align:left}
/* sale: engraved plate look in CSS only — thin inner double rule, pressed-in letters, holly marks (inline SVG from shell.js) */
.sh-bar--sale{box-shadow:inset 0 1px 0 rgba(255,255,255,.18),inset 0 -1px 0 rgba(0,0,0,.28)}
.sh-bar--sale::before{content:"";position:absolute;top:3px;right:6px;bottom:3px;left:6px;border:3px double rgba(255,255,255,.55);border-radius:3px;pointer-events:none}
.sh-bar--sale .sh-bar-w{letter-spacing:.09em;text-transform:uppercase;text-shadow:0 -1px 0 rgba(0,0,0,.4),0 1px 0 rgba(255,255,255,.22)}
.sh-bar .sh-bar-mark{display:block;flex:none;width:20px;height:20px;color:#fff;filter:drop-shadow(0 -1px 0 rgba(0,0,0,.35))}
.sh-bar .sh-bar-mark:last-child{transform:scaleX(-1)}

/* ---------- header meter (right side; shell.js). "Step 2 of 4 · almost done" over a bar ---------- */
.sh-hd .sh-meter{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex:none;min-width:0;margin:0 0 0 auto;padding:0;color:#fff;font:600 14px/1 var(--shell-font);white-space:nowrap}
.sh-hd .sh-meter-t{display:block;margin:0;padding:0;color:#fff}
.sh-hd .sh-meter-bar{display:block;width:220px;height:6px;margin:0;padding:0;border-radius:3px;background:#3d3d3d;overflow:hidden}
.sh-hd .sh-meter-bar i{display:block;height:100%;border-radius:3px;background:var(--shl-orange);transition:width .3s cubic-bezier(.4,0,.2,1)}

/* visually hidden (countdown announcements) */
.sh-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- guarantee strip (directly above every footer) ---------- */
.sh-guar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 32px;width:100%;margin:0;padding:14px var(--shell-pad);border:0;background:#fff3ea;color:#000;font:700 15px/1.3 var(--shell-font);text-align:left}
.sh-guar span{display:inline-flex;align-items:center;gap:8px;margin:0;padding:0;color:#000}
.sh-guar span::before{content:"";flex:none;width:20px;height:20px;border-radius:50%;background:#ff5b02 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 21'%3E%3Cpath d='M5.8 10.9l3.2 3.2 6.2-6.6' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px 15px no-repeat}

/* ---------- footer: shared ---------- */
.sh-ft{display:block;width:100%;margin:0;padding:0;border:0;background:#000;color:#e9e9e9;font:500 15px/1.5 var(--shell-font);text-align:left}
.sh-ft a{color:#e9e9e9;text-decoration:none}
.sh-ft a:hover{color:#ff5b02}
.sh-ft :focus-visible{outline:3px solid #fff;outline-offset:2px;border-radius:4px}
.sh-ft p{margin:0;padding:0}
.sh-ft .sh-ft-in{max-width:var(--shell-max);margin:0 auto;padding:0 var(--shell-pad)}
.sh-ft .sh-ft-logo{display:inline-flex;align-items:center;flex:none;margin:0;padding:0}
.sh-ft .sh-ft-logo svg{display:block;width:130px;height:32px;max-width:none}
.sh-ft .sh-ft-c{font-size:15px;line-height:1.5;color:#e9e9e9;white-space:nowrap}
.sh-ft .sh-ft-brand,.sh-ft .sh-ft-note{max-width:var(--shell-max);margin:0 auto;padding:6px var(--shell-pad) 0;font-size:12.5px;line-height:1.5;color:#a9a9a9;text-align:center}
.sh-ft .tag,.sh-ft .sp-sample{display:inline-block;margin:0;padding:0 5px;border:1px solid #777;border-radius:4px;background:transparent;color:#cfcfcf;font:700 10.5px/1.5 var(--shell-font);letter-spacing:.05em;text-transform:uppercase;white-space:nowrap;vertical-align:middle}

/* ---------- footer: slim (inner pages). One 60 px row from 768 px, stacked and centered on phones ---------- */
.sh-ft--slim{padding:0 0 16px}
.sh-ft--slim .sh-ft-in{display:flex;align-items:center;justify-content:space-between;gap:8px 24px;min-height:60px;padding-top:10px;padding-bottom:10px}
.sh-ft .sh-ft-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0 22px;min-width:0;margin:0;padding:0}
.sh-ft .sh-ft-links a{display:inline-flex;align-items:center;min-height:40px;white-space:nowrap}
.sh-ft--slim .sh-ft-brand{padding-top:0}

/* ---------- footer: full (index.html, legal.html). Four columns + bottom bar ---------- */
.sh-ft--full{padding:56px 0 28px}
.sh-ft--full .sh-ft-in{display:grid;grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr));gap:32px 40px;align-items:start}
.sh-ft .sh-ft-about{min-width:0}
.sh-ft .sh-ft-about .sh-ft-logo svg{width:173px;height:43px}
.sh-ft .sh-ft-p{margin-top:12px;font-size:17px;line-height:1.4;color:#fff}
.sh-ft .sh-ft-slots{margin-top:10px;font-size:15px;line-height:1.5;color:#e9e9e9}
.sh-ft .sh-ft-col{min-width:0;margin:0;padding:0;border:0}
.sh-ft .sh-ft-col summary{display:block;list-style:none;margin:0 0 8px;padding:0;font:700 13px/1.4 var(--shell-font);letter-spacing:.12em;text-transform:uppercase;color:#fff;cursor:default}
.sh-ft .sh-ft-col summary::-webkit-details-marker{display:none}
.sh-ft .sh-ft-col ul{list-style:none;margin:0;padding:0}
.sh-ft .sh-ft-col li{margin:0;padding:0}
.sh-ft .sh-ft-col li a,.sh-ft .sh-ft-x{display:inline-flex;flex-wrap:wrap;align-items:center;gap:2px 8px;min-height:34px;overflow-wrap:anywhere}
.sh-ft .sh-ft-bot{grid-column:1/-1;min-width:0;margin:0;padding:22px 0 0;border-top:1px solid #2a2a2a}
.sh-ft .sh-ft-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;min-width:0;margin:0;padding:0}
.sh-ft .sh-ft-pay{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}
.sh-ft .sh-ft-mark{display:block;flex:none;max-width:none}
.sh-ft .sh-ft-sec{display:inline-flex;align-items:center;gap:6px;margin-left:6px;font-size:14px;color:#e9e9e9;white-space:nowrap}
.sh-ft--full .sh-ft-brand{max-width:none;margin:14px 0 0;padding:0;text-align:left}
.sh-ft--full .sh-ft-note{max-width:none;margin:6px 0 0;padding:0;text-align:left}
/* 768 px and up the three column titles are plain headings, not toggles (shell.js also blocks the keyboard toggle) */
@media (min-width:768px){.sh-ft .sh-ft-col summary{pointer-events:none}}

/* ---------- breakpoints ---------- */
@media (max-width:1400px){.sh-hd,.sh-ft,.sh-guar{--shell-max:1250px}}
@media (max-width:1199px){
  .sh-hd{--shell-h:58px}
  .sh-hd .sh-logo svg{width:130px;height:32px}
}
@media (max-width:991px){
  .sh-hd,.sh-ft,.sh-guar{--shell-pad:20px}
  .sh-ft--full .sh-ft-in{gap:28px 24px}
}
@media (max-width:767px){
  /* guarantee strip: one column, the list block centered */
  .sh-guar{display:grid;grid-template-columns:minmax(0,max-content);justify-content:center;gap:8px}
  /* slim footer: stacked, centered, 44 px tap targets */
  .sh-ft--slim .sh-ft-in{flex-direction:column;justify-content:center;gap:4px;padding-top:20px;padding-bottom:10px;text-align:center}
  .sh-ft .sh-ft-links{gap:0 20px}
  .sh-ft .sh-ft-links a{min-height:44px}
  /* your-song.html keeps its room for the fixed sample toast */
  .shys .sh-ft--slim{padding-bottom:96px}
  /* full footer: columns 2 to 4 are accordions; bottom padding clears the sales page's fixed button bar (82 px + safe area) */
  .sh-ft--full{padding:36px 0 calc(130px + env(safe-area-inset-bottom,0px))}
  .lg-page .sh-ft--full{padding-bottom:calc(28px + env(safe-area-inset-bottom,0px))}
  .sh-ft--full .sh-ft-in{grid-template-columns:minmax(0,1fr);gap:0}
  .sh-ft .sh-ft-about{padding-bottom:20px}
  .sh-ft .sh-ft-col{border-top:1px solid #2a2a2a}
  .sh-ft .sh-ft-col summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;margin:0;font-size:14px;cursor:pointer}
  .sh-ft .sh-ft-col summary::after{content:"+";flex:none;font:700 22px/1 var(--shell-font);letter-spacing:0;color:#ff5b02}
  .sh-ft .sh-ft-col[open] summary::after{content:"\2212"}
  .sh-ft .sh-ft-col ul{padding-bottom:10px}
  .sh-ft .sh-ft-col li a,.sh-ft .sh-ft-x{display:flex;min-height:44px}
  .sh-ft .sh-ft-bar{flex-direction:column;align-items:flex-start;gap:12px}
}
@media (max-width:600px){
  .sh-hd,.sh-ft,.sh-guar{--shell-pad:16px}
  /* red bar 32px, 14px text; meter collapses to "2 of 4" + bar in one row */
  :root{--shl-bar-h:32px}
  .sh-bar{padding:3px 12px;font-size:14px}
  .sh-bar--sale .sh-bar-w{letter-spacing:.04em}
  .sh-bar .sh-bar-t{gap:6px}
  .sh-bar .sh-bar-mark{width:16px;height:16px}
  .sh-hd .sh-meter{flex-direction:row;align-items:center;gap:8px}
  .sh-hd .sh-meter-x{display:none}
  .sh-hd .sh-meter-bar{width:84px}
  /* tracker collapses to "2 of 3"; the three labels stay in the page for screen readers */
  .sh-hd .sh-track li{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .sh-hd .sh-track::after{font:700 14px/1 var(--shell-font);color:#fff;white-space:nowrap}
  .sh-hd[data-step="quiz"] .sh-track::after{content:"1 of 3"}
  .sh-hd[data-step="preview"] .sh-track::after{content:"2 of 3"}
  .sh-hd[data-step="song"] .sh-track::after{content:"3 of 3"}
}
@media (max-width:374px){
  .sh-bar--sale .sh-bar-w{letter-spacing:.01em}
  .sh-bar--sale .sh-bar-mark{display:none}
  .sh-hd .sh-meter-bar{width:64px}
  .sh-hd .sh-logo svg{width:108px;height:27px}
  /* sales page at 320 px: logo 108 + button + menu must fit in 288 px */
  .sh-hd--sales .sh-hd-in{column-gap:8px}
  .sh-hd--sales .sh-nav{gap:4px}
  .sh-hd--sales .sp-create{padding:0 9px;font-size:13px}
  .sh-hd--sales .sp-menu-btn{margin-left:0}
}
@media (prefers-reduced-motion:reduce){.sh-hd .sh-meter-bar i{transition:none}}
