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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

body {
  min-height: 100vh;
  line-height: 1.5;
  overflow-wrap: break-word;
  word-break: normal;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

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

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

table {
  border-collapse: collapse;
}

/* Shared form styles */
.leadform {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
  width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
  position: relative;
}

.leadform .form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  position: relative;
  padding-bottom: 1.2rem; /* reserved so .error-msg never shifts inputs */
}

.leadform label {
  font-weight: 600;
}

.leadform input[type="text"],
.leadform input[type="email"],
.leadform input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.375rem;
  background: #fff;
}

/* intl-tel-input: keep full-width control; do not crush the number field */
.leadform .iti {
  display: block;
  width: 100%;
  min-width: 0;
}

.leadform .iti input.iti__tel-input,
.leadform .iti input[type="tel"] {
  width: 100% !important;
  box-sizing: border-box;
  min-height: 2.75rem;
  height: auto !important;
}

.leadform .iti__country-container {
  z-index: 2;
}

.leadform .iti--separate-dial-code .iti__selected-dial-code {
  margin-left: 0.35rem;
  white-space: nowrap;
}

.leadform button[type="submit"] {
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 0.375rem;
  background: #ea580c;
  color: #fff;
  font-weight: 600;
}

/* Form-level error (leadform-open) must not occupy grid space */
.leadform > .error-msg {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  margin: 0;
  pointer-events: none;
}

.leadform .error-msg {
  color: #b91c1c;
  font-size: 0.8125rem;
  line-height: 1.2;
  font-weight: 600;
}

.leadform .form-group .error-msg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  min-height: 1.1rem;
}

.leadform .error-msg.hide,
.leadform .hide {
  display: none !important;
}

.form-preloader-orange {
  width: 1.5rem;
  height: 1.5rem;
  border: 3px solid #fed7aa;
  border-top-color: #ea580c;
  border-radius: 50%;
  animation: form-spin 0.8s linear infinite;
}

.form-preloader-orange.hidden {
  display: none;
}

@keyframes form-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Shared template styles */
@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/inter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #f9fafb;
  --surface: #f9fafb;
  --surface-container-low: #f1f4f3;
  --surface-container: #ebefed;
  --surface-container-lowest: #ffffff;
  --on-surface: #181c1c;
  --on-surface-variant: #3e4947;
  --primary: #0f766e;
  --primary-container: #0f766e;
  --primary-strong: #0d6059;
  --primary-soft: rgba(15, 118, 110, 0.12);
  --on-primary: #ffffff;
  --secondary: #515f74;
  --secondary-container: #d5e3fc;
  --outline: #6e7977;
  --outline-variant: #bdc9c6;
  --card-border: #e2e8f0;
  --inverse-surface: #2d3130;
  --container-max: 1280px;
  --margin-mobile: 16px;
  --margin-desktop: 48px;
  --section-gap: 120px;
  --gutter: 24px;
  --radius-card: 1.5rem;
  --radius-input: 1rem;
}

body.template-stitch-saas {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  overflow-wrap: break-word;
  word-break: normal;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.template-stitch-saas h1,
body.template-stitch-saas h2,
body.template-stitch-saas h3,
body.template-stitch-saas .brand-name,
body.template-stitch-saas .footer-logo,
body.template-stitch-saas .metric-value,
body.template-stitch-saas .dashboard-title {
  font-family: "Manrope", "Inter", system-ui, sans-serif;
}

body.template-stitch-saas .ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom right, var(--surface), var(--surface-container-low));
}

body.template-stitch-saas .container {
  width: min(var(--container-max), 100% - 2 * var(--margin-mobile));
  margin-inline: auto;
}

@media (min-width: 768px) {
  body.template-stitch-saas .container {
    width: min(var(--container-max), 100% - 2 * var(--margin-desktop));
  }
}

body.template-stitch-saas .glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

body.template-stitch-saas .bento-card {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 20px -2px rgba(15, 118, 110, 0.05);
  transition: all 0.3s ease;
  border-radius: var(--radius-card);
}

body.template-stitch-saas .bento-card:hover {
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.1);
  border-color: rgba(15, 118, 110, 0.35);
  transform: translateY(-2px);
}

body.template-stitch-saas .text-gradient {
  color: var(--primary);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

/* Header */
body.template-stitch-saas .saas-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 251, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(189, 201, 198, 0.3);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.template-stitch-saas .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

body.template-stitch-saas .brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--on-surface);
}

body.template-stitch-saas .header-nav {
  display: none;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  body.template-stitch-saas .header-nav { display: flex; }
}

body.template-stitch-saas .header-nav a {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 0.2s, opacity 0.2s;
}

body.template-stitch-saas .header-nav a:hover,
body.template-stitch-saas .header-nav a[aria-current="page"] {
  color: var(--primary);
}

body.template-stitch-saas .header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

body.template-stitch-saas .menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border: 0;
  background: transparent;
  color: var(--on-surface);
  cursor: pointer;
}

@media (min-width: 768px) {
  body.template-stitch-saas .menu-toggle { display: none; }
}

body.template-stitch-saas .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius-input);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

body.template-stitch-saas .btn-primary {
  background: var(--primary-container);
  color: var(--on-primary);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

body.template-stitch-saas .btn-primary:hover {
  background: var(--primary-strong);
  opacity: 1;
}

body.template-stitch-saas .btn-outline {
  background: transparent;
  border: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
}

body.template-stitch-saas .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

body.template-stitch-saas .header-actions .btn-primary {
  display: none;
}

@media (min-width: 768px) {
  body.template-stitch-saas .header-actions .btn-primary { display: inline-flex; }
}

/* Main */
body.template-stitch-saas .site-main {
  flex: 1;
  padding-top: 1rem;
}

body.template-stitch-saas .block {
  margin-bottom: var(--section-gap);
}

body.template-stitch-saas .section-intro {
  margin-bottom: 3rem;
}

body.template-stitch-saas .section-intro h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.template-stitch-saas .section-intro p {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
  max-width: 42rem;
}

body.template-stitch-saas .section-intro-center {
  text-align: center;
}

body.template-stitch-saas .section-intro-center p {
  margin-inline: auto;
}

/* Bento hero */
body.template-stitch-saas .bento-hero {
  margin-bottom: var(--section-gap);
}

body.template-stitch-saas .hero-intro {
  text-align: center;
  margin-bottom: 4rem;
}

body.template-stitch-saas .hero-intro h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

body.template-stitch-saas .hero-sub {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
  max-width: 42rem;
  margin-inline: auto;
}

body.template-stitch-saas .bento-grid {
  display: grid;
  gap: var(--gutter);
}

body.template-stitch-saas .hero-bento {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  body.template-stitch-saas .hero-bento {
    grid-template-columns: repeat(12, 1fr);
  }

  body.template-stitch-saas .hero-dashboard {
    grid-column: span 8;
  }

  body.template-stitch-saas .hero-metrics {
    grid-column: span 4;
  }
}

body.template-stitch-saas .hero-dashboard {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  min-height: 400px;
  position: relative;
  overflow: hidden;
}

body.template-stitch-saas .dashboard-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, var(--primary-soft), transparent 60%);
  opacity: 0.6;
  z-index: 0;
}

body.template-stitch-saas .dashboard-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  background: var(--surface-container-lowest);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
}

body.template-stitch-saas .dashboard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--outline-variant);
}

body.template-stitch-saas .dashboard-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--on-surface);
}

body.template-stitch-saas .dashboard-label {
  font-size: 0.8125rem;
  color: var(--on-surface-variant);
}

body.template-stitch-saas .dashboard-periods {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

body.template-stitch-saas .dashboard-periods span {
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--on-surface-variant);
  background: var(--surface-container-low);
}

body.template-stitch-saas .dashboard-periods span.active {
  color: #0a5049;
  background: var(--primary-soft);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

body.template-stitch-saas .dashboard-chart {
  flex: 1;
  min-height: 200px;
  display: flex;
  align-items: stretch;
}

body.template-stitch-saas .dashboard-chart svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 12px rgba(15, 118, 110, 0.1));
}

body.template-stitch-saas .hero-metrics {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}

body.template-stitch-saas .metric-card {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.template-stitch-saas .metric-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

body.template-stitch-saas .metric-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #0a5049;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

body.template-stitch-saas .metric-header h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

body.template-stitch-saas .metric-value-row {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}

body.template-stitch-saas .metric-value {
  font-size: 1.875rem;
  font-weight: 700;
}

body.template-stitch-saas .metric-suffix {
  color: var(--on-surface-variant);
  padding-bottom: 0.25rem;
  font-size: 1rem;
}

body.template-stitch-saas .metric-card > p {
  margin-top: 0.5rem;
  color: var(--on-surface-variant);
  font-size: 1rem;
  line-height: 1.5;
}

/* Module ecosystem */
body.template-stitch-saas .module-ecosystem {
  background: var(--surface-container-low);
  padding: var(--section-gap) 0;
  margin-bottom: 0;
}

body.template-stitch-saas .ecosystem-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  body.template-stitch-saas .ecosystem-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  body.template-stitch-saas .module-span-6 { grid-column: span 6; }
  body.template-stitch-saas .module-span-4 { grid-column: span 4; }
  body.template-stitch-saas .module-span-3 { grid-column: span 3; }
  body.template-stitch-saas .module-span-2 { grid-column: span 2; }
}

body.template-stitch-saas .module-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

body.template-stitch-saas .module-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.template-stitch-saas .module-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--surface-container);
  color: var(--primary);
  margin-bottom: 1rem;
  transition: background-color 0.3s, color 0.3s;
}

body.template-stitch-saas .module-card:hover .module-icon {
  background: var(--primary-container);
  color: var(--on-primary);
}

body.template-stitch-saas .module-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

body.template-stitch-saas .module-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

body.template-stitch-saas .module-compact h3 {
  font-size: 0.875rem;
  font-weight: 700;
}

body.template-stitch-saas .module-card p {
  color: var(--on-surface-variant);
  font-size: 1rem;
  line-height: 1.5;
}

body.template-stitch-saas .module-featured .module-glow {
  position: absolute;
  right: -10%;
  top: 20%;
  width: 50%;
  height: 100%;
  opacity: 0.2;
  pointer-events: none;
}

body.template-stitch-saas .module-featured .module-glow::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: var(--primary-container);
  border-radius: 999px;
  filter: blur(48px);
}

body.template-stitch-saas .module-featured > .module-icon,
body.template-stitch-saas .module-featured > h3,
body.template-stitch-saas .module-featured > p {
  position: relative;
  z-index: 1;
  max-width: 66%;
}

/* Workflow */
body.template-stitch-saas .workflow {
  padding-top: var(--section-gap);
}

body.template-stitch-saas .workflow-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gutter);
  counter-reset: workflow;
}

body.template-stitch-saas .workflow-step {
  padding: 1.5rem;
}

body.template-stitch-saas .workflow-step .step-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

body.template-stitch-saas .workflow-step h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

body.template-stitch-saas .workflow-step p {
  color: var(--on-surface-variant);
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Integrations */
body.template-stitch-saas .partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--gutter);
}

body.template-stitch-saas .partner-card {
  padding: 1.5rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
}

body.template-stitch-saas .partner-card span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-surface-variant);
}

/* Comparison */
body.template-stitch-saas .comparison-table-wrap {
  padding: 0;
  overflow: hidden;
}

body.template-stitch-saas .comparison-table {
  width: 100%;
  border-collapse: collapse;
}

body.template-stitch-saas .comparison-table th,
body.template-stitch-saas .comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--card-border);
  overflow-wrap: break-word;
  word-break: normal;
}

body.template-stitch-saas .comparison-table th {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-surface-variant);
  background: var(--surface-container-low);
}

body.template-stitch-saas .comparison-table tbody tr:last-child td {
  border-bottom: 0;
}

body.template-stitch-saas .comparison-check {
  text-align: center;
  width: 8rem;
}

body.template-stitch-saas .comparison-check svg {
  vertical-align: middle;
}

body.template-stitch-saas .comparison-table td:nth-child(2) svg {
  color: var(--primary);
}

body.template-stitch-saas .comparison-table td:nth-child(3) svg {
  color: #64748b;
  opacity: 0.85;
}

/* Resources */
body.template-stitch-saas .resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gutter);
}

body.template-stitch-saas .resource-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.template-stitch-saas .resource-type {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

body.template-stitch-saas .resource-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
}

body.template-stitch-saas .resource-link {
  margin-top: auto;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

body.template-stitch-saas .resource-link:hover {
  opacity: 0.8;
}

/* Request access */
body.template-stitch-saas .request-access {
  padding-bottom: var(--section-gap);
}

body.template-stitch-saas .request-access-card {
  padding: 3rem;
  text-align: center;
  border-radius: var(--radius-card);
  background: var(--surface-container);
  position: relative;
  overflow: hidden;
}

body.template-stitch-saas .request-access-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, var(--surface-container), var(--primary-soft));
  opacity: 0.7;
  pointer-events: none;
}

body.template-stitch-saas .request-access-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  margin-inline: auto;
}

body.template-stitch-saas .request-access-inner h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

body.template-stitch-saas .request-access-inner > p {
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
  margin-bottom: 2rem;
}

/* Page hero / story / contact */
body.template-stitch-saas .page-hero {
  padding: 3rem 0 2rem;
}

body.template-stitch-saas .page-hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.template-stitch-saas .prose {
  max-width: 42rem;
}

body.template-stitch-saas .prose h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

body.template-stitch-saas .prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

body.template-stitch-saas .prose p {
  color: var(--on-surface-variant);
  line-height: 1.6;
}

body.template-stitch-saas .prose p + p {
  margin-top: 1rem;
}

body.template-stitch-saas .prose ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
  color: var(--on-surface-variant);
}

body.template-stitch-saas .prose ul li {
  margin-bottom: 0.4rem;
  line-height: 1.6;
}

body.template-stitch-saas .legal-meta,
body.template-stitch-saas .legal-intro {
  color: var(--on-surface-variant);
  max-width: 42rem;
}

body.template-stitch-saas .legal-intro {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
}

body.template-stitch-saas .not-found-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Section headers shared by theme-panels / depth-articles / faq-section */
body.template-stitch-saas .section-header,
body.template-stitch-saas .section-title,
body.template-stitch-saas .section-subtitle {
  font-family: inherit;
}

body.template-stitch-saas .section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

body.template-stitch-saas .section-subtitle {
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--on-surface-variant);
  max-width: 42rem;
}

body.template-stitch-saas .block-contact-form {
  padding-bottom: var(--section-gap);
}

body.template-stitch-saas .contact-intro {
  color: var(--on-surface-variant);
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

/* Footer */
body.template-stitch-saas .saas-footer {
  border-top: 1px solid var(--outline-variant);
  padding: var(--section-gap) 0;
  margin-top: 0;
}

body.template-stitch-saas .footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

@media (min-width: 768px) {
  body.template-stitch-saas .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1024px) {
  body.template-stitch-saas .footer-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  body.template-stitch-saas .footer-brand {
    grid-column: span 2;
  }

  body.template-stitch-saas .footer-connect {
    grid-column: span 2;
  }
}

body.template-stitch-saas .footer-logo {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

body.template-stitch-saas .footer-brand p {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  line-height: 1.5;
}

body.template-stitch-saas .footer-col h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

body.template-stitch-saas .footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

body.template-stitch-saas .footer-col a {
  font-size: 0.875rem;
  color: var(--on-surface-variant);
  transition: color 0.2s;
}

body.template-stitch-saas .footer-col a:hover {
  color: var(--primary);
}

/* Forms */
body.template-stitch-saas .leadform {
  text-align: left;
  max-width: 36rem;
  width: 100%;
  margin-inline: auto;
}

body.template-stitch-saas .form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-surface-variant);
}

body.template-stitch-saas .form-group input {
  min-height: 3rem;
  height: auto;
  padding-block: 0.75rem;
  padding-inline: 1rem;
  border-radius: var(--radius-input);
  border: 1px solid var(--card-border);
  background: var(--background);
  color: var(--on-surface);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Preserve ITI padding-left for flag + dial code */
body.template-stitch-saas .form-group .iti input.iti__tel-input,
body.template-stitch-saas .form-group .iti input[type="tel"] {
  min-height: 3rem;
  height: auto !important;
  padding-block: 0.75rem;
  padding-inline-end: 1rem;
  width: 100% !important;
}

body.template-stitch-saas .form-group .iti {
  width: 100%;
}

body.template-stitch-saas .form-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft);
}

body.template-stitch-saas .leadform button[type="submit"] {
  height: 3rem;
  padding: 0 2rem;
  border-radius: var(--radius-input);
  background: var(--primary-container);
  color: var(--on-primary);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
  transition: background-color 0.2s, opacity 0.2s;
}

body.template-stitch-saas .leadform button[type="submit"]:hover {
  background: var(--primary-strong);
}

/* Thematic content panels */
.theme-panels { padding: clamp(3rem, 6vw, 5rem) 0; }

.theme-panels-head { max-width: 42rem; margin-bottom: 2rem; }

.theme-panels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
}

.theme-panel-card {
  padding: 1.5rem;
  border: 1px solid var(--card-border, rgba(127,127,127,0.35));
  background: var(--surface-container-lowest, var(--surface-container, transparent));
  border-radius: var(--radius-card, 1.5rem);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.theme-panel-card:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 12px 30px rgba(15, 118, 110, 0.1);
  transform: translateY(-2px);
}

.theme-panel-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant, #777);
  margin: 0 0 0.5rem;
}

.theme-panel-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.theme-panel-card p { margin: 0; color: var(--on-surface-variant, #555); }

.theme-panel-points {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  color: var(--on-surface-variant, #555);
}

.theme-panel-points li { margin-bottom: 0.4rem; }

.depth-articles { padding: clamp(3rem, 6vw, 5rem) 0; }

.depth-articles-head { max-width: 42rem; margin-bottom: 2rem; }

.depth-articles-list { display: grid; gap: 1.75rem; }

.depth-article {
  padding: 1.5rem 0;
  border-top: 1px solid var(--outline-variant, rgba(127,127,127,0.35));
}

.depth-article:first-child { border-top: none; padding-top: 0; }

.depth-article-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-surface-variant, #777);
  margin: 0 0 0.5rem;
}

.depth-article h3 { margin: 0 0 0.75rem; font-size: 1.5rem; line-height: 1.25; }

.depth-article p { margin: 0 0 0.85rem; max-width: 48rem; color: var(--on-surface-variant, #555); }

.depth-article p:last-child { margin-bottom: 0; }

.faq-section { padding: clamp(3rem, 6vw, 5rem) 0; }

.faq-split-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 0.9fr) minmax(0, 1.4fr);
  gap: 2rem;
}

.faq-accordion-item {
  border-bottom: 1px solid var(--outline-variant, rgba(127,127,127,0.35));
  padding: 0.85rem 0;
}

.faq-accordion-trigger {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  transition: color 0.2s;
}

.faq-accordion-trigger:hover { color: var(--primary, #0f766e); }

.faq-accordion-trigger::-webkit-details-marker { display: none; }

.faq-accordion-icon { display: none; }

.faq-accordion-panel { padding: 0.75rem 0 0.25rem; color: var(--on-surface-variant, #555); }

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