/* ==========================================================================
   TPD Power Dialer Theme
   Brand colors injected as --tpd-primary / --tpd-dark / --tpd-accent
   ========================================================================== */

/* Reset + base ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1d2327;
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tpd-primary, #2271b1); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.8; }
h1, h2, h3, h4, h5 { color: var(--tpd-dark, #1a1d29); margin-top: 0; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.tpd-skip-link { position: absolute; top: -40px; left: 0; background: var(--tpd-primary); color: #fff; padding: 8px 16px; z-index: 100; }
.tpd-skip-link:focus { top: 0; }

/* Container -------------------------------------------------------------- */
.tpd-container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.tpd-narrow    { max-width: 720px; }
.tpd-section   { padding: 80px 0; }

/* Header / Nav ----------------------------------------------------------- */
.tpd-site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.tpd-nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 24px; gap: 24px;
}
.tpd-logo {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 18px;
    color: var(--tpd-dark);
    text-decoration: none;
}
.tpd-logo:hover { opacity: 1; }
.tpd-logo img { height: 36px; max-width: 180px; object-fit: contain; }
.tpd-logo-text { font-size: 18px; }

.tpd-nav-toggle {
    display: none; background: none; border: 0; cursor: pointer;
    width: 32px; height: 32px; padding: 0; flex-direction: column; gap: 4px;
}
.tpd-nav-toggle span {
    display: block; width: 24px; height: 2px; background: var(--tpd-dark);
    transition: transform 0.2s, opacity 0.2s;
}
.tpd-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.tpd-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.tpd-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.tpd-nav-list {
    display: flex; align-items: center; gap: 28px;
    list-style: none; margin: 0; padding: 0;
}
.tpd-nav-list a {
    color: #50575e; font-weight: 500; font-size: 15px;
    text-decoration: none;
}
.tpd-nav-list a:hover { color: var(--tpd-primary); opacity: 1; }
.tpd-nav-list a.tpd-btn { color: #fff; padding: 8px 18px; font-size: 14px; }
.tpd-nav-list a.tpd-btn:hover { color: #fff; opacity: 1; }

/* Buttons ---------------------------------------------------------------- */
.tpd-btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0;
    cursor: pointer;
    line-height: 1.4;
    white-space: nowrap;
    font-family: inherit;
}
.tpd-btn-lg     { padding: 15px 32px; font-size: 16px; }
.tpd-btn-block  { display: block; width: 100%; text-align: center; }
.tpd-btn-primary {
    background: var(--tpd-primary);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
}
.tpd-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.12); opacity: 1; color: #fff; }
.tpd-btn-ghost {
    background: transparent; color: var(--tpd-dark);
    border: 1.5px solid rgba(0, 0, 0, 0.12);
}
.tpd-btn-ghost:hover { border-color: var(--tpd-dark); opacity: 1; }
.tpd-btn-outline {
    background: #fff; color: var(--tpd-primary);
    border: 1.5px solid var(--tpd-primary);
}
.tpd-btn-outline:hover { background: var(--tpd-primary); color: #fff; opacity: 1; }
.tpd-btn-white {
    background: #fff; color: var(--tpd-dark);
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}
.tpd-btn-white:hover { transform: translateY(-1px); opacity: 1; color: var(--tpd-dark); }

/* Hero ------------------------------------------------------------------- */
.tpd-hero {
    padding: 100px 0 80px;
    background: linear-gradient(135deg, #fafbfc 0%, #eef2f7 100%);
    position: relative;
    overflow: hidden;
}
.tpd-hero::before {
    content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 200%;
    background: radial-gradient(circle, rgba(34, 113, 177, 0.08) 0%, transparent 60%);
    pointer-events: none;
}
.tpd-hero-inner {
    display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
    position: relative;
}
.tpd-hero-inner:has(.tpd-hero-visual) { grid-template-columns: 1fr 1fr; }
.tpd-hero h1 {
    margin: 0 0 20px;
    background: linear-gradient(135deg, var(--tpd-dark), var(--tpd-primary));
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.tpd-hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: #50575e;
    max-width: 640px;
    margin: 0 0 32px;
    line-height: 1.5;
}
.tpd-hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.tpd-hero-trust { font-size: 13px; color: #6c7178; margin: 0; }
.tpd-hero-visual img { border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.12); }

/* Page header (smaller hero) -------------------------------------------- */
.tpd-page-header {
    padding: 60px 0 40px;
    background: #f6f7f7;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.tpd-page-header h1 { margin: 0 0 12px; }
.tpd-page-header p { margin: 0; color: #50575e; font-size: 1.1rem; max-width: 680px; }
.tpd-page-header-hero {
    padding: 80px 0 50px;
    background: linear-gradient(135deg, #fafbfc 0%, #eef2f7 100%);
    text-align: center;
}
.tpd-page-header-hero p { margin: 0 auto; }

/* Section header --------------------------------------------------------- */
.tpd-section-header { text-align: center; margin-bottom: 56px; }
.tpd-section-header h2 { margin: 0 0 12px; }
.tpd-section-header p { color: #50575e; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Features grid ---------------------------------------------------------- */
.tpd-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.tpd-feature-card {
    padding: 32px 24px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.tpd-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: rgba(0, 0, 0, 0.1);
}
.tpd-feature-icon { font-size: 36px; margin-bottom: 14px; }
.tpd-feature-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.tpd-feature-card p { margin: 0; color: #50575e; font-size: 14px; }

/* Pricing ---------------------------------------------------------------- */
.tpd-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: stretch;
}
.tpd-plan {
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    padding: 36px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
}
.tpd-plan-featured {
    border-color: var(--tpd-primary);
    box-shadow: 0 20px 50px rgba(34, 113, 177, 0.15);
    transform: scale(1.04);
    z-index: 2;
}
.tpd-plan-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--tpd-primary); color: #fff;
    padding: 5px 16px; border-radius: 12px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px;
}
.tpd-plan h3 { margin: 0 0 6px; }
.tpd-plan-price { margin: 12px 0 28px; }
.tpd-plan-amount { font-size: 3rem; font-weight: 700; color: var(--tpd-dark); letter-spacing: -0.02em; }
.tpd-plan-per { color: #888; font-size: 1rem; }
.tpd-plan-features {
    list-style: none; padding: 0; margin: 0 0 28px;
    flex-grow: 1;
    font-size: 14px;
    color: #444;
}
.tpd-plan-features li {
    padding: 7px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}
.tpd-plan-features li:last-child { border-bottom: 0; }
.tpd-pricing-note {
    text-align: center; margin-top: 40px; color: #6c7178; font-size: 14px;
}

/* Testimonials ----------------------------------------------------------- */
.tpd-testimonials { background: #fafbfc; }
.tpd-testimonials-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.tpd-testimonial {
    background: #fff; padding: 28px; border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin: 0;
}
.tpd-testimonial p { font-size: 1.05rem; color: #2c3338; line-height: 1.6; font-style: italic; margin: 0 0 14px; }
.tpd-testimonial footer { font-style: normal; color: #50575e; font-size: 14px; }
.tpd-testimonial footer strong { color: var(--tpd-dark); }
.tpd-muted { color: #888; }

/* CTA section ------------------------------------------------------------ */
.tpd-cta-section {
    background: linear-gradient(135deg, var(--tpd-dark) 0%, #2d3142 100%);
    color: #fff;
    text-align: center;
}
.tpd-cta-section h2 { color: #fff; margin: 0 0 14px; font-size: 2.25rem; }
.tpd-cta-section p { color: rgba(255, 255, 255, 0.8); font-size: 1.1rem; margin: 0 0 32px; }
.tpd-cta-inner { padding: 0 24px; }

/* Auth pages (login, etc.) ---------------------------------------------- */
.tpd-auth-page {
    min-height: calc(100vh - 200px);
    display: flex; align-items: center; justify-content: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #fafbfc 0%, #eef2f7 100%);
}
.tpd-auth-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    width: 100%; max-width: 440px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.tpd-auth-card h1 { margin: 0 0 8px; font-size: 1.75rem; }
.tpd-auth-sub { color: #6c7178; font-size: 14px; margin-bottom: 28px; }
.tpd-auth-form { display: flex; flex-direction: column; gap: 18px; }
.tpd-field { display: flex; flex-direction: column; gap: 6px; }
.tpd-field span { font-weight: 500; font-size: 14px; color: #1d2327; }
.tpd-field input,
.tpd-field select,
.tpd-field textarea {
    padding: 12px 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #fff;
}
.tpd-field input:focus,
.tpd-field select:focus,
.tpd-field textarea:focus {
    outline: none;
    border-color: var(--tpd-primary);
    box-shadow: 0 0 0 4px rgba(34, 113, 177, 0.1);
}
.tpd-checkbox {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; color: #50575e;
    cursor: pointer;
}
.tpd-auth-foot {
    text-align: center; font-size: 13px; color: #6c7178;
    margin: 8px 0 0;
}
.tpd-alert {
    padding: 12px 16px; border-radius: 8px; font-size: 14px;
    margin-bottom: 20px;
}
.tpd-alert-error { background: #fff3f3; border-left: 3px solid #d63638; color: #8b1a1f; }

/* Content pages ---------------------------------------------------------- */
.tpd-content { padding: 60px 0; }
.tpd-post { margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #eee; }
.tpd-post:last-child { border-bottom: 0; }
.tpd-post h2 { margin: 0 0 6px; }
.tpd-post h2 a { color: var(--tpd-dark); text-decoration: none; }
.tpd-post h2 a:hover { color: var(--tpd-primary); }
.tpd-meta { color: #888; font-size: 13px; margin: 0 0 12px; }

/* Footer ----------------------------------------------------------------- */
.tpd-site-footer {
    background: var(--tpd-dark);
    color: #a8b0c0;
    padding: 60px 0 30px;
    margin-top: 80px;
}
.tpd-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.tpd-footer-brand strong { color: #fff; font-size: 18px; display: block; margin-bottom: 8px; }
.tpd-footer-tagline { color: #6c7178; font-size: 14px; margin: 0; }
.tpd-footer-links h4 {
    color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 0.6px;
    margin: 0 0 14px;
}
.tpd-footer-links ul { list-style: none; padding: 0; margin: 0; }
.tpd-footer-links ul li { padding: 4px 0; }
.tpd-footer-links a { color: #a8b0c0; font-size: 14px; }
.tpd-footer-links a:hover { color: #fff; opacity: 1; }
.tpd-footer-bottom {
    padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center; font-size: 13px; color: #6c7178;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 900px) {
    .tpd-features-grid { grid-template-columns: repeat(2, 1fr); }
    .tpd-pricing-grid  { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; gap: 32px; }
    .tpd-plan-featured { transform: none; }
    .tpd-testimonials-grid { grid-template-columns: 1fr; }
    .tpd-footer-grid { grid-template-columns: 1fr 1fr; }
    .tpd-hero-inner:has(.tpd-hero-visual) { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .tpd-nav-toggle { display: flex; }
    .tpd-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid rgba(0,0,0,0.06); }
    .tpd-nav.is-open { display: block; }
    .tpd-nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px; }
    .tpd-nav-list li { padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.04); }
    .tpd-nav-list a.tpd-btn { display: inline-block; margin-top: 8px; }

    .tpd-features-grid { grid-template-columns: 1fr; }
    .tpd-footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .tpd-section { padding: 60px 0; }
    .tpd-hero { padding: 60px 0 50px; }
    .tpd-hero-cta { flex-direction: column; }
    .tpd-hero-cta .tpd-btn { text-align: center; }
}
