/* =========================================================
   OvaGroups LLC — site styles
   Brand tokens live in :root. Change them here to restyle the site.
   ========================================================= */
:root {
  --navy-950: #070e22;
  --navy-900: #0b1530;
  --navy-800: #13214a;
  --navy-700: #1d2f63;
  --charcoal: #1f2430;
  --slate: #545b6b;
  --line: #e4e7ef;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --accent: #6d5dfc;      /* violet */
  --accent-2: #3b82f6;    /* blue */
  --accent-ink: #5141e0;  /* AA-contrast violet for text on white */
  --on-dark: #e8ecf8;
  --on-dark-muted: #a9b3cf;

  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(11, 21, 48, .06), 0 8px 24px rgba(11, 21, 48, .06);
  --shadow-hover: 0 2px 4px rgba(11, 21, 48, .06), 0 16px 40px rgba(11, 21, 48, .10);
  --container: 1120px;
  --header-h: 68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--navy-900); }
h1 { font-size: clamp(2.4rem, 6vw, 4.25rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); }
ul[role="list"] { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

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

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--surface); color: var(--navy-900);
  padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600;
  box-shadow: var(--shadow);
}
.skip-link:focus { top: 12px; }

.eyebrow {
  font-size: .8rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 1rem;
}
.accent-text {
  background: linear-gradient(90deg, #a99cff, #7cb3ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 24px rgba(109, 93, 252, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(109, 93, 252, .45); }
.btn-ghost { color: var(--on-dark); border: 1px solid rgba(232, 236, 248, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(232, 236, 248, .5); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.is-scrolled, .site-header.is-open {
  background: rgba(7, 14, 34, .86);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
}
.brand img { border-radius: 8px; }
.brand-suffix { font-weight: 500; opacity: .7; }

.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  color: var(--on-dark-muted); text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: color .2s ease, background-color .2s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-nav .nav-cta { color: #fff; border: 1px solid rgba(232, 236, 248, .28); margin-left: 8px; }
.site-nav .nav-cta:hover { border-color: rgba(232, 236, 248, .55); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: #fff; cursor: pointer; position: relative;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  position: absolute; left: 11px; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; }
.nav-toggle-bar::before { top: -7px; }
.nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); background: #fff; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(92vh, 860px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 64px) 0 96px;
  background: var(--navy-950); color: var(--on-dark);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(109, 93, 252, .35), transparent 70%),
    radial-gradient(50% 55% at 10% 90%, rgba(59, 130, 246, .25), transparent 70%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900));
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
.hero .eyebrow { color: #b3a9ff; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero-lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--on-dark-muted); max-width: 40rem; margin-bottom: 2.25rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-alt { background: var(--surface-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-lede { font-size: 1.15rem; color: var(--slate); }

.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px 72px; align-items: start; }
.about-copy { font-size: 1.15rem; color: var(--slate); padding-top: 2.1rem; }
.about-copy p:first-child { color: var(--charcoal); }

/* ---------- Service cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px 24px; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: #d3d7f5; }
.card-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  border-radius: 12px; color: var(--accent-ink);
  background: linear-gradient(135deg, rgba(109, 93, 252, .12), rgba(59, 130, 246, .12));
}
.card p { color: var(--slate); font-size: .98rem; margin: 0; }

/* ---------- Apps ---------- */
.app-grid { display: grid; gap: 20px; }
.coming-soon {
  display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 40px;
  padding: clamp(28px, 5vw, 56px); border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(135deg, var(--navy-900), var(--navy-800));
  color: var(--on-dark); overflow: hidden; position: relative;
}
.coming-soon h3 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.coming-soon p { color: var(--on-dark-muted); }
.coming-soon .text-link { color: #c9c2ff; font-weight: 600; text-decoration: none; }
.coming-soon .text-link:hover { text-decoration: underline; }

.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  padding: 6px 14px; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #d9d4ff; background: rgba(109, 93, 252, .18); border: 1px solid rgba(169, 156, 255, .3);
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #a99cff; animation: pulse 2.2s ease-in-out infinite; }

.coming-soon-visual { position: relative; height: 260px; }
.phone {
  position: absolute; bottom: 0; width: 120px; height: 236px; border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, .16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02)),
    linear-gradient(160deg, rgba(109, 93, 252, .45), rgba(59, 130, 246, .25));
  box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
}
.phone::before {
  content: ""; position: absolute; top: 10px; left: 50%; width: 36px; height: 6px; margin-left: -18px;
  border-radius: 6px; background: rgba(7, 14, 34, .55);
}
.phone::after {
  content: ""; position: absolute; left: 16px; right: 16px; top: 40px; height: 120px;
  background:
    linear-gradient(rgba(255,255,255,.22), rgba(255,255,255,.22)) 0 0 / 60% 10px no-repeat,
    linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)) 0 22px / 100% 8px no-repeat,
    linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)) 0 38px / 80% 8px no-repeat,
    linear-gradient(rgba(255,255,255,.10), rgba(255,255,255,.10)) 0 64px / 100% 52px no-repeat;
  border-radius: 4px;
}
.phone-1 { left: 8%; transform: rotate(-8deg); opacity: .65; animation: float 7s ease-in-out infinite; }
.phone-2 { left: 34%; bottom: 14px; z-index: 2; animation: float 7s ease-in-out -2.3s infinite; }
.phone-3 { left: 60%; transform: rotate(8deg); opacity: .65; animation: float 7s ease-in-out -4.6s infinite; }

/* Launched app cards (see template comment in index.html) */
.app-card {
  display: flex; gap: 20px; align-items: flex-start; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.app-icon { border-radius: 14px; flex: none; }
.app-card p { color: var(--slate); margin-bottom: .75em; }
.store-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-weight: 600; font-size: .95rem; }

/* ---------- Contact ---------- */
.contact { background: var(--surface-alt); border-top: 1px solid var(--line); text-align: center; }
.contact-inner { max-width: 44rem; }
.contact .section-lede { margin-bottom: 2rem; }
.email-placeholder {
  display: inline-block; padding: 14px 24px; border-radius: 999px;
  border: 1px dashed #c4c9d8; color: var(--slate); font-weight: 500; margin: 0;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--on-dark-muted); padding: 40px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.brand-footer { font-size: 1rem; }
.footer-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--on-dark); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.copyright { margin: 0; width: 100%; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .875rem; }

/* ---------- Legal page ---------- */
.page-hero {
  background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); color: var(--on-dark);
  padding: calc(var(--header-h) + 56px) 0 56px;
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: .35em; }
.page-hero p { color: var(--on-dark-muted); margin: 0; }
.prose { max-width: 46rem; padding-block: 56px 96px; }
.prose h2 { font-size: 1.4rem; margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose .note {
  padding: 16px 20px; border-radius: var(--radius-sm); background: var(--surface-alt);
  border: 1px solid var(--line); font-size: .95rem; color: var(--slate);
}

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 96px 0; }
.not-found h1 { color: #fff; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: rgba(7, 14, 34, .97); border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 8px 16px 20px; display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a { min-height: 48px; padding: 0 12px; border-radius: 10px; font-size: 1.05rem; }
  .site-nav .nav-cta { margin: 8px 0 0; justify-content: center; border-radius: 999px; }

  .about-grid { grid-template-columns: 1fr; gap: 8px; }
  .about-copy { padding-top: 0; }
  .coming-soon { grid-template-columns: 1fr; gap: 24px; }
  .coming-soon-visual { height: 220px; max-width: 360px; width: 100%; margin: 0 auto; }
  .phone { width: 100px; height: 200px; border-radius: 22px; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 48px); padding-bottom: 72px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* Hero entrance (CSS-only so it never flashes) */
.hero-in { animation: hero-in .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-in:nth-child(2) { animation-delay: .08s; }
.hero-in:nth-child(3) { animation-delay: .16s; }
.hero-in:nth-child(4) { animation-delay: .24s; }
@keyframes hero-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.not-found .hero-lede { margin-inline: auto; }

/* Logo image (generated by brand/tools/build_brand.py) */
.brand-logo { height: 29px; width: auto; }
.brand-footer .brand-logo { height: 25px; }

/* ---------- Privacy policy: numbered sections ---------- */
.policy { font-size: 1.0625rem; line-height: 1.75; }
.policy p { color: #374151; }
.policy-intro { font-size: 1.2rem; line-height: 1.7; color: var(--charcoal) !important; padding-bottom: 2rem; margin-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.policy section { scroll-margin-top: calc(var(--header-h) + 16px); }
.policy section + section { margin-top: 2.75rem; }
.policy h2 { display: flex; gap: .6rem; align-items: baseline; font-size: 1.35rem; margin: 0 0 .9rem; }
.policy-num { color: var(--accent-ink); font-variant-numeric: tabular-nums; min-width: 1.6em; }
.policy-contact {
  display: flex; flex-direction: column; gap: .35rem; margin-top: 1.25rem; padding: 22px 24px;
  font-style: normal; background: var(--surface-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.policy-contact strong { color: var(--navy-900); letter-spacing: .02em; }
