/* SnapForm Marketing CSS
   Colours and typography match the SimFit product app (main.scss).
   Zero dependency on SimFit main.css — values copied, not imported.
   --------------------------------------------------------- */

:root {
  /* Copied from main.scss / app design system */
  --sf-primary:   #537893;   /* $steelblue  — main accent */
  --sf-primary-d: #3d5a70;   /* darkened primary for hover */
  --sf-dark:      #5d5661;   /* $theme-colors "primary" — dark purple-grey */
  --sf-teal:      #34907C;   /* patient-table header green */
  --sf-teal-lt:   #79CEBD;   /* $button-color / $theme-colors "light" */
  --sf-white:     #FDFDFD;   /* $white */
  --sf-light:     #ECECED;   /* accordion body / alt section bg */
  --sf-active:    #B9CAD7;   /* table-case-active highlight */
  --sf-text:      #3b3b3b;   /* $base-text_color */
  --sf-muted:     #A9A4AE;   /* inactive button bg */
  --sf-border:    #5d5661;   /* row separator colour */

  --sf-radius: 5px;
  --sf-shadow: 0 2px 12px rgba(83,120,147,.12);
}

/* ── Base ─────────────────────────────────────────────── */
body {
  font-family: sans-serif;           /* same as app */
  font-size: 1.08rem;
  color: var(--sf-text);
  background: var(--sf-white);
  -webkit-font-smoothing: antialiased;
  padding-top: 62px; /* offset for fixed-top navbar */
}

/* ── Brand logo ───────────────────────────────────────── */
.sf-logo-snap { color: var(--sf-dark); }
.sf-logo-form { color: var(--sf-primary); }

/* ── Navbar ───────────────────────────────────────────── */
/* matches .navbar { background-color: #ffffff } in main.scss */
.sf-navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--sf-active);
}

.sf-brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.5px;
  text-decoration: none;
}

.sf-navbar .nav-link {
  color: var(--sf-text);
  font-size: .8rem;
  padding: .4rem .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 500;
}
.sf-navbar .nav-link:hover { color: var(--sf-primary); }

/* ── Buttons ──────────────────────────────────────────── */
/* Primary — matches .accordion-button / .custom-btn-group a.active (#537893) */
.sf-btn-primary {
  background: var(--sf-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--sf-radius);
  padding: .65rem 1.6rem;
  font-weight: 600;
  font-size: .92rem;
  transition: background .2s;
}
.sf-btn-primary:hover {
  background: var(--sf-primary-d);
  color: #ffffff;
}

/* Ghost — matches inactive nav buttons */
.sf-btn-ghost {
  color: var(--sf-text);
  border: 1.5px solid var(--sf-muted);
  border-radius: var(--sf-radius);
  padding: .65rem 1.6rem;
  font-weight: 600;
  font-size: .92rem;
  background: transparent;
  transition: border-color .2s, color .2s;
}
.sf-btn-ghost:hover {
  border-color: var(--sf-primary);
  color: var(--sf-primary);
}

/* Navbar button size override — both buttons match sf-btn-outline dimensions */
.sf-navbar .sf-btn-primary,
.sf-navbar .sf-btn-outline {
  padding: .35rem 1rem;
  font-size: .85rem;
}

/* Outline — navbar login link */
.sf-btn-outline {
  color: var(--sf-primary);
  border: 1.5px solid var(--sf-primary);
  border-radius: var(--sf-radius);
  padding: .35rem 1rem;
  font-weight: 600;
  font-size: .85rem;
  background: transparent;
  transition: all .2s;
}
.sf-btn-outline:hover {
  background: var(--sf-primary);
  color: #ffffff;
}

/* White — on dark CTA section */
.sf-btn-white {
  background: var(--sf-white);
  color: var(--sf-primary);
  border: 2px solid var(--sf-white);
  border-radius: var(--sf-radius);
  font-weight: 700;
  transition: background .2s, color .2s;
}
.sf-btn-white:hover {
  background: #f0f0f0;
  color: var(--sf-primary);
  border-color: #f0f0f0;
}

/* ── Hero ─────────────────────────────────────────────── */
.sf-hero {
  padding: 4.5rem 0 5rem;
  background: var(--sf-white);
}

.sf-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--sf-teal);
  margin-bottom: .75rem;
}

.sf-hero-headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--sf-dark);
  letter-spacing: -.01em;
}

.sf-accent { color: var(--sf-primary); }

.sf-hero-sub {
  font-size: 1.05rem;
  color: var(--sf-text);
  line-height: 1.7;
  max-width: 600px;
  margin-top: 1rem;
}

/* Hero image */
.sf-hero-img {
  max-height: 420px;
  width: auto;
  border-radius: var(--sf-radius);
}

@media (max-width: 991.98px) {
  .sf-hero-img {
    margin-top: 2rem;
  }
}

/* Section image — fills column height, matches text box */
.sf-section-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--sf-radius);
  box-shadow: none;
  display: block;
}

/* ── Feature strip (dark/blue) ────────────────────────── */
.sf-strip {
  background: var(--sf-primary);
  padding: 1.4rem 0;
}

.sf-strip-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.85);
  font-size: .88rem;
  font-weight: 500;
  padding: .6rem 1.2rem;
  border-right: 1px solid rgba(255,255,255,.2);
}
.sf-strip-item:last-child { border-right: none; }

.sf-strip-icon {
  font-size: 1.1rem;
  color: var(--sf-teal-lt);
}

/* ── Feature strip (light) ────────────────────────────── */
.sf-strip-light {
  background: var(--sf-white);
  padding: 1rem 0;
  margin-top: -40px;
}

.sf-strip-item-light {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  color: var(--sf-text);
  font-size: 1.25rem;
  font-weight: 400;
  padding: 1rem 1.5rem;
}

.sf-strip-icon-light {
  font-size: 1.6rem;
  color: var(--sf-primary);
}

/* ── Sections ─────────────────────────────────────────── */
.sf-section {
  padding: 2.5rem 0;
}

/* alt background matches accordion-body (#ECECED) */
.sf-section--alt {
  background: var(--sf-light);
}

/* CTA background matches case-table header (#537893) → dark variant */
.sf-section--cta {
  background: linear-gradient(135deg, var(--sf-dark) 0%, var(--sf-primary) 100%);
}

.sf-section-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 400;
  color: var(--sf-dark);
  letter-spacing: -.01em;
}

.sf-section--cta .sf-section-title { color: #ffffff; }

.sf-section-sub {
  font-size: 1rem;
  color: var(--sf-muted);
  max-width: 540px;
  margin: .75rem auto 0;
  line-height: 1.7;
}

/* ── Feature cards ────────────────────────────────────── */
/* matches orf_leftside / orf_rightside panel style */
.sf-card {
  background: var(--sf-white);
  border: 1px solid var(--sf-active);
  border-radius: var(--sf-radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--sf-shadow);
  transition: box-shadow .2s, transform .2s;
}
.sf-card:hover {
  box-shadow: 0 6px 24px rgba(83,120,147,.18);
  transform: translateY(-2px);
}

.sf-card-icon {
  font-size: 1.8rem;
  color: var(--sf-primary);
  margin-bottom: 1rem;
}

.sf-card-title {
  font-size: 1rem;
  font-weight: 400;
  color: var(--sf-dark);
  margin-bottom: .5rem;
}

.sf-card-text {
  font-size: .9rem;
  color: var(--sf-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ── How it works steps ───────────────────────────────── */
.sf-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--sf-white);
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow);
}

/* step number circle matches .custom-btn-group a.active (#537893) */
.sf-step-num {
  width: 48px;
  height: 48px;
  background: var(--sf-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 1.25rem;
}

.sf-step-title {
  font-size: .95rem;
  font-weight: 400;
  color: var(--sf-dark);
  margin-bottom: .5rem;
}

.sf-step-text {
  font-size: .87rem;
  color: var(--sf-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Footer ───────────────────────────────────────────── */
/* matches .custom-btn-group inactive state + dark */
.sf-footer {
  background: var(--sf-dark);
  border-top: 1px solid rgba(255,255,255,.1);
}

.sf-footer-sub {
  color: rgba(255,255,255,.45);
}

.sf-footer-link {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}
.sf-footer-link:hover { color: #ffffff; }

/* ── Design-page extras ────────────────────────────────── */
.sf-divider {
  border-color: var(--sf-active);
  margin: 3rem 0;
}

/* Font cards */
.sf-font-card {
  background: var(--sf-white);
  border: 1px solid var(--sf-active);
  border-radius: var(--sf-radius);
  padding: 1.25rem 1.5rem;
}
.sf-font-sample {
  color: var(--sf-dark);
  font-weight: 500;
  margin-bottom: .5rem;
}

/* Colour swatches */
.sf-swatch {
  width: 100%;
  height: 80px;
  border-radius: var(--sf-radius);
  margin-bottom: .5rem;
}
.sf-swatch-label {
  font-size: .75rem;
  color: var(--sf-text);
  margin-bottom: 0;
  line-height: 1.4;
}
.sf-swatch-label code {
  font-size: .72rem;
  color: var(--sf-muted);
}

/* Form elements */
.sf-form-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--sf-dark);
  margin-bottom: .35rem;
}
.sf-input {
  border: 1px solid var(--sf-active);
  border-radius: var(--sf-radius);
  font-size: .9rem;
  color: var(--sf-text);
  background: var(--sf-white);
}
.sf-input:focus {
  border-color: var(--sf-primary);
  box-shadow: 0 0 0 .2rem rgba(83,120,147,.2);
}
.sf-range::-webkit-slider-thumb { background: var(--sf-primary); }
.sf-range::-moz-range-thumb     { background: var(--sf-primary); }
.sf-range { accent-color: var(--sf-primary); }

/* Alerts */
.sf-alert-info    { background: rgba(83,120,147,.1);  border-left: 4px solid var(--sf-primary); color: var(--sf-text); }
.sf-alert-success { background: rgba(52,144,124,.1);  border-left: 4px solid var(--sf-teal);    color: var(--sf-text); }
.sf-alert-warning { background: rgba(255,193,7,.12);  border-left: 4px solid #ffc107;           color: var(--sf-text); }
.sf-alert-danger  { background: rgba(220,53,69,.08);  border-left: 4px solid #dc3545;           color: var(--sf-text); }

/* Badges */
.sf-badge-primary { background: var(--sf-primary); }
.sf-badge-teal    { background: var(--sf-teal); }
.sf-badge-muted   { background: var(--sf-muted); color: #fff; }
.sf-badge-dark    { background: var(--sf-dark); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 767px) {
  .sf-hero { padding: 4rem 0 3rem; }
  .sf-strip-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .sf-strip-item:last-child { border-bottom: none; }
}
