/* =========================================
   1. GERAIS, RESET E LAYOUT (Sincronizado c/ Global)
   ========================================= */
html, body {
  overflow-x: hidden;
  width: 100%;
}

html { scroll-behavior: smooth; }

:root {
  --brand-gold: #baa360;
  --brand-red: #7f1810;
  --text-dark: #212529;
  --text-muted: #5f5f5f;
  --white: #ffffff;
  --bg-soft: #f4f7f9;
  --bg-light: #ffffff;
  --border-color: #e5e7eb;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: "Open Sans", sans-serif; color: var(--text-dark); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
h1, h2, h3, h4 { font-family: "Montserrat", sans-serif; font-weight: 700; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.bg-soft { background-color: var(--bg-soft); }
.bg-light { background-color: var(--bg-light); }
.border-top { border-top: 1px solid var(--border-color); }
.text-center { text-align: center; }
.text-left { text-align: left; }

section { scroll-margin-top: 100px; }

.sub-eyebrow { color: var(--brand-red); font-size: 0.95rem; font-weight: 700; display: block; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.title-xl { font-size: 2.5rem; font-family: "Montserrat", sans-serif; font-weight: 700; color: var(--text-dark); margin-bottom: 20px; line-height: 1.2; }
.section-title p { color: #666; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }
.line { width: 60px; height: 3px; background: var(--brand-red); margin: 0 auto 20px auto; border-radius: 2px; }

footer a { text-decoration: none !important; color: inherit !important; }
footer a:hover { color: var(--brand-gold) !important; }

/* =========================================
   2. HERO SECTION XD (Similar ao WinRest)
   ========================================= */
.product-hero { margin-top: 110px; padding: 80px 0 0 0; background: linear-gradient( 135deg, rgba(21, 21, 21, 0.95) 0%, rgba(127, 24, 16, 0.85) 100% ), url("../img/capa-tech2.jpg") center/cover; color: var(--white); text-align: center; position: relative; overflow: hidden; }
.product-hero-content { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.back-link-wrapper { width: 100%; text-align: left; margin-bottom: 30px; }
.btn-back { display: inline-flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, 0.7); font-family: "Montserrat", sans-serif; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; }
.btn-back i { font-size: 1.1rem; }
.btn-back:hover { color: var(--white); transform: translateX(-6px); }

.partner-badge-wrapper { margin-bottom: 25px; }
.partner-badge { display: inline-flex; align-items: center; background: var(--white); padding: 8px 20px; border-radius: 50px; box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); gap: 15px; }
.badge-text { color: #666; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-right: 1px solid #e0e0e0; padding-right: 15px; font-family: "Montserrat", sans-serif; }
.badge-logo { height: 24px; width: auto; object-fit: contain; }

.eyebrow { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--white); padding: 6px 18px; border-radius: 50px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; font-family: "Montserrat", sans-serif; }
.hero-title { font-size: 3.5rem; line-height: 1.15; font-family: "Montserrat", sans-serif; margin-bottom: 20px; text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
.hero-subtitle { font-size: 1.25rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 40px; max-width: 700px; line-height: 1.6; }

.hero-actions { display: flex; justify-content: center; gap: 20px; margin-bottom: 50px; }
.btn-main { background: var(--brand-red); color: var(--white); padding: 16px 36px; border-radius: 8px; font-weight: 700; font-family: "Montserrat", sans-serif; font-size: 1.1rem; border: 2px solid var(--brand-red); box-shadow: 0 4px 14px rgba(127, 24, 16, 0.2); transition: all 0.3s ease; }
.btn-main:hover { background: #5a110b; border-color: #5a110b; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(127, 24, 16, 0.4); color: white;}
.btn-alt { background: transparent; color: var(--white); padding: 16px 36px; border-radius: 8px; font-weight: 700; font-family: "Montserrat", sans-serif; font-size: 1.1rem; border: 2px solid rgba(255, 255, 255, 0.3); transition: all 0.3s ease; }
.btn-alt:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--white); transform: translateY(-3px); color: white;}
.btn-main-outline { background: transparent; color: var(--brand-red); padding: 16px 36px; border-radius: 8px; font-weight: 700; font-family: "Montserrat", sans-serif; font-size: 1.1rem; border: 2px solid var(--brand-red); transition: all 0.3s ease; }
.btn-main-outline:hover { background: rgba(127, 24, 16, 0.05); transform: translateY(-3px); }


.hero-mockup-wrapper { margin-top: 20px; margin-bottom: -60px; }
.hero-mockup { width: 100%; max-width: 800px; height: auto; border-radius: 12px 12px 0 0; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); border: 4px solid rgba(255, 255, 255, 0.1); border-bottom: none; }

/* =========================================
   3. CARTÕES PREMIUM (Modern Info Grid)
   ========================================= */
.modern-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; margin-top: 40px; }
.modern-info-card { background: var(--white); padding: 50px 40px; border-radius: 16px; border: 1px solid rgba(0, 0, 0, 0.05); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02); transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); text-align: center; position: relative; overflow: hidden; }
.modern-info-card::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--brand-red); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease; }
.modern-info-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); border-color: rgba(186, 163, 96, 0.2); }
.modern-info-card:hover::before { transform: scaleX(1); }

.card-icon-wrapper { width: 80px; height: 80px; background: rgba(127, 24, 16, 0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px auto; transition: all 0.4s ease; }
.card-icon-wrapper i { font-size: 2.2rem; color: var(--brand-red); transition: all 0.4s ease; }
.modern-info-card:hover .card-icon-wrapper { background: var(--brand-red); transform: scale(1.1); box-shadow: 0 10px 20px rgba(127, 24, 16, 0.2); }
.modern-info-card:hover .card-icon-wrapper i { color: var(--white); }

.modern-info-card h3 { font-family: "Montserrat", sans-serif; font-size: 1.5rem; margin-bottom: 15px; color: var(--text-dark); }
.modern-info-card p { color: #666; font-size: 1.05rem; line-height: 1.6; margin: 0; }

/* =========================================
   4. SPLIT FEATURE SECTION (Lado a Lado)
   ========================================= */
.split-feature-wrapper { display: flex; align-items: center; gap: 60px; }
.split-image { flex: 1; }
.split-image img { width: 100%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1); border: 1px solid rgba(0, 0, 0, 0.05); }
.split-content { flex: 1; }

.benefits-list { display: flex; flex-direction: column; gap: 20px; }
.benefit-item { display: flex; align-items: flex-start; gap: 20px; background: var(--white); padding: 20px 25px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, 0.05); transition: all 0.3s ease; }
.benefit-item:hover { transform: translateX(10px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06); border-color: rgba(186, 163, 96, 0.3); }
.benefit-icon { font-size: 1.5rem; color: var(--brand-red); background: rgba(127, 24, 16, 0.05); width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0; }
.benefit-item strong { display: block; font-family: "Montserrat", sans-serif; font-size: 1.15rem; color: var(--text-dark); margin-bottom: 5px; }
.benefit-item p { margin: 0; color: #666; font-size: 0.95rem; line-height: 1.5; }

/* =========================================
   5. PLANOS E PREÇOS (SISTEMA TABS)
   ========================================= */
.pricing-section {
    background-color: var(--bg-soft);
}

.pricing-tabs-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #666;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    font-family: "Montserrat", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.tab-btn i { font-size: 1.1rem; }

.tab-btn:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.tab-btn.active {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(127, 24, 16, 0.2);
}

.pricing-tab-content {
    display: none;
    animation: fadeUp 0.5s ease forwards;
}

.pricing-tab-content.active {
    display: block;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Grid base para 2 itens (Retalho e Beleza) */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

/* Grid modificador para 3+ itens (Restauração) */
.pricing-grid.grid-3 {
    max-width: 1100px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.pricing-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    /* CORRIGIDO: Borda visível e constante em todos os cards */
    border: 1px solid #e0e0e0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    position: relative;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    /* Opcional: Escurecer ligeiramente a borda no hover */
    border-color: #d0d0d0;
}

.pricing-card.popular {
    /* CORRIGIDO: Mantém a borda dourada mais espessa */
    border: 2px solid var(--brand-gold);
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(186, 163, 96, 0.15);
}

.pricing-card.popular:hover {
    transform: scale(1.02) translateY(-8px);
    /* Mantém a cor dourada no hover do card popular */
    border-color: var(--brand-gold);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gold);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2; /* Garante que fica por cima da borda */
}

.pricing-card .card-icon {
    font-size: 3rem;
    color: var(--brand-red);
    margin-bottom: 20px;
}

.pricing-card h3 {
    font-size: 1.6rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.pricing-card .card-desc {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1; /* Empurra o preço para baixo se o texto for curto */
}

.price-box {
    margin-bottom: 5px;
}

.price-box .currency {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-red);
    vertical-align: top;
    margin-right: 2px;
}

.price-box .amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--brand-red);
    line-height: 1;
    font-family: "Montserrat", sans-serif;
}

.price-box .period {
    font-size: 1rem;
    color: #888;
    font-weight: 600;
}

.billed-yearly {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 30px;
    font-weight: 600;
}

.pricing-card .btn-main, 
.pricing-card .btn-main-outline {
    width: 100%;
    justify-content: center;
}

/* =========================================
   6. CONTACTOS E FORMULÁRIO
   ========================================= */
#contactos { background: var(--bg-soft); border-top: 1px solid rgba(0, 0, 0, 0.06); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }
.contact-info h2 { color: var(--brand-red); margin-bottom: 20px; font-size: 2rem; line-height: 1.2; }
.contact-info > p { color: #555; font-size: 1rem; line-height: 1.7; }
.info-item { margin-top: 28px; }
.info-item strong { color: var(--brand-gold); display: block; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.info-item p { color: #444; font-size: 0.95rem; line-height: 1.6; }

.contact-form-container { background: var(--white); border-radius: 12px; padding: 36px; border: 1px solid rgba(0, 0, 0, 0.07); box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 0.85rem; color: #444; letter-spacing: 0.02em; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 14px; border: 1.5px solid #e0e0e0; border-radius: 8px; font-family: inherit; font-size: 0.95rem; background: #fafafa; color: #222; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--brand-gold); background: var(--white); box-shadow: 0 0 0 3px rgba(186, 163, 96, 0.18); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.82rem; color: #666; margin-bottom: 20px; line-height: 1.5; }
.form-check input[type="checkbox"] { margin-top: 2px; accent-color: var(--brand-red); flex-shrink: 0; }
.g-recaptcha { margin-top: 12px !important; margin-bottom: 16px !important; }

.btn-submit { background: var(--brand-red); color: var(--white); border: none; padding: 15px 30px; cursor: pointer; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; border-radius: 8px; width: 100%; transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease; box-shadow: 0 4px 14px rgba(127, 24, 16, 0.2); }
.btn-submit:hover { background: #5a110b; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(127, 24, 16, 0.3); }
.btn-submit:active { transform: translateY(0); box-shadow: 0 2px 8px rgba(127, 24, 16, 0.2); }

/* =========================================
   7. RESPONSIVIDADE (MOBILE)
   ========================================= */
@media (max-width: 992px) {
  .contact-wrapper, .split-feature-wrapper { grid-template-columns: 1fr; flex-direction: column; text-align: center; }
  .benefit-item { text-align: left; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 450px; }
  .pricing-grid.grid-3 { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-8px); }
  
  /* Garante que no mobile os cards têm a borda e o alinhamento correto */
  .pricing-card {
      border: 1px solid #e0e0e0;
  }
  .pricing-card.popular {
      border: 2px solid var(--brand-gold);
  }
}

@media (max-width: 768px) {
  .product-hero { margin-top: 74px; padding: 60px 0 0 0; }
  .hero-title { font-size: 2.2rem; }
  .title-xl { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1.05rem; }

  .hero-actions { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto 30px auto; }
  .btn-main, .btn-alt { width: 100%; }

  .hero-mockup-wrapper { margin-bottom: -30px; }
  .modern-info-card { padding: 40px 30px; }
  .contact-wrapper { gap: 40px; }
  .contact-form-container { padding: 24px; }
  
  .tab-btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .section-padding { padding: 60px 0; }
}