/* SlidePiece site. Same layout as sheetshow.dev; colors from SlidePiece's icon
   (slate-blue wall, cream keys, the cat's orange) and the app's MainStage-style
   dark screen with its LED yellow. */

:root {
  --bg: #FBF6EA;
  --bg-alt: #F2EBDA;
  --card: #FFFFFF;
  --text: #12192B;
  --muted: #55607A;
  --line: #E1D8C4;
  --primary: #3E5C86;      /* icon wall */
  --primary-text: #FFFFFF;
  --accent: #C9631F;       /* cat orange, darkened for text on cream */
  --accent-soft: #E8833A;
  --led: #FADB5C;          /* MainStage LED yellow */
  --device: #12121A;
  --shadow: 0 1px 2px rgba(18, 25, 43, .06), 0 8px 24px rgba(18, 25, 43, .08);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121214;          /* app background */
    --bg-alt: #18181B;
    --card: #1F1F22;        /* app panel */
    --text: #E6E6E8;
    --muted: #A3A3AA;
    --line: #2F2F34;
    --primary: #FADB5C;     /* LED yellow */
    --primary-text: #121214;
    --accent: #F0A066;
    --accent-soft: #E8833A;
    --device: #0A0A0C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px 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(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-header nav { display: flex; gap: 20px; font-size: 15px; }
.site-header nav a { color: var(--muted); text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 28px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; flex-direction: column; justify-content: center;
  padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  line-height: 1.25; min-width: 170px;
}
.badge small { color: var(--muted); font-size: 12px; }
.badge strong { font-size: 16px; }
a.badge { color: var(--text); text-decoration: none; border-color: var(--primary); }
a.badge strong { color: var(--primary); }
a.badge:hover { background: var(--bg-alt); }

/* An iPad-shaped frame around a screenshot */
.ipad { background: var(--device); border-radius: 22px; padding: 12px; box-shadow: var(--shadow); }
.ipad img { width: 100%; height: auto; border-radius: 10px; }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 34px); line-height: 1.2; margin: 0 0 12px; }
.section-lead { color: var(--muted); margin: 0 0 36px; max-width: 680px; }

/* Use cases / steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.step .n {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: #12192B; font-weight: 700; margin-bottom: 10px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.feature h3 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.feature h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--led); box-shadow: 0 0 6px var(--led); flex: none; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.shot { margin: 0; }
.shot.wide { grid-column: span 2; }
.shot figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }
.shot figcaption b { color: var(--text); }

/* Coming soon */
.cta { text-align: center; }
.cta .badges { justify-content: center; margin-top: 24px; }
.cta img.big-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 18px; box-shadow: var(--shadow); }

/* Help page */
.docs { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; padding-top: 40px; padding-bottom: 72px; align-items: start; }
.toc { position: sticky; top: 84px; font-size: 15px; }
.toc p { font-weight: 700; margin: 0 0 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { color: var(--muted); text-decoration: none; display: block; padding: 4px 0; }
.toc a:hover { color: var(--text); }
.doc-body { max-width: 760px; }
.doc-body h1 { font-size: clamp(32px, 4.6vw, 44px); margin: 0 0 14px; }
.doc-body section { padding: 0; margin: 48px 0 0; border-top: 1px solid var(--line); }
.doc-body section:first-of-type { margin-top: 32px; }
.doc-body h2 { font-size: 28px; margin: 32px 0 8px; }
.doc-body h3 { font-size: 20px; margin: 28px 0 6px; }
.doc-body section[id] { scroll-margin-top: 84px; }
.doc-body p, .doc-body li { line-height: 1.65; }
.doc-body ol, .doc-body ul { padding-left: 24px; }
.doc-body li { margin: 8px 0; }
.doc-body ol > li::marker { font-weight: 700; color: var(--accent); }
.doc-fig { margin: 18px 0 6px; }
.doc-fig img { width: auto; max-width: 100%; max-height: 420px; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.doc-fig figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.note { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent-soft); border-radius: 12px; padding: 12px 16px; font-size: 16px; margin: 16px 0; }
table.midi { border-collapse: collapse; width: 100%; max-width: 520px; margin: 12px 0; font-size: 16px; }
table.midi th, table.midi td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
table.midi th { color: var(--muted); font-weight: 600; font-size: 14px; }
table.midi td:last-child { font-variant-numeric: tabular-nums; }

/* Privacy page */
.doc { padding: 48px 0 64px; max-width: 760px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 42px); }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.updated { color: var(--muted); margin-top: -8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 20px; }

@media (max-width: 880px) {
  .hero { padding: 40px 0; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .toc { position: static; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header nav { gap: 14px; }
  .site-header nav a.hide-sm { display: none; }
  .steps, .features, .shots { grid-template-columns: 1fr; }
  .shot.wide { grid-column: auto; }
  section { padding: 48px 0; }
  .badge { min-width: 0; flex: 1 1 140px; }
  .ipad { padding: 7px; border-radius: 14px; }
}
