/* ==========================================================================
   RO CONNECT — Design Tokens & Base Styles
   Palette: deep water teal + flow cyan + warm amber CTA, on cool off-white
   Type: Space Grotesk (display) / Inter (body) / IBM Plex Mono (data)
   ========================================================================== */

:root {
  /* Colors */
  --ink-900: #08262d;
  --ink-800: #0d2b33;
  --teal-900: #072b33;
  --teal-800: #0a3d4a;
  --teal-700: #0f4d5c;
  --teal-600: #146b79;
  --teal-500: #1c8496;
  --cyan-400: #2fb8ae;
  --cyan-300: #4fd1c5;
  --cyan-200: #9fe8de;
  --amber-500: #f2a93b;
  --amber-600: #dc8f1f;
  --whatsapp-500: #25d366;
  --whatsapp-600: #1ebe59;
  --paper-0: #ffffff;
  --paper-50: #f6faf9;
  --paper-100: #eef5f4;
  --paper-200: #dfeae8;
  --line-200: #dbe7e5;
  --line-300: #c3d6d3;
  --text-muted: #4f6b70;
  --text-soft: #6d8a8e;

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  /* Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(8, 38, 45, 0.06);
  --shadow-md: 0 10px 30px rgba(8, 38, 45, 0.1);
  --shadow-lg: 0 20px 60px rgba(8, 38, 45, 0.16);
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  width: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-800);
  background: var(--paper-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--teal-900);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

section {
  position: relative;
}

.section-pad {
  padding: 64px 0;
}
@media (min-width: 900px) {
  .section-pad {
    padding: 96px 0;
  }
}

.section-pad-sm {
  padding: 40px 0;
}
@media (min-width: 900px) {
  .section-pad-sm {
    padding: 56px 0;
  }
}

/* Visible keyboard focus everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--teal-900);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

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

/* ---- Eyebrow / kicker ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-600);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--amber-500);
  display: inline-block;
}
.eyebrow.on-dark {
  color: var(--cyan-300);
}

.section-head {
  max-width: 680px;
  margin: 0 0 40px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
}
.section-head p {
  color: var(--text-muted);
  font-size: 17px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  min-height: 48px;
}
.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-whatsapp {
  background: var(--whatsapp-500);
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.32);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-600);
}
.btn-call {
  background: var(--amber-500);
  color: var(--teal-900);
  box-shadow: 0 8px 20px rgba(242, 169, 59, 0.35);
}
.btn-call:hover {
  background: var(--amber-600);
}
.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.btn-outline-dark {
  background: transparent;
  border-color: var(--line-300);
  color: var(--teal-800);
}
.btn-outline-dark:hover {
  border-color: var(--teal-600);
  background: var(--paper-100);
}
.btn-block {
  width: 100%;
}
.btn-sm {
  padding: 10px 18px;
  font-size: 14px;
  min-height: 40px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ---- Cards ---- */
.card {
  background: var(--paper-0);
  border: 1px solid var(--line-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ---- Reveal-on-scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  transition-delay: calc(var(--i, 0) * 70ms);
}

/* ---- Badge chip ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--paper-100);
  color: var(--teal-700);
  border: 1px solid var(--line-200);
}

/* ---- Divider wave ---- */
.flow-divider {
  display: block;
  width: 100%;
  height: 44px;
  color: var(--paper-50);
}
