/* site.css — shared shell + prose styles for the content pages rendered via _base.html.
   index.html and plan.html keep their own inline <style> blocks; the values here are
   copied from index.html so every page looks like the same site. */

:root {
  --bg: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --accent1: #6d28d9;
  --accent2: #9f1239;
  --border-color: #e5e7eb;
  --dot-color: #d1d5db;
}

html {
  height: 100%;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, var(--dot-color) 1px, transparent 0);
  background-size: 2rem 2rem;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: 'Sora', sans-serif;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
}

header { width: 100%; padding: 1.5rem 2rem; box-sizing: border-box; }
.nav-container { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.logo { font-size: clamp(1.05rem, 4vw, 1.5rem); font-weight: 700; color: var(--text-primary); text-decoration: none; }
.nav-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.nav-links a:hover { color: var(--accent1); }
/* The page you're on, so the nav reads as a location rather than a list of options. */
.nav-links a.current { color: var(--accent1); border-bottom: 2px solid var(--accent1); }


main { flex-grow: 1; padding: 1rem; }

/* ---- Page head ---- */
.page-head { max-width: 760px; margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; }
.page-head h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 0 0 1rem;
  background: linear-gradient(90deg, var(--accent1) 0%, var(--accent2) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-head .lede { color: var(--text-secondary); font-size: 1.125rem; line-height: 1.7; margin: 0; }
.updated { display: block; margin-top: 1.25rem; font-size: 0.85rem; color: var(--text-secondary); }

/* ---- Prose ---- */
.content { max-width: 760px; margin: 0 auto; padding: 0 1.25rem; }
.content section { margin-bottom: 3.25rem; }
.content h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 1rem; }
.content h3 { font-size: 1.05rem; font-weight: 600; margin: 1.75rem 0 .4rem; }
.content p, .content li { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; }
.content p { margin: 0 0 1rem; }
.content ul, .content ol { padding-left: 1.15rem; margin: 0 0 1rem; }
.content li { margin-bottom: .5rem; }
.content strong { color: var(--text-primary); font-weight: 600; }
.content a { color: var(--accent1); }
.content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em;
  background: #f3f4f6; padding: .12rem .35rem; border-radius: .25rem; color: var(--text-primary);
}
.content blockquote {
  margin: 0 0 1rem; padding: .85rem 1.15rem; border-left: 3px solid var(--accent1);
  background: rgba(109, 40, 217, 0.04); border-radius: 0 .5rem .5rem 0;
}
.content blockquote p:last-child { margin: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.card { background: rgba(255, 255, 255, 0.75); border: 1px solid var(--border-color); border-radius: .75rem; padding: 1.25rem; }
.card p { margin: 0; font-size: 0.95rem; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 2.75rem; margin-bottom: 1.25rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 1.85rem; height: 1.85rem; border-radius: 50%; background: var(--accent1); color: #fff;
  font-size: 0.9rem; font-weight: 600; display: grid; place-items: center;
}

table.speed { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-size: 0.95rem; }
table.speed th, table.speed td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--border-color); color: var(--text-secondary); }
table.speed th { color: var(--text-primary); font-weight: 600; }
.table-scroll { overflow-x: auto; margin-bottom: 1rem; }

details.faq {
  border: 1px solid var(--border-color); border-radius: .75rem; padding: 1rem 1.25rem;
  margin-bottom: .75rem; background: rgba(255, 255, 255, 0.75);
}
details.faq summary { cursor: pointer; font-weight: 600; color: var(--text-primary); list-style: none; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; float: right; color: var(--accent1); font-weight: 700; }
details.faq[open] summary::after { content: "\2013"; }
details.faq p { margin: .85rem 0 0; }


/* ---- Embedded tool (_playlist_form.html) ----
   The content pages carry the real input rather than a link to it, so these styles mirror
   the homepage hero form. */
.tool-embed {
  max-width: 760px; margin: 0 auto 3.25rem; padding: 1.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--border-color);
  border-radius: 1rem;
}
.tool-embed-label {
  margin: 0 0 1rem; text-align: center; font-weight: 600;
  color: var(--text-primary); font-size: 1.05rem;
}
.tool-embed .form-group {
  display: flex; border: 1px solid var(--border-color); border-radius: .75rem;
  overflow: hidden; background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -2px rgba(0,0,0,.05);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.tool-embed .form-group:focus-within {
  border-color: var(--accent1); box-shadow: 0 0 0 3px rgba(109, 40, 217, .2);
}
.tool-embed #playlistInput {
  flex-grow: 1; min-width: 0; border: none; outline: none;
  padding: 1rem 1.25rem; font-size: 1rem; font-family: inherit;
  background: transparent; color: var(--text-primary);
}
.tool-embed #playlistInput::placeholder { color: #9ca3af; }
.tool-embed button[type="submit"] {
  border: none; outline: none; background: var(--accent1); color: #fff;
  font-weight: 600; font-size: 1rem; font-family: inherit; padding: 1rem 1.5rem;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease;
}
.tool-embed button[type="submit"]:hover { background: #5b21b6; }
.tool-embed .arrow { display: inline-block; transition: transform .2s ease; }
.tool-embed button[type="submit"]:hover .arrow { transform: translateX(4px); }
.tool-embed-hint {
  margin: .9rem 0 0; text-align: center; font-size: .85rem; color: var(--text-secondary);
}
.tool-embed-hint code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #f3f4f6; padding: .1rem .3rem; border-radius: .25rem;
}
@media (max-width: 460px) {
  .tool-embed .form-group { flex-direction: column; }
  .tool-embed button[type="submit"] { padding: .9rem 1rem; }
}


footer { width: 100%; padding: 2rem; box-sizing: border-box; text-align: center; }
footer p { color: var(--text-secondary); font-size: 0.9rem; margin: 0 0 .5rem; }
footer a { color: var(--text-secondary); margin: 0 .4rem; }
footer a:hover { color: var(--accent1); }

