/* ============================================================
   Medical Alert Tool PAGE TEMPLATE Styles
   Prefix: matp- (Medical Alert Tool Page)
   Completely separate from plugin prefix mac-
   No element-level selectors — all scoped to .matp-wrap
   ============================================================ */

/* ── Page Header ─────────────────────────────────────────── */
.matp-page-header {
    background: linear-gradient(135deg, #2E7D5E 0%, #1a4d38 100%);
    padding: 48px 0 40px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.matp-page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
    pointer-events: none;
}

.matp-header-inner {
    position: relative;
    z-index: 1;
    max-width: 740px;
}

.matp-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.matp-hero-h1 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: clamp(24px, 4.5vw, 36px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.25 !important;
    margin-top: 10px !important;
    margin-bottom: 14px !important;
}

.matp-hero-sub {
    font-size: 16px !important;
    color: rgba(255,255,255,0.88) !important;
    line-height: 1.7 !important;
    max-width: 620px !important;
    margin-bottom: 20px !important;
    margin-top: 0 !important;
}

.matp-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 6px;
    padding: 0;
    list-style: none;
}

.matp-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
}

.matp-trust-item svg {
    color: #6ee7b7;
    flex-shrink: 0;
}

/* ── Main wrapper — all page content scoped here ─────────── */
.matp-wrap {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* ── Tool embed section — CRITICAL: no CSS touches plugin ── */
.matp-tool-section {
    padding-top: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #E2E8F0;
}

/* ── Shared section wrapper ──────────────────────────────── */
.matp-section {
    padding-top: 52px;
    padding-bottom: 52px;
    border-bottom: 1px solid #E2E8F0;
}

.matp-section:last-child {
    border-bottom: none;
}

.matp-section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #2E7D5E;
    background: #E8F5F0;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
}

.matp-section-h2 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: clamp(21px, 3.5vw, 28px) !important;
    font-weight: 700 !important;
    color: #1A1A2E !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
    margin-top: 0 !important;
}

.matp-section-lead {
    font-size: 16px;
    color: #6B7280;
    line-height: 1.8;
    max-width: 720px;
    margin-bottom: 30px;
    margin-top: 0;
}

.matp-body-text {
    font-size: 16px;
    color: #1A1A2E;
    line-height: 1.85;
    max-width: 720px;
    margin-bottom: 16px;
    margin-top: 0;
}

/* ── Callout boxes ───────────────────────────────────────── */
.matp-callout {
    padding: 16px 20px;
    border-radius: 10px;
    font-size: 15px;
    line-height: 1.7;
    margin-top: 24px;
    border: 1px solid transparent;
}

.matp-callout-green {
    background: #E8F5F0;
    border-color: #6EE7B7;
    color: #064e3b;
}

.matp-callout-amber {
    background: #FFFBEB;
    border-color: #FCD34D;
    color: #78350f;
}

/* ── Who grid ────────────────────────────────────────────── */
.matp-who-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 8px;
}

.matp-who-card {
    background: #ffffff;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 22px;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.matp-who-card:hover {
    border-color: #2E7D5E;
    box-shadow: 0 4px 16px rgba(46,125,94,0.1);
}

.matp-who-icon {
    font-size: 34px;
    margin-bottom: 12px;
    display: block;
    line-height: 1;
}

.matp-who-card h3 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1A1A2E !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    line-height: 1.35 !important;
}

.matp-who-card p {
    font-size: 14px !important;
    color: #6B7280 !important;
    line-height: 1.75 !important;
    margin: 0 !important;
}

/* ── Why list ────────────────────────────────────────────── */
.matp-why-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.matp-why-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    background: #ffffff;
    transition: border-color 0.2s;
}

.matp-why-item:hover {
    border-color: #2E7D5E;
}

.matp-why-num {
    font-family: 'Lora', Georgia, serif;
    font-size: 34px;
    font-weight: 700;
    color: #E8F5F0;
    -webkit-text-stroke: 2px #2E7D5E;
    line-height: 1;
    flex-shrink: 0;
    min-width: 44px;
    text-align: center;
    margin: 0;
    padding: 0;
}

.matp-why-body {
    flex: 1;
    min-width: 0;
}

.matp-why-body h3 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1A1A2E !important;
    margin-bottom: 7px !important;
    margin-top: 0 !important;
    line-height: 1.35 !important;
}

.matp-why-body p {
    font-size: 14px !important;
    color: #6B7280 !important;
    line-height: 1.8 !important;
    margin: 0 !important;
}

/* ── Steps grid ──────────────────────────────────────────── */
.matp-steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.matp-step-card {
    background: #ffffff;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 22px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.matp-step-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.matp-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #2E7D5E;
}

.matp-step-num {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2E7D5E;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.matp-step-icon {
    font-size: 26px;
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.matp-step-card h3 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1A1A2E !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    line-height: 1.35 !important;
}

.matp-step-card p {
    font-size: 14px !important;
    color: #6B7280 !important;
    line-height: 1.75 !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
}

.matp-step-example {
    font-size: 12px !important;
    color: #2E7D5E !important;
    background: #E8F5F0 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    border-left: 3px solid #2E7D5E !important;
    margin: 0 !important;
    display: block;
}

/* ── Systems list ────────────────────────────────────────── */
.matp-systems-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 22px;
}

.matp-system-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 20px;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.matp-system-row:hover {
    border-color: #2E7D5E;
    box-shadow: 0 3px 12px rgba(46,125,94,0.08);
}

.matp-system-emoji {
    font-size: 34px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.matp-system-info {
    flex: 1;
    min-width: 0;
}

.matp-system-info h3 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1A1A2E !important;
    margin-bottom: 6px !important;
    margin-top: 0 !important;
    line-height: 1.3 !important;
}

.matp-system-info p {
    font-size: 14px !important;
    color: #6B7280 !important;
    line-height: 1.75 !important;
    margin: 0 !important;
}

.matp-system-price {
    font-size: 12px;
    color: #6B7280;
    white-space: nowrap;
    flex-shrink: 0;
    padding-top: 2px;
    text-align: right;
}

.matp-system-price strong {
    display: block;
    font-size: 15px;
    color: #2E7D5E;
    font-weight: 700;
    margin-top: 2px;
}

/* ── Factors ─────────────────────────────────────────────── */
.matp-factors {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.matp-factor {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
    border: 1.5px solid #E2E8F0;
}

.matp-factor-icon {
    font-size: 30px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.matp-factor h3 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #1A1A2E !important;
    margin-bottom: 8px !important;
    margin-top: 0 !important;
    line-height: 1.3 !important;
}

.matp-factor p {
    font-size: 14px !important;
    color: #6B7280 !important;
    line-height: 1.8 !important;
    margin: 0 !important;
}

/* ── Stats section ───────────────────────────────────────── */
.matp-section-stats {
    background: linear-gradient(135deg, #E8F5F0 0%, #f0fdf8 100%);
    border-radius: 14px;
    padding: 44px 36px !important;
    border: 1.5px solid #6EE7B7 !important;
}

.matp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.matp-stat-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 14px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.matp-stat-big {
    font-family: 'Lora', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #2E7D5E;
    line-height: 1;
    margin-bottom: 10px;
    display: block;
}

.matp-stat-box p {
    font-size: 13px !important;
    color: #6B7280 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ── FAQ section ─────────────────────────────────────────── */
.matp-faq-list {
    display: flex;
    flex-direction: column;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 0;
    list-style: none;
}

.matp-faq-item {
    border-bottom: 1px solid #E2E8F0;
}

.matp-faq-item:last-child {
    border-bottom: none;
}

.matp-faq-q {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    background: #ffffff;
    border: none;
    cursor: pointer;
    font-family: 'Lora', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #1A1A2E;
    text-align: left;
    line-height: 1.4;
    transition: background 0.18s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.matp-faq-q:hover {
    background: #f9fafb;
}

.matp-faq-q[aria-expanded="true"] {
    background: #E8F5F0;
    color: #2E7D5E;
}

.matp-faq-q:focus-visible {
    outline: 2px solid #2E7D5E;
    outline-offset: -2px;
}

.matp-faq-icon {
    flex-shrink: 0;
    color: #2E7D5E;
    display: flex;
    align-items: center;
}

.matp-faq-a {
    padding: 0 20px 18px;
    background: #f9fafb;
    border-top: 1px solid #E2E8F0;
}

.matp-faq-a[hidden] {
    display: none;
}

.matp-faq-a p {
    font-size: 15px !important;
    color: #6B7280 !important;
    line-height: 1.85 !important;
    margin: 14px 0 0 !important;
}

.matp-faq-cta {
    font-size: 15px;
    color: #6B7280;
    text-align: center;
    padding: 4px 0;
}

.matp-faq-cta a {
    color: #2E7D5E;
    font-weight: 600;
    text-decoration: underline;
}

/* ── Bottom CTA ──────────────────────────────────────────── */
.matp-bottom-cta-inner {
    background: linear-gradient(135deg, #2E7D5E 0%, #1a4d38 100%);
    border-radius: 14px;
    padding: 44px 36px;
    text-align: center;
    color: #ffffff;
}

.matp-bottom-cta-h2 {
    font-family: 'Lora', Georgia, serif !important;
    font-size: clamp(20px, 3.5vw, 26px) !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
}

.matp-bottom-cta-inner p {
    font-size: 15px !important;
    color: rgba(255,255,255,0.85) !important;
    margin-bottom: 22px !important;
    margin-top: 0 !important;
    line-height: 1.7 !important;
}

.matp-cta-btn {
    display: inline-block;
    background: #F4A835;
    border: 2px solid #F4A835;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    padding: 13px 30px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: background 0.2s, transform 0.15s;
    line-height: 1;
}

.matp-cta-btn:hover {
    background: #d4922b;
    border-color: #d4922b;
    color: #ffffff !important;
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .matp-who-grid    { grid-template-columns: 1fr; }
    .matp-steps-grid  { grid-template-columns: 1fr; }
    .matp-stats-grid  { grid-template-columns: 1fr 1fr; }
    .matp-section-stats { padding: 28px 20px !important; }
    .matp-bottom-cta-inner { padding: 32px 22px; }
    .matp-system-price { display: none; }
    .matp-why-num { font-size: 26px; min-width: 36px; }
}

@media (max-width: 480px) {
    .matp-stats-grid  { grid-template-columns: 1fr; }
    .matp-system-row  { flex-direction: column; gap: 8px; }
    .matp-why-item    { flex-direction: column; gap: 8px; }
    .matp-factor      { flex-direction: column; gap: 8px; }
    .matp-section     { padding-top: 32px; padding-bottom: 32px; }
    .matp-page-header { padding: 28px 0 24px; }
    .matp-wrap        { padding-left: 16px; padding-right: 16px; }
}
