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


:root {
  --paper: #F7F6F2;
  --surface: #FFFFFF;
  --ink: #15171C;
  --ink-muted: #5C5F66;
  --rule: #E2E0D8;
  --field: #8C8A82;
  --orange: #EE8E2C;
  --blue: #3567D6;
  --blue-tint: #E6EDFB;
  --link: #2F5EC8;
  --success: #22795A;
  --error: #B83A2F;
  --serif-display: var(--sans);
  --serif: var(--sans);
  --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, .wrap-narrow, .wrap-hero, .wrap-form { max-width: 1040px; 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(--rule); }
/* Covers any gap above the header (seen in in-app browsers on iPhone) so the page never shows through. */
.site-header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: var(--paper); }
.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: 53px; width: auto; display: block; flex-shrink: 0; }
.brand-divider { width: 1px; height: 32px; background: var(--rule); flex-shrink: 0; }
.brand-name { font-size: 21px; font-weight: 700; line-height: 1; white-space: nowrap; }

/* 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(--ink); }
.btn-primary:hover { color: var(--ink); 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-direction: column; gap: 22px; padding-top: 56px; padding-bottom: 72px; }
h1 { margin: 0; font-weight: 700; font-size: 54px; line-height: 1.08; letter-spacing: -0.02em; }
.lead { margin: 0; font-size: 20px; color: var(--ink-muted); max-width: 820px; }
.hero-actions { margin-top: 4px; }

/* Request card */
.request-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; 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-size: 20px; font-weight: 700; }
.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, textarea { 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[type="date"] { cursor: pointer; }
input:invalid:not(:placeholder-shown) { border-color: var(--error); }
textarea { resize: vertical; line-height: 1.4; }
.request-card { scroll-margin-top: 24px; max-width: 720px; width: 100%; }
.faq > div, .founder-text { max-width: 760px; }
.prose > p, .prose > ul, .prose > h2 { max-width: 760px; }
.urgent { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; margin-top: -4px; }
.urgent input { margin-top: 2px; flex-shrink: 0; width: 20px; height: 20px; accent-color: var(--blue); }
.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; }
.btn-link.small { font-size: 15px; font-weight: 400; min-height: 36px; margin-top: 6px; }
.step-sub strong { color: var(--ink); }
.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: version switcher, player and score */
.demo { margin: 18px 0 0; scroll-margin-top: 90px; }
.demo-card { background: var(--surface); padding: 22px 24px 20px; border: 1px solid var(--rule); border-radius: 4px; box-shadow: 0 16px 30px -22px rgba(21, 23, 28, 0.4); display: flex; flex-direction: column; gap: 14px; }
.demo-meta { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0; }
.demo-meta div { display: flex; gap: 8px; align-items: baseline; }
.demo-meta dt { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.demo-meta dd { margin: 0; font-weight: 700; }
.demo-hint { margin: -6px 0 0; font-size: 16px; color: var(--ink-muted); }
.demo-controls { display: flex; align-items: center; gap: 14px; }
.play-btn { width: 52px; height: 52px; 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; }
.switcher { display: inline-flex; border: 2px solid var(--blue); border-radius: 8px; overflow: hidden; min-width: 0; }
.sw-btn { font: inherit; background: var(--surface); color: var(--blue); border: none; padding: 6px 18px; min-height: 52px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.sw-btn + .sw-btn { border-left: 2px solid var(--blue); }
.sw-name { font-size: 15px; font-weight: 700; }
.sw-sub { font-size: 13px; }
.sw-btn[aria-checked="true"] { background: var(--blue); color: #FFFFFF; }
.sw-btn:focus-visible { outline-offset: -4px; outline-color: var(--ink); }
.seek { padding: 9px 0; cursor: pointer; touch-action: none; }
.seek-track { height: 6px; background: var(--rule); border-radius: 3px; overflow: hidden; }
.seek-bar { height: 100%; width: 0; background: var(--blue); }
.demo-caption { margin: -4px 0 4px; font-size: 16px; }
.demo-stage { width: var(--stage-w, clamp(320px, 50%, 520px)); margin: 0 auto; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.demo-stage.left { margin: 0; justify-content: flex-start; }
.demo-img { width: 100%; height: auto; display: block; }
.demo-stage.scroll { overflow-y: auto; align-items: flex-start; overscroll-behavior: contain; border-bottom: 1px solid var(--rule); }
.scroll-hint { text-align: center; font-size: 14px; color: var(--ink-muted); margin-top: -6px; }
.demo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn-view { font: inherit; font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--blue); border: 2px solid var(--blue); border-radius: 8px; padding: 8px 16px; min-height: 44px; cursor: pointer; }
.btn-view:hover, .sw-btn:hover:not([aria-checked="true"]) { background: var(--blue-tint); }
.icon-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 8px; color: var(--ink-muted); text-decoration: none; font-size: 13px; font-weight: 700; border-radius: 6px; }
.icon-btn:hover { color: var(--blue); background: var(--blue-tint); }

/* Score viewer */
.viewer { width: min(920px, 96vw); height: min(92vh, 1200px); max-width: none; max-height: none; padding: 0; border: none; border-radius: 6px; background: var(--surface); color: var(--ink); overflow: hidden; }
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); }
.viewer::backdrop { background: rgba(21, 23, 28, 0.6); }
.viewer-bar { display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--rule); }
.viewer-title { font-weight: 700; }
.viewer-count { color: var(--ink-muted); font-size: 15px; margin-right: auto; }
.viewer-close { width: 44px; height: 44px; border: none; background: none; cursor: pointer; color: var(--ink); border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.viewer-body { overflow: auto; background: var(--paper); }
.viewer-body img { width: 100%; height: auto; display: block; background: #FFFFFF; }
.viewer-nav { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 999px; border: 2px solid var(--blue); background: var(--surface); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 16px -8px rgba(21, 23, 28, 0.5); }
.viewer-nav.prev { left: 12px; }
.viewer-nav.next { right: 12px; }
.viewer-nav:disabled { opacity: 0.3; cursor: default; }

/* Founder */
.band-white { background: var(--surface); }
.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-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.founder-quote { margin: 0; font-size: 22px; line-height: 1.5; }
.founder-sign { display: flex; flex-direction: column; }
.founder-name { font-size: 19px; font-weight: 700; 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 16px; font-weight: 700; font-size: 34px; line-height: 1.15; letter-spacing: -0.01em; }
/* How it works: three steps, left to right */
.flow { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px; }
.flow li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* Arrow centred in the gap between two steps, level with the icons */
.flow li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: calc((100% + 56px) / 2 + 12px); width: 40px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20'%3E%3Cpath d='M2 10h33M28 3.5l7 6.5-7 6.5' fill='none' stroke='%233567D6' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain; }
.step-icon { width: 64px; height: 64px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.step-n { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.flow .t, .cards .t, .can .t { font-size: 19px; font-weight: 700; line-height: 1.3; }
.flow .muted, .cards .muted, .can .muted { font-size: 16px; }
/* What you get: cards */
.cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 22px 20px; display: flex; flex-direction: column; gap: 8px; }
.card-icon { width: 48px; height: 48px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 6px; }
/* What we can arrange: one tinted panel, three columns */
.can { list-style: none; margin: 8px 0 0; padding: 32px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--blue-tint); border-radius: 4px; }
.can li { display: flex; flex-direction: column; gap: 8px; padding: 0 28px; }
.can li + li { border-left: 1px solid rgba(53, 103, 214, 0.25); }
.can .card-icon { background: var(--surface); }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { font-size: 19px; font-weight: 700; cursor: pointer; min-height: 32px; }
.faq p { margin: 10px 0 0; color: var(--ink-muted); }

/* Closing CTA */
.closing { background: var(--blue-tint); }
.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-size: 32px; font-weight: 700; line-height: 1.15; 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: 60px; line-height: 1.05; }
.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-size: 30px; font-weight: 700; line-height: 1.15; }
.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: 42px; margin-bottom: 8px; }
.prose h2 { font-size: 26px; 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: 36px; }
  .home-intro h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero { gap: 18px; padding-top: 28px; padding-bottom: 48px; }
  .demo { margin-top: 8px; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .flow li { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; row-gap: 2px; }
  .flow li .step-icon { grid-row: span 3; margin: 0; }
  .flow li { align-items: start; text-align: left; }
  .flow li::after { display: none; }
  .demo-card { padding: 16px 14px; }
  .demo-controls { gap: 10px; }
  .switcher { flex: 1; }
  .sw-btn { flex: 1; padding: 6px 6px; }
  .sw-name { font-size: 14px; }
  .sw-sub { font-size: 12px; }
  .demo-tools { gap: 4px; }
  .btn-view { padding: 8px 12px; margin-right: 4px; }
  .demo-stage { width: 100%; }
  .can { grid-template-columns: minmax(0, 1fr); padding: 8px 0; }
  .can li { padding: 20px 20px; }
  .can li + li { border-left: none; border-top: 1px solid rgba(53, 103, 214, 0.25); }
  .cards { gap: 12px; }
  .card, .can li { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; }
  .card { padding: 16px; }
  .card .card-icon, .can li .card-icon { grid-row: span 2; margin: 0; }
  .request-card { padding: 20px 16px 18px; }
  .brand-logo { height: 44px; }
  .brand-name, .brand-divider { display: none; }
  .header-cta { padding: 10px 16px; }
  .closing-title { font-size: 30px; }
  .founder { padding-top: 48px; padding-bottom: 48px; }
  .section { padding-top: 48px; padding-bottom: 48px; }
}

