/* Starter Pack styles. Dark theme matching the Here platform frame.
   Created 2026-09-21. ASCII-only. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --bg: #0f0f0f; --bg-card: #1a1a1a; --bg-elevated: #222;
    --border: rgba(255,255,255,0.08); --text: #e8e4df; --text-muted: #8a8580;
    --accent: #C27C5A; --accent-light: rgba(194,124,90,0.14);
    --font-serif: 'Libre Baskerville', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
}
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.6; min-height: 100vh; }
.sp-container { max-width: 680px; margin: 0 auto; padding: 16px 1.25rem 4rem; }

/* hero */
.sp-hero { text-align: center; padding: 2.5rem 0 1.5rem; }
.sp-eyebrow { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 1rem; }
.sp-headline { font-family: var(--font-serif); font-size: 2rem; font-weight: 500; line-height: 1.25; margin-bottom: 1rem; }
.sp-sub { font-size: 1.02rem; color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }
.sp-h2 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; line-height: 1.35; margin: 0 0 1rem; }

/* card + form */
.sp-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; margin: 1.5rem 0; }
.sp-gate[hidden] { display: none; }
.sp-label { display: block; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 0.5rem; }
.sp-form-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.sp-input { flex: 1 1 200px; padding: 0.85rem 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-family: var(--font-sans); font-size: 16px; outline: none; }
.sp-input:focus { border-color: var(--accent); }
.sp-input::placeholder { color: rgba(255,255,255,0.22); }
.sp-btn { flex: 0 0 auto; padding: 0.9rem 1.5rem; border-radius: 100px; border: 1px solid transparent; font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: opacity 0.15s, transform 0.15s; }
.sp-btn:disabled { opacity: 0.35; cursor: default; }
.sp-btn-primary { background: var(--accent); color: #fff; }
.sp-btn-primary:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.sp-btn-ghost { background: transparent; color: var(--text-muted); border-color: var(--border); }
.sp-small { font-size: 0.78rem; color: var(--text-muted); opacity: 0.8; margin-top: 0.75rem; }
.sp-error { font-size: 0.85rem; color: #e08a8a; margin-top: 0.6rem; }
.sp-error[hidden] { display: none; }

/* pack */
.sp-pack { margin: 1.5rem 0; animation: sp-fade 0.4s ease; }
.sp-pack[hidden] { display: none; }
@keyframes sp-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .sp-pack { animation: none; } }
.sp-known { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1rem; }
.sp-known[hidden] { display: none; }
.sp-known a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px; }
.sp-item { display: flex; gap: 1rem; align-items: flex-start; background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; margin-bottom: 0.75rem; color: var(--text); text-decoration: none; transition: border-color 0.15s, background 0.15s; -webkit-tap-highlight-color: transparent; }
.sp-item:hover { border-color: var(--accent); background: var(--accent-light); }
.sp-item-num { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--accent); color: var(--accent); font-family: var(--font-serif); font-size: 0.95rem; display: flex; align-items: center; justify-content: center; }
.sp-item-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 0.3rem; }
.sp-item-title { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.3; }
.sp-item-desc { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.sp-item-meta { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-top: 0.2rem; }
.sp-item-arrow { flex: 0 0 auto; color: var(--text-muted); font-size: 1.2rem; align-self: center; }
.sp-order { font-size: 0.88rem; color: var(--text-muted); font-style: italic; margin-top: 1rem; text-align: center; }

/* about */
.sp-about { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.sp-list { list-style: none; display: grid; gap: 0.9rem; }
.sp-list li { font-size: 0.93rem; color: var(--text-muted); line-height: 1.7; padding-left: 1rem; border-left: 2px solid var(--border); }
.sp-list strong { color: var(--text); font-weight: 600; }

/* shared sub-pages (sample + decide the time) */
.sp-back { display: inline-block; font-size: 0.8rem; color: var(--text-muted); text-decoration: none; margin-bottom: 1.5rem; }
.sp-back:hover { color: var(--text); }
.sp-body p { font-size: 0.98rem; line-height: 1.8; margin-bottom: 1.1rem; }
.sp-body h2 { font-family: var(--font-serif); font-size: 1.35rem; font-weight: 500; margin: 2rem 0 0.75rem; }
.sp-muted { color: var(--text-muted); }
.sp-source { font-size: 0.82rem; color: var(--text-muted); font-style: italic; margin-bottom: 1.5rem; }
.sp-source a { color: var(--accent); }
.sp-prompt { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 1.25rem; margin-bottom: 0.9rem; }
.sp-prompt-tier { display: inline-block; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; margin-bottom: 0.6rem; }
.sp-prompt-text { font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.45; margin-bottom: 0.75rem; }
.sp-textarea { width: 100%; min-height: 110px; padding: 0.9rem; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.7; resize: vertical; outline: none; }
.sp-textarea:focus { border-color: var(--accent); }
.sp-textarea:disabled { opacity: 0.45; }
.sp-textarea::placeholder { color: rgba(255,255,255,0.22); }
.sp-writein { margin: 1.5rem 0; }
.sp-writein-prompt { display: block; font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.45; margin-bottom: 0.6rem; }
.sp-sit { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.sp-sit button { padding: 0.3rem 0.7rem; border-radius: 100px; border: 1px solid var(--border); background: transparent; color: var(--text-muted); font-family: var(--font-sans); font-size: 0.75rem; cursor: pointer; }
.sp-sit button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.sp-sit-timer { color: var(--accent); font-variant-numeric: tabular-nums; }
.sp-saved { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.35rem; min-height: 1em; }
.sp-cta { text-align: center; margin: 2.5rem 0 0; }
.sp-cta .sp-btn { display: inline-block; text-decoration: none; }
.sp-cta p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 1rem; }

@media (max-width: 600px) {
    .sp-headline { font-size: 1.6rem; }
    .sp-hero { padding-top: 1.75rem; }
    .sp-form-row .sp-btn { width: 100%; }
    .sp-item { padding: 1rem; gap: 0.75rem; }
    .sp-item-arrow { display: none; }
}

/* next-step card (live class) */
.sp-next { margin-top: 1.25rem; border-style: dashed; }
