/* Chord Therapy website. Colours follow the app icon: an indigo ground,
   an amber note, a teal superscript. */

:root {
  --ink: #17153a;
  --ink-soft: #46436b;
  --paper: #fbfaff;
  --card: #ffffff;
  --line: #e4e2f3;
  --indigo-hi: #8f97f2;
  --indigo: #4f5de8;
  --indigo-deep: #221c5c;
  --amber: #f5ab35;
  --teal: #14b8a6;
  --teal-hi: #50e3d0;
  --orange: #fb7238;
  --blue: #2f6beb;
  --green: #2e9e4f;
  --shadow: 0 1px 2px rgba(23, 21, 58, .06), 0 12px 32px rgba(23, 21, 58, .08);
  --radius: 18px;
  --font: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eeedfb;
    --ink-soft: #b4b2d6;
    --paper: #12102c;
    --card: #1c1940;
    --line: #2e2a5e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #eeedfb;
  --ink-soft: #b4b2d6;
  --paper: #12102c;
  --card: #1c1940;
  --line: #2e2a5e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--indigo); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) a { color: var(--indigo-hi); } }
:root[data-theme="dark"] a { color: var(--indigo-hi); }
code { font-family: var(--mono); font-size: .88em; background: color-mix(in srgb, var(--indigo) 10%, transparent); padding: .1em .35em; border-radius: 6px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { margin-left: auto; display: flex; gap: 22px; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 600px) { .nav { gap: 14px; } .nav a { font-size: 14px; } .brand span { display: none; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, #9aa1f5 0%, transparent 55%),
    linear-gradient(170deg, #6b72e0 0%, #3f3a99 45%, var(--indigo-deep) 100%);
  color: #fff;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 0; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 20px; font-weight: 800; }
.hero h1 .accent { color: var(--amber); }
.hero p.lede { font-size: clamp(18px, 2.1vw, 21px); line-height: 1.5; color: #e3e2ff; max-width: 34em; margin: 0 0 28px; }
.hero .platforms { margin-top: 18px; color: #c9c7f5; font-size: 15px; }
.hero-shots { position: relative; height: 560px; align-self: end; }
.hero-shots .ipad { position: absolute; right: -120px; bottom: -40px; width: 520px; border-radius: 26px; box-shadow: 0 30px 60px rgba(0,0,0,.35); border: 10px solid #0e0c24; }
.hero-shots .iphone { position: absolute; left: 10px; bottom: -60px; width: 270px; border-radius: 44px; box-shadow: 0 30px 60px rgba(0,0,0,.45); border: 9px solid #0e0c24; }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-shots { height: 420px; }
  .hero-shots .ipad { width: 400px; right: -80px; }
  .hero-shots .iphone { width: 210px; left: 0; border-radius: 34px; }
}
@media (max-width: 520px) {
  .hero-shots { height: 380px; }
  .hero-shots .ipad { width: 320px; right: -110px; bottom: -20px; }
}

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #000; color: #fff !important; text-decoration: none;
  border-radius: 12px; padding: 10px 18px 10px 14px; border: 1px solid rgba(255,255,255,.35);
  font-weight: 600; line-height: 1.15;
}
.store-badge svg { width: 26px; height: 26px; fill: #fff; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; opacity: .85; }
.store-badge span { font-size: 19px; }
.store-badge.soon { cursor: default; }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 600px) { section { padding: 64px 0; } }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.015em; margin: 0 0 16px; font-weight: 800; }
h3 { font-size: 21px; margin: 0 0 8px; line-height: 1.25; }
.section-lede { font-size: 19px; color: var(--ink-soft); max-width: 40em; margin: 0 0 48px; }

/* Panel map */
.panels { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.panel-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.panel-card .dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; font-weight: 800; font-size: 17px; }
.panel-card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.panel-card.shared { background: linear-gradient(160deg, var(--indigo) 0%, var(--indigo-deep) 100%); color: #fff; border-color: transparent; }
.panel-card.shared p { color: #dcdbff; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip .feature-media { order: -1; }
.feature p { color: var(--ink-soft); font-size: 18px; margin: 0 0 14px; }
.feature ul { color: var(--ink-soft); padding-left: 1.1em; margin: 0; }
.feature li { margin: 6px 0; }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
@media (max-width: 860px) {
  .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature.flip .feature-media { order: 0; }
  .feature + .feature { margin-top: 72px; }
}

/* Typographic demos */
.demo {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.demo-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; }
.demo-row + .demo-row { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.demo-label { width: 100%; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.note { font-size: 28px; font-weight: 700; min-width: 1.6em; }
.note.hl { color: var(--teal); }
.note.bad { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 2px; opacity: .6; }
.chip {
  display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
  border-radius: 12px; padding: 10px 14px; min-width: 64px;
  background: color-mix(in srgb, var(--indigo) 7%, var(--card)); border: 1px solid var(--line);
}
.chip b { font-size: 18px; }
.chip i { font-style: normal; font-size: 13px; color: var(--ink-soft); }
.chip .maj { color: var(--teal); }
.chip .min { color: var(--orange); }
.typed { font-family: var(--mono); font-size: 16px; background: color-mix(in srgb, var(--indigo) 10%, transparent); border-radius: 8px; padding: 6px 10px; }
.arrow { color: var(--ink-soft); }
.result { font-size: 22px; font-weight: 800; color: var(--teal); }

.tunings { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tunings span { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 12px; font-size: 14.5px; font-weight: 600; }

/* Band */
.band { background: linear-gradient(170deg, #3f3a99 0%, var(--indigo-deep) 100%); color: #fff; }
.band h2 { color: #fff; }
.band .section-lede { color: #d9d8ff; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.facts h3 { color: var(--amber); }
.facts p { margin: 0; color: #d9d8ff; }

.cta { text-align: center; }
.cta .icon { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 24px; box-shadow: var(--shadow); }
.cta p { color: var(--ink-soft); font-size: 19px; margin: 0 auto 28px; max-width: 32em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--ink-soft); font-size: 14.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--ink-soft); }
.credits { width: 100%; font-size: 13px; line-height: 1.6; }

/* Prose pages */
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 0 0 12px; letter-spacing: -.015em; }
.page-head p { color: var(--ink-soft); font-size: 19px; margin: 0; max-width: 40em; }
.prose { max-width: 760px; padding-bottom: 80px; }
.prose h2 { font-size: 30px; margin: 56px 0 12px; padding-top: 8px; }
.prose h3 { font-size: 20px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.prose blockquote { margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--teal); background: color-mix(in srgb, var(--teal) 8%, var(--card)); border-radius: 0 12px 12px 0; }
.prose blockquote p { margin: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15.5px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.prose th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.table-scroll { overflow-x: auto; }

.contact-card {
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px 28px; margin: 8px 0 24px;
}
.contact-card h2 { margin: 0 0 4px !important; font-size: 22px !important; padding: 0 !important; }
.contact-card p { margin: 0; color: var(--ink-soft); }
.button {
  display: inline-block; background: var(--indigo); color: #fff !important; text-decoration: none;
  font-weight: 700; border-radius: 12px; padding: 12px 20px;
}
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 10px 0 0; color: var(--ink-soft); }
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 20px; padding: 0; list-style: none; }
.toc a { font-weight: 600; text-decoration: none; }
.prose h3[id] { font-size: 26px; margin: 48px 0 10px; }
.prose h4 { font-size: 19px; margin: 28px 0 8px; }
