/* DOC 24 Enterprises — Production stylesheet */

:root {
  /* Color */
  --ink: #0B0D12;
  --ink-soft: #1B1F2A;
  --muted: #5B6478;
  --muted-soft: #8A93A6;
  --line: #E6E8EE;
  --line-soft: #F1F3F7;
  --bg: #FFFFFF;
  --bg-soft: #FAFAFB;
  --bg-tint: #F6F5FC;
  --accent: #4338CA;        /* indigo-700 */
  --accent-deep: #3730A3;   /* indigo-800 */
  --accent-soft: #EEF0FF;
  --accent-glow: rgba(67, 56, 202, 0.10);
  --success: #047857;

  /* Type */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Satoshi', 'Inter', ui-sans-serif, system-ui, sans-serif;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(13, 16, 28, 0.04), 0 1px 1px rgba(13, 16, 28, 0.03);
  --shadow-md: 0 6px 24px -8px rgba(13, 16, 28, 0.08), 0 2px 6px rgba(13, 16, 28, 0.04);
  --shadow-lg: 0 24px 48px -16px rgba(13, 16, 28, 0.14), 0 6px 16px rgba(13, 16, 28, 0.06);

  /* Layout */
  --container: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(67, 56, 202, 0.18);
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "cv11";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  /* iPhone safe-area padding (landscape notches) */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* Touch targets: ensure good touch feedback on iOS Safari */
a, button, .btn, [role="button"], input, select, textarea {
  -webkit-tap-highlight-color: rgba(67, 56, 202, 0.18);
  touch-action: manipulation; /* eliminates 300ms tap delay */
}

/* Prevent iOS form zoom — inputs must be ≥ 16px font-size */
input, select, textarea {
  font-size: 16px;
  font-family: inherit;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

/* Container */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  letter-spacing: -0.035em;
  line-height: 1.04;
}
h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.025em;
}
h3 {
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.015em;
  line-height: 1.25;
}
p { margin: 0 0 1em; color: var(--ink-soft); }
.lede { font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); line-height: 1.55; max-width: 60ch; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: inline-flex; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--ink);
}
.nav-toggle:active { background: var(--line-soft); }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 820px) {
  .nav .nav-links { display: none; }
  .nav .nav-cta { display: none; }
  .nav .nav-toggle { display: inline-flex; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 68px;
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--gutter) 28px;
    gap: 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open .nav-cta {
    display: inline-flex;
    margin-top: 4px;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 16px -6px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}
.btn-ghost:hover { color: var(--accent); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 144px) 0 clamp(64px, 10vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 80%;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--accent-soft) 0%, transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(67,56,202,0.05) 0%, transparent 70%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(11,13,18,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11,13,18,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.7;
}
.hero-inner { max-width: 880px; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { font-size: clamp(18px, 1.45vw, 20px); color: var(--muted); max-width: 56ch; }
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.hero-tag-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

/* Section */
section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .eyebrow { margin-bottom: 14px; display: block; }
.section-head h2 { margin-bottom: 16px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .cards { grid-template-columns: 1fr; } }

.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: #fff;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: #d6daea;
  box-shadow: var(--shadow-md);
}
.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }

/* Approach (value props) */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.values .value {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
}
.values .value:last-child { border-right: 0; }
.values .value-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}
.values .value h3 { margin-bottom: 10px; font-size: 22px; }
.values .value p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 920px) {
  .values { grid-template-columns: 1fr; }
  .values .value { border-right: 0; border-bottom: 1px solid var(--line); }
  .values .value:last-child { border-bottom: 0; }
}

/* Product showcase */
.product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.product-copy h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 14px; }
.product-copy p { color: var(--muted); font-size: 16px; }
.product-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.product-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.product-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(67,56,202,0.18) 0%, transparent 60%),
    linear-gradient(135deg, #1B1F2A 0%, #0B0D12 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.product-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
}
.product-visual-content {
  position: relative;
  text-align: center;
  padding: 32px;
}
.product-visual-content .pv-mark {
  width: 56px; height: 56px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
}
.product-visual-content h4 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: #fff;
}
.product-visual-content p {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}
@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; padding: 28px; gap: 28px; }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-grid p { font-size: 17px; color: var(--ink-soft); line-height: 1.65; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.chip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* Stats / facts row inside About */
.facts {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fact {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-soft);
}
.fact .fact-k { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.fact .fact-v { font-size: 13px; color: var(--muted); margin-top: 4px; }
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
}

/* Contact */
.contact-block {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(36px, 6vw, 64px);
  background:
    radial-gradient(80% 100% at 100% 0%, var(--accent-soft) 0%, transparent 60%),
    #fff;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-block h2 { margin-bottom: 16px; }
.contact-block p { color: var(--muted); margin: 0 0 24px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.2s ease;
}
.contact-list a:hover { color: var(--accent); }
.contact-list svg { color: var(--accent); width: 18px; height: 18px; }
@media (max-width: 820px) {
  .contact-block { grid-template-columns: 1fr; gap: 24px; }
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-brand p { font-size: 13px; color: var(--muted); margin: 12px 0 0; max-width: 30ch; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* Interior pages (privacy, support) */
.page-hero {
  padding: clamp(64px, 9vw, 112px) 0 clamp(36px, 5vw, 56px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%);
}
.page-hero h1 {
  font-size: clamp(34px, 4.4vw, 54px);
}
.page-hero .lede { margin-top: 18px; }
.page-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.page-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-soft); }

.prose {
  max-width: 720px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.prose h2 {
  font-size: clamp(22px, 2vw, 28px);
  margin: 48px 0 14px;
  color: var(--ink);
}
.prose h3 {
  font-size: 18px;
  margin: 28px 0 8px;
  color: var(--ink);
}
.prose p { margin: 0 0 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.prose a:hover { border-bottom-color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 600; }

/* Support layout */
.support-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  align-items: start;
}
.support-aside { position: sticky; top: 96px; }
@media (max-width: 820px) {
  .support-layout { grid-template-columns: 1fr; gap: 36px; }
  .support-aside { position: static; }
}

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin-top: 32px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: #d6daea; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Reveal animation — only applies once JS is ready, so no-JS users see content */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.js-ready .reveal.in {
  opacity: 1;
  transform: none;
}

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

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

/* =========================================================
   Mobile polish (≤ 600px) — tap target + legibility tuning
   ========================================================= */
@media (max-width: 600px) {
  /* Bump small uppercase eyebrows for better mobile legibility */
  .eyebrow { font-size: 13px; }

  /* Larger inline-link tap area (no visual change — just touch padding) */
  .footer-col a,
  .footer-cols a,
  .contact-list a,
  .nav-links a,
  .prose a {
    padding-block: 6px;
  }

  /* Mobile nav menu items need fat tap zones */
  .nav.is-open .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line-soft);
  }
  .nav.is-open .nav-links a:last-child { border-bottom: none; }

  /* Footer email span: better wrapping + legibility */
  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer-legal span { word-break: break-all; }

  /* Card hover doesn't make sense on touch — disable lift transform */
  .card:hover { transform: none; }

  /* Hero CTAs stack better on tiny screens with full-width buttons */
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Bottom safe-area for iPhone home-indicator clearance on bottom CTAs */
  .footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}

/* Hover-only on devices that actually have hover (mouse/trackpad) */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: var(--shadow-sm); }
  .btn-primary:hover { background: var(--accent); }
  .btn-secondary:hover { border-color: var(--line); }
  .faq-item:hover { border-color: var(--line); }
}
