:root {
  --ink: #1d1c1a;
  --muted: #69655e;
  --paper: #f4efe5;
  --paper-deep: #e9e0d1;
  --accent: #e84a2a;
  --accent-dark: #b63019;
  --line: rgba(29, 28, 26, 0.17);
  --white: #fffdf8;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", sans-serif;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --mono: SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --shell: min(1180px, calc(100% - 48px));
  --shadow: 0 30px 90px rgba(55, 40, 24, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin-top: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 8px 14px;
  transform: translateY(-150%);
  color: var(--white);
  background: var(--ink);
  border-radius: 6px;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.site-nav a {
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.75fr);
  align-items: center;
  gap: 8vw;
  padding-block: 72px 86px;
}

.hero h1,
.support-hero h1 {
  margin-bottom: 30px;
  font-family: var(--serif);
  font-size: clamp(52px, 6.7vw, 92px);
  font-weight: 600;
  letter-spacing: -0.07em;
  line-height: 1.2;
}

.hero h1 em,
.support-hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 36px;
  color: var(--muted);
  font-size: 16px;
  line-height: 2;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
}

.button {
  min-height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  transition: transform 180ms ease, background 180ms ease;
}

.button small {
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.08em;
  opacity: 0.65;
}

.button-primary {
  min-width: 205px;
  color: var(--white);
  background: var(--accent);
}

.button-primary:hover:not([aria-disabled="true"]) {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

[data-placeholder-link] {
  cursor: not-allowed;
  filter: saturate(0.7);
}

.text-link {
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 500px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(35vw, 440px);
  aspect-ratio: 1;
  border: 1px solid rgba(232, 74, 42, 0.25);
  border-radius: 50%;
}

.preview-card {
  position: relative;
  z-index: 1;
  width: min(310px, 75vw);
  aspect-ratio: 0.61;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
  border: 8px solid var(--ink);
  border-radius: 38px;
  box-shadow: var(--shadow);
  transform: rotate(4deg);
}

.preview-toolbar {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.preview-toolbar span {
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.preview-body {
  height: calc(100% - 58px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  text-align: center;
}

.preview-label {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.preview-chords {
  margin: 40px 0 42px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1.8;
}

.preview-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  line-height: 1.7;
}

.floating-note {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(55, 40, 24, 0.12);
  font-family: var(--serif);
  font-size: 18px;
}

.note-one {
  top: 12%;
  right: 4%;
}

.note-two {
  bottom: 11%;
  left: 0;
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.statement-section {
  padding-block: 84px;
  color: var(--white);
  background: var(--ink);
}

.statement-grid {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 36px;
}

.section-number {
  align-self: start;
  color: rgba(255, 255, 255, 0.36);
  font-family: var(--mono);
  font-size: 11px;
}

.statement-grid h2,
.section-heading h2,
.support-section h2,
.final-cta h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.8vw, 62px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 1.35;
}

.statement-grid .eyebrow {
  color: #ff846c;
}

.section-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 2;
}

.features {
  padding-block: 130px;
}

.section-heading {
  margin-bottom: 64px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 385px;
  display: flex;
  flex-direction: column;
  padding: 36px;
  background: var(--white);
  border: 1px solid var(--line);
}

.feature-card-primary {
  grid-row: span 2;
  min-height: 790px;
  color: var(--white);
  background: var(--accent);
  border-color: var(--accent);
}

.feature-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: auto;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-card-primary .feature-meta {
  color: rgba(255, 255, 255, 0.7);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: 30px;
  letter-spacing: -0.04em;
}

.feature-card p {
  max-width: 460px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
}

.feature-card-primary p {
  color: rgba(255, 255, 255, 0.78);
}

.chord-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.chord-strip span {
  display: grid;
  place-items: center;
  aspect-ratio: 1.5;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 52px);
}

.idea-lines {
  display: grid;
  gap: 13px;
  padding-top: 10px;
}

.idea-lines span {
  width: var(--line-width);
  height: 9px;
  background: var(--paper-deep);
  border-left: 5px solid var(--accent);
}

.library-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.library-row span:last-child {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
}

.play-dot {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
  border-radius: 50%;
  font-size: 8px;
}

.workflow-section {
  padding-block: 130px;
  background: var(--paper-deep);
}

.workflow-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 10vw;
}

.workflow-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.workflow-list li {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 20px;
  align-items: center;
  padding-block: 26px;
  border-bottom: 1px solid var(--line);
}

.workflow-list > li > span {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 10px;
}

.workflow-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.workflow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.final-cta {
  margin-block: 120px;
  padding: clamp(52px, 8vw, 100px);
  color: var(--white);
  background: var(--ink);
  text-align: center;
}

.final-cta .eyebrow {
  color: #ff846c;
}

.final-cta > p:not(.eyebrow) {
  margin: 24px 0 30px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--mono);
  font-size: 11px;
}

.button-inverse {
  min-width: 205px;
  color: var(--ink);
  background: var(--white);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 11px;
}

/* Support page */
.support-hero {
  padding-block: 100px 90px;
  border-bottom: 1px solid var(--line);
}

.support-hero h1 {
  margin-bottom: 26px;
}

.support-hero > p:last-child {
  max-width: 630px;
  margin-bottom: 0;
  color: var(--muted);
}

.support-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 8vw;
  padding-block: 100px 130px;
}

.support-index {
  position: sticky;
  top: 40px;
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 22px;
  border: 1px solid var(--line);
}

.support-index p {
  margin-bottom: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.support-index a {
  padding-block: 5px;
  font-size: 12px;
  font-weight: 600;
}

.support-index a:hover {
  color: var(--accent);
}

.support-content {
  min-width: 0;
}

.support-section + .support-section {
  margin-top: 120px;
}

.support-heading {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  margin-bottom: 42px;
}

.support-heading > span {
  padding-top: 8px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 10px;
}

.support-heading .eyebrow {
  margin-bottom: 8px;
}

.support-section h2 {
  font-size: clamp(34px, 4.5vw, 54px);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.guide-grid article {
  min-height: 235px;
  padding: 26px;
  background: var(--white);
}

.guide-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 46px;
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
}

.guide-grid h3,
.contact-card h3 {
  margin-bottom: 9px;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.03em;
}

.guide-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 27px 52px 27px 0;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 400;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details > div {
  max-width: 660px;
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.faq-list details p {
  margin-bottom: 0;
}

.contact-card {
  padding: 38px;
  color: var(--white);
  background: var(--ink);
}

.contact-card > div p {
  max-width: 620px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  color: #ff846c;
  font-family: var(--mono);
  font-size: clamp(12px, 2.2vw, 17px);
  overflow-wrap: anywhere;
}

.placeholder-warning {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 10px;
}

/* Privacy page */
.privacy-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 8vw;
  padding-block: 100px 130px;
}

.privacy-content {
  min-width: 0;
}

.policy-summary {
  padding: clamp(30px, 5vw, 52px);
  color: var(--white);
  background: var(--ink);
}

.policy-summary .eyebrow {
  color: #ff846c;
}

.policy-summary h2 {
  margin-bottom: 20px;
  font-family: var(--serif);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.5;
}

.policy-summary > p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.privacy-section {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 24px;
  padding-block: 58px;
  border-bottom: 1px solid var(--line);
}

.privacy-number {
  padding-top: 8px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 10px;
}

.privacy-section h2 {
  margin-bottom: 24px;
  font-family: var(--serif);
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.45;
}

.privacy-section p:not(.privacy-number) {
  color: var(--muted);
  font-size: 14px;
}

.privacy-section p:last-child {
  margin-bottom: 0;
}

.privacy-contact dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.privacy-contact dl div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.privacy-contact dt {
  color: var(--muted);
  font-size: 11px;
}

.privacy-contact dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.privacy-contact a {
  color: var(--accent-dark);
  border-bottom: 1px solid currentColor;
}

/* 404 page */
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--ink);
}

.error-main {
  width: min(680px, calc(100% - 48px));
  padding-block: 70px;
  text-align: center;
}

.error-chord {
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  margin: 0 auto 34px;
  color: var(--ink);
  background: var(--accent);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 30px;
}

.error-main .eyebrow {
  color: #ff846c;
}

.error-main h1 {
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(38px, 7vw, 64px);
  letter-spacing: -0.055em;
  line-height: 1.35;
}

.error-main > p:not(.eyebrow) {
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 36px, 720px);
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 60px;
    padding-block: 80px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-visual {
    min-height: 530px;
  }

  .hero-visual::before {
    width: min(70vw, 440px);
  }

  .statement-grid {
    grid-template-columns: 50px 1fr;
  }

  .statement-grid .section-copy {
    grid-column: 2;
  }

  .support-layout {
    grid-template-columns: 1fr;
  }

  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .support-index {
    position: static;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .support-index p {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 28px);
  }

  html {
    scroll-padding-top: 30px;
  }

  .header-inner {
    min-height: 70px;
  }

  .site-nav {
    gap: 16px;
    font-size: 11px;
  }

  .site-nav a:first-child {
    display: none;
  }

  .hero {
    padding-block: 62px 72px;
  }

  .hero h1,
  .support-hero h1 {
    font-size: clamp(43px, 13vw, 62px);
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    min-height: 455px;
  }

  .preview-card {
    width: 245px;
  }

  .floating-note {
    width: 60px;
    height: 60px;
    font-size: 15px;
  }

  .note-one {
    right: 0;
  }

  .statement-section,
  .workflow-section {
    padding-block: 76px;
  }

  .statement-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .statement-grid .section-copy {
    grid-column: auto;
  }

  .features {
    padding-block: 86px;
  }

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

  .feature-card,
  .feature-card-primary {
    min-height: 380px;
    padding: 26px;
  }

  .feature-card-primary {
    grid-row: auto;
    min-height: 650px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .final-cta {
    width: 100%;
    margin-block: 0;
  }

  .footer-inner {
    min-height: 150px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .footer-links {
    width: 100%;
    justify-content: space-between;
  }

  .support-hero {
    padding-block: 72px;
  }

  .support-layout {
    gap: 76px;
    padding-block: 60px 90px;
  }

  .privacy-layout {
    gap: 76px;
    padding-block: 60px 90px;
  }

  .privacy-section {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding-block: 44px;
  }

  .privacy-contact dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .support-index {
    grid-template-columns: 1fr;
  }

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

  .guide-grid article {
    min-height: 0;
  }

  .guide-number {
    margin-bottom: 28px;
  }

  .support-section + .support-section {
    margin-top: 86px;
  }

  .support-heading {
    grid-template-columns: 34px 1fr;
    gap: 10px;
  }

  .contact-card {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
