:root {
  --green: #4CAF50;
  --green-dark: #388E3C;
  --green-light: #F6FBF4;
  --text: #212121;
  --text-secondary: #757575;
  --border: #E0E0E0;
  --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--green-light);
  color: var(--text);
  min-height: 100vh;
}



/* Header */
header {
  background: var(--green);
  color: white;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 16px;
}

.logo {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: background 0.15s;
  white-space: nowrap;
}

.nav-links a:hover { background: rgba(255,255,255,0.15); color: white; }
.nav-links a.active { background: rgba(255,255,255,0.2); color: white; font-weight: 600; }
.nav-links a.nav-danger { color: #FFCDD2; }
.nav-links a.nav-danger:hover { background: rgba(255,255,255,0.1); }

/* Main */
main {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px 60px;
}

/* Embedded mode: content only, no site chrome (used by the app's in-app WebView) */
.embedded header,
.embedded footer,
.embedded .contact-note {
  display: none;
}

/* Card */
.card {
  background: var(--white);
  border-radius: 14px;
  padding: 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  margin-bottom: 20px;
}

/* Page title */
.page-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Section */
.section {
  margin-bottom: 28px;
}
.section:last-child { margin-bottom: 0; }

.section h2 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
}

.section p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Hero */
.hero {
  text-align: center;
  padding-bottom: 8px;
}

.hero-icon { font-size: 3rem; margin-bottom: 12px; }

.hero h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.hero p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
}

/* Downloads */
.download-section {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.download-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.15s;
  min-width: 140px;
  justify-content: center;
}

.download-btn:hover { opacity: 0.85; }
.btn-ios { background: #212121; }
.btn-android { background: #00695C; }

.qr-wrapper {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  background: white;
}

.qr-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.feature {
  background: var(--white);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.feature .icon { font-size: 1.4rem; margin-bottom: 8px; }

.feature h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Lab credit */
.lab-credit {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 8px;
}

/* Forms */
form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

input[type="email"],
input[type="text"],
textarea,
select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.925rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  background: white;
  color: var(--text);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--green);
}

textarea { min-height: 110px; resize: vertical; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--green);
}

.checkbox-row label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}

.btn:hover { opacity: 0.85; }
.btn-primary { background: var(--green); color: white; }
.btn-danger { background: #C62828; color: white; }

/* Warning */
.warning {
  background: #FFF8E1;
  border: 1px solid #FFCA28;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 0.875rem;
  color: #5D4037;
  line-height: 1.55;
  margin-bottom: 24px;
}

/* Contact email link */
.contact-link {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  text-decoration: underline;
  font-weight: 400;
  font-size: 0.925rem;
  margin-top: 8px;
}

.contact-link:hover { text-decoration: underline; }

/* Delete account steps */
.delete-steps {
  margin: 8px 0 0 2em;
}

.delete-steps p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 4px;
}

/* Footer */
footer {
  text-align: center;
  padding: 28px 20px;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

footer a { color: var(--green-dark); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* Divider */
hr { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* Responsive */
@media (max-width: 600px) {
  .header-inner { height: auto; padding: 10px 0; flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-links a { padding: 5px 8px; font-size: 0.8rem; }
  main { margin: 24px auto; }
  .card { padding: 24px 18px; }
  .hero h1 { font-size: 1.4rem; }
  .download-section { gap: 24px; }
}

/* ─── Landing page ─────────────────────────────────────────── */

main.landing { max-width: none; margin: 0; padding: 0; }

.lp-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Shared section spacing */
.landing section { padding: 72px 0; }

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* 1 · Hero */
.hero-section {
  background: var(--green-light);
  padding: 60px 0;
  text-align: center;
}

.hero-section .lp-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 12px;
  padding-bottom: 12px;
}

.hero-logo {
  width: 320px;
  height: 320px;
  object-fit: contain;
  margin-bottom: 28px;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin: 0 auto 20px;
  max-width: 620px;
}

.hero-sub {
  font-size: 1.5rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.5;
}

.hero-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 44px;
}

.download-section-lp {
  background: var(--white);
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.download-section-lp .section-title {
  margin-bottom: 36px;
}

.download-row {
  display: flex;
  gap: 60px;
  flex-wrap: wrap;
  justify-content: center;
}

/* 2 · O Problema */
.problem-section { background: var(--green-light); }

.problem-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.problem-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-bottom: 20px;
  max-width: 680px;
}

.problem-body {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 640px;
}

/* 3 · Como funciona */
.steps-section { background: var(--green-light); }

.steps-section .section-title { margin-bottom: 8px; }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  grid-template-rows: 1fr;
}

.step {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  min-height: 200px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-icon { font-size: 1.8rem; margin-bottom: 10px; }

.step h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-arrow {
  font-size: 1.6rem;
  color: var(--green);
  align-self: center;
  padding: 0 12px;
  flex-shrink: 0;
}

/* 4 · Screenshots */
.screenshots-section { background: var(--green-light); }

.screenshots-section .section-title { margin-bottom: 8px; }

.phones-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  overflow-x: auto;
  padding: 32px 24px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.phones-row::-webkit-scrollbar { display: none; }

.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.phone {
  width: 190px;
  height: 380px;
  border: 7px solid #212121;
  border-radius: 36px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,0.18);
  position: relative;
  background: #f5f5f5;
}

.phone::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 56px;
  height: 18px;
  background: #212121;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.phone-placeholder {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 0.8rem;
  text-align: center;
  flex-direction: column;
  gap: 8px;
}

.phone-placeholder::before { content: '📱'; font-size: 2rem; }

.phone-caption {
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
}

/* 5 · Para quem é */
.audience-section { background: var(--green-light); }

.audience-section .section-title { margin-bottom: 8px; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.audience-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

.audience-icon { font-size: 2rem; margin-bottom: 12px; }

.audience-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.audience-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* 6 · Classificação Durigan */
.durigan-section { background: var(--green-light); }

.durigan-section .section-title { margin-bottom: 8px; }

.durigan-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin: 0 0 36px;
}

.durigan-scale {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.durigan-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 10px;
  min-width: 72px;
}

/* Durigan accordion */
.durigan-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.d-row {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.d-row summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.d-row summary::-webkit-details-marker { display: none; }

.d-row summary:hover { background: rgba(0,0,0,0.02); }

.d-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
  padding: 0 6px;
}

/* Badge colors — match Flutter: color.withValues(alpha: 0.28), text kTextGray #757575 */
.d-2a, .d-2b { background: rgba(156, 204, 101, 0.28); color: #757575; }
.d-3a, .d-5a { background: rgba(255, 238, 88,  0.28); color: #757575; }
.d-5b         { background: rgba(255, 193,  7,  0.28); color: #757575; }
.d-6a         { background: rgba(255, 152,  0,  0.28); color: #757575; }
.d-6b         { background: rgba(239,  83, 80,  0.28); color: #757575; }

.d-label {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}


.d-chevron {
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: transform 0.2s;
  flex-shrink: 0;
  line-height: 1;
}

.d-row[open] .d-chevron { transform: rotate(90deg); }

.d-body {
  padding: 0 16px 16px 64px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.d-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 12px;
}

.d-manejo-title {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: var(--text) !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 6px !important;
}

.d-subhead {
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: var(--text) !important;
  margin-top: 10px !important;
  margin-bottom: 4px !important;
}

.d-body ul {
  padding-left: 18px;
  margin: 0;
}

.d-body ul li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 4px;
}

.durigan-ref {
  margin-top: 24px;
  font-size: 0.82rem;
}

.durigan-ref a { color: var(--green-dark); text-decoration: none; }
.durigan-ref a:hover { text-decoration: underline; }

/* 7 · Sobre o LEAp */
.about-section { background: var(--green-light); }

.about-inner {
  display: flex;
}

.about-logos {
  display: block;
  height: 40px;
  object-fit: contain;
  margin: 16px 0 0;
}

.about-text {
  max-width: 600px;
}

.about-text h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.about-text p {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.about-link {
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.about-link:hover { text-decoration: underline; }

/* Landing responsive */
@media (max-width: 700px) {
  .landing section { padding: 52px 0; }
  .hero-headline { font-size: 2rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-logo { width: 120px; height: 120px; }
  .problem-title { font-size: 1.25rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); text-align: center; padding: 4px 0; }
  .about-inner { flex-direction: column; gap: 24px; }
  .about-logos { height: 60px; }
  .durigan-scale { gap: 4px; }
  .durigan-item { min-width: 60px; padding: 8px 10px; }
}
