/* Syntonic Labs · Tempered Arranger trial pages
   Colours follow the Syntonic Labs palette doc; Navy is the text colour on Orange. */

@font-face { font-family: "Libre Caslon Display"; src: url("../fonts/libre-caslon-display-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("../fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/atkinson-hyperlegible-latin-700-italic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }

:root {
  --paper: #F7F6F2;
  --surface: #FFFFFF;
  --ink: #15171C;
  --ink-muted: #5C5F66;
  --rule: #E2E0D8;
  --field: #8C8A82;
  --orange: #EE8E2C;
  --navy: #1A3478;
  --blue: #3567D6;
  --blue-tint: #E6EDFB;
  --link: #2F5EC8;
  --success: #22795A;
  --error: #B83A2F;
  --serif-display: "Libre Caslon Display", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-muted); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: var(--paper); border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand-logo { height: 48px; width: auto; display: block; flex-shrink: 0; }
.brand-divider { width: 1px; height: 32px; background: var(--rule); flex-shrink: 0; }
.brand-name { font-family: var(--serif-display); font-size: 26px; line-height: 1; white-space: nowrap; }
.trial-tag { font-family: var(--serif); font-size: 15px; font-variant-caps: all-small-caps; letter-spacing: 0.12em; border: 1px solid var(--ink); border-radius: 2px; padding: 1px 8px 3px; line-height: 1.3; }

/* Buttons */
.btn { font: inherit; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 4px; text-decoration: none; cursor: pointer; min-height: 52px; padding: 14px 28px; border: none; }
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { color: var(--navy); filter: brightness(1.04); }
.btn-small { min-height: 44px; padding: 10px 20px; }
.btn-outline { background: var(--surface); color: var(--ink); border: 2px solid var(--blue); min-height: 48px; padding: 12px 24px; }
.btn-link { font: inherit; font-weight: 700; background: none; border: none; padding: 0; color: var(--link); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.btn-link:hover { color: var(--ink); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 56px; padding-bottom: 72px; scroll-margin-top: 90px; }
.hero-main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.eyebrow { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-muted); }
h1 { margin: 0; font-family: var(--serif-display); font-weight: 400; font-size: 62px; line-height: 1.04; letter-spacing: -0.01em; }
.lead { margin: 0; font-size: 20px; color: var(--ink-muted); max-width: 600px; }

/* Request card */
.request-card { background: var(--surface); border-top: 3px solid var(--ink); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 14px 30px -22px rgba(21, 23, 28, 0.35); }
.trial-note { background: var(--blue-tint); border-radius: 2px; padding: 12px 14px; font-size: 16px; display: flex; gap: 10px; align-items: flex-start; }
.trial-note svg { flex-shrink: 0; margin-top: 4px; }
.step { display: flex; flex-direction: column; gap: 16px; }
.step:focus { outline: none; }
.step-title { font-family: var(--serif); font-size: 22px; }
.step-sub { color: var(--ink-muted); font-size: 16px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .legend { font-weight: 700; font-size: 16px; }
.field .opt { font-weight: 400; color: var(--ink-muted); }
.req { color: var(--ink-muted); }
input[type="text"], input[type="email"], input[type="date"], select { font: inherit; font-size: 17px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 4px; background: var(--surface); color: var(--ink); min-height: 48px; width: 100%; }
input:invalid:not(:placeholder-shown) { border-color: var(--error); }
.hint { font-size: 15px; color: var(--ink-muted); margin-top: -6px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.checks { border: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 16px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 16px; }
.checks input { width: 20px; height: 20px; accent-color: var(--blue); }
.price-q { border: none; border-top: 1px solid var(--rule); padding: 16px 0 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.price-q legend { font-weight: 700; font-size: 16px; padding: 0 8px 0 0; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.pills label { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--field); border-radius: 4px; padding: 10px 16px; min-height: 44px; font-size: 16px; cursor: pointer; }
.done-row { display: flex; gap: 12px; align-items: flex-start; }
.done-row svg { flex-shrink: 0; margin-top: 3px; }
.ok { color: var(--success); }
.reassure { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; color: var(--ink-muted); border-top: 1px solid var(--rule); padding-top: 14px; margin: 0; list-style: none; }
.reassure li { display: inline-flex; align-items: center; gap: 6px; }
.form-error { color: var(--error); font-size: 15px; margin: 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Demo / line-up switcher */
.demo { flex: 1 1 480px; min-width: 0; margin: 44px 0 0; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 90px; }
.demo-card { background: var(--surface); padding: 20px 20px 16px; border: 1px solid var(--rule); border-radius: 2px; box-shadow: 0 1px 0 var(--rule), 0 16px 30px -22px rgba(21, 23, 28, 0.4); display: flex; flex-direction: column; gap: 14px; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.demo-title { font-family: var(--serif); font-style: italic; font-size: 16px; }
.demo-bars { font-family: var(--serif); font-size: 14px; color: var(--ink-muted); font-feature-settings: "onum"; }
.lineups { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lineup-btn { font: inherit; font-size: 15px; font-weight: 700; padding: 8px 14px; min-height: 44px; border: 1px solid var(--ink); border-radius: 4px; cursor: pointer; background: var(--surface); color: var(--ink); }
.lineup-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.demo-img { width: 100%; height: clamp(300px, 88vw, 420px); object-fit: contain; object-position: center; display: block; }
.demo-img.short { height: auto; aspect-ratio: 1203 / 704; }
.demo-meta { border-top: 1px solid var(--rule); padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.demo-caption { font-family: var(--serif); font-size: 18px; }
.legend-dot { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-muted); }
.legend-dot::before { content: ""; width: 14px; height: 14px; border-radius: 999px; background: var(--blue); display: inline-block; }
.player { display: flex; align-items: center; gap: 12px; }
.play-btn { width: 44px; height: 44px; border-radius: 999px; border: none; background: var(--blue); color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.play-btn .i-pause { display: none; }
.play-btn.is-playing .i-play { display: none; }
.play-btn.is-playing .i-pause { display: block; }
.progress-wrap { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.progress { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--blue); }
.progress-text { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ink-muted); }
.downloads { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dl { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--field); border-radius: 4px; padding: 8px 12px; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 15px; }
.dl:hover { border-color: var(--ink); color: var(--ink); }
.dl-note { font-size: 14px; color: var(--ink-muted); }
.demo figcaption { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--ink-muted); }

/* Founder */
.band-white { background: var(--surface); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.founder { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 64px; padding-bottom: 64px; }
.founder-photo { width: 120px; height: 120px; object-fit: cover; border-radius: 2px; display: block; flex-shrink: 0; }
.founder-text { flex: 999 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.founder-kicker { font-family: var(--serif); font-style: italic; font-size: 18px; color: var(--ink-muted); }
.founder-quote { margin: 0; font-family: var(--serif); font-size: 22px; line-height: 1.5; }
.founder-sign { display: flex; flex-direction: column; }
.founder-name { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.3; }
.founder-role { font-size: 15px; color: var(--ink-muted); }

/* Sections */
.section { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 8px; }
h2 { margin: 0 0 8px; border-top: 1px solid var(--ink); padding-top: 16px; font-family: var(--serif-display); font-weight: 400; font-size: 42px; line-height: 1.15; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--rule); }
.steps .n { font-family: var(--serif-display); font-size: 52px; line-height: 0.9; font-feature-settings: "onum"; }
.steps .t { font-family: var(--serif); font-size: 22px; display: block; margin-bottom: 4px; }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { font-family: var(--serif); font-size: 20px; cursor: pointer; min-height: 32px; }
.faq p { margin: 10px 0 0; color: var(--ink-muted); }

/* Closing CTA */
.closing { background: var(--blue-tint); border-top: 1px solid var(--ink); }
.closing .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 64px; padding-bottom: 64px; }
.closing-title { font-family: var(--serif-display); font-size: 38px; line-height: 1.1; display: block; }

/* Footer */
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; font-size: 15px; color: var(--ink-muted); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-brand img { height: 26px; width: auto; display: block; }
.footer-links { display: flex; gap: 24px; }

/* Home (chooser) */
.home-main { padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
.home-intro { display: flex; flex-direction: column; gap: 18px; max-width: 820px; }
.home-intro h1 { font-size: 72px; line-height: 1.02; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.choice { text-decoration: none; color: var(--ink); border-top: 3px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.choice:hover { color: var(--ink); }
.choice .t { font-family: var(--serif-display); font-size: 36px; line-height: 1.1; }
.choice .go { margin-top: 6px; font-weight: 700; color: var(--link); text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }

/* Text pages (privacy, 404) */
.prose { padding-top: 56px; padding-bottom: 80px; }
.prose h1 { font-size: 48px; margin-bottom: 8px; }
.prose h2 { font-size: 30px; margin-top: 40px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; margin: 8px 0 16px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.prose th { font-weight: 700; border-bottom: 1px solid var(--ink); }
.table-scroll { overflow-x: auto; }
.todo { background: #FFF1D6; outline: 1px dashed var(--orange); padding: 0 4px; }

/* Phones */
@media (max-width: 720px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  h1 { font-size: 40px; }
  .home-intro h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .hero { gap: 32px; padding-top: 32px; padding-bottom: 48px; }
  .demo { margin-top: 0; }
  .request-card { padding: 20px 16px 18px; }
  .brand-logo { height: 40px; }
  .brand-name { font-size: 20px; }
  .header-cta { display: none; }
  .closing-title { font-size: 30px; }
  .founder { padding-top: 48px; padding-bottom: 48px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
}
@media (max-width: 420px) {
  .trial-tag, .brand-divider { display: none; }
}
