/**
 * bebarefoot.eu — local foot measurement prototype v4
 * All rules are scoped to #bb-foot-measurement.
 */
#bb-foot-measurement {
  --bbfm-ink: #211f1d;
  --bbfm-muted: #6b6762;
  --bbfm-line: #dedad4;
  --bbfm-soft: #f5f5f5;
  --bbfm-paper: #f7f6f4;
  --bbfm-white: #fff;
  --bbfm-teal: #2f6468;
  --bbfm-error: #9f3425;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 28px) 0 clamp(56px, 7vw, 104px);
  color: var(--bbfm-ink);
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

#bb-foot-measurement,
#bb-foot-measurement * {
  box-sizing: border-box;
}

#bb-foot-measurement [hidden] {
  display: none !important;
}

#bb-foot-measurement h2,
#bb-foot-measurement h3,
#bb-foot-measurement p,
#bb-foot-measurement ol {
  margin-top: 0;
}

#bb-foot-measurement button,
#bb-foot-measurement input {
  font: inherit;
}

#bb-foot-measurement button:focus-visible,
#bb-foot-measurement input:focus-visible,
#bb-foot-measurement canvas:focus-visible {
  outline: 3px solid rgba(33, 31, 29, .28);
  outline-offset: 3px;
}

#bb-foot-measurement .bbfm-hero {
  max-width: 820px;
  margin: 0 auto clamp(30px, 4vw, 54px);
  text-align: center;
}

#bb-foot-measurement .bbfm-eyebrow,
#bb-foot-measurement .bbfm-kicker {
  margin-bottom: 12px;
  color: var(--bbfm-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

#bb-foot-measurement .bbfm-hero h2 {
  margin-bottom: 16px;
  color: var(--bbfm-ink);
  font-size: clamp(34px, 5vw, 66px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: .98;
}

#bb-foot-measurement .bbfm-lead {
  max-width: 690px;
  margin-right: auto;
  margin-bottom: 0;
  margin-left: auto;
  color: var(--bbfm-muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
}

#bb-foot-measurement .bbfm-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 920px;
  margin: 0 auto clamp(28px, 4vw, 48px);
  padding: 0;
  list-style: none;
}

#bb-foot-measurement .bbfm-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: #99948e;
  font-size: 13px;
}

#bb-foot-measurement .bbfm-steps li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 50%;
  right: 10px;
  left: 48px;
  height: 1px;
  background: var(--bbfm-line);
  content: "";
}

#bb-foot-measurement .bbfm-steps span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border: 1px solid var(--bbfm-line);
  border-radius: 50%;
  background: var(--bbfm-white);
  color: inherit;
  font-size: 12px;
  font-weight: 700;
}

#bb-foot-measurement .bbfm-steps strong {
  position: relative;
  z-index: 1;
  padding-right: 10px;
  background: var(--bbfm-white);
  color: inherit;
  font-weight: 600;
  white-space: nowrap;
}

#bb-foot-measurement .bbfm-steps .is-active,
#bb-foot-measurement .bbfm-steps .is-complete {
  color: var(--bbfm-ink);
}

#bb-foot-measurement .bbfm-steps .is-active span {
  border-color: var(--bbfm-ink);
  background: var(--bbfm-ink);
  color: var(--bbfm-white);
}

#bb-foot-measurement .bbfm-steps .is-complete span {
  border-color: var(--bbfm-teal);
  background: var(--bbfm-teal);
  color: var(--bbfm-white);
}

#bb-foot-measurement .bbfm-upload {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, .45fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(28px, 5vw, 68px);
  background: var(--bbfm-soft);
}

#bb-foot-measurement .bbfm-upload h3 {
  margin-bottom: 30px;
  color: var(--bbfm-ink);
  font-size: clamp(27px, 3vw, 40px);
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.05;
}

#bb-foot-measurement .bbfm-bare-required {
  margin: -12px 0 26px;
  padding: 12px 14px;
  border-left: 3px solid var(--bbfm-teal);
  background: var(--bbfm-white);
  color: #514e4a;
  font-size: 14px;
  line-height: 1.5;
}

#bb-foot-measurement .bbfm-bare-required strong {
  color: var(--bbfm-ink);
}

#bb-foot-measurement .bbfm-prep-layout {
  display: grid;
  grid-template-columns: minmax(250px, .9fr) minmax(280px, 1.1fr);
  gap: clamp(22px, 3vw, 38px);
  align-items: start;
}

#bb-foot-measurement .bbfm-photo-example {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--bbfm-line);
  background: var(--bbfm-white);
}

#bb-foot-measurement .bbfm-photo-example svg {
  display: block;
  width: 100%;
  height: auto;
  background: #75736f;
}

#bb-foot-measurement .bbfm-photo-example figcaption {
  display: grid;
  gap: 3px;
  padding: 13px 15px 14px;
}

#bb-foot-measurement .bbfm-photo-example figcaption strong {
  color: var(--bbfm-ink);
  font-size: 14px;
  font-weight: 700;
}

#bb-foot-measurement .bbfm-photo-example figcaption span {
  color: var(--bbfm-muted);
  font-size: 13px;
  line-height: 1.4;
}

#bb-foot-measurement .bbfm-photo-example__key {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--bbfm-line);
  list-style: none;
}

#bb-foot-measurement .bbfm-photo-example__key li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

#bb-foot-measurement .bbfm-photo-example__key b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bbfm-teal);
  color: var(--bbfm-white);
  font-size: 11px;
  line-height: 1;
}

#bb-foot-measurement .bbfm-photo-example__key span {
  color: #514e4a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

#bb-foot-measurement .bbfm-setup-grid {
  display: grid;
  grid-template-columns: 1fr;
}

#bb-foot-measurement .bbfm-setup-grid > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  padding: 13px 0;
  border-top: 1px solid var(--bbfm-line);
}

#bb-foot-measurement .bbfm-setup-grid > div:first-child {
  padding-top: 0;
  border-top: 0;
}

#bb-foot-measurement .bbfm-setup-grid span {
  display: block;
  margin-top: 2px;
  color: var(--bbfm-teal);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
}

#bb-foot-measurement .bbfm-setup-grid p {
  margin-bottom: 0;
  color: #514e4a;
  font-size: 15px;
  line-height: 1.55;
}

#bb-foot-measurement .bbfm-upload__actions {
  padding: clamp(22px, 3vw, 36px);
  background: var(--bbfm-white);
  box-shadow: 0 18px 50px rgba(33, 31, 29, .08);
}

#bb-foot-measurement .bbfm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--bbfm-ink);
  border-radius: 6px;
  box-shadow: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  touch-action: manipulation;
}

#bb-foot-measurement .bbfm-button--primary {
  background: var(--bbfm-ink);
  color: var(--bbfm-white);
}

#bb-foot-measurement .bbfm-button--primary:hover,
#bb-foot-measurement .bbfm-button--primary:focus-visible {
  border-color: #000;
  background: #000;
  color: var(--bbfm-white);
}

#bb-foot-measurement .bbfm-button--secondary,
#bb-foot-measurement .bbfm-button--quiet {
  background: var(--bbfm-white);
  color: var(--bbfm-ink);
}

#bb-foot-measurement .bbfm-button--secondary:hover,
#bb-foot-measurement .bbfm-button--quiet:hover {
  background: var(--bbfm-paper);
  color: var(--bbfm-ink);
}

#bb-foot-measurement .bbfm-button--quiet {
  border-color: var(--bbfm-line);
}

#bb-foot-measurement .bbfm-button:disabled {
  border-color: #d8d4cf;
  background: #eceae7;
  color: #99948e;
  cursor: not-allowed;
}

#bb-foot-measurement .bbfm-upload__actions .bbfm-button {
  width: 100%;
}

#bb-foot-measurement .bbfm-upload__actions .bbfm-button + .bbfm-button {
  margin-top: 10px;
}

#bb-foot-measurement .bbfm-file-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

#bb-foot-measurement .bbfm-privacy,
#bb-foot-measurement .bbfm-local-note {
  color: var(--bbfm-muted);
  font-size: 13px;
  line-height: 1.5;
}

#bb-foot-measurement .bbfm-privacy {
  margin: 18px 0 0;
}

#bb-foot-measurement .bbfm-privacy span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 50%;
  background: rgba(47, 100, 104, .12);
  color: var(--bbfm-teal);
  font-weight: 800;
}

#bb-foot-measurement .bbfm-editor__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 350px);
  gap: clamp(22px, 3vw, 44px);
  align-items: start;
}

#bb-foot-measurement .bbfm-workspace {
  min-width: 0;
}

#bb-foot-measurement .bbfm-instruction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 70px;
  padding: 14px 18px;
  border: 1px solid var(--bbfm-line);
  border-bottom: 0;
  background: var(--bbfm-white);
}

#bb-foot-measurement .bbfm-instruction > div {
  min-width: 0;
}

#bb-foot-measurement .bbfm-instruction__step {
  display: block;
  margin-bottom: 4px;
  color: var(--bbfm-teal);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}

#bb-foot-measurement .bbfm-instruction strong {
  display: block;
  color: var(--bbfm-ink);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 650;
  line-height: 1.3;
}

#bb-foot-measurement .bbfm-instruction__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bbfm-paper);
  color: var(--bbfm-ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

#bb-foot-measurement .bbfm-canvas-shell {
  position: relative;
  width: 100%;
  min-height: 300px;
  overflow: hidden;
  background: #2a2927;
}

#bb-foot-measurement canvas {
  display: block;
  max-width: 100%;
  margin: 0;
  background: #2a2927;
  cursor: crosshair;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

#bb-foot-measurement .bbfm-canvas-tip {
  margin: 0;
  padding: 9px 12px;
  border: 1px solid var(--bbfm-line);
  border-top: 0;
  background: var(--bbfm-paper);
  color: var(--bbfm-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

#bb-foot-measurement .bbfm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

#bb-foot-measurement .bbfm-actions .bbfm-button--primary {
  margin-left: auto;
}

#bb-foot-measurement .bbfm-replace-photo {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 9px;
  align-items: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--bbfm-line);
}

#bb-foot-measurement .bbfm-replace-photo > div {
  display: grid;
  gap: 2px;
}

#bb-foot-measurement .bbfm-replace-photo strong {
  color: var(--bbfm-ink);
  font-size: 14px;
}

#bb-foot-measurement .bbfm-replace-photo span {
  color: var(--bbfm-muted);
  font-size: 12px;
  line-height: 1.35;
}

#bb-foot-measurement .bbfm-replace-photo .bbfm-button {
  min-height: 44px;
  padding-right: 16px;
  padding-left: 16px;
}

#bb-foot-measurement .bbfm-error {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--bbfm-error);
  background: #fbf3f1;
  color: #70291f;
  font-size: 14px;
  line-height: 1.5;
}

#bb-foot-measurement .bbfm-status {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-left: 3px solid var(--bbfm-teal);
  background: #f0f6f6;
  color: #244f52;
  font-size: 14px;
  line-height: 1.5;
}

#bb-foot-measurement .bbfm-side {
  position: sticky;
  top: 92px;
  border-top: 2px solid var(--bbfm-ink);
}

#bb-foot-measurement .bbfm-checklist-wrap {
  padding: 24px 0 22px;
  border-bottom: 1px solid var(--bbfm-line);
}

#bb-foot-measurement .bbfm-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}

#bb-foot-measurement .bbfm-checklist li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 44px;
  color: #918c86;
}

#bb-foot-measurement .bbfm-checklist li + li {
  border-top: 1px solid #ece9e5;
}

#bb-foot-measurement .bbfm-checklist span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--bbfm-line);
  border-radius: 50%;
  background: var(--bbfm-white);
  font-size: 11px;
  font-weight: 700;
}

#bb-foot-measurement .bbfm-checklist strong {
  font-size: 14px;
  font-weight: 600;
}

#bb-foot-measurement .bbfm-checklist .is-current {
  color: var(--bbfm-ink);
}

#bb-foot-measurement .bbfm-checklist .is-current span {
  border-color: var(--bbfm-ink);
}

#bb-foot-measurement .bbfm-checklist .is-done {
  color: var(--bbfm-ink);
}

#bb-foot-measurement .bbfm-checklist .is-done span {
  border-color: var(--bbfm-teal);
  background: var(--bbfm-teal);
  color: var(--bbfm-white);
}

#bb-foot-measurement .bbfm-result {
  margin-top: 22px;
  padding: 24px;
  background: var(--bbfm-soft);
}

#bb-foot-measurement .bbfm-result__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-bottom: 18px;
  background: var(--bbfm-line);
}

#bb-foot-measurement .bbfm-result__values > div {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  align-items: end;
  padding: 18px 16px;
  background: var(--bbfm-white);
}

#bb-foot-measurement .bbfm-result__values span {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--bbfm-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#bb-foot-measurement .bbfm-result__values strong {
  color: var(--bbfm-ink);
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 650;
  letter-spacing: -.04em;
  line-height: .9;
}

#bb-foot-measurement .bbfm-result__values small {
  margin-left: 5px;
  color: var(--bbfm-muted);
  font-size: 12px;
}

#bb-foot-measurement .bbfm-result > p:last-child {
  margin: 0;
  color: var(--bbfm-muted);
  font-size: 13px;
  line-height: 1.5;
}

#bb-foot-measurement .bbfm-result .bbfm-result__quality {
  margin: 0 0 10px;
  color: var(--bbfm-teal);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

#bb-foot-measurement .bbfm-local-note {
  margin: 18px 0 0;
}

@media (max-width: 991px) {
  #bb-foot-measurement {
    padding-right: 0;
    padding-left: 0;
  }

  #bb-foot-measurement .bbfm-upload {
    grid-template-columns: 1fr;
  }

  #bb-foot-measurement .bbfm-editor__layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 22px;
  }

  #bb-foot-measurement .bbfm-side {
    top: 76px;
  }
}

@media (max-width: 767px) {
  #bb-foot-measurement {
    width: 100%;
    padding-top: 8px;
    padding-bottom: 56px;
  }

  #bb-foot-measurement .bbfm-hero {
    margin-bottom: 28px;
    padding: 0 16px;
    text-align: left;
  }

  #bb-foot-measurement .bbfm-hero h2 {
    max-width: 360px;
    margin-bottom: 13px;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1;
  }

  #bb-foot-measurement .bbfm-lead {
    font-size: 16px;
    line-height: 1.5;
  }

  #bb-foot-measurement .bbfm-steps {
    margin-bottom: 24px;
    padding: 0 16px;
  }

  #bb-foot-measurement .bbfm-steps li {
    display: block;
    min-height: 48px;
    text-align: center;
  }

  #bb-foot-measurement .bbfm-steps li:not(:last-child)::after {
    top: 15px;
    right: -50%;
    left: 50%;
  }

  #bb-foot-measurement .bbfm-steps span {
    margin: 0 auto 6px;
  }

  #bb-foot-measurement .bbfm-steps strong {
    display: block;
    padding: 0;
    background: transparent;
    font-size: 10px;
    line-height: 1.15;
    white-space: normal;
  }

  #bb-foot-measurement .bbfm-upload {
    gap: 26px;
    padding: 30px 16px 20px;
  }

  #bb-foot-measurement .bbfm-upload h3 {
    margin-bottom: 22px;
    font-size: 29px;
  }

  #bb-foot-measurement .bbfm-prep-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  #bb-foot-measurement .bbfm-photo-example {
    width: min(100%, 460px);
  }

  #bb-foot-measurement .bbfm-setup-grid {
    grid-template-columns: 1fr;
  }

  #bb-foot-measurement .bbfm-setup-grid > div,
  #bb-foot-measurement .bbfm-setup-grid > div:first-child {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid var(--bbfm-line);
    border-left: 0;
  }

  #bb-foot-measurement .bbfm-setup-grid span {
    margin: 2px 0 0;
  }

  #bb-foot-measurement .bbfm-upload__actions {
    padding: 20px;
  }

  #bb-foot-measurement .bbfm-editor__layout {
    display: block;
  }

  #bb-foot-measurement .bbfm-instruction {
    min-height: 74px;
    padding: 12px 16px;
    border-right: 0;
    border-left: 0;
  }

  #bb-foot-measurement .bbfm-instruction strong {
    font-size: 15px;
  }

  #bb-foot-measurement .bbfm-canvas-shell {
    min-height: 300px;
  }

  #bb-foot-measurement .bbfm-canvas-tip {
    max-width: none;
    font-size: 11px;
  }

  #bb-foot-measurement .bbfm-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 10px 16px 0;
  }

  #bb-foot-measurement .bbfm-actions .bbfm-button {
    width: 100%;
    min-height: 48px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 13px;
  }

  #bb-foot-measurement .bbfm-actions .bbfm-button--primary {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-left: 0;
  }

  #bb-foot-measurement .bbfm-replace-photo {
    grid-template-columns: 1fr 1fr;
    margin-right: 16px;
    margin-left: 16px;
  }

  #bb-foot-measurement .bbfm-replace-photo > div {
    grid-column: 1 / -1;
  }

  #bb-foot-measurement .bbfm-replace-photo .bbfm-button {
    width: 100%;
    min-height: 48px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 13px;
  }

  #bb-foot-measurement .bbfm-error {
    margin-right: 16px;
    margin-left: 16px;
  }

  #bb-foot-measurement .bbfm-status {
    margin-right: 16px;
    margin-left: 16px;
  }

  #bb-foot-measurement .bbfm-side {
    position: static;
    margin: 26px 16px 0;
  }

  #bb-foot-measurement .bbfm-checklist-wrap {
    padding-top: 20px;
  }

  #bb-foot-measurement .bbfm-result {
    margin-right: -16px;
    margin-left: -16px;
    padding: 24px 16px;
  }
}

@media (max-width: 390px) {
  #bb-foot-measurement .bbfm-instruction__count {
    min-width: 48px;
  }

  #bb-foot-measurement .bbfm-actions {
    grid-template-columns: 1fr;
  }

  #bb-foot-measurement .bbfm-actions .bbfm-button--primary {
    grid-column: auto;
  }

  #bb-foot-measurement .bbfm-replace-photo {
    grid-template-columns: 1fr;
  }

  #bb-foot-measurement .bbfm-replace-photo > div {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #bb-foot-measurement *,
  #bb-foot-measurement *::before,
  #bb-foot-measurement *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
