/* ============================================================
   SquareStair Media — AI Starter Kit Stylesheet
   Loaded after styles.css on all kit pages.
   Remaps design tokens to the SquareStair brand palette.
   ============================================================ */

/* ── Kit color tokens (SquareStair palette) ── */
:root {
  --ink: #1f2937;
  --ink-mid: #4a4a4a;
  --ink-light: #6e7a85;
  --cream: #f8f9fa;
  --cream-mid: #edf3f8;
  --cream-dark: #d4e3ef;
  --rule: rgba(17, 75, 114, 0.15);
  --accent: #114b72;
  --accent-light: #2a8cba;
  --accent-pale: rgba(42, 140, 186, 0.1);
  --warm: #2a8cba;
  --warm-pale: #fff4b2;
  --f-serif: 'Outfit', sans-serif;
  --f-sans: 'Outfit', sans-serif;
  --r: 6px;
  --r-lg: 10px;
}

/* ── Header: transparent start → frosted glass on scroll ── */
/* Mirrors the global styles.css rule; scoped here so kit pages
   own this behavior. Adds -webkit-backdrop-filter for Safari. */
.header {
    background-color: transparent;
}
.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

/* ── Kit content wrapper ── */
.site-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  font-family: var(--f-sans);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
}

/* ── Kit breadcrumb nav bar ── */
.kit-nav {
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  background: var(--cream);
  margin-top: 98px; /* offset for fixed header: logo 50px + padding 1.5rem×2 (24px×2) */
}
.kit-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.kit-nav-label {
  font-size: 12px;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--f-sans);
}
.kit-nav-section {
  font-size: 12px;
  color: var(--ink-light);
  font-family: var(--f-sans);
}
.kit-nav-back {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  font-family: var(--f-sans);
}
.kit-nav-back:hover { text-decoration: underline; }

/* ── HERO ── */
.kit-hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--rule);
}
.hero-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.kit-hero h1 {
  font-family: var(--f-serif);
  font-size: 42px;
  line-height: 1.2;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 24px;
  font-weight: 700;
}
.kit-hero h1 em {
  font-style: italic;
  color: var(--accent-light);
}
.hero-sub {
  font-size: 17px;
  color: var(--ink-mid);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  color: var(--ink-light);
}
.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── KIT INTRO & GRID ── */
.kit-intro {
  padding: 48px 0 32px;
}
.kit-intro h2 {
  font-family: var(--f-serif);
  font-size: 26px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--ink);
}
.kit-intro p {
  color: var(--ink-mid);
  max-width: 580px;
  font-size: 16px;
  margin-bottom: 0;
}
.kit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin: 32px 0;
}
.kit-card {
  background: var(--cream);
  padding: 28px 24px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.kit-card:hover {
  background: var(--cream-mid);
  color: inherit;
  text-decoration: none;
}
.kit-num {
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-weight: 500;
  text-transform: uppercase;
}
.kit-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--ink);
}
.kit-card p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 0;
}
.kit-arrow {
  font-size: 13px;
  color: var(--accent-light);
  margin-top: 12px;
  font-weight: 500;
}

/* ── HOW IT WORKS ── */
.how {
  padding: 48px 0;
  border-top: 1px solid var(--rule);
}
.how h2 {
  font-size: 22px;
  margin-bottom: 32px;
  font-weight: 700;
  color: var(--ink);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.kit-step {
  padding: 24px;
  background: var(--cream-mid);
  border-radius: var(--r-lg);
  border: 1px solid var(--cream-dark);
}
.step-n {
  font-size: 28px;
  font-weight: 700;
  color: var(--cream-dark);
  margin-bottom: 10px;
  line-height: 1;
}
.kit-step h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.kit-step p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── CTA STRIP ── */
.cta-strip {
  padding: 48px 40px;
  background: var(--accent);
  border-radius: var(--r-lg);
  margin: 0 0 64px;
  color: white;
}
.cta-strip h2 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: 700;
  color: white;
}
.cta-strip p {
  font-size: 15px;
  opacity: 0.85;
  max-width: 480px;
  margin-bottom: 24px;
  line-height: 1.6;
  color: white;
}
.cta-btn {
  display: inline-block;
  background: white;
  color: var(--accent);
  padding: 12px 24px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--f-sans);
  transition: opacity 0.15s;
  text-decoration: none;
}
.cta-btn:hover {
  opacity: 0.9;
  color: var(--accent);
  text-decoration: none;
}

/* ── CONTENT PAGE HEADER ── */
.cp-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--rule);
}
.cp-problem-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--warm);
  font-weight: 600;
  margin-bottom: 16px;
}
.cp-header h1 {
  font-size: 34px;
  line-height: 1.25;
  font-weight: 700;
  max-width: 620px;
  margin-bottom: 20px;
  color: var(--ink);
}
.cp-header .sub {
  font-size: 16px;
  color: var(--ink-mid);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 0;
}

/* ── CONTENT PAGE BODY ── */
.cp-body { padding: 48px 0; }
.cp-section { margin-bottom: 48px; }
.cp-section h2 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}
.cp-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 20px 0 8px;
  color: var(--ink);
}
.cp-section p {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 14px;
}
.cp-section ul {
  list-style: none;
  padding: 0;
  margin-bottom: 0;
}
.cp-section ul li {
  font-size: 15px;
  color: var(--ink-mid);
  line-height: 1.7;
  padding: 5px 0 5px 18px;
  position: relative;
}
.cp-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ── PROMPT BOX ── */
.prompt-box {
  background: var(--cream-mid);
  border: 1px solid var(--cream-dark);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 20px 20px 20px 22px;
  margin: 16px 0 24px;
  position: relative;
}
.prompt-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
}
.prompt-text {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.75;
  white-space: pre-wrap;
  font-family: var(--f-sans);
}
.prompt-tip {
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 12px;
  font-style: italic;
}
.copy-prompt {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 12px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--r);
  padding: 4px 10px;
  cursor: pointer;
  font-family: var(--f-sans);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.2s;
}
.prompt-box:hover .copy-prompt { opacity: 1; }

/* ── USE CASE TAGS ── */
.use-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}
.use-tag {
  font-size: 13px;
  background: var(--accent-pale);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(42, 140, 186, 0.3);
}

/* ── SOFT CTA ── */
.soft-cta {
  background: var(--warm-pale);
  border: 1px solid rgba(180, 140, 0, 0.25);
  border-radius: var(--r-lg);
  padding: 32px;
  margin: 48px 0 0;
}
.soft-cta h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}
.soft-cta p {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.7;
  margin-bottom: 20px;
}
.soft-cta-btn {
  display: inline-block;
  background: var(--warm);
  color: white;
  padding: 11px 22px;
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: var(--f-sans);
  text-decoration: none;
  transition: opacity 0.15s;
}
.soft-cta-btn:hover {
  opacity: 0.9;
  color: white;
  text-decoration: none;
}

/* ── PAGE NAV FOOTER ── */
.page-nav-footer {
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 48px;
}
.pnf-back {
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
  font-family: var(--f-sans);
  font-weight: 500;
}
.pnf-back:hover {
  text-decoration: underline;
  color: var(--accent);
}
.pnf-next {
  font-size: 13px;
  color: var(--accent-light);
  text-decoration: none;
  font-weight: 500;
}
.pnf-next:hover { text-decoration: underline; }
.pnf-end {
  font-size: 13px;
  color: var(--ink-light);
}

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .kit-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .kit-hero h1 { font-size: 30px; }
  .cta-strip { padding: 32px 24px; }
  .hero-meta { flex-direction: column; gap: 8px; align-items: flex-start; }
  .cp-header h1 { font-size: 26px; }
}
