/* Shared styles for the WS Builders ADU funnel (quiz and booking page). Tokens mirror app/src/site/styles/base.css. */
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/fonts/cormorant-garamond-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("/fonts/jost.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --ws-paper: #faf8f5;
  --ws-paper-warm: #f3efe8;
  --ws-charcoal: #2a2a26;
  --ws-gold: #c4a87c;
  --ws-gold-deep: #a98a5c;
  --ws-gold-dark: #80653c;
  --ws-taupe: #736c62;
  --ws-rule-color: #e3ded6;
  --ws-deep: #22231f;
  --ws-deep-rule: #3b3c36;
  --ws-paper-dim: #cfc9bf;

  --ws-ground: var(--ws-paper);
  --ws-surface: var(--ws-paper-warm);
  --ws-ink: var(--ws-charcoal);
  --ws-muted: var(--ws-taupe);
  --ws-line: var(--ws-rule-color);
  --ws-accent: var(--ws-gold);
  --ws-accent-ink: var(--ws-gold-deep);
  --ws-focus: var(--ws-gold-dark);
  --ws-danger: #a3341f;

  --ws-display: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --ws-body: "Jost", "Futura", "Avenir Next", system-ui, -apple-system, sans-serif;
  --ws-gutter: clamp(1.375rem, 5vw, 5.5rem);
  --ws-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { background: var(--ws-ground); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ws-ground);
  color: var(--ws-ink);
  font-family: var(--ws-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ws-focus); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }

/* Chrome */
.ws-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem var(--ws-gutter);
  border-bottom: 1px solid var(--ws-line);
}
.ws-header img { display: block; height: 2.75rem; width: auto; }
.ws-header a { display: block; line-height: 0; }
.ws-caps {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  color: var(--ws-muted);
}
.ws-footer {
  margin-top: auto;
  padding: 2rem var(--ws-gutter);
  border-top: 1px solid var(--ws-line);
  color: var(--ws-muted);
  font-size: 0.8125rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}
.ws-footer a { text-decoration: none; }

/* Stage */
.ws-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(2.5rem, 7vw, 5rem) var(--ws-gutter) clamp(3rem, 8vw, 6rem);
}
.ws-stage {
  width: 100%;
  max-width: 40rem;
  margin: 0 auto;
}
.ws-progress {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.ws-progress[hidden] { display: none; }
.ws-bar {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--ws-line);
  align-self: center;
}
.ws-bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  background: var(--ws-accent);
  transition: width 0.5s var(--ws-ease);
}
.ws-count { font-variant-numeric: tabular-nums; white-space: nowrap; }

.ws-screen { animation: ws-rise 0.5s var(--ws-ease) both; }
@keyframes ws-rise {
  from { opacity: 0; transform: translateY(0.75rem); }
  to { opacity: 1; transform: none; }
}

.ws-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--ws-accent-ink);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
}
.ws-eyebrow::before { content: ""; width: 1.5rem; height: 1px; background: var(--ws-accent); }

.ws-t-hero, .ws-t-title {
  font-family: var(--ws-display);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
.ws-t-hero { font-size: clamp(2.75rem, 7.5vw, 4.75rem); }
.ws-t-title { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
em { font-style: italic; color: var(--ws-accent-ink); }

.ws-lede {
  margin: 1.5rem 0 0;
  max-width: 30rem;
  color: var(--ws-muted);
  font-size: 1.125rem;
}
.ws-actions { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; }

.ws-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 3.25rem;
  padding: 0.9rem 2rem;
  background: var(--ws-charcoal);
  color: var(--ws-paper);
  border: 1px solid var(--ws-charcoal);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.25s var(--ws-ease), color 0.25s var(--ws-ease);
}
.ws-btn:hover { background: transparent; color: var(--ws-charcoal); }
.ws-link {
  display: inline-block;
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 400;
  text-decoration: none;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--ws-accent);
  color: var(--ws-ink);
}

/* Options */
.ws-options { list-style: none; margin: 2.25rem 0 0; padding: 0; border-top: 1px solid var(--ws-line); }
.ws-options li { border-bottom: 1px solid var(--ws-line); }
.ws-option {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.15rem 0.25rem;
  font-size: 1.0625rem;
  line-height: 1.4;
  transition: padding-left 0.3s var(--ws-ease), color 0.2s;
}
.ws-option::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--ws-accent);
  transition: width 0.3s var(--ws-ease);
  justify-self: start;
}
.ws-option:hover::before, .ws-option:focus-visible::before, .ws-option[aria-pressed="true"]::before { width: 1.5rem; }
.ws-option[aria-pressed="true"] { color: var(--ws-accent-ink); }
.ws-nav { margin-top: 2rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }

/* Email */
.ws-field { margin-top: 2.25rem; }
.ws-field label { display: block; margin-bottom: 0.5rem; }
.ws-input {
  width: 100%;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--ws-ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ws-charcoal);
  border-radius: 0;
  padding: 0.6rem 0;
  outline: none;
}
.ws-input:focus { border-bottom-color: var(--ws-gold-dark); }
.ws-input::placeholder { color: var(--ws-paper-dim); }
.ws-error { margin: 0.6rem 0 0; color: var(--ws-danger); font-size: 0.9rem; min-height: 1.4em; }
.ws-fine { margin: 1.25rem 0 0; color: var(--ws-muted); font-size: 0.875rem; }

/* Result */
.ws-result-rows { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--ws-line); }
.ws-result-rows li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--ws-line);
  font-size: 0.9375rem;
}
.ws-result-rows span:first-child { color: var(--ws-muted); font-size: 0.6875rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 400; padding-top: 0.3em; }
@media (max-width: 30rem) { .ws-result-rows li { grid-template-columns: 1fr; gap: 0.2rem; } }

@media (prefers-reduced-motion: reduce) {
  .ws-screen { animation: none; }
  .ws-bar > span, .ws-option, .ws-option::before, .ws-btn { transition: none; }
}
