/* Home page demos. Builds on style.css. */
.hero h1 { font-size: clamp(36px, 6.4vw, 60px); }
.center { text-align: center; margin-top: 28px; }
.footnote { color: var(--dim); font-size: 13.5px; text-align: center; max-width: 680px; margin: 18px auto 0; }

.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.tab { font: inherit; font-size: 15px; font-weight: 600; padding: 9px 16px; border-radius: 99px; cursor: pointer;
  background: var(--bg); color: var(--dim); border: 1px solid var(--line); }
.tab[aria-selected="true"] { background: var(--grad); color: #fff; border-color: transparent; }

.demo-panel, .long-demo, .learn { background: var(--bg); border: 1px solid var(--line); border-radius: 24px; padding: 24px;
  max-width: 980px; margin: 0 auto; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .35); }
section:not(.alt) .long-demo { background: var(--surface); }
.panel-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.shows { font-weight: 700; font-size: 17px; }
.play { font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border-radius: 99px; padding: 9px 18px;
  background: var(--grad); color: #fff; border: 0; box-shadow: 0 8px 20px -10px var(--pink); }

.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: stretch; }
.compare .arrow { align-self: center; color: var(--accent); font-size: 26px; }
.side { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
section:not(.alt) .side { background: var(--bg); }
.side.typed { border-color: color-mix(in srgb, var(--pink) 35%, var(--line)); }
.said-label { margin-top: 16px; }
.label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 10px; }
.heard { margin: 0; color: var(--dim); font-size: 15.5px; line-height: 1.65; }
.heard s { color: color-mix(in srgb, var(--dim) 55%, transparent); text-decoration-color: color-mix(in srgb, var(--pink) 70%, transparent); }
.written { margin: 0; white-space: pre-wrap; font-size: 16px; line-height: 1.6; }
.timing { margin-top: 14px; font-size: 14px; color: var(--dim); text-align: right; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } .compare .arrow { transform: rotate(90deg); justify-self: center; } .timing { text-align: left; } }

.kept { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; }
.long-demo > .label { margin-top: 20px; }
.kept li { padding: 9px 12px; border-radius: 10px; font-size: 15px; background: color-mix(in srgb, var(--pink) 9%, transparent); }
.kept li.ok { color: var(--text); }
.kept li.miss { color: #e5484d; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
mark.wrong { background: color-mix(in srgb, #e5484d 22%, transparent); color: inherit; border-radius: 4px; padding: 0 3px; }
mark.right { background: color-mix(in srgb, #30a46c 26%, transparent); color: inherit; border-radius: 4px; padding: 0 3px; }
.written.fix { font-weight: 700; font-size: 18px; margin: 0 0 4px; }
.small-note { color: var(--dim); font-size: 14px; margin: 8px 0 0; }
.said-line { margin: 0; font-size: 20px; font-weight: 700; }
.privacy .glyph { background: none; font-size: 26px; width: auto; height: auto; justify-content: start; }
