:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --border: #dbe3ef;
  --text: #0f172a;
  --text-muted: #64748b;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: #dbeafe;
  --teal: #0f766e;
  --teal-soft: #ccfbf1;
  --footer-bg: #1e293b;
  --footer-text: #cbd5e1;
  --footer-muted: #94a3b8;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --success: #15803d;
  --success-soft: #dcfce7;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --nav-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

.site-nav {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--nav-shadow);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
}

.brand-link:hover .brand-name {
  color: var(--primary);
}

.brand-name {
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
}

.nav-link {
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-weight: 600;
  padding: 8px 12px;
  text-decoration: none;
}

.nav-link:hover {
  background: var(--surface-muted);
  color: var(--text);
}

.nav-link-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-nav-whatsapp {
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
}

.btn-nav-whatsapp:hover {
  background: #1ebe57;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 20px 48px;
}

.page-intro {
  margin-bottom: 24px;
}

.page-title {
  color: var(--text);
  font-size: 1.75rem;
  margin: 0 0 8px;
}

.site-header {
  margin-bottom: 28px;
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  flex-shrink: 0;
}

.brand-mark-icon {
  color: #fff;
  display: block;
  height: 28px;
  transform-origin: center;
  width: 28px;
}

@keyframes brand-mark-sway {
  0%,
  100% {
    transform: rotate(0deg);
  }

  33% {
    transform: rotate(-9deg);
  }

  66% {
    transform: rotate(9deg);
  }
}

.brand-mark:hover .brand-mark-icon {
  animation: brand-mark-sway 0.55s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .brand-mark:hover .brand-mark-icon {
    animation: none;
  }
}

.brand h1 {
  margin: 0 0 4px;
  font-size: 1.6rem;
}

.brand p {
  margin: 0;
  color: var(--text-muted);
}

.header-lead {
  margin: 18px 0 0;
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.5;
}

.main-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card-head h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}

.card-head p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.stack-form,
.inline-form {
  display: grid;
  gap: 14px;
}

.inline-form {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.field {
  display: grid;
  gap: 6px;
}

.field-grow {
  min-width: 0;
}

.field span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
  background: var(--surface-muted);
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--primary-soft);
  border-color: var(--primary);
  background: #fff;
}

.field-hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.btn {
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-secondary:hover {
  background: #bfdbfe;
}

.feedback {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.feedback.error {
  background: var(--danger-soft);
  color: var(--danger);
}

.feedback.info {
  background: var(--primary-soft);
  color: var(--primary);
}

.results-panel {
  margin-top: 20px;
}

.results-panel h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.results-list {
  display: grid;
  gap: 10px;
}

.result-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface-muted);
}

.result-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.result-item h4 {
  margin: 0;
  font-size: 0.98rem;
}

.result-item p {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.result-item button {
  border: none;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.status-panel {
  margin-top: 20px;
}

.status-summary {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.status-label {
  margin: 0 0 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-value {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--primary-soft);
  color: var(--primary);
}

.pill-soft {
  background: var(--surface-muted);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.step-tracker {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.step-tracker li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 18px;
}

.step-tracker li:last-child {
  padding-bottom: 0;
}

.step-tracker li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 28px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.step-marker {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  z-index: 1;
}

.step-tracker li.complete .step-marker {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}

.step-tracker li.current .step-marker {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.step-copy h4 {
  margin: 2px 0 4px;
  font-size: 0.95rem;
}

.step-copy p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.step-tracker li.complete:not(:last-child)::before {
  background: var(--success);
}

.status-updated {
  margin: 16px 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.whatsapp-callout {
  align-items: center;
  display: grid;
  gap: 20px 32px;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
  margin-bottom: 28px;
}

.whatsapp-callout-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  min-width: 0;
}

.hero-robot {
  display: flex;
  justify-content: center;
  pointer-events: none;
  user-select: none;
}

.hero-robot-svg {
  display: block;
  height: auto;
  max-width: 260px;
  width: 100%;
}

.hero-robot-body {
  animation: hero-robot-bob 2.8s ease-in-out infinite;
  transform-box: view-box;
  transform-origin: 110px 200px;
}

.hero-robot-arm-wave {
  animation: hero-robot-wave 1.6s ease-in-out infinite;
  transform-box: view-box;
  transform-origin: 142px 128px;
}

.hero-robot-doc {
  animation: hero-robot-doc-tilt 1.6s ease-in-out infinite;
  transform-box: view-box;
  transform-origin: 179px 128px;
}

.hero-robot-eye {
  animation: hero-robot-blink 4.5s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.hero-robot-shadow {
  animation: hero-robot-shadow-pulse 2.8s ease-in-out infinite;
  transform-box: view-box;
  transform-origin: 110px 214px;
}

@keyframes hero-robot-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes hero-robot-wave {
  0%,
  100% {
    transform: rotate(-12deg);
  }

  50% {
    transform: rotate(18deg);
  }
}

@keyframes hero-robot-doc-tilt {
  0%,
  100% {
    transform: rotate(-6deg);
  }

  50% {
    transform: rotate(10deg);
  }
}

@keyframes hero-robot-blink {
  0%,
  42%,
  48%,
  100% {
    transform: scaleY(1);
  }

  45% {
    transform: scaleY(0.15);
  }
}

@keyframes hero-robot-shadow-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scaleX(1);
  }

  50% {
    opacity: 0.35;
    transform: scaleX(0.86);
  }
}

@media (max-width: 768px) {
  .whatsapp-callout {
    grid-template-columns: 1fr;
  }

  .hero-robot {
    order: -1;
    max-width: 180px;
    margin: 0 auto;
  }

  .hero-headline {
    font-size: clamp(1.35rem, 5.2vw, 2.25rem);
  }
}

.hero-headline {
  color: #0a0a0a;
  display: flex;
  flex-direction: column;
  font-size: clamp(1.55rem, 3.6vw, 3.25rem);
  font-weight: 700;
  gap: 0.35em;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}

.hero-headline-line {
  display: block;
  white-space: nowrap;
}

.hero-headline-rest {
  display: block;
  text-wrap: balance;
}

.hero-accent {
  color: var(--primary);
  display: inline-block;
  white-space: nowrap;
  background: linear-gradient(
    110deg,
    var(--primary) 35%,
    #ffffff 50%,
    var(--primary) 65%
  );
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: text-shimmer 2.4s ease-in-out infinite;
}

.typewriter {
  display: inline-block;
  min-width: 0;
  text-align: left;
  vertical-align: baseline;
  white-space: nowrap;
}

.typewriter-text {
  color: var(--primary);
}

.typewriter-cursor {
  animation: typewriter-blink 0.85s step-end infinite;
  background: var(--primary);
  display: inline-block;
  height: 0.9em;
  margin-left: 2px;
  vertical-align: -0.08em;
  width: 0.08em;
}

@keyframes typewriter-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-cursor {
    animation: none;
  }

  .hero-robot-body,
  .hero-robot-arm-wave,
  .hero-robot-doc,
  .hero-robot-eye,
  .hero-robot-shadow {
    animation: none;
  }
}

.whatsapp-callout p {
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.btn-whatsapp-cta {
  align-self: flex-start;
  background: #25d366;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  color: #fff;
  margin-top: 4px;
  padding: 12px 24px;
}

.btn-whatsapp-cta:hover {
  background: #1ebe57;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

.whatsapp-icon {
  flex-shrink: 0;
  height: 20px;
  width: 20px;
}

.whatsapp-fab {
  align-items: center;
  background: #25d366;
  border-radius: 50%;
  bottom: 24px;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  color: #fff;
  display: grid;
  height: 60px;
  justify-content: center;
  left: 24px;
  place-items: center;
  position: fixed;
  text-decoration: none;
  transition:
    background 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
  width: 60px;
  z-index: 200;
}

.whatsapp-fab:hover {
  background: #1ebe57;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
  transform: scale(1.06);
}

.whatsapp-fab:focus-visible {
  outline: 3px solid #128c7e;
  outline-offset: 3px;
}

.whatsapp-fab-icon {
  display: block;
  height: 32px;
  width: 32px;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab {
    transition: none;
  }

  .whatsapp-fab:hover {
    transform: none;
  }
}

.contact-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.contact-list div {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
}

.contact-list div:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-list dt {
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.contact-list dd {
  color: var(--text);
  font-size: 1rem;
  margin: 0;
}

.contact-list a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-note {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 20px 0 0;
}

.contact-note a {
  color: var(--primary);
  font-weight: 600;
}

.legal-document {
  max-width: 820px;
}

.legal-section + .legal-section {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 32px;
}

.legal-section h2 {
  color: var(--primary);
  font-size: 1.45rem;
  margin: 0 0 20px;
}

.legal-section h3 {
  color: var(--text);
  font-size: 1.05rem;
  margin: 24px 0 10px;
}

.legal-section p,
.legal-section li {
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul {
  margin: 0 0 14px;
  padding-left: 1.25rem;
}

.legal-section a {
  color: var(--primary);
  font-weight: 600;
}

.corporate-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  margin-top: 0;
  padding: 28px 20px 32px;
  text-align: center;
}

.corporate-footer-meta,
.corporate-footer-copy,
.corporate-footer-links {
  font-size: 0.9rem;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 920px;
}

.corporate-footer-copy {
  color: var(--footer-muted);
  margin-top: 10px;
}

.corporate-footer-links {
  margin-top: 14px;
}

.corporate-footer a {
  color: #7dd3fc;
  text-decoration: none;
}

.corporate-footer a:hover {
  text-decoration: underline;
}

.visually-hidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.how-it-works {
  margin-bottom: 24px;
}

.how-it-works-head {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.how-it-works-head h2 {
  color: var(--text);
  font-size: 1.25rem;
  margin: 0;
}

.how-it-works-link {
  color: var(--teal);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.how-it-works-link:hover {
  text-decoration: underline;
}

@keyframes text-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-accent {
    animation: none;
    background: none;
    -webkit-text-fill-color: var(--primary);
  }
}

.process-steps {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .process-steps-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process-steps-compact {
    grid-template-columns: repeat(4, 1fr);
  }
}

.how-it-works-page .process-steps {
  gap: 16px;
}

@media (min-width: 900px) {
  .how-it-works-page .process-steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

.process-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
  grid-template-columns: auto 1fr;
  padding: 18px 18px 52px;
  position: relative;
}

.process-step-num {
  align-items: center;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  border-radius: 50%;
  color: #fff;
  display: grid;
  font-size: 0.9rem;
  font-weight: 700;
  height: 36px;
  place-items: center;
  width: 36px;
}

.process-step h3 {
  color: var(--text);
  font-size: 1rem;
  margin: 0 0 6px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0;
}

.process-step-icon {
  align-items: center;
  background: #93c5fd;
  border-radius: 50%;
  bottom: 14px;
  color: #fff;
  display: grid;
  height: 40px;
  justify-content: center;
  place-items: center;
  position: absolute;
  right: 14px;
  width: 40px;
}

.process-step-icon > svg {
  color: #fff;
  display: block;
  height: 22px;
  width: 22px;
}

.process-step-icon-badge {
  align-items: center;
  background: #25d366;
  border: 2px solid var(--surface);
  border-radius: 50%;
  bottom: -2px;
  color: #fff;
  display: grid;
  height: 18px;
  place-items: center;
  position: absolute;
  right: -2px;
  width: 18px;
}

.process-step-icon-badge svg {
  display: block;
  height: 10px;
  width: 10px;
}

.faq-layout {
  display: grid;
  gap: 24px;
}

.faq-group-title {
  color: var(--primary);
  font-size: 1.15rem;
  margin: 0 0 16px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 0 0 14px;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item + .faq-item {
  margin-top: 14px;
}

.faq-item summary {
  color: var(--text);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  list-style: none;
  padding-right: 24px;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  color: var(--teal);
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
  position: absolute;
  right: 0;
  top: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p,
.faq-item ul {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 10px 0 0;
}

.faq-item ul {
  padding-left: 1.2rem;
}

.faq-item a {
  color: var(--primary);
  font-weight: 600;
}

.faq-cta {
  margin-top: 24px;
  text-align: center;
}

.faq-cta h2 {
  font-size: 1.2rem;
  margin: 0 0 8px;
}

.faq-cta p {
  color: var(--text-muted);
  margin: 0 0 16px;
}

.site-footer {
  margin-top: 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--primary);
}
