/* Perimflow website styles. Page layout lives inline in each page; this file holds global rules, focus states and small-screen overrides. */
:root { --pf-teal: #2EC6BD; --pf-navy: #0B1420; --pf-amber: #F2B544; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--pf-navy); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: #7FE0CF; }
a:hover { color: #B5F0E5; }
a[href]:hover[style*="border-radius: 999px"], button:hover { filter: brightness(1.06); }
:focus-visible { outline: 3px solid var(--pf-teal); outline-offset: 3px; border-radius: 6px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--pf-teal); outline-offset: 1px; border-color: var(--pf-teal) !important; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #B42318 !important; }
summary { cursor: pointer; }
summary::marker { color: var(--pf-teal); }
button[disabled] { opacity: 0.6; cursor: progress !important; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: #FFFFFF; color: var(--pf-navy); padding: 10px 16px; border-radius: 8px; font: 600 15px Inter, sans-serif; }
.skip-link:focus { top: 16px; }

@media (max-width: 900px) {
  nav[aria-label="Main"] { order: 3; width: 100%; overflow-x: auto; flex-wrap: nowrap !important; gap: 20px !important; padding-bottom: 4px; white-space: nowrap; }
  h1 { font-size: 48px !important; }
  h2 { font-size: 40px !important; }
}
@media (max-width: 640px) {
  h1 { font-size: 40px !important; }
  h2 { font-size: 32px !important; }
  h3 { font-size: 26px !important; }
  section > div[style*="padding: 80px 32px"], section > div[style*="padding: 88px 32px"], section > div[style*="padding: 96px 32px"] { padding: 56px 20px !important; }
  header[style] { padding: 16px 20px !important; }
  div[style*="grid-template-rows: 190px 190px 190px"] { grid-template-rows: 110px 110px 110px !important; gap: 8px !important; }
  div[style*="left: -24px"], div[style*="left: -20px"] { left: 8px !important; }
  img[style*="height: 520px"] { height: 320px !important; }
  section[style*="min-height: 720px"] { min-height: 0 !important; }
}

/* ---------- Book a demo: date and time picker ---------- */
[hidden] { display: none !important; }
.bk-step { display: flex; align-items: center; gap: 8px; color: #4A5868; }
.bk-step .bk-dot { width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; background: #F2F6F5; color: #4A5868; }
.bk-step.is-on { color: #0B1420; }
.bk-step.is-on .bk-dot { background: #0B1420; color: #FFFFFF; }
.bk-step.is-done { color: #0B1420; }
.bk-step.is-done .bk-dot { background: #2EC6BD; color: #0B1420; }
.bk-chip { display: inline-flex; align-items: center; gap: 8px; background: #F2F6F5; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; }
.bk-picker { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.bk-cal { flex: 0 0 316px; max-width: 100%; display: flex; flex-direction: column; gap: 12px; }
.bk-times { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.bk-nav { width: 44px; height: 44px; border-radius: 999px; border: 1px solid #C9D2CF; background: #FFFFFF; color: #0B1420; display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; justify-items: center; }
.bk-dow { font-size: 12px; font-weight: 600; color: #4A5868; letter-spacing: 0.04em; }
.bk-day { width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent; color: #9AA6B2; font: inherit; font-size: 15px; padding: 0; }
.bk-day.is-open { background: #E3F6F4; border: 1px solid #BFE9E5; color: #0B1420; font-weight: 600; cursor: pointer; }
.bk-day.is-full { text-decoration: line-through; }
.bk-day[aria-pressed="true"] { background: #0B1420; border-color: #0B1420; color: #FFFFFF; font-weight: 700; }
.bk-slots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bk-slot { min-height: 44px; border-radius: 12px; border: 1px solid #C9D2CF; background: #FFFFFF; color: #0B1420; font: inherit; font-size: 15px; font-weight: 600; padding: 10px 8px; cursor: pointer; }
.bk-slot:hover:not([disabled]), .bk-day.is-open:hover:not([aria-pressed="true"]) { border-color: #2EC6BD; }
.bk-slot[aria-pressed="true"] { background: #2EC6BD; border-color: #2EC6BD; }
.bk-slot.is-booked { background: #F2F6F5; border-color: #F2F6F5; color: #5F6B78; font-weight: 500; text-decoration: line-through; }
.bk-skel { height: 44px; border-radius: 12px; background: linear-gradient(90deg, #EEF2F1, #F7F9F9, #EEF2F1); background-size: 200% 100%; animation: bk-sh 1.1s infinite; }
@keyframes bk-sh { to { background-position: -200% 0; } }
.bk-link { background: none; border: 0; padding: 10px 0; font: inherit; font-size: 15px; color: #1F7A6E; text-decoration: underline; cursor: pointer; }
.bk-day[disabled], .bk-slot[disabled], .bk-nav[disabled] { opacity: 1; cursor: not-allowed !important; }
.bk-nav[disabled] { opacity: 0.35; }
#bk-continue[disabled] { opacity: 0.4; cursor: not-allowed !important; }
@media (max-width: 640px) {
  #demo-form { padding: 22px 18px !important; }
  .bk-cal { flex-basis: 100%; }
  .bk-day { width: 44px; height: 44px; }
}
/* Keep secondary headings at their set size on small screens */
.legal h2, #bk-h1 { font-size: 24px !important; }
@media (min-width: 901px) { #bk-h1 { font-size: 28px !important; } }
