/*
 * Juarez Digital LLC — site styles.
 * Brand: midnight navy, electric blue, teal and growth green (the same values as SpendSense AI).
 * Text on light backgrounds uses deeper shades of the brand colours so it stays readable
 * (WCAG AA); the bright colours are used on navy and for accents.
 */

:root {
  --navy: #071a38;
  --navy-2: #0c2550;
  --electric-blue: #087cf0;
  --teal: #00d9c0;
  --growth-green: #32e58b;
  --white: #ffffff;

  --page: #f3f7fd;
  --tint: #e3ecf8;
  --card: #ffffff;
  --border: #cfdcee;
  --text: #071a38;
  --text-secondary: #465b7a;
  --link: #0a60c4;
  --positive: #0a7347;

  --radius: 16px;
  --radius-small: 10px;
  --shadow: 0 8px 24px rgba(7, 26, 56, 0.08);
  --container: 1100px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  /* Keeps section headings clear of the sticky header when jumping to them. */
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: var(--link);
}

:focus-visible {
  outline: 3px solid var(--electric-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.375rem;
}

p {
  margin: 0 0 1em;
}

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

.narrow {
  max-width: 760px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-small);
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* Placeholders are highlighted so they can't go live unnoticed. */
.placeholder {
  background: #fff3c4;
  color: #5c4400;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  font-weight: 600;
}

/* Header ------------------------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 26, 56, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.wordmark,
.footer-wordmark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
  text-decoration: none;
}

.wordmark-accent {
  color: var(--teal);
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--teal);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  cursor: pointer;
}

.menu-toggle-bar,
.menu-toggle-bar::before,
.menu-toggle-bar::after {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 2px;
}

.menu-toggle-bar {
  position: relative;
}

.menu-toggle-bar::before,
.menu-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle-bar::before {
  top: -7px;
}

.menu-toggle-bar::after {
  top: 7px;
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

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

  .site-nav a {
    padding: 12px 0;
  }
}

/* Hero -------------------------------------------------------------------------------------- */

.hero {
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(0, 217, 192, 0.22), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(8, 124, 240, 0.35), transparent 50%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  padding: clamp(72px, 12vw, 140px) 0;
}

.hero-inner {
  max-width: 820px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--growth-green);
}

.eyebrow-dark {
  color: var(--positive);
}

.hero-tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.button-primary {
  /* A deeper shade of electric blue, so white text reads clearly (WCAG AA). */
  background: #0a66d1;
  color: var(--white);
}

.button-primary:hover {
  background: #0a56b0;
}

.button-ghost {
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.button-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* Sections ---------------------------------------------------------------------------------- */

.section {
  padding: clamp(64px, 9vw, 104px) 0;
}

.section-tinted {
  background: var(--tint);
}

.lead {
  font-size: 1.2rem;
}

.muted {
  color: var(--text-secondary);
}

.subheading {
  margin-top: 48px;
}

/* Products ---------------------------------------------------------------------------------- */

.product-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 24px;
  padding: clamp(24px, 4vw, 36px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy), var(--electric-blue));
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 800;
}

.product-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-bottom: 8px;
}

.product-heading h3 {
  margin: 0;
}

.status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
}

.status-soon {
  background: #dcf5e8;
  color: var(--positive);
}

.status-dev {
  background: #e2eefd;
  color: var(--link);
}

.feature-list {
  margin: 0;
  padding-left: 1.2em;
}

.feature-list li {
  margin-bottom: 6px;
}

.feature-list li::marker {
  color: var(--positive);
}

.future-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.future-card {
  padding: 24px;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.future-card h4 {
  margin: 12px 0 4px;
  font-size: 1.125rem;
}

.future-card p {
  margin: 0;
}

@media (max-width: 560px) {
  .product-card {
    flex-direction: column;
  }
}

/* Contact ----------------------------------------------------------------------------------- */

.contact-email {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Footer ------------------------------------------------------------------------------------ */

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 4px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  margin-top: 8px;
}

/* On navy, the light-page link blue is too dark to read: teal is (9.6:1). */
.footer-links a {
  color: var(--teal);
}
