/* Pricing + Templates pages */

.pricing-hero {
  position: relative;
  padding: 80px 24px 64px;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.pricing-hero .lp-hero-mesh {
  position: absolute; top: 0; left: 0; right: 0;
  width: 100%; height: 540px;
  object-fit: cover; z-index: 0; pointer-events: none; opacity: 0.4;
}
.pricing-hero-inner {
  position: relative; z-index: 1;
  max-width: 760px; margin: 0 auto;
}
.pricing-hero h1 {
  font-family: var(--font-display);
  font-size: 64px; font-weight: 300; letter-spacing: -2px;
  line-height: 1.05; color: var(--ink);
  margin: 20px 0 18px;
}
.pricing-hero .lead {
  font-size: 19px; line-height: 1.55; color: var(--ink-secondary);
  font-weight: 300; margin: 0 auto; max-width: 620px;
}

.pricing-cards-section { max-width: 1200px; margin: 0 auto; padding: 32px 24px 80px; }
.pricing-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.pcard {
  background: #fff; border: 1px solid var(--hairline);
  border-radius: 14px; padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
  position: relative;
}
.pcard.feat {
  background: var(--ink); color: #fff; border: 0;
  box-shadow: 0 16px 40px rgba(13,37,61,0.18);
}
.pcard .pop-badge {
  position: absolute; top: -10px; right: 24px;
  background: var(--accent-rust); color: #fff;
  padding: 5px 14px; border-radius: 9999px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.4px; text-transform: uppercase;
}
.pcard-head { display: flex; flex-direction: column; gap: 10px; }
.pcard .pname {
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--ink-secondary);
}
.pcard.feat .pname { color: rgba(255,255,255,0.7); }
.pcard .pprice {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 300; letter-spacing: -1.6px;
  font-feature-settings: "ss01","tnum"; font-variant-numeric: tabular-nums;
  line-height: 1;
}
.pcard.feat .pprice { color: #fff; }
.pcard .pprice small {
  font-family: var(--font-body);
  font-size: 13px; font-weight: 400; color: var(--ink-mute);
  letter-spacing: 0; display: block; margin-top: 8px;
}
.pcard.feat .pprice small { color: rgba(255,255,255,0.7); }
.pcard .psub { font-size: 13px; color: var(--ink-secondary); font-weight: 300; line-height: 1.5; }
.pcard.feat .psub { color: rgba(255,255,255,0.78); }

.pcard-expiry {
  font-size: 11px; font-weight: 400;
  color: var(--ink-mute);
  margin-top: 8px; letter-spacing: 0.1px;
}
.pcard.feat .pcard-expiry { color: rgba(255,255,255,0.65); }

.ptoggle {
  display: inline-flex; gap: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 9999px; padding: 3px;
  width: fit-content;
}
.ptoggle button {
  background: transparent; border: 0; color: rgba(255,255,255,0.65);
  padding: 5px 14px; border-radius: 9999px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 500;
}
.ptoggle button.on { background: #fff; color: var(--ink); }

.pcard-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.pcard-list li {
  font-size: 14px; line-height: 1.5; color: var(--ink-secondary); font-weight: 300;
  display: flex; gap: 10px; align-items: flex-start;
  padding-left: 0;
}
.pcard-list li::before {
  content: ""; width: 14px; height: 14px; flex-shrink: 0;
  background: var(--ok-bg); color: var(--ok);
  border-radius: 50%; margin-top: 4px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2306c167' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat; background-position: center;
}
.pcard.feat .pcard-list li { color: rgba(255,255,255,0.85); }
.pcard.feat .pcard-list li::before {
  background-color: rgba(255,255,255,0.12);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'><polyline points='20 6 9 17 4 12'/></svg>");
}

.btn-text-pill {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink); padding: 9px 18px;
  border-radius: 9999px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 500;
  width: fit-content;
}
.btn-text-pill:hover { border-color: var(--ink); }
.pcard.feat .btn-primary-pill { background: #fff; color: var(--ink); }
.pcard.feat .btn-primary-pill:hover { background: rgba(255,255,255,0.92); }

.pricing-philosophy {
  background: var(--canvas-soft);
  padding: 96px 24px;
}
.pp-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px;
  align-items: start;
}
.pp-grid h2 {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 300; letter-spacing: -1.2px;
  line-height: 1.1; margin: 8px 0 0;
}

.pricing-faq-section { max-width: 1200px; margin: 0 auto; padding: 96px 24px; }
.pfaq-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.pfaq-grid h2 {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 300; letter-spacing: -1px;
  line-height: 1.15; margin: 8px 0 0;
}

/* Templates page */
.templates-grid-section { max-width: 1200px; margin: 0 auto; padding: 32px 24px 80px; }
.tmpl-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.tmpl-card {
  background: #fff; border: 1px solid var(--hairline);
  border-radius: 12px; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms;
}
.tmpl-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31,107,74,0.08);
}
.tmpl-card-top { display: flex; justify-content: space-between; align-items: center; }
.tmpl-kind {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--primary); font-weight: 500;
}
.tmpl-tag {
  font-size: 10px; padding: 3px 8px; border-radius: 9999px;
  background: var(--canvas-soft); color: var(--ink-secondary);
  font-weight: 500;
}
.tmpl-tag.hot { background: var(--ok-bg); color: var(--ok); }
.tmpl-thumb {
  background: linear-gradient(180deg, #f6f9fc, #fff);
  border: 1px solid var(--hairline);
  border-radius: 8px; height: 130px;
  padding: 14px; display: flex; flex-direction: column; gap: 6px;
  justify-content: center;
}
.tmpl-thumb-row { height: 6px; border-radius: 3px; background: rgba(13,37,61,0.08); }
.tmpl-thumb-row.money { background: var(--primary); opacity: 0.45; height: 12px; width: 40%; border-radius: 4px; margin: 4px 0; }
.tmpl-card h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 400; letter-spacing: -0.3px;
  margin: 0; line-height: 1.3;
}
.tmpl-card p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-secondary); font-weight: 300; }
.tmpl-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px; border-top: 1px solid var(--hairline);
}
.tmpl-size { font-size: 11px; color: var(--ink-mute); font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.tmpl-foot .btn-text-pill { padding: 5px 12px; font-size: 12px; }

.templates-cta {
  background: var(--ink); color: #fff;
  padding: 80px 24px; text-align: center;
}
.templates-cta-inner { max-width: 720px; margin: 0 auto; }
.templates-cta h2 {
  font-family: var(--font-display); font-size: 44px; font-weight: 300; letter-spacing: -1.2px;
  margin: 0 0 12px; color: #fff; line-height: 1.1;
}
.templates-cta p { margin: 0 0 24px; color: rgba(255,255,255,0.7); font-size: 17px; font-weight: 300; }
.templates-cta .btn-primary-pill { background: #fff; color: var(--ink); }
