#email-summary {
  border: 1px solid var(--oracle-border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--oracle-white);
}

#email-summary h2 {
  color: var(--oracle-charcoal);
  font-weight: 600;
  margin-bottom: 8px;
}

:root {
  --oracle-red: #c74634;
  --oracle-red-dark: #a63225;
  --oracle-charcoal: #312d2a;
  --oracle-warm-gray: #f4f2f0;
  --oracle-white: #ffffff;
  --oracle-border: #d9d4ce;
  --oracle-muted: #6f665f;
  --radius: 12px;
  --transition: 200ms ease;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  background-color: var(--oracle-warm-gray);
  color: var(--oracle-charcoal);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  width: 100%;
  background: var(--oracle-charcoal);
  padding: 32px 24px;
  display: flex;
  justify-content: center;
}

.brand {
  width: 100%;
  max-width: 960px;
}

#u30logo {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  padding-bottom: 1.5rem;
}

.u30-oicn-mobile {
  display: none;
}

.u30-oicn {
  max-width: 230px;
  height: auto;
}

.tagline {
  color: var(--oracle-warm-gray);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.9rem;
  margin: 0;
}

.card {
  width: min(960px, 92%);
  background: var(--oracle-white);
  margin: -60px auto 32px;
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(18, 15, 12, 0.15);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--oracle-muted);
}

h1,
h2 {
  margin: 0;
  font-weight: 600;
  color: var(--oracle-charcoal);
}

.lead {
  margin: 0;
  color: var(--oracle-muted);
  font-size: 1rem;
}

.email-form label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.input-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

input[type='email'] {
  flex: 1;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--oracle-border);
  font-size: 1rem;
  transition: border-color var(--transition);
}

input[type='email']:focus {
  outline: none;
  border-color: var(--oracle-red);
  box-shadow: 0 0 0 3px rgba(199, 70, 52, 0.2);
}

button.primary {
  background: var(--oracle-red);
  color: var(--oracle-white);
  border: none;
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

button.primary:disabled {
  background: var(--oracle-border);
  color: var(--oracle-muted);
  cursor: not-allowed;
  transform: none;
}

button.primary:not(:disabled):hover {
  background: var(--oracle-red-dark);
  transform: translateY(-1px);
}

.feedback {
  min-height: 1.4em;
  margin: 4px 0 0;
  font-size: 0.95rem;
}

.feedback.error {
  color: var(--oracle-red);
}

.feedback.success {
  color: #1b8759;
}

.recorder-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  padding: 20px;
  border: 1px dashed var(--oracle-border);
  border-radius: var(--radius);
  background: var(--oracle-warm-gray);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  border-radius: var(--radius);
}

.btn-icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
}

.btn-icon svg {
  width: 100%;
  height: 100%;
}

.accent {
  background: #1b8759;
  color: var(--oracle-white);
  border: none;
  border-radius: var(--radius);
}

.accent:disabled {
  background: rgba(27, 135, 89, 0.4);
  color: var(--oracle-white);
}

.accent:not(:disabled):hover {
  background: #126745;
}

.preview-panel {
  margin-top: 16px;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--oracle-border);
  background: var(--oracle-white);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-panel audio {
  width: 100%;
}

.is-hidden {
  display: none !important;
}

.status {
  margin: 0;
  font-weight: 500;
}

.muted {
  color: var(--oracle-muted);
}

.timer {
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin: 0;
}

.upload-status {
  min-height: 1.2em;
  font-size: 0.95rem;
  color: var(--oracle-charcoal);
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: rgba(49, 45, 42, 0.04);
  transition: background var(--transition), border-color var(--transition),
    color var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.upload-status.success {
  border-color: #1b8759;
  background: rgba(27, 135, 89, 0.12);
  color: #0f5132;
}

.upload-status.error {
  border-color: var(--oracle-red);
  background: rgba(199, 70, 52, 0.12);
  color: var(--oracle-red-dark);
}

.footer {
  width: 100%;
  text-align: center;
  padding: 24px 16px 40px;
  color: var(--oracle-muted);
}

/* Info Sections (Política de Uso e Como Usar) */
.info-sections {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.info-section {
  border: 1px solid var(--oracle-border);
  border-radius: var(--radius);
  background: var(--oracle-white);
  overflow: hidden;
}

.info-section-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--oracle-warm-gray);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--oracle-charcoal);
  font-family: inherit;
  transition: background var(--transition);
  text-align: left;
}

.info-section-toggle:hover {
  background: var(--oracle-border);
}

.info-section-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(199, 70, 52, 0.2);
}

.toggle-icon {
  width: 20px;
  height: 20px;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.info-section-toggle[aria-expanded="true"] .toggle-icon {
  transform: rotate(180deg);
}

.info-section-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.info-section-toggle[aria-expanded="true"] + .info-section-content {
  max-height: 2000px;
  padding: 20px;
}

.info-section-content h3 {
  margin: 0 0 16px 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--oracle-charcoal);
}

.policy-text,
.example-text {
  color: var(--oracle-charcoal);
  line-height: 1.6;
}

.policy-text p,
.example-text p {
  margin: 0 0 12px 0;
}

.policy-text p:last-child,
.example-text p:last-child {
  margin-bottom: 0;
}

.policy-text strong,
.example-text strong {
  color: var(--oracle-charcoal);
  font-weight: 600;
}

.policy-text ul,
.example-text ul,
.example-text ol {
  margin: 12px 0;
  padding-left: 24px;
}

.policy-text li,
.example-text li {
  margin: 8px 0;
  line-height: 1.6;
}

.example-text ol li {
  margin-bottom: 16px;
}

.example-text ol li p {
  margin-top: 8px;
  margin-bottom: 0;
}

/* Example Highlight Box */
.example-highlight {
  margin: 20px 0;
  padding: 0;
}

.example-highlight h4 {
  margin: 0 0 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--oracle-charcoal);
}

.example-content-box {
  background: linear-gradient(135deg, rgba(199, 70, 52, 0.08) 0%, rgba(199, 70, 52, 0.04) 100%);
  border: 2px solid rgba(199, 70, 52, 0.2);
  border-left: 4px solid var(--oracle-red);
  border-radius: var(--radius);
  padding: 20px;
  margin: 0;
  box-shadow: 0 2px 8px rgba(199, 70, 52, 0.1);
}

.example-content-box p {
  margin: 0;
  color: var(--oracle-charcoal);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Audio Improvement Text */
.audio-improvement-text {
  color: var(--oracle-charcoal);
  line-height: 1.6;
}

.audio-improvement-text p {
  margin: 0 0 16px 0;
}

.audio-improvement-text p:last-child {
  margin-bottom: 0;
}

.audio-improvement-text strong {
  color: var(--oracle-red);
  font-weight: 600;
}

.disclaimer {
  margin-top: 20px !important;
  padding: 16px;
  background: rgba(111, 102, 95, 0.08);
  border-left: 4px solid var(--oracle-muted);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--oracle-muted);
  font-style: italic;
}

/* Toast notifications */
.toast {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%) translateX(20px);
  min-width: 300px;
  max-width: 500px;
  padding: 16px 20px;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(18, 15, 12, 0.2);
  font-size: 0.95rem;
  font-weight: 500;
  z-index: 10000;
  display: none;
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
  pointer-events: auto;
}

.toast-success {
  background: var(--oracle-white);
  color: #0f5132;
  border: 2px solid #1b8759;
  box-shadow: 0 8px 24px rgba(27, 135, 89, 0.25);
}

.toast-success::before {
  content: "✅ ";
  margin-right: 8px;
}

.toast-error {
  background: var(--oracle-white);
  color: var(--oracle-red-dark);
  border: 2px solid var(--oracle-red);
  box-shadow: 0 8px 24px rgba(199, 70, 52, 0.25);
}

.toast-error::before {
  content: "⚠️ ";
  margin-right: 8px;
}

/* Install Prompt */
.install-prompt {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--oracle-white);
  border-top: 2px solid var(--oracle-red);
  box-shadow: 0 -4px 12px rgba(18, 15, 12, 0.15);
  padding: 20px;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 300ms ease;
}

.install-prompt.show {
  transform: translateY(0);
}

.install-prompt-content {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.install-prompt-content p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-weight: 500;
  color: var(--oracle-charcoal);
}

.install-prompt-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

button.secondary {
  background: transparent;
  color: var(--oracle-charcoal);
  border: 1px solid var(--oracle-border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  font-family: inherit;
}

button.secondary:hover {
  background: var(--oracle-warm-gray);
  border-color: var(--oracle-muted);
}

@media (max-width: 640px) {
  .toast {
    right: 16px;
    left: 16px;
    min-width: auto;
    max-width: none;
    transform: translateY(-50%) translateX(20px);
  }

  .toast.show {
    transform: translateY(-50%) translateX(0);
  }

  .install-prompt-content {
    flex-direction: column;
    align-items: stretch;
  }

  .install-prompt-content p {
    text-align: center;
  }

  .install-prompt-buttons {
    width: 100%;
  }

  .install-prompt-buttons button {
    flex: 1;
  }

  #u30logo {
    gap: 8px;
  }
/* 
  .u30-oicn {
    display: none;
  }

  .u30-oicn-mobile {
    display: block;
  } */

  .hero {
    padding: 24px 16px;
    padding-bottom: 40px;
  }



  #u30logo {
    margin-bottom: 20px;
    padding-bottom: 0.5rem;
  }

  .card {
    padding: 28px;
    margin-top: -40px;
    margin-bottom: 24px;
  }

  button.primary,
  input[type='email'] {
    width: 100%;
  }

  .button-row {
    flex-direction: column;
    gap: 12px;
  }

  .button-row .icon-btn {
    width: 100%;
    justify-content: center;
  }
}
