/* Tidal — shared stylesheet for solution pages.
   Design tokens mirror the homepage so every page feels like one product. */

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

:root {
  --blue:    #0057FF;
  --blue-dk: #003FBF;
  --bg:      #F5F7FA;
  --white:   #FFFFFF;
  --text:    #1A1A2E;
  --muted:   #6B7280;
  --border:  #E5E7EB;
  --radius:  12px;
  --maxw:    1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

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

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 64px;
}

nav .brand { display: flex; align-items: center; }
nav .brand img { height: 36px; }

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
}

nav ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--blue); }

nav .cta {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
}

nav .cta:hover { background: var(--blue-dk); }

/* ── Layout wrapper ── */
.wrap { max-width: var(--maxw); margin: 0 auto; }

/* ── Breadcrumb ── */
.breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 5% 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 8px; color: var(--border); }
.breadcrumb li[aria-current] { color: var(--text); font-weight: 600; }

/* ── Page hero ── */
.page-hero {
  padding: 56px 5% 64px;
  background: linear-gradient(160deg, #EEF3FF 0%, var(--bg) 65%);
}
.page-hero .inner { max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 760px;
  margin-bottom: 20px;
}
.page-hero h1 span { color: var(--blue); }
.page-hero .lede {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--blue-dk); }

.btn-outline {
  background: transparent;
  color: var(--blue);
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--blue);
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--blue); color: var(--white); }

/* ── Section ── */
section.block { padding: 68px 5%; }
section.block:nth-of-type(even) { background: var(--white); }
.block .inner { max-width: var(--maxw); margin: 0 auto; }

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
h2.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  max-width: 720px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 680px;
  margin-bottom: 44px;
}

/* Prose intro paragraphs */
.prose p { max-width: 720px; margin-bottom: 18px; color: #374151; font-size: 1.05rem; }
.prose p:last-child { margin-bottom: 0; }

/* ── Feature / benefit grid ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
section.block:nth-of-type(even) .card { background: var(--white); }
.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.card p { color: var(--muted); font-size: 0.97rem; }
.card .ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: #E7EFFF;
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 800;
  margin-bottom: 16px;
}

/* ── Use-case list ── */
.usecases { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.usecase {
  border-left: 3px solid var(--blue);
  padding: 4px 0 4px 22px;
}
.usecase h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.usecase p { color: var(--muted); font-size: 0.97rem; }

/* ── Checklist ── */
.checklist { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 32px; max-width: 860px; }
.checklist li { position: relative; padding-left: 30px; color: #374151; }
.checklist li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 800;
}

/* ── CTA band ── */
.cta-band {
  background: var(--text);
  color: var(--white);
  padding: 64px 5%;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 14px; }
.cta-band p { color: #C7CBD4; max-width: 560px; margin: 0 auto 30px; }

/* ── FAQ ── */
.faq-list { max-width: 800px; display: flex; flex-direction: column; gap: 12px; }
details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow: hidden;
}
section.block:nth-of-type(even) details { background: var(--white); }
details[open] { background: var(--white); }
details summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] summary::after { content: '−'; }
details .answer {
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ── Related links ── */
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.related a {
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
}
section.block:nth-of-type(even) .related a { background: var(--white); }
.related a:hover { border-color: var(--blue); transform: translateY(-2px); }
.related a strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.related a span { color: var(--muted); font-size: 0.94rem; }

/* ── Footer ── */
footer {
  background: var(--text);
  color: #9CA3AF;
  padding: 44px 5% 32px;
  font-size: 0.9rem;
}
footer .inner { max-width: var(--maxw); margin: 0 auto; }
footer .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px;
  margin-bottom: 28px;
}
footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer a { color: #9CA3AF; text-decoration: none; }
footer a:hover { color: var(--white); }
footer .legal { border-top: 1px solid #2A2A40; padding-top: 22px; font-size: 0.82rem; }

@media (max-width: 720px) {
  nav ul { display: none; }
}
