/* Wireframe design tokens */
:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f4f4;
  --surface-3: #ebebeb;
  --line: #d8d8d8;
  --line-2: #c0c0c0;
  --ink: #111111;
  --ink-2: #444444;
  --ink-3: #808080;
  --ink-4: #b3b3b3;
  --accent: #1a1a17; /* black accent */
  --accent-soft: #ebe9e3;
  --accent-ink: #1a1a17;
  --good: #4a7a52;
  --warn: #c08a2c;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.wf {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

.wf-serif { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; letter-spacing: -0.02em; }
.wf-mono { font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 11px; letter-spacing: 0.04em; font-weight: 500; }

/* Placeholder image boxes — striped with mono label */
.wf-img {
  background:
    repeating-linear-gradient(
      135deg,
      var(--surface-2) 0 8px,
      var(--surface-3) 8px 16px
    );
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.wf-img::before {
  content: "";
  position: absolute; inset: 0;
  border: 1px dashed var(--line-2);
  margin: 6px;
  pointer-events: none;
}
.wf-img > span {
  background: var(--bg);
  padding: 4px 8px;
  border: 1px solid var(--line);
  z-index: 1;
}

/* Buttons */
.wf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.wf-btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.wf-btn-primary:hover { filter: brightness(0.95); }
.wf-btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
}
.wf-btn-secondary:hover { background: var(--surface-2); }
.wf-btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: transparent;
}
.wf-btn-ghost:hover { background: var(--surface-2); }
.wf-btn-lg { padding: 16px 28px; font-size: 16px; }
.wf-btn-sm { padding: 8px 14px; font-size: 13px; }

/* Form controls */
.wf-input, .wf-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s;
}
.wf-input:focus, .wf-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.wf-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.wf-help {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 4px;
}

/* Cards */
.wf-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

/* Badges */
.wf-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 500;
}
.wf-badge-accent {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-ink);
}

/* Section markers */
.wf-section-tag {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-4);
  padding: 4px 0;
}

/* Star placeholders */
.wf-stars {
  display: inline-flex;
  gap: 2px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 1px;
}

/* Divider */
.wf-divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}

/* Page wrapper */
.page {
  width: 100%;
  min-height: 100%;
  background: var(--bg);
  overflow: hidden;
}

/* Skeleton text */
.sk-line {
  height: 8px;
  background: var(--surface-3);
  border-radius: 2px;
  margin: 4px 0;
}
.sk-line.short { width: 40%; }
.sk-line.med { width: 65%; }
.sk-line.long { width: 90%; }

/* Nav active state */
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}
.nav-link:hover { background: var(--surface-2); }
.nav-link.active { color: var(--accent); }

/* Step indicator */
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
}
.step-dot.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.step-dot.done { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Subtle hover on clickable rows */
.row-link { cursor: pointer; transition: background 0.15s; }
.row-link:hover { background: var(--surface-2); }

/* Tab control inside artboards */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 8px;
  border: 1px solid var(--line);
  width: fit-content;
}
.tab {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-2);
  background: transparent;
  border: none;
  font-family: inherit;
}
.tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* Hide scrollbar but keep scrolling */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Hide the browser-native date-picker indicator on our quote-form date input.
   We render our own calendar icon in the QFField wrapper, so the duplicate
   from the user agent is removed. */
.wf-date-input::-webkit-calendar-picker-indicator { display: none; -webkit-appearance: none; }
.wf-date-input::-webkit-inner-spin-button { display: none; }
.wf-date-input::-webkit-clear-button { display: none; }

/* Annotations - sticky note style for wireframe callouts */
.wf-anno {
  position: absolute;
  background: #fff8d4;
  border: 1px solid #e8d987;
  padding: 6px 10px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 10px;
  color: #6b5a1f;
  border-radius: 3px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
  z-index: 10;
  max-width: 200px;
  line-height: 1.4;
}
