/* WilkeWay Free Tools — flat / orange-accent system */
:root {
  --bg: #FAF9F7;
  --white: #ffffff;
  --ink: #0B1F3A;
  --muted: #5B6B7C;
  --line: #E4E0D8;
  --orange: #F26522;
  --orange-hover: #D95518;
  --blue: #2F6FED;
  --orange-soft: #FFF0E8;
  --green-soft: #E8F5EE;
  --green: #1B7A4E;
  --red-soft: #FDECEA;
  --red: #B42318;
  --shadow-hover: 0 8px 28px rgba(11, 31, 58, 0.10);
  --radius: 12px;
  --focus-ring: 0 0 0 3px rgba(242, 101, 34, 0.35);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--orange); }
img, svg { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); }
button:focus-visible, a.btn:focus-visible, .btn:focus-visible,
.tab:focus-visible, input:focus-visible, textarea:focus-visible,
select:focus-visible, summary:focus-visible { box-shadow: var(--focus-ring); }
a:not(.btn):focus-visible {
  box-shadow: none;
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Buttons — flat; orange only on primary */
button, a.btn, .btn {
  font: inherit;
  font-size: 15px;
  font-weight: 650;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  border-radius: 10px;
  padding: 12px 18px;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
button:hover, a.btn:hover, .btn:hover { border-color: var(--ink); }
button.primary, a.btn.primary, .btn.primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
button.primary:hover, a.btn.primary:hover, .btn.primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: #fff;
}
button.ghost, a.btn.ghost, .btn.ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
button.linkish, a.linkish {
  background: none;
  border: none;
  color: var(--blue);
  padding: 8px 0;
  min-height: 44px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}
button.linkish:hover, a.linkish:hover { color: var(--orange); }
button:disabled, .btn:disabled { opacity: 0.55; cursor: not-allowed; }

.eyebrow {
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 800;
  color: var(--orange);
  text-transform: uppercase;
}
.quiet { font-size: 14px; color: var(--muted); line-height: 1.5; }
.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.5;
  margin: 0 0 16px;
}

h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.025em; }
h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.1; margin: 10px 0 14px; }
h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.22; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 0 0 8px; letter-spacing: -0.02em; }

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
  min-width: 0;
}
input, textarea, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  font: 400 15px/1.4 var(--font);
  transition: border-color .15s, box-shadow .15s;
}
input:focus-visible, textarea:focus-visible, select:focus-visible {
  border-color: var(--orange);
  box-shadow: var(--focus-ring);
}
textarea { resize: vertical; min-height: 88px; }
input:invalid { border-color: var(--red); }
input[type=file] { min-height: 0; border: none; padding: 0; box-shadow: none; }

/* Flat white cards — shadow only on hover; optional orange left accent */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid transparent;
  border-radius: var(--radius);
  box-shadow: none;
  padding: 22px 20px;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  box-shadow: var(--shadow-hover);
  border-left-color: var(--orange);
}
/* Kill decorative tint backgrounds */
.card.tint-blue,
.card.tint-orange,
.card.tint-green {
  background: var(--white);
  border-color: var(--line);
}

.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 999px;
  padding: 5px 10px;
}
.badge.example { background: #F3F1EC; color: var(--muted); }
.badge.warn { background: var(--orange-soft); color: var(--orange); }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 5%;
  min-height: var(--header-h);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.brand {
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 18px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.no-signup { font-size: 13px; color: var(--muted); white-space: nowrap; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  color: var(--blue);
  text-decoration: none;
  min-height: 44px;
  margin-bottom: 4px;
}
.back-link:hover { color: var(--orange); }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 56px;
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.limits {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}

details.admin-panel {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 4px 16px 16px;
}
details.admin-panel > summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 14px;
  padding: 12px 0;
  min-height: 44px;
  list-style: none;
  display: flex;
  align-items: center;
  color: var(--muted);
}
details.admin-panel > summary::-webkit-details-marker { display: none; }
details.admin-panel > summary::before {
  content: "▸";
  margin-right: 8px;
  color: var(--orange);
}
details.admin-panel[open] > summary::before { content: "▾"; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#notice { min-height: 24px; font-size: 13px; color: var(--green); margin: 8px 0; }
#notice.error { color: var(--red); }

.tab-nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-top: 20px;
  margin-bottom: 4px;
}
.tab {
  border: 0;
  background: transparent;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-size: 15px;
  padding: 14px 12px;
  color: var(--muted);
  min-height: 44px;
}
.tab:hover { color: var(--ink); border-color: transparent; }
.tab.active {
  border-bottom-color: var(--orange);
  color: var(--ink);
  font-weight: 700;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 40px 0 18px;
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.span2 { grid-column: 1 / -1; }

.preview {
  font: 13px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin: 0;
}

.quote-result {
  background: var(--ink);
  color: #fff;
  padding: 26px;
  border-radius: var(--radius);
}
.quote-result .eyebrow,
.quote-result .quiet { color: #A8B8C8; }
.quote-result .eyebrow { color: #F5A26A; }
.big-price {
  font-size: clamp(34px, 5vw, 49px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.quote-result button {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  width: 100%;
}
.quote-result button:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: #fff;
}
.quote-result dl { margin: 18px 0; }
.quote-result dt { font-size: 12px; color: #A8B8C8; }
.quote-result dd { margin: 0 0 12px; font-size: 18px; }
.quote-result #quoteError { color: #ffd09f; }

.documents { display: grid; gap: 12px; }
.document {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .7fr);
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 10px;
}
.document .docnote { grid-column: 1 / -1; }
.document label { font-size: 11px; }
.readiness {
  background: var(--green-soft);
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
  margin: 14px 0;
}

/* Neutral icon circle — no multicolor */
.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #F3F1EC;
  color: var(--ink);
  border: 1px solid var(--line);
}
.icon-circle.blue,
.icon-circle.orange,
.icon-circle.green {
  background: #F3F1EC;
  color: var(--ink);
}

.voice-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
}
.voice-bar .quiet { margin: 0; }

.assist-panel {
  margin: 16px 0 8px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.assist-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.assist-prompt {
  margin: 10px 0 4px;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}
.assist-panel > .quiet { margin: 8px 0 0; }
.assist-scan {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.assist-scan .eyebrow {
  flex: 0 0 100%;
  margin: 0 0 2px;
}
.assist-scan .btn,
.assist-scan button {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  margin: 0;
}
.assist-scan .quiet { margin: 0; flex: 1 1 180px; }
label.field-active,
.field-active {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 8px;
  background: var(--orange-soft);
  box-shadow: 0 0 0 4px rgba(242, 101, 34, 0.22);
}
input.field-active,
textarea.field-active {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
  background: #fffaf5;
  box-shadow: 0 0 0 3px rgba(242, 101, 34, 0.28);
}


/* Floating Speak / fill progress status bar — TOP (keyboard covers bottom on mobile) */
.fill-status-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  transform: none;
  z-index: 80;
  width: 100%;
  max-width: none;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 12px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 10px 28px rgba(11, 31, 58, 0.28);
}
.fill-status-bar[hidden] { display: none !important; }
.fill-status-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 10px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.fill-status-main strong {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  flex: 1 1 200px;
}
#fillStatusTitle { color: #fff; }
.fill-status-main #fillStatusDetail,
.fill-status-detail {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.fill-status-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  overflow: hidden;
  margin: 0 auto 12px;
  max-width: 720px;
}
.fill-status-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--orange);
  transition: width .2s ease;
}
.fill-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
  max-width: 720px;
  margin: 0 auto;
}
.fill-status-actions button {
  min-height: 48px;
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.08);
  color: #fff;
}
.fill-status-actions button:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.16);
  color: #fff;
}
.fill-status-actions #fillConfirm {
  flex: 1 1 120px;
  min-height: 52px;
  font-size: 16px;
  font-weight: 750;
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.fill-status-actions #fillConfirm:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  color: #fff;
}
.fill-status-actions #fillRetry,
.fill-status-actions #fillSkip,
.fill-status-actions #fillStop {
  flex: 0 1 auto;
  min-width: 72px;
}
.fill-status-bar.is-idle .fill-status-actions { display: none; }
.fill-status-bar.is-idle { padding-bottom: 12px; }
/* Keep page content clear of top status bar while interviewing */
body.interview-active {
  padding-top: calc(148px + env(safe-area-inset-top, 0px));
}
body.interview-active main.wrap {
  scroll-margin-top: calc(148px + env(safe-area-inset-top, 0px));
}
body.interview-active .sticky-actions {
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 820px) {
  .fill-status-bar {
    border-radius: 0 0 12px 12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  body.interview-active {
    padding-top: calc(168px + env(safe-area-inset-top, 0px));
  }
}

.export-panel {
  margin: 16px 0 8px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.export-panel .eyebrow { margin-bottom: 4px; }
.export-panel > .quiet { margin: 0 0 12px; }
.export-toolbar { margin-top: 4px; }
.quote-result .export-panel {
  margin-top: 14px;
  padding: 14px;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  z-index: 35;
  margin: 28px -8px 0;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -4px 20px rgba(11, 31, 58, 0.06);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.sticky-actions .quiet {
  flex: 1 1 140px;
  margin: 0;
  font-size: 13px;
}

.autosave-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
  min-height: 18px;
}
.autosave-hint.saved { color: var(--green); }
.autosave-pill {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-soft);
  border-radius: 999px;
  padding: 5px 10px;
}
.autosave-pill.saved { color: var(--green); background: var(--green-soft); }

.time-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
  background: #F3F1EC;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

.progress-wrap {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.progress-wrap .progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 8px;
}
.progress-track {
  height: 8px;
  border-radius: 999px;
  background: #EDEAE3;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--orange);
  transition: width .25s ease;
}
.progress-wrap.ready { border-color: #8FCB9B; background: #F2FBF4; }
.motivate { font-size: 14px; margin: 8px 0 0; color: var(--ink); }

.tool-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tool-head h3 { flex: 1 1 auto; margin: 0; }
.tool-hero { max-width: 720px; margin: 4px 0 24px; }
.tool-hero .lede { margin-bottom: 4px; }

.story-banner {
  margin: 0 0 14px;
  padding: 10px 14px;
  background: var(--orange-soft);
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink);
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .grid { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .document { grid-template-columns: 1fr; }
  .document .docnote { grid-column: auto; }
  .no-signup { display: none; }
  .wrap { padding: 20px 16px 48px; }
  .site-header { padding: 10px 16px; }
  .section-head { align-items: flex-start; flex-wrap: wrap; margin: 28px 0 14px; }
  .sticky-actions {
    margin-left: -16px;
    margin-right: -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .tab { padding: 12px 8px; font-size: 14px; }
}
@media (max-width: 650px) {
  .example-box { display: none; }
}
@media (max-width: 480px) {
  .toolbar button, .toolbar .btn, .export-toolbar button {
    flex: 1 1 calc(50% - 10px);
  }
}
