/* Tola — shared stylesheet
   Design system: restrained enterprise SaaS, light surface, one accent.
   Typography-led. No decorative gradients. One file, imported by every page. */

:root {
  --bg:          #fafaf9;
  --surface:     #ffffff;
  --surface-2:   #f5f5f4;
  --surface-3:   #efeeeb;
  --ink:         #0a0a0a;
  --ink-2:       #1c1c1a;
  --muted:       #52525b;
  --faint:       #71717a;
  --faintest:    #a1a1aa;
  --border:      rgba(10, 10, 10, 0.08);
  --border-2:    rgba(10, 10, 10, 0.14);
  --border-3:    rgba(10, 10, 10, 0.22);
  --accent:      #1d4ed8;
  --accent-ink:  #1e3a8a;
  --accent-soft: rgba(29, 78, 216, 0.08);
  --warn:        #b45309;
  --warn-soft:   #fef3c7;
  --ok:          #15803d;
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   14px;
  --radius-xl:   20px;
  --shadow-sm:   0 1px 2px rgba(10, 10, 10, 0.04), 0 1px 1px rgba(10, 10, 10, 0.03);
  --shadow:      0 2px 4px rgba(10, 10, 10, 0.04), 0 8px 24px rgba(10, 10, 10, 0.06);
  --measure:     68ch;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Focus */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; }

/* Layout */
.container { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.container-narrow { width: min(820px, calc(100% - 48px)); margin: 0 auto; }

/* Serif accent for pull quotes / editorial moments */
.serif {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.italic { font-style: italic; }

/* Eyebrow / meta labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

/* Headings */
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.025em; color: var(--ink); }
h1 {
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 500;
}
h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
h3 { font-size: 20px; line-height: 1.3; }
h4 { font-size: 16px; line-height: 1.4; }
p { color: var(--muted); max-width: var(--measure); }
p.lead { font-size: 19px; line-height: 1.55; color: var(--ink-2); }

/* ------- Navigation ------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250, 250, 249, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.02em;
}
.brand-mark { width: 28px; height: 28px; border-radius: 6px; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px; color: var(--muted);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links .nav-cta { color: var(--ink); font-weight: 500; }

/* ------- Buttons ------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-2); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { color: var(--muted); padding: 10px 0; }
.btn-ghost:hover { color: var(--ink); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(2px); }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-note { margin-top: 14px; font-size: 13px; color: var(--faint); }

/* ------- Breadcrumb ------- */
.breadcrumb {
  padding: 28px 0 0;
  font-size: 13px; color: var(--faint);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { margin: 0 8px; color: var(--faintest); }

/* ------- Hero ------- */
.hero { padding: 72px 0 72px; }
.hero.industry { padding: 48px 0 80px; }
.hero h1 { max-width: 15ch; margin-top: 24px; }
.hero .lead { margin-top: 28px; max-width: 60ch; }
.hero .cta-row { margin-top: 36px; }

/* ------- Section primitives ------- */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-head {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px;
  margin-bottom: 56px; align-items: end;
}
.section-head h2 { max-width: 15ch; }
.section-head p { font-size: 17px; }
.section-divider { height: 1px; background: var(--border); border: 0; }

/* Dark section variant (used sparingly) */
.section-dark {
  background: var(--ink);
  color: #e4e4e7;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fafaf9; }
.section-dark p { color: #a1a1aa; }
.section-dark .eyebrow { color: #d4d4d8; }
.section-dark .eyebrow .dot { background: #fafaf9; }

/* ------- Industry grid (homepage) ------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.industry-card {
  background: var(--surface);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 240px;
  transition: background .15s ease;
  position: relative;
}
.industry-card:hover { background: var(--surface-2); }
.industry-card .tag {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); font-weight: 500;
}
.industry-card h3 {
  font-size: 24px; letter-spacing: -0.02em; line-height: 1.15;
  margin-top: 4px;
}
.industry-card p { font-size: 15px; }
.industry-card .arrow-link {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.industry-card .arrow-link .arrow { transition: transform .15s ease; }
.industry-card:hover .arrow-link .arrow { transform: translateX(3px); }

/* ------- Workflow stepper (vertical) ------- */
.workflow {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 72px;
  align-items: start;
}
.workflow .intro { position: sticky; top: 96px; }
.workflow h2 { margin-top: 20px; }
.workflow .intro p { margin-top: 20px; font-size: 17px; }
.steps {
  display: flex; flex-direction: column;
  counter-reset: step;
  border-left: 1px solid var(--border-2);
}
.step {
  position: relative;
  padding: 0 0 36px 32px;
  counter-increment: step;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: -14px; top: 0;
  width: 28px; height: 28px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  font-size: 11px; font-weight: 600;
  color: var(--ink);
  display: grid; place-items: center;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.step h4 {
  font-size: 17px; font-weight: 600; letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.step p { font-size: 15px; max-width: 60ch; }

/* ------- Integrations grid ------- */
.integrations {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.integration-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.integration-card .kind {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--faint); font-weight: 500; margin-bottom: 8px;
}
.integration-card .name { font-size: 15px; font-weight: 500; color: var(--ink); }
.integration-card .detail { font-size: 13px; color: var(--muted); margin-top: 6px; }

.integrations-note {
  margin-top: 24px; font-size: 13px; color: var(--faint);
  max-width: 60ch;
}

/* ------- Oversight / principle cards ------- */
.oversight {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px;
  align-items: start;
}
.oversight h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.oversight p { margin-top: 10px; font-size: 15px; }
.oversight ul { list-style: none; display: grid; gap: 10px; }
.oversight li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 15px; color: var(--ink-2);
}
.oversight li::before {
  content: "";
  width: 14px; height: 14px; margin-top: 5px; flex: 0 0 14px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--accent) 0 3px, transparent 3px);
}

/* ------- Problem / pains ------- */
.pains {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pain {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.pain .label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--warn); font-weight: 600; margin-bottom: 14px;
}
.pain h4 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.015em; }
.pain p { font-size: 14px; }

/* ------- Pilot strip ------- */
.pilot {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pilot-step {
  background: var(--surface);
  padding: 28px 28px 32px;
}
.pilot-step .week {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 12px;
}
.pilot-step h4 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.015em; }
.pilot-step p { font-size: 14px; }

/* ------- FAQ ------- */
.faq { display: grid; gap: 0; }
.faq details {
  border-top: 1px solid var(--border-2);
  padding: 22px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--border-2); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  cursor: pointer;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 22px; color: var(--faint);
  transform: translateY(-2px); line-height: 1;
  transition: transform .15s ease;
  font-weight: 300;
}
.faq details[open] summary::after { content: "–"; }
.faq details p {
  margin-top: 14px; max-width: 72ch; font-size: 15px; color: var(--muted);
}

/* ------- CTA band ------- */
.cta-band {
  background: var(--ink); color: #fafaf9;
  padding: 88px 0;
}
.cta-band-inner {
  display: grid; grid-template-columns: 1.3fr 1fr;
  gap: 48px; align-items: end;
}
.cta-band h2 {
  color: #fafaf9;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.05;
  max-width: 18ch;
}
.cta-band p { color: #a1a1aa; font-size: 17px; margin-bottom: 24px; max-width: 48ch; }
.cta-band .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn-primary:hover { background: #e4e4e7; }
.cta-band .btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.2); }
.cta-band .btn-secondary:hover { border-color: #fff; }

/* ------- Footer ------- */
.footer {
  background: var(--ink); color: #a1a1aa;
  padding: 48px 0 40px;
  font-size: 13px;
}
.footer a { color: #d4d4d8; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  color: #a1a1aa; margin-top: 14px; max-width: 36ch; font-size: 13px;
}
.footer-col h5 {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #e4e4e7; font-weight: 500; margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-base {
  padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #71717a;
}
.footer-base a:hover { color: #fff; }

/* ------- Trust strip (home) ------- */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-item .label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--faint); font-weight: 500; margin-bottom: 8px;
}
.trust-item .value {
  font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em;
}
.trust-item .value small {
  display: block; font-weight: 400; color: var(--muted); font-size: 13px;
  letter-spacing: 0; margin-top: 2px;
}

/* ------- Policy pages (privacy, terms, security) ------- */
.policy { padding: 48px 0 96px; }
.policy h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.policy .updated { font-size: 13px; color: var(--faint); margin-bottom: 40px; }
.policy h2 { font-size: 22px; margin: 40px 0 12px; }
.policy h3 { font-size: 17px; margin: 24px 0 10px; }
.policy p, .policy li { font-size: 15px; color: var(--ink-2); max-width: 72ch; line-height: 1.65; }
.policy ul { padding-left: 24px; margin: 10px 0; }
.policy li { margin-bottom: 6px; }
.policy a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* ------- Demo page block ------- */
.demo-callout {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  margin-top: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.demo-callout h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 10px; }
.demo-callout p { font-size: 15px; margin-bottom: 20px; }
.demo-note {
  margin-top: 20px; padding: 14px 16px;
  background: var(--warn-soft);
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: var(--radius);
  font-size: 13px; color: var(--warn);
}

/* ------- Responsive ------- */
@media (max-width: 980px) {
  .section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .industry-grid { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; gap: 40px; }
  .workflow .intro { position: static; }
  .integrations { grid-template-columns: repeat(2, 1fr); }
  .pains { grid-template-columns: 1fr; }
  .pilot { grid-template-columns: 1fr; }
  .oversight { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
  .cta-band-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .demo-callout { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 32px, 1200px); }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 56px 0; }
  .section { padding: 64px 0; }
  .integrations { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
