/* Reset e Base - Templates Guia */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --whatsapp-green: #25D366;
    --whatsapp-dark: #075E54;
    --success-green: #10B981;
    --warning-orange: #F59E0B;
    --danger-red: #EF4444;
    --primary-blue: #3B82F6;
    --purple: #8B5CF6;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand .logo {
    max-height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text strong {
    font-size: 1.5rem;
    color: var(--whatsapp-dark);
    font-weight: 800;
}

.logo-text span {
    font-size: 0.85rem;
    color: var(--whatsapp-green);
    font-weight: 500;
}

.header-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--whatsapp-green);
}

.nav-link.cta-link {
    background: var(--whatsapp-green);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link.cta-link:hover {
    background: var(--whatsapp-dark);
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--whatsapp-dark) 0%, var(--whatsapp-green) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-badges .badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Section Styling */
section {
    padding: 80px 20px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto 50px;
}

/* Intro Section */
.intro-section {
    background: var(--gray-50);
}

.intro-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
    margin-bottom: 40px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.intro-text p {
    margin-bottom: 20px;
}

.template-flow {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.flow-step {
    text-align: center;
}

.flow-number {
    width: 60px;
    height: 60px;
    background: var(--whatsapp-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 10px;
}

.flow-arrow {
    color: var(--whatsapp-green);
    font-size: 1.5rem;
}

.important-note {
    background: #FEF3C7;
    border-left: 4px solid var(--warning-orange);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.important-note i {
    color: var(--warning-orange);
    font-size: 1.5rem;
    margin-top: 2px;
}

/* Anatomy Section */
.anatomy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.anatomy-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.anatomy-card:hover {
    transform: translateY(-5px);
}

.anatomy-header {
    margin-bottom: 20px;
}

.anatomy-header i {
    font-size: 2rem;
    color: var(--whatsapp-green);
    margin-bottom: 10px;
    display: block;
}

.anatomy-header h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.optional-badge,
.required-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.optional-badge {
    background: #DBEAFE;
    color: #1E40AF;
}

.required-badge {
    background: #FEE2E2;
    color: #991B1B;
}

.anatomy-desc {
    color: var(--gray-600);
    margin-bottom: 20px;
}

.anatomy-example {
    margin-top: 20px;
}

.example-box {
    background: var(--gray-50);
    padding: 15px;
    border-radius: 8px;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
}

.anatomy-tip {
    margin-top: 15px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.button-types {
    list-style: none;
    padding: 0;
}

.button-types li {
    padding: 8px 0;
}

/* Variables Section */
.variables-section {
    background: white;
}

.variables-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    margin-top: 40px;
}

.variables-explanation h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.variable-example-box {
    background: var(--gray-50);
    padding: 30px;
    border-radius: 16px;
    margin-top: 30px;
}

.example-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 10px;
}

.template-text {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--whatsapp-green);
    line-height: 1.8;
}

.variable-inputs {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.input-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.var-label {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: var(--primary-blue);
}

.var-value {
    color: var(--gray-700);
    font-weight: 500;
}

.final-message {
    background: var(--whatsapp-green);
    color: white;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
}

.rules-list {
    list-style: none;
    padding: 0;
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
}

.rules-list li:last-child {
    border-bottom: none;
}

.rules-list i.fa-check-circle {
    color: var(--success-green);
    font-size: 1.3rem;
    margin-top: 2px;
}

.rules-list i.fa-times-circle {
    color: var(--danger-red);
    font-size: 1.3rem;
    margin-top: 2px;
}

/* Categories Section */
.categories-section {
    background: var(--gray-50);
}

.categories-comparison {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.category-column {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-column.marketing {
    border-top: 5px solid var(--danger-red);
}

.category-column.utility {
    border-top: 5px solid var(--primary-blue);
}

.category-icon {
    text-align: center;
    margin-bottom: 20px;
}

.category-icon i {
    font-size: 3rem;
}

.category-column.marketing .category-icon i {
    color: var(--danger-red);
}

.category-column.utility .category-icon i {
    color: var(--primary-blue);
}

.category-column h3 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.category-price {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 8px;
}

.category-description {
    margin-bottom: 25px;
    text-align: center;
    color: var(--gray-600);
}

.category-examples {
    margin-bottom: 25px;
}

.category-examples strong {
    display: block;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.category-examples ul {
    list-style: none;
    padding-left: 10px;
}

.category-examples li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
}

.category-examples li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 700;
}

.example-template {
    background: var(--gray-50);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
}

.template-label {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.template-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    line-height: 1.8;
}

.category-warning,
.category-benefit {
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.category-warning {
    background: #FEE2E2;
    color: #991B1B;
}

.category-benefit {
    background: #D1FAE5;
    color: #065F46;
}

.category-tips {
    background: linear-gradient(135deg, #FEF3C7, #FDE68A);
    padding: 30px;
    border-radius: 16px;
    margin-top: 50px;
    border-left: 5px solid var(--warning-orange);
}

.category-tips h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.category-tips p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Step by Step Section */
.step-by-step-section {
    background: white;
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.step-card {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 40px;
    border-left: 5px solid var(--whatsapp-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-number {
    display: inline-block;
    background: var(--whatsapp-green);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.step-card p {
    color: var(--gray-700);
    margin-bottom: 20px;
    line-height: 1.7;
}

.step-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    margin-top: 15px;
}

.bm-info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #DBEAFE;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-blue);
    margin: 20px 0;
}

.bm-info-box i {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-top: 2px;
}

.bm-info-box strong {
    color: var(--gray-900);
}

.navigation-path {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    flex-wrap: wrap;
}

.path-item {
    font-weight: 600;
    color: var(--gray-900);
}

.category-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.selector-option label {
    display: block;
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 3px solid var(--gray-200);
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.selector-option input:checked + label {
    border-color: var(--whatsapp-green);
    background: #D1FAE5;
}

.name-examples {
    margin-top: 20px;
}

.good-example,
.bad-example {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.good-example {
    background: #D1FAE5;
    border-left: 4px solid var(--success-green);
}

.bad-example {
    background: #FEE2E2;
    border-left: 4px solid var(--danger-red);
}

.good-example code,
.bad-example code {
    display: block;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.language-selector,
.form-select {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-size: 1rem;
    margin-top: 15px;
}

.step-note {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-top: 15px;
}

.header-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr));
    gap: 15px;
    margin-top: 20px;
}

.option-box {
    cursor: pointer;
}

.option-box input {
    display: none;
}

.option-content {
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s ease;
}

.option-box input:checked ~ .option-content {
    border-color: var(--whatsapp-green);
    background: #D1FAE5;
}

.option-content i {
    font-size: 2rem;
    color: var(--gray-600);
    margin-bottom: 10px;
    display: block;
}

.option-content strong {
    display: block;
    margin-bottom: 5px;
}

.option-content p {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin: 0;
}

.template-textarea,
.template-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    resize: vertical;
}

.char-counter {
    text-align: right;
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-top: 5px;
}

.body-tips {
    background: #DBEAFE;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.body-tips ul {
    margin-top: 10px;
    padding-left: 20px;
}

.body-tips li {
    margin-bottom: 8px;
}

.button-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 20px;
    margin-top: 20px;
}

.button-type-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    border: 2px solid var(--gray-200);
}

.button-type-card h4 {
    margin-bottom: 15px;
    color: var(--gray-900);
}

.btn-preview {
    background: var(--whatsapp-green);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    margin: 5px;
    cursor: pointer;
    font-weight: 600;
}

.url-input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    margin-top: 10px;
    font-size: 0.9rem;
}

.variables-sample {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 20px;
}

.sample-row {
    margin-bottom: 20px;
}

.sample-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
}

.sample-row input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-300);
    border-radius: 8px;
}

.step-warning {
    background: #FEF3C7;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--warning-orange);
    margin-top: 20px;
}

.preview-box {
    margin-top: 30px;
    text-align: center;
}

.phone-mockup {
    display: inline-block;
    background: #1F2937;
    padding: 15px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    background: #E5DDD5;
    width: 280px;
    height: 500px;
    border-radius: 25px;
    overflow-y: auto;
    padding: 20px;
}

.message-preview {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-header {
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

.preview-body {
    margin: 15px 0;
    line-height: 1.6;
}

.preview-footer {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid var(--gray-200);
}

.preview-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.preview-buttons button {
    flex: 1;
    padding: 10px;
    background: #DBEAFE;
    color: #1E40AF;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.submit-action {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    background: var(--whatsapp-green);
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-2px);
}

.status-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.status-card {
    padding: 30px;
    border-radius: 16px;
}

.status-card.approved {
    background: #D1FAE5;
    border: 3px solid var(--success-green);
}

.status-card.rejected {
    background: #FEE2E2;
    border: 3px solid var(--danger-red);
}

.status-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.status-card.approved i {
    color: var(--success-green);
}

.status-card.rejected i {
    color: var(--danger-red);
}

.status-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.rejection-reasons {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.rejection-reasons ul {
    margin-top: 10px;
    padding-left: 20px;
}

/* Best Practices Section */
.best-practices-section {
    background: var(--gray-50);
}

.practices-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.practice-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.practice-card.do {
    border-top: 5px solid var(--success-green);
}

.practice-card.dont {
    border-top: 5px solid var(--danger-red);
}

.practice-card h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
}

.practice-card.do h3 {
    color: var(--success-green);
}

.practice-card.dont h3 {
    color: var(--danger-red);
}

.practice-card ul {
    list-style: none;
    padding: 0;
}

.practice-card li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    border-bottom: 1px solid var(--gray-200);
}

.practice-card li:last-child {
    border-bottom: none;
}

.practice-card.do li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: 700;
    font-size: 1.3rem;
}

.practice-card.dont li::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--danger-red);
    font-weight: 700;
    font-size: 1.3rem;
}

.quality-checklist {
    background: white;
    padding: 40px;
    border-radius: 16px;
    margin-top: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quality-checklist h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--gray-900);
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checklist-items label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--gray-50);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checklist-items label:hover {
    background: #D1FAE5;
}

.checklist-items input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Examples Section */
.examples-section {
    background: white;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(350px, 100%), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.example-template-card {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.example-template-card:hover {
    transform: translateY(-5px);
}

.example-template-card.utility {
    border-top: 5px solid var(--primary-blue);
}

.example-template-card.marketing {
    border-top: 5px solid var(--danger-red);
}

.example-header {
    margin-bottom: 25px;
}

.category-badge {
    display: inline-block;
    padding: 6px 15px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.example-template-card.utility .category-badge {
    background: var(--primary-blue);
    color: white;
}

.example-template-card.marketing .category-badge.marketing {
    background: var(--danger-red);
    color: white;
}

.example-header h3 {
    font-size: 1.4rem;
    color: var(--gray-900);
}

.example-content {
    background: white;
    padding: 25px;
    border-radius: 12px;
}

.template-section {
    margin-bottom: 20px;
}

.template-section:last-child {
    margin-bottom: 0;
}

.template-section strong {
    display: block;
    margin-bottom: 10px;
    color: var(--gray-700);
}

.template-section code {
    background: var(--gray-100);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.btn-example {
    background: var(--whatsapp-green);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    margin: 5px;
    cursor: pointer;
}

/* Segment Templates */
.segment-templates {
    margin-top: 80px;
    padding: 60px;
    background: linear-gradient(135deg, #F9FAFB 0%, #E5E7EB 100%);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.segment-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 15px;
    color: var(--gray-900);
}

.segment-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 50px;
}

.segment-section {
    margin-bottom: 50px;
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.segment-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
}

.segment-header i {
    font-size: 2rem;
    color: var(--whatsapp-green);
}

.segment-header h4 {
    font-size: 1.6rem;
    color: var(--gray-900);
}

.segment-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 25px;
}

.mini-template-card {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid var(--primary-blue);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mini-template-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.mini-template-header {
    margin-bottom: 15px;
}

.mini-template-header strong {
    display: block;
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.mini-template-header code {
    background: var(--gray-200);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--gray-700);
}

.mini-template-body {
    background: white;
    padding: 15px;
    border-radius: 8px;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 15px;
    color: var(--gray-700);
}

.mini-template-vars {
    font-size: 0.9rem;
    color: var(--gray-600);
    padding: 12px;
    background: #FEF3C7;
    border-radius: 6px;
    margin-bottom: 10px;
}

.mini-template-vars strong {
    color: var(--gray-900);
}

.mini-template-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-btn {
    display: inline-block;
    background: var(--whatsapp-green);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Download Templates */
    background: linear-gradient(135deg, var(--whatsapp-dark), var(--whatsapp-green));
    color: white;
    padding: 50px;
    border-radius: 16px;
    text-align: center;
    margin-top: 60px;
}

.download-templates p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.btn-download {
    display: inline-block;
    background: white;
    color: var(--whatsapp-green);
    padding: 16px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Troubleshooting Section */
.troubleshooting-section {
    background: var(--gray-50);
}

.accordion-faq {
    max-width: 900px;
    margin: 40px auto 0;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question i:first-child {
    color: var(--whatsapp-green);
    font-size: 1.5rem;
}

.faq-question h4 {
    flex: 1;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.faq-question i:last-child {
    color: var(--gray-600);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i:last-child {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 800px;
    padding: 0 25px 25px;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: 15px;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 25px;
}

.faq-answer li {
    margin-bottom: 10px;
}

/* Final CTA */
.final-cta {
    background: linear-gradient(135deg, var(--whatsapp-dark) 0%, var(--whatsapp-green) 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content > p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.cta-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 20px;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.service-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.service-item i {
    font-size: 1.5rem;
}

.btn-cta {
    display: inline-block;
    background: white;
    color: var(--whatsapp-green);
    padding: 18px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-note {
    margin-top: 20px;
    font-size: 1rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.footer-brand {
    margin-bottom: 20px;
}

.footer-brand strong {
    font-size: 1.3rem;
    display: block;
    margin-bottom: 5px;
}

.footer-brand p {
    font-size: 0.95rem;
    opacity: 0.8;
}

.footer-copy {
    margin: 15px 0 10px;
    font-size: 0.95rem;
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-top: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .intro-content,
    .variables-content,
    .categories-comparison,
    .practices-grid,
    .status-options {
        grid-template-columns: 1fr;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .segment-examples {
        grid-template-columns: 1fr;
    }

    .segment-templates {
        padding: 40px 25px;
    }
}

@media (max-width: 768px) {
    .header-nav {
        flex-direction: column;
        gap: 10px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .template-flow {
        flex-direction: column;
        padding: 20px;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .anatomy-grid,
    .header-options,
    .button-types-grid,
    .category-selector {
        grid-template-columns: 1fr;
    }

    .cta-services {
        grid-template-columns: 1fr;
    }
}

/* v12: evita vazamento lateral no celular */
[class*="-grid"] > * { min-width: 0; }
.container { overflow-wrap: break-word; }
.phone-mockup { max-width: 100%; box-sizing: border-box; }
/* v12b */
.segment-examples > *, .about-content > *, .category-grid > * { min-width: 0; }
.mini-template-card, .mini-template-card code, .category-rule { overflow-wrap: anywhere; }
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
@media (max-width: 480px) { .category-card, .mini-template-card, .example-template-card { padding: 22px 18px; } }
