/* toolkit.css — /toolkit page styles.
   Owns: hero, 2x2 template card grid, email modal, CTA strip.
   Does NOT own: nav, footer, global theme variables (theme.css). */

.toolkit-page { background: var(--bg); padding-top: 80px; }

/* ─── Hero ─── */
.tk-hero {
  padding: 96px 2rem 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-soft);
}

.tk-hero-inner { max-width: 740px; margin: 0 auto; }

.tk-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.2rem;
}

.tk-headline {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1.2rem;
}

.tk-subhead {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ─── Template Grid ─── */
.tk-grid-section {
  padding: 80px 2rem 96px;
}

.tk-grid-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.tk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 680px) {
  .tk-grid { grid-template-columns: 1fr; }
}

/* ─── Template Card ─── */
.tk-card {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
}

.tk-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* PDF preview mock */
.tk-card-preview {
  background: var(--surface);
  border-bottom: 1px solid var(--border-soft);
  padding: 24px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.tk-preview-mock {
  background: #FEFEF9;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px 16px;
  width: 100%;
  max-width: 260px;
  box-shadow: 0 2px 8px rgba(139, 130, 110, 0.10);
}

.tk-preview-bar {
  height: 4px;
  background: var(--sage);
  border-radius: 2px;
  margin-bottom: 10px;
}

.tk-preview-title {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 8px;
}

.tk-preview-line {
  height: 5px;
  background: var(--border);
  border-radius: 2px;
  margin-bottom: 6px;
}
.tk-line-lg { width: 100%; }
.tk-line-md { width: 75%; }
.tk-line-sm { width: 50%; }

.tk-preview-rule {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}

.tk-preview-qa {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 2px;
  margin-bottom: 5px;
}

.tk-preview-obj {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text);
  background: #f8f4ee;
  border-left: 2px solid var(--gold);
  padding: 3px 6px;
  margin-bottom: 5px;
  font-style: italic;
}

/* Timeline mock for deposit calendar */
.tk-preview-timeline {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 0;
}

.tk-tl-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.tk-tl-line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

/* Card body */
.tk-card-body {
  padding: 24px 24px 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tk-card-tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.6rem;
}

.tk-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.tk-card-desc {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.4rem;
  flex: 1;
}

.tk-cta {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}

.tk-cta:hover { background: #b8933a; transform: translateY(-1px); }

/* ─── CTA Strip ─── */
.tk-cta-strip {
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 56px 2rem;
}

.tk-cta-strip-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.tk-cta-strip-text { flex: 1; min-width: 260px; }

.tk-cta-strip-label {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.tk-cta-strip-headline {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
}

.tk-cta-strip-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.tk-strip-btn {
  display: inline-block;
  padding: 12px 26px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.tk-strip-primary {
  background: var(--sage);
  color: #fff;
}
.tk-strip-primary:hover { background: #7a8860; transform: translateY(-1px); }

.tk-strip-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.tk-strip-secondary:hover {
  background: var(--bg-warm);
  border-color: var(--gold);
  transform: translateY(-1px);
}

/* ─── Modal ─── */
.tk-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(60, 54, 44, 0.55);
  backdrop-filter: blur(4px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.tk-modal-backdrop.tk-modal-open {
  opacity: 1;
  pointer-events: all;
}

.tk-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px 36px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.tk-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}
.tk-modal-close:hover { color: var(--text); }

.tk-modal-tag {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.5rem;
}

.tk-modal-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 0.8rem;
}

.tk-modal-desc {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.6rem;
}

.tk-modal-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-warm);
  margin-bottom: 0.45rem;
}

.tk-modal-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg-warm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  margin-bottom: 1rem;
}
.tk-modal-input:focus { border-color: var(--gold); }

.tk-modal-submit {
  width: 100%;
  padding: 13px;
  background: var(--gold);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s;
}
.tk-modal-submit:hover:not(:disabled) { background: #b8933a; }
.tk-modal-submit:disabled { opacity: 0.65; cursor: not-allowed; }

.tk-modal-error {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: #b94a48;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

/* Success state */
.tk-modal-success { text-align: center; padding: 8px 0; }

.tk-success-icon {
  font-size: 2rem;
  color: var(--sage);
  margin-bottom: 0.75rem;
}

.tk-success-msg {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.tk-success-download {
  display: inline-block;
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Active nav link ─── */
.nav-active {
  color: var(--sage) !important;
  font-weight: 600;
}
