/* FolkBinder — a quiet, practical field guide for working musicians */
:root {
  --navy: #173247;
  --navy-deep: #0d2636;
  --mustard: #dda437;
  --oxblood: #963d3f;
  --paper: #f8f3e7;
  --paper-deep: #eee5d2;
  --white: #fffdf8;
  --ink: #183247;
  --body: #42535c;
  --muted: #718087;
  --line: rgba(24, 50, 71, .18);
  --display: "Newsreader", Georgia, serif;
  --sans: "Instrument Sans", sans-serif;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --shell: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-height: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
::selection { color: var(--white); background: var(--oxblood); }
.shell { width: min(calc(100% - (var(--gutter) * 2)), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9999; top: 8px; left: 8px; padding: 9px 14px; color: var(--white); background: var(--navy); transform: translateY(-150%); transition: transform .2s; }
.skip-link:focus { transform: none; }

/* Navigation */
.site-header { position: fixed; z-index: 1000; inset: 0 0 auto; height: var(--nav-height); color: var(--navy); background: rgba(248, 243, 231, .92); border-bottom: 1px solid transparent; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: border-color .2s, background .2s; }
.site-header.scrolled { background: rgba(248, 243, 231, .97); border-color: var(--line); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 29px; font-size: .83rem; font-weight: 600; }
.nav-links a { color: var(--body); }
.nav-links a:hover { color: var(--oxblood); }
.nav-status { display: inline-flex; align-items: center; gap: 7px; }
.nav-status span, .availability-status span { width: 7px; height: 7px; display: inline-block; background: var(--mustard); border-radius: 50%; }
.nav-toggle { display: none; width: 38px; height: 38px; padding: 9px 7px; background: transparent; border: 0; cursor: pointer; }
.nav-toggle span { height: 2px; display: block; margin: 5px 0; background: var(--navy); transition: transform .2s; }
.nav-toggle.open span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle.open span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Shared elements */
.section { padding: clamp(90px, 10vw, 140px) 0; }
.button { min-height: 48px; padding: 11px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 3px; font-size: .87rem; font-weight: 700; transition: color .2s, background .2s, border-color .2s; }
.button-primary { color: var(--white); background: var(--navy); }
.button-primary:hover { background: var(--oxblood); }
.button-secondary { color: var(--navy); background: transparent; border-color: var(--navy); }
.button-secondary:hover { color: var(--white); background: var(--navy); }
.text-link { display: inline-flex; align-items: center; gap: 8px; padding-block: 8px; color: var(--navy); border-bottom: 1px solid var(--line); font-size: .87rem; font-weight: 700; }
.text-link:hover { color: var(--oxblood); border-color: var(--oxblood); }
.plain-heading { max-width: 720px; margin-bottom: clamp(68px, 8vw, 104px); }
.plain-heading h2 { margin: 0; font-family: var(--display); font-size: clamp(2.5rem, 5.3vw, 4.6rem); font-weight: 600; letter-spacing: -.045em; line-height: .98; }
.plain-heading p { max-width: 650px; margin: 23px 0 0; color: var(--body); font-size: 1.05rem; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .08s; }

/* Hero */
.hero { padding: calc(var(--nav-height) + clamp(72px, 9vw, 120px)) 0 clamp(85px, 10vw, 130px); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(340px, .78fr) minmax(560px, 1.22fr); gap: clamp(54px, 7vw, 96px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-context { margin: 0 0 25px; color: var(--oxblood); font-size: .83rem; font-weight: 600; }
.hero h1 { max-width: 640px; margin: 0; font-family: var(--display); font-size: clamp(3.6rem, 6.3vw, 6rem); font-weight: 600; letter-spacing: -.055em; line-height: .91; }
.hero-lede { max-width: 570px; margin: 30px 0 32px; color: var(--body); font-size: clamp(1rem, 1.45vw, 1.13rem); line-height: 1.7; }
.hero-actions { display: flex; align-items: center; gap: 22px; }
.device-note { margin: 28px 0 0; color: var(--muted); font-size: .78rem; }
.hero-screens { min-width: 0; height: 590px; display: grid; grid-template-columns: 1.55fr .9fr; gap: 18px; align-items: stretch; }
.hero-shot { min-width: 0; min-height: 0; padding: 17px 17px 13px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 11px; color: var(--body); background: var(--white); border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.hero-shot:hover { border-color: var(--navy); }
.hero-shot img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.hero-shot span { display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: .7rem; }
.hero-shot strong { color: var(--ink); font-weight: 700; }

/* Workflows */
.workflows { background: var(--white); }
.workflow { min-height: 650px; padding: clamp(68px, 8vw, 96px) 0; display: grid; grid-template-columns: minmax(280px, .82fr) minmax(470px, 1.18fr); gap: clamp(60px, 9vw, 120px); align-items: center; border-top: 1px solid var(--line); }
.workflow:last-child { border-bottom: 1px solid var(--line); }
.workflow-reverse .workflow-copy { order: 2; }
.workflow-reverse .workflow-figure { order: 1; }
.workflow-label { margin: 0 0 18px; color: var(--oxblood); font-size: .77rem; font-weight: 700; }
.workflow h3 { margin: 0; font-family: var(--display); font-size: clamp(2.25rem, 4.2vw, 3.7rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.workflow-copy > p:not(.workflow-label) { margin: 22px 0 28px; color: var(--body); }
.workflow ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.workflow li { padding: 10px 0; color: var(--body); border-bottom: 1px solid var(--line); font-size: .84rem; }
.workflow-figure { margin: 0; }
.workflow-image { width: 100%; height: 560px; padding: 24px; display: block; background: var(--paper-deep); border: 0; cursor: pointer; }
.workflow-image:hover img { transform: scale(1.008); }
.workflow-image img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s var(--ease); filter: drop-shadow(0 18px 24px rgba(24, 50, 71, .13)); }
.workflow-figure-phone .workflow-image { padding-inline: clamp(60px, 12vw, 150px); }
.workflow figcaption { margin-top: 11px; color: var(--muted); font-size: .72rem; }

/* Screenshot index */
.screenshots { background: var(--paper); }
.screenshots-heading { margin-bottom: 62px; }
.gallery-overview { padding: 38px 0; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: clamp(35px, 7vw, 90px); border-top: 1px solid var(--line); }
.gallery-overview:last-child { border-bottom: 1px solid var(--line); }
.gallery-intro h3 { margin: 0; font-family: var(--display); font-size: 2.2rem; line-height: 1; }
.gallery-intro p { margin: 5px 0 25px; color: var(--muted); font-size: .76rem; }
.gallery-open { padding: 0 0 5px; color: var(--navy); background: transparent; border: 0; border-bottom: 1px solid var(--navy); font-size: .77rem; font-weight: 700; cursor: pointer; }
.gallery-open:hover { color: var(--oxblood); border-color: var(--oxblood); }
.gallery-samples { min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gallery-sample { min-width: 0; height: 330px; padding: 13px 13px 10px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; color: var(--body); background: var(--white); border: 1px solid var(--line); cursor: pointer; }
.gallery-sample:hover { border-color: var(--navy); }
.gallery-sample img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-sample span { padding-top: 7px; text-align: left; border-top: 1px solid var(--line); font-size: .68rem; }
.gallery-samples-mac .gallery-sample img { border-radius: 5px; }
.gallery-samples-mac .gallery-sample { background: #e9e8e4; }

/* Documentation and availability */
.docs-callout { background: var(--white); }
.docs-grid { padding-block: 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 70px; align-items: center; }
.docs-grid h2 { margin: 0; font-family: var(--display); font-size: clamp(2.4rem, 4.8vw, 4rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.docs-grid p { max-width: 690px; margin: 18px 0 0; color: var(--body); }
.availability { padding: 70px 0; color: var(--white); background: var(--navy); }
.availability-grid { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 30px; align-items: center; }
.availability img { width: 84px; height: 84px; border-radius: 18px; }
.availability-status { margin: 0 0 8px; display: flex; align-items: center; gap: 8px; color: rgba(255, 253, 248, .65); font-size: .74rem; font-weight: 600; }
.availability h2 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 600; line-height: 1; }
.availability-grid > div > p:last-child { max-width: 680px; margin: 13px 0 0; color: rgba(255, 253, 248, .64); }

/* Screenshot lightbox */
.screenshot-lightbox { width: min(1080px, calc(100% - 40px)); max-width: none; height: min(880px, calc(100% - 40px)); max-height: none; padding: 0; color: var(--navy); background: transparent; border: 0; overflow: visible; }
.screenshot-lightbox::backdrop { background: rgba(8, 25, 36, .88); backdrop-filter: blur(7px); }
.lightbox-shell { height: 100%; padding: 25px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 15px; background: var(--paper); border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 28px 80px rgba(0, 0, 0, .34); }
.lightbox-header { display: flex; align-items: start; justify-content: space-between; gap: 30px; }
.dialog-kicker { margin: 0 0 2px; color: var(--oxblood); font-size: .7rem; font-weight: 700; }
.lightbox-header h2 { margin: 0; font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1; }
.lightbox-close, .lightbox-arrow { display: grid; place-items: center; color: var(--navy); background: transparent; border: 1px solid var(--line); cursor: pointer; }
.lightbox-close { width: 40px; height: 40px; flex: 0 0 auto; font-size: 1.6rem; }
.lightbox-stage { min-height: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 18px; align-items: center; justify-items: center; }
.lightbox-image-wrap { width: 100%; height: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.lightbox-stage img { width: auto; height: 100%; max-width: 100%; object-fit: contain; box-shadow: 0 12px 30px rgba(24, 50, 71, .16); }
.lightbox-arrow { width: 42px; height: 42px; font-size: 1.1rem; }
.lightbox-close:hover, .lightbox-arrow:hover { color: var(--white); background: var(--navy); }
.lightbox-meta { display: flex; justify-content: space-between; gap: 30px; color: var(--body); font-size: .8rem; }
.lightbox-meta p { margin: 0; }
.lightbox-actions { display: flex; align-items: baseline; gap: 26px; white-space: nowrap; }
.lightbox-actions a { color: var(--oxblood); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lightbox-actions a:hover { color: var(--navy); }
#lightboxCount { flex: 0 0 auto; font-weight: 700; }
.lightbox-thumbs { padding: 3px 2px 8px; display: flex; gap: 8px; overflow-x: auto; scrollbar-color: var(--mustard) transparent; }
.lightbox-thumb { width: 60px; height: 60px; flex: 0 0 auto; padding: 4px; display: grid; place-items: center; background: var(--white); border: 2px solid transparent; cursor: pointer; }
.lightbox-thumb[aria-current="true"] { border-color: var(--oxblood); }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: contain; }
body:has(.screenshot-lightbox[open]) { overflow: hidden; }

/* Privacy */
.policy-page { padding: calc(var(--nav-height) + 90px) 0 140px; }
.policy-hero { padding-bottom: 85px; border-bottom: 1px solid var(--line); }
.policy-hero .eyebrow { margin: 0 0 30px; color: var(--oxblood); font-size: .71rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.policy-hero h1 { max-width: 850px; margin: 0; font-family: var(--display); font-size: clamp(4.5rem, 9vw, 8.5rem); font-weight: 600; letter-spacing: -.06em; line-height: .85; }
.policy-hero h1 em { color: var(--oxblood); font-weight: 500; }
.policy-hero > p:not(.eyebrow) { max-width: 560px; margin: 32px 0 20px; color: var(--body); font-size: 1.15rem; }
.policy-date { color: var(--muted); font-size: .75rem; }
.policy-layout { padding-top: 72px; display: grid; grid-template-columns: 210px minmax(0, 740px); justify-content: space-between; gap: clamp(50px, 8vw, 130px); }
.policy-nav { position: sticky; top: calc(var(--nav-height) + 32px); align-self: start; display: flex; flex-direction: column; gap: 8px; }
.policy-nav span { margin-bottom: 13px; color: var(--oxblood); font-size: .68rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.policy-nav a { padding: 3px 0; color: var(--body); font-size: .83rem; }
.policy-nav a:hover { color: var(--oxblood); text-decoration: underline; text-underline-offset: 3px; }
.policy-content { min-width: 0; }
.policy-summary { padding: 30px 35px; background: var(--paper-deep); border-left: 4px solid var(--mustard); }
.policy-summary span { color: var(--oxblood); font-size: .65rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.policy-summary p { margin: 11px 0 0; font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.65rem); line-height: 1.3; }
.policy-content section { padding: 45px 0 37px; border-bottom: 1px solid var(--line); }
.policy-content section:last-child { border-bottom: 0; }
.policy-number { margin: 0 0 10px; color: var(--oxblood); font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.policy-content h2 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(2rem, 3vw, 2.65rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.policy-content section p:not(.policy-number) { margin: 0 0 16px; color: var(--body); font-size: .95rem; line-height: 1.8; }
.policy-content section p:last-child { margin-bottom: 0; }
.policy-content section a { color: var(--oxblood); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.policy-content section a:hover { color: var(--navy); }

/* Footer */
.footer { padding: 65px 0 28px; color: var(--white); background: var(--navy-deep); }
.footer-grid { padding-bottom: 50px; display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: clamp(55px, 8vw, 100px); }
.footer .brand { margin-bottom: 13px; }
.footer-grid > div:first-child > p { max-width: 330px; margin: 0; color: rgba(255, 253, 248, .5); font-size: .81rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 35px; align-content: start; }
.footer-links a, .footer-social a { color: rgba(255, 253, 248, .62); font-size: .8rem; }
.footer-links a:hover, .footer-social a:hover { color: var(--white); }
.footer-social { display: flex; flex-direction: column; align-items: start; gap: 8px; }
.footer-bottom { padding-top: 22px; display: flex; justify-content: space-between; color: rgba(255, 253, 248, .32); border-top: 1px solid rgba(255, 255, 255, .11); font-size: .7rem; }
.footer-bottom p { margin: 0; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-screens { height: 610px; }
  .workflow { grid-template-columns: minmax(250px, .8fr) minmax(390px, 1.2fr); gap: 55px; }
  .workflow-figure-phone .workflow-image { padding-inline: 80px; }
}

@media (max-width: 760px) {
  .policy-page { padding: calc(var(--nav-height) + 66px) 0 90px; }
  .policy-hero { padding-bottom: 55px; }
  .policy-layout { grid-template-columns: 1fr; gap: 55px; padding-top: 38px; }
  .policy-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; }
  .policy-nav span { grid-column: 1 / -1; margin-bottom: 8px; }
  .policy-content section { padding: 40px 0 30px; }
  .policy-summary { padding: 25px; }
  :root { --nav-height: 64px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; inset: 100% 0 auto; padding: 22px var(--gutter); flex-direction: column; align-items: flex-start; gap: 17px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .hero { padding-top: calc(var(--nav-height) + 65px); }
  .hero h1 { font-size: clamp(3.25rem, 13vw, 5.5rem); }
  .hero-screens { height: 500px; grid-template-columns: 1.45fr .85fr; gap: 10px; }
  .hero-shot { padding: 10px; }
  .hero-shot span { display: block; }
  .hero-shot span strong { display: block; }
  .workflow, .workflow-reverse { min-height: 0; grid-template-columns: 1fr; gap: 42px; }
  .workflow-reverse .workflow-copy, .workflow-reverse .workflow-figure { order: initial; }
  .workflow-image { height: 520px; }
  .workflow-figure-phone .workflow-image { padding-inline: clamp(55px, 20vw, 130px); }
  .gallery-overview { grid-template-columns: 1fr; gap: 25px; }
  .gallery-intro { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 8px 20px; }
  .gallery-intro p { margin: 0; }
  .gallery-open { grid-column: 1 / -1; justify-self: start; }
  .gallery-sample { height: 280px; }
  .docs-grid { grid-template-columns: 1fr; gap: 30px; }
  .docs-grid .button { justify-self: start; }
  .screenshot-lightbox { width: calc(100% - 18px); height: calc(100% - 18px); }
  .lightbox-shell { padding: 17px; }
  .lightbox-stage { grid-template-columns: 1fr; position: relative; }
  .lightbox-arrow { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); background: rgba(248, 243, 231, .92); }
  .lightbox-prev { left: 0; }
  .lightbox-next { right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .policy-hero h1 { font-size: clamp(3.2rem, 12vw, 4rem); }
  .section { padding-block: 82px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .hero-screens { height: 410px; }
  .hero-shot span { font-size: .62rem; }
  .workflow { padding-block: 65px; }
  .workflow-image { height: 430px; padding: 16px; }
  .workflow-figure-phone .workflow-image { height: 500px; padding-inline: 52px; }
  .gallery-samples { gap: 7px; }
  .gallery-sample { height: 225px; padding: 7px; }
  .lightbox-actions { flex-wrap: wrap; justify-content: end; gap: 5px 10px; white-space: normal; }
  .availability-grid { grid-template-columns: 58px minmax(0, 1fr); gap: 20px; align-items: start; }
  .availability img { width: 58px; height: 58px; border-radius: 13px; }
  .lightbox-header h2 { font-size: 1.65rem; }
  .lightbox-meta { gap: 12px; font-size: .72rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 3px solid var(--mustard); outline-offset: 4px; }
