/* nshrt store — unified brand stylesheet.
   One palette + layout shared by the /shop storefront and the individual
   product landing pages (e.g. /ebooks/ship-while-you-sleep/). Tasteful, dark,
   minimal: a single indigo-violet accent with emerald reserved for price /
   confirmation. Keep both pages on this sheet so they read as one brand. */

:root {
  --bg: #0b0c10;
  --bg-2: #0e1016;
  --surface: #14161c;
  --surface-2: #11131a;
  --border: #262a35;
  --border-soft: #1c1f28;
  --accent: #7c6cff;          /* indigo-violet — the brand accent */
  --accent-hover: #998cff;
  --accent-soft: rgba(124, 108, 255, 0.12);
  --emerald: #34d399;         /* price / success only */
  --text: #e7e9ee;
  --text-muted: #9aa3b2;
  --text-faint: #6b7180;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 980px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.container, .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* ---- nav ---- */
.store-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-soft);
}
.store-nav .brand { font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text); }
.store-nav .brand span { color: var(--accent); }
.store-nav .links { display: flex; gap: 1.25rem; font-size: 0.92rem; }
.store-nav .links a { color: var(--text-muted); }
.store-nav .links a:hover { color: var(--accent); }

/* ---- buttons ---- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #0b0c10;
  font-weight: 700;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, transform 0.05s ease;
}
.btn:hover { background: var(--accent-hover); color: #0b0c10; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: wait; }
.btn-block { display: block; width: 100%; padding: 1rem; font-size: 1.05rem; }

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background:
    radial-gradient(900px 400px at 50% -10%, var(--accent-soft), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero .eyebrow {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent-hover);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.hero .subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* ---- price box ---- */
.price-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 420px;
  margin: 2.25rem auto 0;
}
.price-box .price { font-size: 2.8rem; font-weight: 800; color: var(--emerald); letter-spacing: -0.02em; }
.price-box .price-note { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.price-box .guarantee { font-size: 0.85rem; color: var(--text-faint); margin-top: 1rem; }

/* ---- sections ---- */
.section { padding: 3.5rem 1.5rem; max-width: var(--maxw); margin: 0 auto; }
.section.alt { background: var(--surface-2); max-width: none; }
.section.alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section h2 { font-size: 1.9rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; text-align: center; }
.section .lead { text-align: center; color: var(--text-muted); margin-bottom: 2rem; }

/* ---- product grid (storefront) ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.product {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.product:hover { border-color: var(--accent); transform: translateY(-2px); }
.product h2 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 0.75rem; text-align: left; }
.product .blurb { color: var(--text-muted); flex: 1; margin-bottom: 1.25rem; }
.product .formats {
  font-size: 0.75rem; color: var(--text-faint); margin-bottom: 1.1rem;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.product .row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.product .price { font-size: 1.6rem; font-weight: 800; color: var(--emerald); }

/* ---- benefit / feature cards ---- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }
.benefit {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
}
.benefit .b-ico { font-size: 1.5rem; }
.benefit h3 { font-size: 0.98rem; color: var(--accent-hover); font-weight: 700; margin: 0.55rem 0 0.35rem; }
.benefit p { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

/* ---- chapter list ---- */
.chapters { display: grid; gap: 0.85rem; }
.chapter {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.15rem 1.4rem;
  display: flex; align-items: flex-start; gap: 1rem;
}
.chapter-num {
  background: var(--accent-soft); color: var(--accent-hover);
  border: 1px solid var(--border);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; flex-shrink: 0;
}
.chapter h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.chapter p { color: var(--text-muted); font-size: 0.9rem; }

/* ---- audience checklist ---- */
.audience { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 2rem; }
.audience ul { list-style: none; display: grid; gap: 0.9rem; }
.audience li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--text-muted); }
.audience li::before { content: "✓"; color: var(--emerald); font-weight: bold; }

/* ---- copy blocks shared with storefront ---- */
.pitch { max-width: 680px; margin: 0 auto 2.5rem; text-align: center; color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }
.pitch strong { color: var(--text); }
.guarantee-strip { max-width: 680px; margin: 2.5rem auto 0; text-align: center; color: var(--text-faint); font-size: 0.9rem; border-top: 1px solid var(--border-soft); padding-top: 1.75rem; }
.guarantee-strip strong { color: var(--text-muted); }
.badge-line { display: block; text-align: center; margin-top: 1rem; font-size: 0.78rem; color: var(--text-faint); }

.empty, .err { text-align: center; color: var(--text-muted); padding: 2rem; }
.err { color: #f87171; }

/* ---- footer ---- */
.store-footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: var(--text-faint);
  font-size: 0.85rem;
  border-top: 1px solid var(--border-soft);
  margin-top: 2rem;
}
.store-footer a { color: var(--text-muted); }
.store-footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .hero h1 { font-size: 2rem; }
  .hero .subtitle { font-size: 1.05rem; }
  .price-box .price { font-size: 2.3rem; }
  .store-nav .links { gap: 0.85rem; }
}
