:root {
  --lacquer: #ad2421;
  --saffron: #eba33d;
  --spruce: #1f4f47;
  --teal: #298c8c;
  --fern: #6b8f4d;
  --dusk: #786699;
  --copper: #b86b40;
  --lake: #4d75a3;
  --graphite: #1f1f24;
  --porcelain: #f2ebdb;
  --paper: #f8f4e9;
  --ink: #26221c;
  --ink-2: #6f695e;
  --ink-3: #9a9387;
  --stroke: rgba(38, 34, 28, 0.12);
  --stroke-strong: rgba(38, 34, 28, 0.22);
  --accent: var(--saffron);
  --accent-soft: rgba(235, 163, 61, 0.14);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

.theme-tempo { --accent: var(--saffron); --accent-soft: rgba(235, 163, 61, 0.14); }
.theme-rhythm { --accent: var(--fern); --accent-soft: rgba(107, 143, 77, 0.14); }
.theme-space { --accent: var(--dusk); --accent-soft: rgba(120, 102, 153, 0.14); }
.theme-pitch { --accent: var(--teal); --accent-soft: rgba(41, 140, 140, 0.14); }
.theme-temperament { --accent: var(--lake); --accent-soft: rgba(77, 117, 163, 0.14); }
.theme-overtones { --accent: var(--copper); --accent-soft: rgba(184, 107, 64, 0.14); }
.theme-harmony { --accent: var(--lacquer); --accent-soft: rgba(173, 36, 33, 0.12); }
.theme-about { --accent: var(--fern); --accent-soft: rgba(107, 143, 77, 0.14); }
.theme-privacy { --accent: var(--teal); --accent-soft: rgba(41, 140, 140, 0.12); }
.theme-support { --accent: var(--copper); --accent-soft: rgba(184, 107, 64, 0.12); }

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--porcelain);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  margin: 0 auto;
  max-width: 1080px;
  padding-left: 28px;
  padding-right: 28px;
}

.site-header {
  background: rgba(242, 235, 219, 0.94);
  border-bottom: 1px solid var(--stroke);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}

.header-row {
  align-items: center;
  display: flex;
  gap: 18px;
  min-height: 64px;
}

.brand {
  align-items: center;
  display: flex;
  gap: 11px;
  text-decoration: none;
}

.brand img {
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  display: block;
  height: 38px;
  width: 38px;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 16px;
  line-height: 1.2;
}

.brand small {
  color: var(--ink-2);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.top-nav {
  align-items: center;
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.top-nav > a:not(.button) {
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}

.top-nav > a:not(.button):hover {
  color: var(--ink);
}

.button {
  align-items: center;
  border: 1px solid var(--stroke-strong);
  border-radius: 6px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 9px;
  justify-content: center;
  min-height: 46px;
  padding: 10px 19px;
  text-decoration: none;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.button:hover {
  box-shadow: 0 8px 20px rgba(38, 34, 28, 0.14);
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  background: var(--accent);
  color: #19150f;
}

.button-dark {
  background: var(--graphite);
  border-color: var(--graphite);
  color: var(--porcelain);
}

.button-support {
  background: transparent;
  border-color: rgba(242, 235, 219, 0.34);
  color: var(--porcelain);
}

.button-support:hover {
  border-color: var(--accent);
}

.breadcrumbs {
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 8px;
  padding-top: 24px;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.page-head {
  padding-bottom: 44px;
  padding-top: 54px;
  text-align: center;
}

.eyebrow {
  align-items: center;
  color: var(--ink-2);
  display: inline-flex;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  gap: 9px;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.eyebrow::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: 8px;
  width: 8px;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.12;
}

h1 {
  font-size: 54px;
  margin: 0 auto 20px;
  max-width: 900px;
}

.lead {
  color: var(--ink-2);
  font-size: 19px;
  margin: 0 auto;
  max-width: 760px;
}

.head-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.text-link {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
  padding: 10px 8px;
  text-underline-offset: 4px;
}

.facts {
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 14px 28px;
  justify-content: center;
  margin-top: 24px;
}

.facts span::before {
  color: var(--accent);
  content: "•";
  font-weight: 900;
  margin-right: 8px;
}

.trust-head {
  padding-bottom: 64px;
  padding-top: 76px;
}

.updated {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  margin-top: 24px;
}

.trust-overview {
  background: var(--graphite);
  color: var(--porcelain);
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-bottom: 30px;
  padding-top: 30px;
}

.trust-point {
  border-left: 1px solid rgba(242, 235, 219, 0.18);
  min-width: 0;
  padding: 6px 28px;
}

.trust-point:first-child {
  border-left: 0;
  padding-left: 0;
}

.trust-point strong,
.trust-point span {
  display: block;
}

.trust-point strong {
  color: var(--accent);
  font-size: 20px;
  margin-bottom: 4px;
}

.trust-point span {
  color: rgba(242, 235, 219, 0.66);
  font-size: 13px;
}

.trust-content {
  padding: 82px 0 94px;
}

.trust-layout {
  align-items: start;
  display: grid;
  gap: 64px;
  grid-template-columns: 190px minmax(0, 1fr);
  max-width: 920px;
}

.trust-toc {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 92px;
}

.trust-toc strong {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.trust-toc a {
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: none;
}

.trust-toc a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.trust-article section {
  scroll-margin-top: 94px;
}

.trust-article section + section {
  border-top: 1px solid var(--stroke);
  margin-top: 46px;
  padding-top: 46px;
}

.trust-article h2 {
  font-size: 30px;
  margin-bottom: 18px;
}

.trust-article p,
.trust-article li {
  color: var(--ink-2);
  font-size: 16px;
}

.trust-article p + p {
  margin-top: 16px;
}

.trust-article ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin-top: 20px;
}

.trust-article li {
  padding-left: 24px;
  position: relative;
}

.trust-article li::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: 7px;
  left: 2px;
  position: absolute;
  top: 0.63em;
  width: 7px;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 24px;
}

.inline-actions a {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  gap: 7px;
  text-underline-offset: 4px;
}

.inline-actions span {
  color: var(--accent);
  font-family: var(--mono);
}

.product-shot {
  background: var(--graphite);
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 6px;
  box-shadow: 0 24px 60px -34px rgba(31, 31, 36, 0.72);
  margin: 0 auto 82px;
  max-width: 980px;
  overflow: hidden;
}

.product-shot img {
  display: block;
  height: auto;
  width: 100%;
}

.product-shot figcaption {
  color: rgba(242, 235, 219, 0.72);
  font-family: var(--mono);
  font-size: 11px;
  padding: 11px 14px;
  text-align: center;
}

.content-section {
  border-top: 1px solid var(--stroke);
  padding-bottom: 74px;
  padding-top: 74px;
}

.section-heading {
  margin-bottom: 34px;
  max-width: 720px;
}

.section-heading h2 {
  font-size: 34px;
  margin-bottom: 12px;
}

.section-heading p,
.prose p {
  color: var(--ink-2);
  font-size: 16px;
}

.prose p + p {
  margin-top: 16px;
}

.formula-layout {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.formula-panel {
  background: var(--graphite);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  color: var(--porcelain);
  padding: 28px;
}

.formula-panel .label {
  color: rgba(242, 235, 219, 0.58);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.formula-line {
  font-family: var(--mono);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.formula-line + .formula-line {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 13px;
  padding-top: 13px;
}

.formula-note {
  color: rgba(242, 235, 219, 0.64);
  font-size: 12px;
  margin-top: 18px;
}

.example-grid,
.use-grid,
.related-grid {
  display: grid;
  gap: 14px;
}

.example-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.example-card,
.use-card,
.related-card {
  background: rgba(248, 244, 233, 0.74);
  border: 1px solid var(--stroke);
  border-radius: 6px;
}

.example-card {
  padding: 24px;
}

.example-card .number {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 14px;
}

.example-card .number::before {
  background: var(--accent);
  border-radius: 50%;
  content: "";
  height: 7px;
  margin-right: 8px;
  width: 7px;
}

.example-card h3,
.use-card h3,
.related-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.example-input {
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  margin-bottom: 12px;
}

.example-output {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 750;
  margin-bottom: 12px;
  overflow-wrap: anywhere;
}

.example-card p,
.use-card p,
.related-card p {
  color: var(--ink-2);
  font-size: 14px;
}

.table-wrap {
  border: 1px solid var(--stroke);
  border-radius: 6px;
  margin-top: 30px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 640px;
  width: 100%;
}

caption {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  padding: 13px 16px;
  text-align: left;
}

th,
td {
  border-bottom: 1px solid var(--stroke);
  padding: 13px 16px;
  text-align: left;
}

th {
  background: rgba(38, 34, 28, 0.055);
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

tbody th {
  background: transparent;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

td {
  font-family: var(--mono);
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.workflow-layout {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.steps {
  counter-reset: step;
  list-style: none;
}

.steps li {
  color: var(--ink-2);
  min-height: 42px;
  padding-left: 54px;
  position: relative;
}

.steps li + li {
  margin-top: 22px;
}

.steps li::before {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--ink);
  content: counter(step);
  counter-increment: step;
  display: flex;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: -4px;
  width: 34px;
}

.steps strong {
  color: var(--ink);
  display: block;
  margin-bottom: 3px;
}

.use-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.use-card {
  padding: 22px;
}

.tip {
  border-left: 3px solid var(--accent);
  color: var(--ink-2);
  font-size: 14px;
  margin-top: 24px;
  padding: 4px 0 4px 18px;
}

.cta-band {
  background: var(--graphite);
  color: var(--porcelain);
  padding: 54px 0;
}

.cta-row {
  align-items: center;
  display: flex;
  gap: 32px;
  justify-content: space-between;
}

.cta-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cta-copy h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.cta-copy p {
  color: rgba(242, 235, 219, 0.7);
  max-width: 640px;
}

.related-section {
  padding-bottom: 82px;
  padding-top: 76px;
}

.related-section h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-card {
  display: block;
  padding: 22px;
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

.related-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.related-card .arrow {
  color: var(--accent);
  display: block;
  font-family: var(--mono);
  font-size: 18px;
  margin-top: 16px;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  color: var(--ink-2);
  font-size: 13px;
  padding: 30px 0;
}

.footer-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 820px) {
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .top-nav > a:not(.button) {
    display: none;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

  .product-shot {
    margin-bottom: 62px;
  }

  .formula-layout,
  .workflow-layout,
  .trust-layout {
    gap: 30px;
    grid-template-columns: 1fr;
  }

  .trust-toc {
    border-bottom: 1px solid var(--stroke);
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 24px;
    position: static;
  }

  .trust-toc strong {
    flex-basis: 100%;
  }

  .example-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .use-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .header-row {
    min-height: 60px;
  }

  .brand small {
    display: none;
  }

  .top-nav .button {
    font-size: 13px;
    min-height: 40px;
    padding: 8px 12px;
  }

  .page-head {
    padding-bottom: 36px;
    padding-top: 42px;
  }

  h1 {
    font-size: 36px;
  }

  .head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .head-actions .button {
    width: 100%;
  }

  .cta-actions,
  .cta-actions .button {
    width: 100%;
  }

  .facts {
    gap: 8px 16px;
  }

  .trust-head {
    padding-bottom: 48px;
    padding-top: 50px;
  }

  .trust-points {
    grid-template-columns: 1fr;
    padding-bottom: 20px;
    padding-top: 20px;
  }

  .trust-point,
  .trust-point:first-child {
    border-left: 0;
    border-top: 1px solid rgba(242, 235, 219, 0.18);
    padding: 18px 0;
  }

  .trust-point:first-child {
    border-top: 0;
  }

  .trust-content {
    padding-bottom: 68px;
    padding-top: 60px;
  }

  .trust-article h2 {
    font-size: 27px;
  }

  .product-shot {
    border-left: 0;
    border-radius: 0;
    border-right: 0;
    margin-left: -20px;
    margin-right: -20px;
  }

  .product-shot figcaption {
    padding-left: 20px;
    padding-right: 20px;
  }

  .content-section {
    padding-bottom: 58px;
    padding-top: 58px;
  }

  .section-heading h2 {
    font-size: 29px;
  }

  .formula-panel {
    padding: 22px;
  }

  .use-grid {
    grid-template-columns: 1fr;
  }

  .cta-copy h2 {
    font-size: 27px;
  }

  .cta-row .button {
    width: 100%;
  }

  .footer-links {
    margin-left: 0;
    width: 100%;
  }
}
