/* ==========================================================================
   Tolltod Solutions — Site Stylesheet
   Theme: white / black / grey, midnight-blue accent, subtle night-sky dark surfaces
   ========================================================================== */

:root {
  --white: #ffffff;
  --off-white: #fafafa;
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --grey-800: #333333;
  --grey-600: #5c5c5c;
  --grey-400: #8a8a8a;
  --grey-300: #b8b8b8;
  --grey-200: #e2e2e2;
  --grey-100: #f0f0f0;
  --navy: #1e3a8a;
  --navy-deep: #14245a;
  --navy-soft: #eef1fb;
  --navy-light: #7c9bec;
  --navy-glow: rgba(30, 58, 138, 0.20);
  --night: #0b1437;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, 0.06);
  --shadow-md: 0 8px 24px rgba(17, 17, 17, 0.08);
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-soft);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

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

section {
  padding: 96px 0;
  scroll-margin-top: 76px;
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
}

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.15;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  margin: 0 0 16px;
  color: var(--grey-600);
}

.lede {
  font-size: 1.15rem;
  color: var(--grey-600);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head .eyebrow {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--grey-600);
  background: var(--grey-100);
  border: 1px solid var(--grey-200);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
  box-shadow: 0 0 0 3px var(--navy-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(30, 58, 138, 0.22);
}

.btn-primary .arrow {
  color: var(--navy);
  transition: transform 0.15s ease;
}

.btn-primary:hover .arrow {
  transform: translateX(3px);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--grey-300);
}

.btn-secondary:hover {
  border-color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--grey-200);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  position: relative;
  box-shadow: 0 0 0 0 rgba(30, 58, 138, 0);
}

.brand .mark::after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--grey-600);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.2s ease;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--grey-200);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.18s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--grey-100);
  }

  .nav-cta .btn-secondary {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}

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

.hero {
  position: relative;
  padding-top: 88px;
  padding-bottom: 64px;
  overflow: hidden;
}

/* Subtle midnight-blue glow behind the hero */
.hero::before {
  content: "";
  position: absolute;
  top: -160px;
  right: -120px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at center, var(--navy-glow) 0%, rgba(30, 58, 138, 0.05) 40%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .accent {
  color: var(--navy);
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.83rem;
  color: var(--grey-400);
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-line span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--navy);
}

.hero-visual {
  background: var(--off-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.hero-visual .visual-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.hero-visual .visual-head p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-visual .visual-figure {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink);
}

.hero-visual .visual-figure .up {
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: 6px;
}

.sparkline-wrap {
  margin: 18px 0 8px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--grey-200);
}

.metric-row .metric-label {
  font-size: 0.72rem;
  color: var(--grey-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.metric-row .metric-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- Logo strip ---------- */

.logo-strip {
  padding: 40px 0;
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}

.logo-strip p {
  text-align: center;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--grey-400);
  margin-bottom: 24px;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  color: var(--grey-300);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

/* ---------- Problem / Solution comparison ---------- */

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--grey-200);
}

.compare-card.bad {
  background: var(--off-white);
}

.compare-card.good {
  background: var(--ink);
  border-color: var(--ink);
}

.compare-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.compare-card.good h3,
.compare-card.good p {
  color: var(--white);
}

.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--grey-600);
  border-bottom: 1px solid var(--grey-200);
}

.compare-card.good .compare-list li {
  color: var(--grey-200);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-card.good .icon-check {
  background: rgba(124, 155, 236, 0.20);
  color: var(--navy-light);
}

.compare-list li:last-child {
  border-bottom: none;
}

.icon-x,
.icon-check {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-top: 1px;
}

.icon-x {
  background: var(--navy-soft);
  color: var(--navy);
}

.icon-check {
  background: rgba(16, 130, 175, 0.15);
  color: var(--navy);
}

/* ---------- Services ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

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

@media (max-width: 620px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--grey-300);
}

.service-card .num {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.05em;
  margin-bottom: 14px;
  display: block;
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

/* ---------- Process ---------- */

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

@media (max-width: 900px) {
  .process-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .process-list {
    grid-template-columns: 1fr;
  }
}

.process-step {
  position: relative;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.process-step:nth-child(even) {
  border-top-color: var(--navy);
}

.process-step .step-index {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--grey-400);
  margin-bottom: 14px;
  display: block;
}

.process-step p {
  font-size: 0.93rem;
  margin-bottom: 0;
}

/* ---------- Why us ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.why-item {
  display: flex;
  gap: 16px;
}

.why-item .icon-check {
  width: 26px;
  height: 26px;
  font-size: 13px;
  margin-top: 3px;
}

.why-item h3 {
  margin-bottom: 6px;
}

.why-item p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

/* ---------- Tools / stack ---------- */

.stack-section {
  background: var(--off-white);
  border-top: 1px solid var(--grey-200);
  border-bottom: 1px solid var(--grey-200);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .stack-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .stack-grid {
    grid-template-columns: 1fr;
  }
}

.stack-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  padding: 22px;
}

.stack-card .stack-name {
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stack-card .stack-name .featured-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--navy);
}

.stack-card p {
  font-size: 0.85rem;
  margin-bottom: 0;
  color: var(--grey-600);
}

.stack-card a.stack-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--navy);
  padding-bottom: 1px;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  border-top: 1px solid var(--grey-200);
}

.faq-item {
  border-bottom: 1px solid var(--grey-200);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  color: var(--ink);
  font-size: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .plus {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--grey-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--grey-600);
  transition: 0.15s ease;
}

.faq-item[open] summary .plus {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 4px 24px;
  color: var(--grey-600);
  font-size: 0.94rem;
  max-width: 680px;
}

.faq-item .faq-body p {
  margin-bottom: 0;
}

/* ---------- Final CTA ---------- */

.cta-band {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
}

@media (max-width: 600px) {
  .cta-band {
    padding: 48px 24px;
  }
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band p {
  color: var(--grey-300);
}

.cta-band .hero-cta-row {
  justify-content: center;
}

.cta-band .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.cta-band .btn-secondary:hover {
  border-color: var(--white);
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--ink);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info-item {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--grey-200);
}

.contact-info-item:first-child {
  padding-top: 0;
}

.contact-info-item .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--grey-400);
  margin-bottom: 4px;
}

.contact-info-item .value {
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}

.contact-form {
  background: var(--off-white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--ink);
}

.form-note {
  font-size: 0.78rem;
  color: var(--grey-400);
  margin-top: 14px;
  margin-bottom: 0;
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--navy-soft);
  color: var(--navy);
  border: 1px solid rgba(16, 130, 175, 0.3);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.form-success.visible {
  display: flex;
}

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

.site-footer {
  border-top: 1px solid var(--grey-200);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.footer-grid h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--grey-400);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--grey-600);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--grey-200);
  font-size: 0.82rem;
  color: var(--grey-400);
}

.footer-bottom .legal-links {
  display: flex;
  gap: 20px;
}

.footer-fineprint {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--grey-100);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--grey-400);
}

.footer-bottom a:hover {
  color: var(--ink);
}

/* ---------- Legal pages ---------- */

.legal-page {
  padding: 64px 0 96px;
}

.legal-page .container {
  max-width: 820px;
}

.legal-page h1 {
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--grey-400);
  font-size: 0.88rem;
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin-top: 40px;
}

.legal-page h3 {
  font-size: 1.02rem;
  margin-top: 24px;
}

.legal-page ul,
.legal-page ol {
  color: var(--grey-600);
  padding-left: 22px;
}

.legal-page li {
  margin-bottom: 8px;
}

.legal-page a {
  color: var(--ink);
  border-bottom: 1px solid var(--navy);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--grey-600);
  margin-bottom: 32px;
}

.back-link:hover {
  color: var(--ink);
}

/* ---------- Utility ---------- */

.hl {
  color: var(--navy-deep);
  font-weight: 600;
}

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

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

::selection {
  background: var(--ink);
  color: var(--white);
}


/* ==========================================================================
   Night-sky dark surfaces (midnight blue + tiny stars)
   ========================================================================== */
.compare-card.good,
.cta-band,
.hero-visual {
  background-color: var(--night);
  background-image:
    radial-gradient(1.3px 1.3px at 26px 32px, rgba(255,255,255,0.90), transparent),
    radial-gradient(1px 1px at 130px 84px, rgba(196,212,255,0.60), transparent),
    radial-gradient(1.4px 1.4px at 210px 44px, rgba(255,255,255,0.75), transparent),
    radial-gradient(1px 1px at 74px 168px, rgba(176,198,255,0.55), transparent),
    radial-gradient(1.2px 1.2px at 286px 150px, rgba(255,255,255,0.65), transparent),
    radial-gradient(1px 1px at 332px 70px, rgba(150,178,255,0.50), transparent),
    radial-gradient(1.1px 1.1px at 180px 210px, rgba(255,255,255,0.55), transparent),
    linear-gradient(160deg, #101d49 0%, var(--night) 62%);
  background-repeat: repeat, repeat, repeat, repeat, repeat, repeat, repeat, no-repeat;
  background-size: 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px, 360px 360px, 100% 100%;
  border-color: #16224e;
}

/* Hero visual panel flips to night-sky styling */
.hero-visual .visual-head p { color: #9db0e8; }
.hero-visual .visual-figure { color: #ffffff; }
.hero-visual .visual-figure .up { color: var(--navy-light); }
.hero-visual .metric-row { border-top-color: rgba(255,255,255,0.12); }
.hero-visual .metric-label { color: #8fa2d8; }
.hero-visual .metric-value { color: #ffffff; }
