/* Recurbills — Blue / Teal theme (logo-aligned) */

:root {
  --blue-deep: #0a1628;
  --blue-mid: #132337;
  --blue-soft: #1a3352;
  --teal: #14b8a6;
  --teal-bright: #2dd4bf;
  --cyan: #22d3ee;
  /* Wordmark (aligned with recurbills-logo-1.png: navy “Recur” + teal “Bills”) */
  --wordmark-recur: #93c5fd;
  --wordmark-recur-hover: #bfdbfe;
  --wordmark-bills: #14b8a6;
  --wordmark-bills-hover: #2dd4bf;
  --accent: linear-gradient(135deg, #0ea5e9 0%, #14b8a6 55%, #2dd4bf 100%);
  --text: #e8f4f8;
  --text-muted: #94a3b8;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(148, 163, 184, 0.15);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", var(--font);
  --font-wordmark: "Montserrat", var(--font-display), system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--blue-deep);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-bright);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--cyan);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  background: var(--teal);
  color: var(--blue-deep);
  z-index: 10000;
  border-radius: 0.5rem;
}

/* Layout */
.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}

.logo-link:hover {
  color: inherit;
}

.logo-link img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

/* Title next to icon — matches logo-1 wordmark: bold geometric sans, two-tone */
.brand-wordmark {
  font-family: var(--font-wordmark);
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.brand-wordmark__recur {
  color: var(--wordmark-recur);
}

.brand-wordmark__bills {
  color: var(--wordmark-bills);
}

.logo-link:hover .brand-wordmark__recur {
  color: var(--wordmark-recur-hover);
}

.logo-link:hover .brand-wordmark__bills {
  color: var(--wordmark-bills-hover);
}

.logo-link--footer img {
  height: 36px;
}

.logo-link--footer .brand-wordmark {
  font-size: 1.2rem;
}

@media (max-width: 400px) {
  .brand-wordmark {
    font-size: 1.15rem;
  }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--text);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.65rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.nav-toggle svg {
  display: block;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 901px) {
  .nav-mobile {
    display: none !important;
  }
}

.nav-mobile a {
  color: var(--text-muted);
  padding: 0.5rem 0;
  font-weight: 500;
}

.nav-mobile.open {
  display: flex;
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .header-cta .btn-outline {
    display: none;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #04101a;
  box-shadow: 0 8px 32px rgba(20, 184, 166, 0.35);
}

.btn-primary:hover {
  color: #04101a;
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.4);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface-strong);
  color: var(--text);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(20, 184, 166, 0.2), transparent),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(45, 212, 191, 0.12), transparent);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 30%, transparent);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--teal-bright);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 36ch;
  margin: 0 0 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

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

.hero-note strong {
  color: var(--teal-bright);
}

/* Hero visual — dashboard mock */
.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--blue-mid), var(--blue-soft));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  transform: perspective(1000px) rotateY(-6deg) rotateX(4deg);
}

@media (max-width: 900px) {
  .hero-card-stack {
    transform: none;
    max-width: 420px;
    margin-inline: auto;
  }
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.mock-dots {
  display: flex;
  gap: 0.35rem;
}

.mock-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

.mock-title {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mock-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
}

.mock-row span:first-child {
  color: var(--text);
}

.mock-row span:last-child {
  color: var(--teal-bright);
  font-weight: 600;
}

.mock-float {
  position: absolute;
  right: -8%;
  bottom: 12%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.8rem;
  box-shadow: var(--shadow);
}

.mock-float strong {
  display: block;
  color: var(--cyan);
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .mock-float {
    right: 0;
    bottom: -4%;
  }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--blue-mid) 0%, var(--blue-deep) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head--wide {
  max-width: 820px;
}

.section-lead-wide {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

/* Problem cards */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

.problem-story {
  max-width: 52rem;
  margin: -1.5rem auto 2.5rem;
  text-align: center;
}

.problem-story p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.problem-story p:last-child {
  margin-bottom: 0;
}

.problem-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.problem-card:hover {
  border-color: rgba(20, 184, 166, 0.35);
  transform: translateY(-2px);
}

.problem-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.problem-card .icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.problem-card__lead {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0 0 1rem;
}

.problem-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.problem-card li {
  margin-bottom: 0.4rem;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--surface-strong), transparent);
  border: 1px solid var(--border);
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

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

.feature-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 1rem;
  border-radius: 0.75rem;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.25);
  display: grid;
  place-items: center;
  color: var(--teal-bright);
}

/* Two col feature */
.split-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .split-feature {
    grid-template-columns: 1fr;
  }
}

.split-feature .panel {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.split-feature h3 {
  font-family: var(--font-display);
  margin-top: 0;
}

.split-feature ul {
  color: var(--text-muted);
  padding-left: 1.2rem;
}

/* FAQ */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--surface);
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--teal-bright);
  flex-shrink: 0;
}

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

.faq-item .faq-body {
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.faq-item .faq-body p {
  margin: 0;
}

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(20, 184, 166, 0.15));
  border: 1px solid rgba(20, 184, 166, 0.35);
  margin: 0 auto;
  max-width: 900px;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.75rem;
}

.cta-band p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--blue-mid);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 36ch;
  margin: 0.75rem 0 0;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-muted);
}

.footer-col a:hover {
  color: var(--teal-bright);
}

.social-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.social-btn:hover {
  background: rgba(20, 184, 166, 0.15);
  border-color: rgba(20, 184, 166, 0.4);
  color: var(--teal-bright);
}

.social-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.5);
  color: #25d366;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
}

/* Legal pages */
.legal-page {
  padding: clamp(2rem, 5vw, 3.5rem) 0 4rem;
}

.legal-page .container {
  max-width: 800px;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 0.5rem;
}

.legal-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
}

.legal-page ul {
  padding-left: 1.25rem;
}

/* 404 */
.page-404 {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.logo-link--404 {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.logo-link--404 img {
  height: 48px;
  width: auto;
}

.logo-link--404 .brand-wordmark {
  font-size: clamp(1.2rem, 4vw, 1.55rem);
}

.page-404 .logo-link--404 {
  margin-bottom: 2rem;
}

.page-404 h1 {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  margin: 0;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.page-404 h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0.5rem 0 1rem;
}

.page-404 p {
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 0 1.5rem;
}
