/* ---- Base --------------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

/* Offset fixed navbar when jumping to #anchors */
section[id] {
  scroll-margin-top: 4rem;
}

/* ---- Reusable component classes ---------------------------------- */
/*
 * Used in index.html to DRY out the three forms. Raw CSS (not Tailwind
 * @apply) so it works reliably with the Tailwind Play CDN.
 */

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #2d3d40;
  margin-bottom: 0.5rem;
}

.field-label .hint {
  color: #9ca3af;
  font-weight: 400;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-family: inherit;
  color: inherit;
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: transparent;
  box-shadow: 0 0 0 2px #3f9188;
}

.field-textarea {
  resize: none;
}

.btn-primary {
  width: 100%;
  background: #347871;
  color: white;
  font-weight: 700;
  padding: 1rem;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover:not(:disabled) {
  background: #2c6560;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.card {
  background: white;
  border-radius: 1.5rem;
  border: 1px solid #d9eae8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  padding: 2.5rem;
}

/* Visually hidden honeypot — bots fill it, humans never see it. */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* Contact-section tabs */
.tab-btn {
  flex: 1 1 0;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d3d40;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.tab-btn:hover {
  background: #f0f5f4;
}

.tab-btn[aria-selected='true'] {
  background: #347871;
  color: white;
}

.tab-btn[aria-selected='true']:hover {
  background: #2c6560;
}

/* Hero + CTA gradients — extracted from inline style="" so the CSP
   doesn't need 'unsafe-inline' in style-src. */
.hero-gradient {
  background: linear-gradient(135deg, #1b2830 0%, #2d3d40 40%, #347871 100%);
}

.cta-gradient {
  background: linear-gradient(135deg, #347871 0%, #2d3d40 100%);
}

/* ---- Software page (/software) ------------------------------------ */

/* Screenshots: a browser window for desktop views, a rounded phone for
   phone views. Plain CSS so the page needs no inline styles (CSP). */
.shot-browser {
  border-radius: 0.9rem;
  overflow: hidden;
  background: white;
  border: 1px solid #d9eae8;
  box-shadow: 0 20px 45px rgba(27, 40, 48, 0.28);
}
.shot-browser-bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: #eef2f2;
  border-bottom: 1px solid #d9eae8;
}
.shot-browser-bar span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #c9d6d4;
}
.shot-phone {
  border-radius: 1.6rem;
  border: 6px solid #1b2830;
  background: #1b2830;
  box-shadow: 0 18px 40px rgba(27, 40, 48, 0.3);
}
/* A long phone screen shows its top part, not a sliver of the whole. */
.shot-tall {
  max-height: 42rem;
  object-fit: cover;
  object-position: top;
}

.feature-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #347871;
  margin-bottom: 0.5rem;
}

/* No margin/padding reset here: Tailwind's base already zeroes lists, and a
   reset in this later file would override spacing classes like mt-6. */
.check-list {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  color: #4b5563;
  line-height: 1.55;
}
.check-list li {
  position: relative;
  padding-left: 1.75rem;
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: #347871;
}

.faq {
  background: #ffffff;
  border: 1px solid #d9eae8;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: #347871;
  font-weight: 800;
}
.faq[open] summary::after { content: '−'; }
.faq p {
  margin-top: 0.75rem;
  color: #4b5563;
  line-height: 1.6;
}
