/*!
 * TechnoPress Addons — self-contained styles.
 * Scoped to .tpa-* so they never fight with the active theme.
 * Palette: black + dark blue only.
 */

.tpa-section,
.tpa-hero,
.tpa-stats,
.tpa-cta,
.tpa-popup {
  --tpa-navy: #0a2540;
  --tpa-navy-d: #061829;
  --tpa-navy-l: #143f6b;
  --tpa-ink: #0b0f14;
  --tpa-body: #3d4753;
  --tpa-muted: #6b7684;
  --tpa-light: #f5f7f9;
  --tpa-border: #e2e6eb;
  --tpa-white: #ffffff;
  --tpa-radius: 8px;
  --tpa-shadow: 0 1px 2px rgba(11,15,20,.04), 0 8px 24px rgba(11,15,20,.05);
  --tpa-shadow-h: 0 10px 30px rgba(10,37,64,.14);
  --tpa-font-h: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --tpa-font-b: "Open Sans", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------- layout --- */
.tpa-section { padding: 92px 0; width: 100%; }
.tpa-container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.tpa-bg-white { background: var(--tpa-white); }
.tpa-bg-light { background: var(--tpa-light); }

.tpa-section h2, .tpa-section h3, .tpa-section p,
.tpa-section ul, .tpa-section li, .tpa-section figure, .tpa-section blockquote {
  box-sizing: border-box;
}
.tpa-section h2, .tpa-section h3 {
  font-family: var(--tpa-font-h); color: var(--tpa-ink);
  letter-spacing: -.018em; line-height: 1.25; margin: 0 0 .6em;
}
.tpa-section h3 { font-size: 1.15rem; }
.tpa-section p { margin: 0 0 1.1em; }
.tpa-section p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- headings --- */
.tpa-eyebrow {
  font-family: var(--tpa-font-h); font-size: .76rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--tpa-navy);
  margin: 0 0 14px; display: flex; align-items: center; gap: 12px; justify-content: center;
}
.tpa-eyebrow::before, .tpa-eyebrow::after {
  content: ""; width: 26px; height: 2px; border-radius: 2px;
  background: var(--tpa-navy); opacity: .35;
}
.tpa-eyebrow.tpa-left { justify-content: flex-start; }
.tpa-eyebrow-light { color: #9dc4e8; }
.tpa-eyebrow-light::before, .tpa-eyebrow-light::after { background: #9dc4e8; opacity: .5; }

.tpa-title {
  font-family: var(--tpa-font-h); font-size: 2.1rem; font-weight: 700;
  color: var(--tpa-ink); text-align: center; margin: 0 0 16px;
}
.tpa-title::after {
  content: ""; display: block; width: 56px; height: 3px; border-radius: 3px;
  background: var(--tpa-navy); margin: 16px auto 0;
}
.tpa-sub {
  text-align: center; max-width: 680px; margin: 0 auto 52px;
  color: var(--tpa-muted); font-size: 1.02rem;
}
.tpa-lead-muted { font-size: 1.05rem; color: var(--tpa-body); margin-bottom: 28px; }

/* ------------------------------------------------------------ buttons --- */
.tpa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--tpa-font-h); font-weight: 600; font-size: .95rem;
  padding: 15px 32px; border-radius: 50px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: all .22s ease; line-height: 1.4;
}
.tpa-btn svg { width: 17px; height: 17px; transition: transform .22s ease; }
.tpa-btn:hover svg { transform: translateX(4px); }
.tpa-btn-solid { background: var(--tpa-navy); color: var(--tpa-white); }
.tpa-btn-solid:hover { background: var(--tpa-ink); color: var(--tpa-white); }
.tpa-btn-ghost { border-color: rgba(255,255,255,.7); color: var(--tpa-white); }
.tpa-btn-ghost:hover { background: var(--tpa-white); color: var(--tpa-navy-d); border-color: var(--tpa-white); }
.tpa-btn-dark { border-color: var(--tpa-navy); color: var(--tpa-navy); background: transparent; }
.tpa-btn-dark:hover { background: var(--tpa-navy); color: var(--tpa-white); }
.tpa-cta .tpa-btn { background: var(--tpa-white); color: var(--tpa-navy-d); }
.tpa-cta .tpa-btn:hover { background: var(--tpa-ink); color: var(--tpa-white); }

.tpa-more {
  display: inline-flex; align-items: center; gap: 8px; margin-top: auto;
  font-family: var(--tpa-font-h); font-weight: 600; font-size: .88rem;
  color: var(--tpa-navy); text-decoration: none;
}
.tpa-more:hover { text-decoration: underline; }

/* --------------------------------------------------------------- hero --- */
.tpa-hero {
  padding: 128px 0 104px; text-align: center; color: #fff;
  background: linear-gradient(135deg, var(--tpa-navy-d) 0%, var(--tpa-navy) 55%, var(--tpa-navy-l) 100%);
}
.tpa-hero h1 {
  font-family: var(--tpa-font-h); font-size: 3.4rem; font-weight: 800;
  line-height: 1.12; color: #fff; margin: 0 auto 22px; max-width: 940px;
}
.tpa-lead { font-size: 1.18rem; line-height: 1.75; color: #d3e3f2; max-width: 720px; margin: 0 auto 38px; }
.tpa-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.tpa-badges {
  display: flex; gap: 34px; justify-content: center; flex-wrap: wrap;
  margin-top: 60px; padding-top: 38px; border-top: 1px solid rgba(255,255,255,.18);
}
.tpa-badge strong {
  display: block; font-family: var(--tpa-font-h); font-size: 1.9rem;
  font-weight: 800; color: #fff; line-height: 1.1;
}
.tpa-badge span { font-size: .85rem; color: #cfe2f3; letter-spacing: .04em; text-transform: uppercase; }

/* --------------------------------------------------------------- grid --- */
.tpa-grid { display: grid; gap: 24px; }
.tpa-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tpa-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* -------------------------------------------------------------- cards --- */
.tpa-card {
  background: var(--tpa-white); border: 1px solid var(--tpa-border);
  border-top: 3px solid transparent; border-radius: var(--tpa-radius);
  padding: 36px 30px 30px; display: flex; flex-direction: column;
  transition: all .25s ease;
}
.tpa-card:hover { transform: translateY(-4px); box-shadow: var(--tpa-shadow-h); border-top-color: var(--tpa-navy); }
.tpa-card-icon {
  width: 58px; height: 58px; border-radius: 12px; margin-bottom: 22px;
  background: rgba(10,37,64,.07); color: var(--tpa-navy);
  display: flex; align-items: center; justify-content: center;
}
.tpa-card:hover .tpa-card-icon { background: var(--tpa-navy); color: #fff; }
.tpa-card p { font-size: .95rem; color: var(--tpa-body); margin-bottom: 20px; }

/* -------------------------------------------------------------- stats --- */
.tpa-stats { background: var(--tpa-navy); color: #fff; padding: 64px 0; }
.tpa-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.tpa-stat { padding: 8px 20px; border-left: 1px solid rgba(255,255,255,.16); text-align: center; }
.tpa-stat:first-child { border-left: 0; }
.tpa-stat strong {
  display: block; font-family: var(--tpa-font-h); font-size: 2.8rem;
  font-weight: 800; line-height: 1.1; color: #fff;
}
.tpa-stat span { font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; color: #cfe2f3; }

/* ---------------------------------------------------------------- why --- */
.tpa-why { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.tpa-why h2 { font-size: 2rem; }
.tpa-checks { list-style: none; margin: 0 0 30px; padding: 0; }
.tpa-checks li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; font-size: .97rem; }
.tpa-checks li svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; stroke: var(--tpa-navy); stroke-width: 2.4; }
.tpa-why-panel {
  background: var(--tpa-white); border: 1px solid var(--tpa-border);
  border-radius: 10px; padding: 10px 30px; box-shadow: var(--tpa-shadow);
}
.tpa-why-stat { padding: 24px 0; border-bottom: 1px solid var(--tpa-border); }
.tpa-why-stat:last-child { border-bottom: 0; }
.tpa-why-stat strong {
  display: block; font-family: var(--tpa-font-h); font-size: 2.4rem;
  font-weight: 800; color: var(--tpa-navy); line-height: 1.1; margin-bottom: 4px;
}
.tpa-why-stat span { font-size: .92rem; color: var(--tpa-muted); }

/* ------------------------------------------------------------- steps --- */
.tpa-steps { margin-top: 10px; }
.tpa-step { position: relative; padding-top: 26px; }
.tpa-step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 22px; height: 3px;
  background: var(--tpa-border); border-radius: 3px;
}
.tpa-step::after {
  content: ""; position: absolute; top: 0; left: 0; width: 52px; height: 3px;
  background: var(--tpa-navy); border-radius: 3px;
}
.tpa-step-num {
  display: block; font-family: var(--tpa-font-h); font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; color: var(--tpa-navy); margin-bottom: 10px;
}
.tpa-step p { font-size: .93rem; color: var(--tpa-muted); margin: 0; }

/* ----------------------------------------------------------- pricing --- */
.tpa-pricing { align-items: stretch; }
.tpa-plan {
  background: var(--tpa-white); border: 1px solid var(--tpa-border);
  border-radius: 10px; padding: 38px 32px; display: flex; flex-direction: column;
  position: relative; transition: all .25s ease;
}
.tpa-plan:hover { transform: translateY(-5px); box-shadow: var(--tpa-shadow-h); }
.tpa-plan-featured { border: 2px solid var(--tpa-navy); box-shadow: 0 16px 40px rgba(10,37,64,.12); }
.tpa-plan-badge {
  position: absolute; top: -13px; left: 32px; background: var(--tpa-navy); color: #fff;
  font-family: var(--tpa-font-h); font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; padding: 6px 14px; border-radius: 20px;
}
.tpa-plan-tag { font-size: .9rem; color: var(--tpa-muted); margin-bottom: 22px; }
.tpa-plan-price { display: flex; align-items: baseline; gap: 3px; flex-wrap: wrap; margin-bottom: 24px; }
.tpa-plan-price .tpa-cur { font-family: var(--tpa-font-h); font-size: 1.5rem; font-weight: 600; color: var(--tpa-navy); }
.tpa-plan-price .tpa-amount { font-family: var(--tpa-font-h); font-size: 2.5rem; font-weight: 800; color: var(--tpa-ink); line-height: 1; }
.tpa-plan-price .tpa-per { font-size: .92rem; color: var(--tpa-muted); margin-left: 4px; }
.tpa-plan-list { list-style: none; margin: 0 0 30px; padding: 0; }
.tpa-plan-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; margin-bottom: 13px; }
.tpa-plan-list li svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 4px; stroke: var(--tpa-navy); stroke-width: 2.4; }
.tpa-plan .tpa-btn { margin-top: auto; width: 100%; }

/* ------------------------------------------------------- testimonials --- */
.tpa-quote {
  margin: 0; background: var(--tpa-white); border: 1px solid var(--tpa-border);
  border-radius: 10px; padding: 34px 30px; position: relative;
}
.tpa-quote-mark {
  font-family: Georgia, "Times New Roman", serif; font-size: 3.6rem; line-height: 1;
  color: var(--tpa-navy); opacity: .18; position: absolute; top: 16px; left: 26px;
}
.tpa-quote blockquote {
  margin: 22px 0; font-size: .98rem; line-height: 1.75;
  color: var(--tpa-body); position: relative; z-index: 2;
}
.tpa-quote figcaption { display: flex; flex-direction: column; border-top: 1px solid var(--tpa-border); padding-top: 16px; }
.tpa-quote figcaption strong { font-family: var(--tpa-font-h); color: var(--tpa-ink); font-size: .95rem; }
.tpa-quote figcaption span { font-size: .85rem; color: var(--tpa-muted); }

/* --------------------------------------------------------------- cta --- */
.tpa-cta {
  background: linear-gradient(120deg, var(--tpa-navy) 0%, var(--tpa-navy-l) 100%);
  color: #fff; text-align: center; padding: 68px 0;
}
.tpa-cta h2 { color: #fff; margin-bottom: 12px; font-size: 2rem; }
.tpa-cta p { color: #fff; opacity: .95; max-width: 640px; margin: 0 auto 26px; }

/* ------------------------------------------------------------- popup --- */
.tpa-popup {
  position: fixed; inset: 0; z-index: 99999;
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.tpa-popup.is-open { display: flex; }
.tpa-popup-overlay { position: absolute; inset: 0; background: rgba(6,24,41,.72); animation: tpaFade .22s ease; }
.tpa-popup-box {
  position: relative; z-index: 2; width: 100%; max-width: 480px;
  max-height: 92vh; overflow-y: auto; background: var(--tpa-white);
  border-radius: 12px; box-shadow: 0 30px 80px rgba(6,24,41,.45);
  animation: tpaRise .26s cubic-bezier(.2,.8,.3,1); font-family: var(--tpa-font-b);
}
@keyframes tpaFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tpaRise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .tpa-popup-overlay, .tpa-popup-box { animation: none; }
}
.tpa-popup-close { font-family: inherit; }
.tpa-popup-close:hover { background: rgba(6,24,41,.85) !important; }

.tpa-popup-head {
  background: linear-gradient(135deg, var(--tpa-navy-d) 0%, var(--tpa-navy) 60%, var(--tpa-navy-l) 100%);
  color: #fff; padding: 30px 34px 26px; border-radius: 12px 12px 0 0;
}
.tpa-popup-head h2 {
  font-family: var(--tpa-font-h); color: #fff; font-size: 1.45rem;
  margin: 0 0 8px; padding-right: 34px;
}
.tpa-popup-head p { margin: 0; font-size: .93rem; color: #c9dcee; line-height: 1.6; }

.tpa-popup-body { padding: 26px 34px 26px; }
.tpa-ok, .tpa-err { padding: 13px 16px; border-radius: 0 5px 5px 0; font-size: .92rem; margin: 0 0 16px; }
.tpa-ok { background: #ecf4ee; border-left: 3px solid #1e7a45; color: #1e5c36; }
.tpa-err { background: #fdf2f1; border-left: 3px solid #c0392b; color: #8e2b21; }

.tpa-form { margin: 0; }
.tpa-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tpa-field { margin: 0 0 15px; }
.tpa-field label {
  display: block; font-family: var(--tpa-font-h); font-size: .82rem;
  font-weight: 600; color: var(--tpa-ink); margin-bottom: 6px;
}
.tpa-field label span { color: #c0392b; }
.tpa-field input, .tpa-field select, .tpa-field textarea {
  width: 100%; padding: 11px 13px; font-family: var(--tpa-font-b); font-size: .94rem;
  border: 1px solid var(--tpa-border); border-radius: 6px;
  background: #fbfcfd; color: var(--tpa-ink); box-sizing: border-box;
}
.tpa-field textarea { resize: vertical; }
.tpa-field input:focus, .tpa-field select:focus, .tpa-field textarea:focus {
  outline: none; border-color: var(--tpa-navy);
  box-shadow: 0 0 0 3px rgba(10,37,64,.1); background: #fff;
}
.tpa-submit { width: 100%; }
.tpa-privacy { margin: 14px 0 0; font-size: .78rem; color: var(--tpa-muted); text-align: center; }
.tpa-rc { margin: 0 0 16px; }
.tpa-rc > div { max-width: 100%; }
.tpa-rc-note { margin: 0 0 14px; font-size: .72rem; color: var(--tpa-muted); }
.tpa-popup-foot { margin: 16px 0 0; text-align: center; }
.tpa-popup-cancel {
  background: none; border: 0; cursor: pointer; font-family: var(--tpa-font-b);
  font-size: .85rem; color: var(--tpa-muted); text-decoration: underline; padding: 6px 10px;
}
.tpa-popup-cancel:hover { color: var(--tpa-ink); }

/* shortcode-based form inside the popup */
.tpa-popup-body .wpcf7 input[type="submit"] {
  width: 100%; background: var(--tpa-navy); color: #fff; border: 0;
  padding: 14px 26px; border-radius: 50px; font-family: var(--tpa-font-h);
  font-weight: 600; font-size: .95rem; cursor: pointer;
}

/* -------------------------------------------------------- responsive --- */
@media (max-width: 1024px) {
  .tpa-grid-3, .tpa-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tpa-why { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 782px) {
  .tpa-section { padding: 60px 0; }
  .tpa-hero { padding: 80px 0 66px; }
  .tpa-hero h1 { font-size: 2.1rem; }
  .tpa-title { font-size: 1.6rem; }
  .tpa-grid-3, .tpa-grid-4 { grid-template-columns: 1fr; }
  .tpa-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
  .tpa-stat { border-left: 0; }
  .tpa-plan-featured { order: -1; }
  .tpa-popup-head { padding: 26px 22px 22px; }
  .tpa-popup-body { padding: 22px 22px 24px; }
}
