/* ============================================================
   Marketing pages, auth, dashboard, settings, explore
   ============================================================ */

/* ---------- hero ---------- */

.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); text-align: center; }
.hero .eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.hero h1 { margin-bottom: .55em; }
.hero .lede {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--ink-2);
  line-height: 1.62;
  max-width: 54ch;
  margin: 0 auto 2.2rem;
}
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
.hero-aside {
  font-size: .9rem;
  color: var(--muted);
  max-width: 48ch;
  margin: 1.4rem auto 0;
}

/* ---------- hero preview strip ---------- */

.preview {
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  max-width: 1180px;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}
.preview-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.preview-frame svg { display: block; width: 100%; height: auto; }
.preview-cap { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 1rem; }

/* ---------- generic sections ---------- */

.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-head { text-align: center; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: .4em; }
.section-head p { color: var(--ink-2); max-width: 58ch; margin: 0 auto; }

.rule { border: 0; border-top: 1px solid var(--line-soft); margin: 0; }

/* ---------- feature list ---------- */

.features { display: grid; gap: clamp(1.6rem, 3.5vw, 2.6rem); }
@media (min-width: 640px) { .features { grid-template-columns: 1fr 1fr; } }

.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .ficon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
}
.feature h3 { font-family: var(--sans); font-size: 1rem; font-weight: 650; margin-bottom: .3em; }
.feature p { font-size: .93rem; color: var(--muted); margin: 0; line-height: 1.58; }

/* ---------- steps ---------- */

.steps { counter-reset: step; display: grid; gap: 1.6rem; }
.step { display: flex; gap: 1rem; align-items: flex-start; }
.step::before {
  counter-increment: step;
  content: counter(step);
  flex: none;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  display: grid; place-items: center;
}
.step h3 { font-family: var(--sans); font-size: .98rem; font-weight: 650; margin-bottom: .25em; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ---------- closing call to action ---------- */

.cta-band {
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.2rem, 4vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
}
.cta-band h2 { margin-bottom: .35em; }
.cta-band p { color: var(--ink-2); margin-bottom: 1.6rem; }

/* ---------- auth pages ---------- */

.auth-page { display: grid; place-items: center; padding: clamp(2.5rem, 8vw, 5rem) 1.2rem; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.75rem; text-align: center; margin-bottom: .3em; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: .93rem; margin-bottom: 2rem; }
.auth-card .btn-primary { width: 100%; }
.auth-alt { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 1.6rem; }

/* ---------- dashboard ---------- */

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: clamp(2rem, 5vw, 3rem) 0 1.6rem;
}
.page-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); margin: 0; }
.page-head .sub { color: var(--muted); font-size: .94rem; margin: .35rem 0 0; }

.tl-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  padding-bottom: 4rem;
}

.tl-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.tl-card:hover { border-color: #d3d9e0; box-shadow: var(--shadow); transform: translateY(-1px); }

.tl-thumb {
  display: block;
  height: 116px;
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}
.tl-thumb svg { display: block; width: 100%; height: 100%; }

.tl-body { padding: .95rem 1.1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.tl-body h3 { font-family: var(--sans); font-size: 1rem; font-weight: 650; margin: 0 0 .25rem; }
.tl-body h3 a { color: var(--ink); }
.tl-meta { font-size: .82rem; color: var(--faint); margin: 0 0 .9rem; }
.tl-desc {
  font-size: .88rem; color: var(--muted); margin: 0 0 .9rem; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tl-actions { display: flex; gap: .4rem; align-items: center; }
.tl-actions .spacer { flex: 1; }

.pill {
  display: inline-flex; align-items: center; gap: .3em;
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  padding: .2em .55em; border-radius: 999px;
  background: var(--line-soft); color: var(--muted);
}
.pill-public { background: var(--gold-soft); color: var(--gold); }

.new-card {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--white);
  display: grid;
  place-items: center;
  min-height: 240px;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
  font: inherit;
  width: 100%;
}
.new-card:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.new-card .plus { font-size: 1.6rem; line-height: 1; margin-bottom: .5rem; display: block; }
.new-card strong { display: block; font-size: .96rem; color: inherit; }

.empty {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 1.5rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.empty h2 { font-size: 1.3rem; margin-bottom: .3em; }
.empty p { max-width: 46ch; margin: 0 auto 1.5rem; font-size: .94rem; }

.skeleton {
  background: linear-gradient(90deg, var(--line-soft) 25%, #e9ecf0 37%, var(--line-soft) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.3s ease infinite;
  border-radius: var(--radius);
  min-height: 240px;
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* ---------- settings ---------- */

.settings-grid { max-width: 640px; padding-bottom: 5rem; }
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.panel h2 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; margin-bottom: .3em; }
.panel > p.hint { margin-bottom: 1.3rem; }

/* ---------- explore / search ---------- */

.search-bar {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
  padding-bottom: 1.75rem;
}
@media (min-width: 780px) {
  .search-bar { grid-template-columns: 2fr 1fr 1fr auto; align-items: end; }
}
.search-bar .field { margin: 0; }

.result-list { display: grid; gap: .75rem; padding-bottom: 4rem; }
.result {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.result:hover { border-color: #d3d9e0; box-shadow: var(--shadow-sm); }
.result .info { flex: 1; min-width: 220px; }
.result h3 { font-family: var(--sans); font-size: 1rem; font-weight: 650; margin: 0 0 .2rem; }
.result .meta { font-size: .83rem; color: var(--faint); margin: 0; }
.result .desc { font-size: .89rem; color: var(--muted); margin: .35rem 0 0; }

/* ---------- help ---------- */

/* Contents in a column that stays in view beside the sections on a wide
   screen, and as a row of pills above them on a narrow one. */
.help {
  max-width: 70rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.1rem, 4vw, 2.5rem) clamp(2.5rem, 6vw, 4rem);
}
.help-head { max-width: 46rem; margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.help-head h1 { margin-bottom: .3em; }
.help-head .lede { font-size: clamp(1rem, 1.8vw, 1.12rem); color: var(--ink-2); margin: 0; }

.help-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
.help-body { min-width: 0; max-width: 46rem; }

.help-toc { display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.help-toc-title { display: none; }
.help-toc a {
  font-size: .86rem;
  padding: .3em .7em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
}
.help-toc a:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

@media (min-width: 900px) {
  .help-layout { grid-template-columns: 12rem minmax(0, 1fr); gap: 3.5rem; }
  .help-toc {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0;
  }
  .help-toc-title {
    display: block;
    margin: 0 0 .55rem .85rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--faint);
  }
  .help-toc a {
    padding: .34rem .85rem;
    border: 0;
    border-left: 2px solid var(--line-soft);
    border-radius: 0;
    font-size: .9rem;
    color: var(--muted);
  }
  .help-toc a:hover { color: var(--ink); }
  .help-toc a.on { border-left-color: var(--accent); color: var(--accent); font-weight: 600; }
}

.help-section {
  padding-bottom: 2.25rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--line-soft);
  scroll-margin-top: 1.25rem;
}
.help-section h2 { font-size: 1.45rem; margin: 0 0 .9rem; }
.help-intro { color: var(--muted); font-size: .95rem; margin: -.4rem 0 1rem; }

/* What you do on the left, what it does on the right, a hairline between
   rows; stacked when narrow. */
.help-list { margin: 0; font-size: .95rem; }
.help-list > div {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: .25rem 1.5rem;
  padding: .75rem 0;
  border-top: 1px solid var(--line-soft);
}
.help-list > div:first-child { border-top: 0; padding-top: .1rem; }
.help-list dt { font-weight: 600; color: var(--ink); }
.help-list dd { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) {
  .help-list > div { grid-template-columns: minmax(0, 1fr); }
}

/* A point worth pausing on, set apart on the accent's pale tint. */
.help-callout {
  margin: 1.1rem 0 0;
  padding: .8rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--ink-2);
  font-size: .93rem;
}

.help-cta { margin-top: .5rem; }

.help kbd {
  font: 600 .8em/1 var(--sans);
  padding: .22em .45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  white-space: nowrap;
}

/* The canvas's shapes and icons, drawn at their real size. */
.help-legend dt { display: flex; align-items: center; gap: .75rem; }
.help-legend dd { align-self: center; }
.help-art { flex: none; display: grid; place-items: center; width: 60px; }
.help-badges { display: flex; gap: 10px; }
.help-badge {
  display: grid;
  place-items: center;
  width: 16px; height: 16px;
  border-radius: 4px;
  color: #fff;
}
.help-badge svg { display: block; }
/* Note and anchor badges wear their event's color (teal here), and a link
   badge its group's, as on the canvas. */
.help-badge.note, .help-badge.anchor { background: #0f4c5c; }
.help-badge.note.on { box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px #0f4c5c; }
.help-badge.link { background: #2360c9; }

.help-keys { width: 100%; border-collapse: collapse; font-size: .95rem; }
.help-keys td { padding: .6rem 0; border-top: 1px solid var(--line-soft); vertical-align: top; color: var(--ink-2); }
.help-keys td:first-child { width: 17rem; padding-right: 1.5rem; }
@media (max-width: 640px) {
  .help-keys td { display: block; width: auto; border: 0; padding: 0; }
  .help-keys tr { display: block; padding: .55rem 0; border-top: 1px solid var(--line-soft); }
  .help-keys td:first-child { width: auto; margin-bottom: .25rem; }
}
.help-aside { font-size: .9rem; color: var(--muted); margin-top: 1rem; }
.steps-more { text-align: center; font-size: .92rem; margin: 2rem 0 0; }
