@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Playfair+Display:ital,wght@0,600;0,700;0,800;0,900;1,600&display=swap');

:root {
  /* Ouro */
  --primary: #C9A84C;
  --primary-foreground: #FAF7F0;
  --accent: #C9A84C;
  --accent-foreground: #2C1A08;
  
  /* Marrom */
  --foreground: #2C1A08;
  --sidebar: #2C1A08;
  --sidebar-foreground: #FAF7F0;
  
  /* Creme */
  --background: #FAF7F0;
  --secondary: #F2EDE0;
  
  /* Neutros */
  --card: #FFFFFF;
  --card-foreground: #2C1A08;
  --border: #E8E2D8;
  --muted: #E8E2D8;
  --muted-foreground: #6B6560;
  
  /* Verde */
  --chart-4: #1A5C38;
  
  /* Roxo */
  --chart-5: #3D1F6E;
  
  /* Coral */
  --destructive: #C0392B;
  --destructive-foreground: #FFFFFF;
  
  /* Gradientes extras baseados na especificacao */
  --grad-primary: linear-gradient(to right, #C9A84C, #F0D98A);
  --grad-bg: linear-gradient(to bottom right, #FAF7F0, #F2EDE0);
  --grad-hero: linear-gradient(to right, #2C1A08, #4A2E10);
  --grad-success: linear-gradient(to right, #1A5C38, #2E8B57);
  --grad-danger: linear-gradient(to right, #C0392B, #E74C3C);

  /* Fonts */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  
  /* Outros */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-speed: 0.2s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background: var(--grad-bg);
    color: var(--foreground);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
    line-height: 1.5;
}

.app-container {
    width: 100%;
    max-width: 600px;
    padding: 3rem 1.5rem;
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Base screen styles */
.screen {
    display: none;
    flex-direction: column;
    width: 100%;
    padding-top: 2rem;
}

.screen.active {
    display: flex;
    animation: fadeIn var(--transition-speed) ease forwards;
}

.screen.fade-out {
    display: flex;
    animation: fadeOut var(--transition-speed) ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--foreground);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 800;
}

h2 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
}

p.subtitle {
    color: var(--muted-foreground);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
    font-weight: 400;
}

/* Buttons */
.btn-primary {
    background: var(--grad-primary);
    color: var(--foreground);
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-family: var(--font-body);
    text-align: center;
    width: 100%;
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(201, 168, 76, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 168, 76, 0.4);
}

/* Options Grid */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 1rem;
}

.option-btn {
    background: var(--card);
    border: 1px solid var(--border);
    color: var(--card-foreground);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(44, 26, 8, 0.02);
}

.option-btn::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: all var(--transition-speed) ease;
}

.option-btn:hover {
    background: var(--background);
    border-color: var(--primary);
}

.option-btn.selected {
    background: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.option-btn.selected::after {
    border-color: var(--primary-foreground);
    background-color: var(--primary-foreground);
    box-shadow: inset 0 0 0 4px var(--primary);
}

/* Video Container */
.video-container {
    width: 100%;
    aspect-ratio: 9/16;
    max-width: 340px;
    margin: 0 auto 1.5rem auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 25px rgba(44, 26, 8, 0.1);
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Bridge Card */
.bridge-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(44, 26, 8, 0.03);
}

.bridge-icon {
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.bridge-icon svg {
    width: 48px;
    height: 48px;
}

.bridge-card p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--muted-foreground);
}

/* Stars Rating */
.stars-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0 1rem 0;
}

.star-btn {
    background: transparent;
    border: none;
    color: var(--border);
    cursor: pointer;
    transition: all 0.2s;
    padding: 0.5rem;
}

.star-btn svg {
    width: 40px;
    height: 40px;
}

.star-btn.active-star, .star-btn:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.stars-labels {
    display: flex;
    justify-content: space-between;
    color: var(--muted-foreground);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 0 1rem;
}

/* Loading Screen */
.loading-container {
    text-align: center;
    padding: 4rem 0;
}

.loading-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 2rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto;
    animation: spin 1s linear infinite;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin: 3rem 0 1rem 0;
}

.progress-bar {
    height: 100%;
    background: var(--grad-primary);
    width: 0%;
    transition: width 0.2s ease-out;
}

.loading-text {
    font-size: 0.95rem;
    color: var(--muted-foreground);
    font-weight: 500;
}

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes spin { to { transform: rotate(360deg); } }

/* Opt-in Form */
.optin-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
    width: 100%;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.input-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground);
    margin-left: 0.25rem;
}

.input-group input {
    width: 100%;
    padding: 1.25rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--card);
    color: var(--foreground);
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(201, 168, 76, 0.2);
}

/* ========================================================
   SALES PAGE
   ======================================================== */
.sales-page {
    gap: 2.5rem;
    padding-bottom: 4rem;
}

.sales-header {
    text-align: center;
}

.sales-title {
    font-size: 2.2rem;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.sales-subtitle {
    color: var(--muted-foreground);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Comparison */
.sales-comparison {
    margin-top: 1rem;
}

.sales-comparison h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.comp-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.comp-before, .comp-after {
    width: 49%;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background-color: var(--card);
}

.comp-before {
    border: 1px solid var(--border);
}

.comp-after {
    border: 1px solid var(--primary);
}

.comp-icon {
    display: none;
}

.comp-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted-foreground);
}

.comp-before .comp-label { color: var(--destructive); }
.comp-after .comp-label { color: var(--chart-4); }

.comp-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--foreground);
    line-height: 1.3;
}

.comp-bar {
    width: 100%;
    height: 6px;
    background: var(--muted);
    border-radius: 3px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.comp-before .comp-bar-fill {
    height: 100%;
    background: var(--grad-danger);
    width: 30%;
}

.comp-after .comp-bar-fill {
    height: 100%;
    background: var(--grad-success);
    width: 90%;
}

/* Highlights */
.sales-highlights {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.sales-highlights h3 {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.highlights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.highlights-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--muted-foreground);
    line-height: 1.5;
}

.hl-icon {
    color: var(--chart-4);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.hl-icon svg {
    width: 20px;
    height: 20px;
}

.highlights-list strong {
    color: var(--foreground);
    font-weight: 600;
}

/* Promise */
.sales-promise {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--grad-hero);
    border-radius: var(--radius-lg);
    color: var(--primary-foreground);
}

.sales-promise h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--primary-foreground);
}

.sales-promise p {
    color: var(--secondary);
    font-size: 1.05rem;
}

/* Pricing Card */
.sales-pricing {
    width: 100%;
}

.pricing-card {
    background: var(--background);
    border: 2px solid var(--primary);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 10px 25px rgba(201, 168, 76, 0.15);
}

.pricing-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--foreground);
    line-height: 1;
    margin: 1.5rem 0 0.5rem 0;
    letter-spacing: -0.05em;
    font-family: var(--font-heading);
}

.price-cash {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.pricing-card .cta-btn {
    background: var(--grad-primary);
    color: var(--accent-foreground);
    font-size: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 4px 14px rgba(201, 168, 76, 0.4);
    border-radius: var(--radius-sm);
}

.pricing-card .cta-btn:hover {
    box-shadow: 0 6px 20px rgba(201, 168, 76, 0.6);
    transform: translateY(-2px);
}

/* Guarantee */
.sales-guarantee {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #F0F7F3; /* Fundo verde claro recomendado */
    border: 1px solid var(--chart-4);
    border-radius: var(--radius-md);
}

.guarantee-icon {
    color: var(--chart-4);
    flex-shrink: 0;
}

.guarantee-icon svg {
    width: 32px;
    height: 32px;
}

.guarantee-text h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--chart-4);
}

.guarantee-text p {
    font-size: 0.85rem;
    color: var(--foreground);
    line-height: 1.5;
}

@media (max-width: 480px) {
    .app-container { padding: 2rem 1rem; }
    h1 { font-size: 2rem; }
    .sales-title { font-size: 1.8rem; }
    .price-value { font-size: 3rem; }
    .pricing-card { padding: 2rem 1.5rem; }
}
