/* ---------------------------------------------------------------
   Moss Automation Finder
   Brand colors live here. Change these five values and the whole
   app follows. Fonts: Oswald for headings, Futura with Roboto as
   the fallback for body, per Moss brand.
   --------------------------------------------------------------- */
:root {
  --ink:        #1d2620;
  --ink-soft:   #55625a;
  --moss:       #3f5d4a;
  --moss-dark:  #2b4133;
  --moss-light: #e8efe9;
  --cream:      #faf8f4;
  --line:       #dfdcd4;
  --accent:     #c1743a;
  --white:      #ffffff;

  --radius: 10px;
  --shadow: 0 1px 3px rgba(29,38,32,.07), 0 8px 24px rgba(29,38,32,.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Futura, "Futura PT", "Century Gothic", Roboto, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .oswald {
  font-family: Oswald, "Futura", sans-serif;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.18;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(30px, 5vw, 46px); }
h2 { font-size: clamp(23px, 3.4vw, 31px); }
h3 { font-size: 20px; }

p { margin: 0 0 1em; }
a { color: var(--moss); }

.wrap { width: 100%; max-width: 860px; margin: 0 auto; padding: 0 22px; }

/* ------------------------------------------------------- header */
.site-head {
  background: var(--moss-dark);
  color: #f2f0ea;
  padding: 14px 0;
}
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { text-decoration: none; color: inherit; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.brand-mark { font-family: Oswald, sans-serif; font-size: 22px; letter-spacing: .18em; font-weight: 600; }
.brand-sub { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .72; }
.head-note { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .72; }

.site-foot { padding: 40px 0 60px; color: var(--ink-soft); font-size: 13px; text-align: center; }

main { padding: 34px 0 20px; min-height: 60vh; }
.loading { text-align: center; color: var(--ink-soft); padding: 60px 0; }

/* -------------------------------------------------------- intro */
.intro { text-align: left; margin-bottom: 30px; }
.intro p.lede { font-size: 18px; color: var(--ink-soft); max-width: 62ch; }
.eyebrow {
  font-family: Oswald, sans-serif; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}

/* ------------------------------------------------------ progress */
.progress { display: flex; gap: 6px; margin: 0 0 26px; }
.progress-seg {
  flex: 1; height: 4px; background: var(--line); border-radius: 3px;
  transition: background .25s;
}
.progress-seg.done { background: var(--moss); }
.progress-seg.current { background: var(--accent); }
.step-label {
  font-family: Oswald, sans-serif; font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px;
}

/* ---------------------------------------------------------- card */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 30px 26px;
  box-shadow: var(--shadow);
}
@media (max-width: 560px) { .card { padding: 22px 18px; } }

.card .sub { color: var(--ink-soft); font-size: 15.5px; max-width: 60ch; }

/* ------------------------------------------------------ questions */
.q { margin: 26px 0 0; }
.q:first-of-type { margin-top: 20px; }
.q-label {
  display: block; font-weight: 500; margin-bottom: 10px; font-size: 16.5px;
}
.q-label .req { color: var(--accent); }

input[type=text], input[type=email], textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--cream);
  color: var(--ink);
}
input:focus, textarea:focus {
  outline: none; border-color: var(--moss); background: var(--white);
  box-shadow: 0 0 0 3px rgba(63,93,74,.13);
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.hint { font-size: 13.5px; color: var(--ink-soft); margin-top: 6px; }
.counter { font-size: 12.5px; color: var(--ink-soft); text-align: right; margin-top: 4px; }
.counter.short { color: var(--accent); }

/* option grids */
.opts { display: grid; gap: 8px; }
.opts.cols2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .opts.cols2 { grid-template-columns: 1fr; } }

.opt {
  display: flex; align-items: flex-start; gap: 11px;
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--cream); cursor: pointer; font-size: 15.5px; line-height: 1.4;
  transition: border-color .15s, background .15s;
  user-select: none;
}
.opt:hover { border-color: var(--moss); }
.opt input { margin: 3px 0 0; accent-color: var(--moss); width: 17px; height: 17px; flex: none; }
.opt.checked { background: var(--moss-light); border-color: var(--moss); }

.group-label {
  font-family: Oswald, sans-serif; font-size: 12.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
  margin: 20px 0 9px; padding-bottom: 5px; border-bottom: 1px solid var(--line);
}
.group-label:first-child { margin-top: 4px; }

.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }

/* --------------------------------------------------------- nav */
.nav { display: flex; gap: 12px; align-items: center; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.nav .spacer { flex: 1; }

button {
  font-family: Oswald, sans-serif; font-size: 14px; letter-spacing: .12em;
  text-transform: uppercase; padding: 13px 26px; border-radius: 8px;
  border: 1px solid transparent; cursor: pointer; transition: all .15s;
}
.btn-primary { background: var(--moss); color: #fff; }
.btn-primary:hover { background: var(--moss-dark); }
.btn-primary:disabled { background: #a9b5ac; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--moss); color: var(--moss); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.93); }

.err {
  background: #fdf1ea; border: 1px solid #e8c3a8; color: #8a4418;
  padding: 11px 14px; border-radius: 8px; font-size: 14.5px; margin-top: 18px;
}

/* ------------------------------------------------------- results */
.results-head { margin-bottom: 26px; }
.readback {
  background: var(--moss-light); border-left: 4px solid var(--moss);
  padding: 18px 20px; border-radius: 0 8px 8px 0; margin: 0 0 26px;
  font-size: 17px;
}
.readback strong { display: block; font-family: Oswald, sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--moss-dark); margin-bottom: 6px; font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 30px; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }
.stat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; text-align: center;
}
.stat .num { font-family: Oswald, sans-serif; font-size: 32px; color: var(--moss); line-height: 1.1; }
.stat .lab { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

.section-head {
  font-family: Oswald, sans-serif; font-size: 13px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-soft);
  margin: 38px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--line);
}

/* the automation list */
.cat { margin: 0 0 22px; }
.cat-name {
  font-family: Oswald, sans-serif; font-size: 15px; letter-spacing: .05em;
  color: var(--moss-dark); margin: 0 0 8px;
}
ul.auto-list { list-style: none; margin: 0; padding: 0; }
ul.auto-list li {
  position: relative; padding: 11px 0 11px 26px;
  border-bottom: 1px solid var(--line);
}
ul.auto-list li:last-child { border-bottom: 0; }
ul.auto-list li::before {
  content: ""; position: absolute; left: 6px; top: 19px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--moss);
}
ul.auto-list li.custom::before { background: var(--accent); }
.auto-title { font-size: 17px; color: var(--ink); font-weight: 500; line-height: 1.35; }
.auto-blurb { font-size: 15px; color: var(--ink-soft); margin-top: 2px; }
.auto-meta {
  font-size: 12.5px; color: var(--moss); margin-top: 5px;
  letter-spacing: .02em;
}

.tools-line {
  font-size: 14.5px; color: var(--ink-soft); margin: 14px 0 22px;
  padding-left: 14px; border-left: 2px solid var(--line);
}

/* what the free result holds back */
.held {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 26px; margin: 8px 0 4px; position: relative;
  background-image: repeating-linear-gradient(135deg,
    rgba(63,93,74,.025) 0 12px, transparent 12px 24px);
}
.held-head { display: flex; align-items: center; gap: 11px; margin-bottom: 4px; }
.held-head h3 { margin: 0; color: var(--moss-dark); }
.lock {
  width: 17px; height: 17px; flex: none; border-radius: 3px;
  border: 2px solid var(--accent); position: relative; margin-top: 4px;
}
.lock::before {
  content: ""; position: absolute; left: 3px; top: -7px; width: 7px; height: 7px;
  border: 2px solid var(--accent); border-bottom: 0; border-radius: 4px 4px 0 0;
}
.held p { font-size: 15px; color: var(--ink-soft); margin: 6px 0 12px; }
ul.held-list { list-style: none; margin: 0 0 14px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px; }
ul.held-list li {
  font-size: 14.5px; background: var(--cream); border: 1px solid var(--line);
  border-radius: 20px; padding: 6px 15px 6px 8px; color: var(--ink-soft);
}
.held-count {
  display: inline-block; min-width: 22px; height: 22px; line-height: 22px;
  text-align: center; border-radius: 50%; background: var(--moss);
  color: #fff; font-family: Oswald, sans-serif; font-size: 13px; margin-right: 7px;
}
.held-custom {
  font-size: 15px !important; color: var(--ink) !important;
  border-left: 3px solid var(--accent); padding-left: 13px; margin: 0 0 12px !important;
}
.held-note { font-size: 14px !important; margin-bottom: 0 !important; }

.uncovered {
  font-size: 14.5px; color: var(--ink-soft); background: var(--cream);
  border: 1px dashed var(--line); border-radius: 8px; padding: 13px 16px; margin-top: 8px;
}
.uncovered strong { color: var(--ink); }

.stats-note {
  font-size: 13.5px; color: var(--ink-soft); margin: -18px 0 26px;
  max-width: 68ch;
}
.biggest {
  font-size: 16px; color: var(--ink); border-left: 3px solid var(--accent);
  padding: 2px 0 2px 14px; margin: 0 0 26px;
}

/* per-task time question */
.time-list { border-top: 1px solid var(--line); }
.time-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
}
.time-task { flex: 1; min-width: 220px; font-size: 15.5px; line-height: 1.35; }
.time-row.answered .time-task { color: var(--moss-dark); }
select.time-select {
  font: inherit; font-size: 15px; padding: 9px 12px; min-width: 232px;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--cream); color: var(--ink); cursor: pointer;
}
select.time-select:focus {
  outline: none; border-color: var(--moss); background: var(--white);
  box-shadow: 0 0 0 3px rgba(63,93,74,.13);
}
.time-row.answered select.time-select { background: var(--moss-light); border-color: var(--moss); }
@media (max-width: 560px) {
  .time-row { gap: 8px; }
  select.time-select { width: 100%; min-width: 0; }
}

/* one assessment for the whole plan */
.cta {
  background: var(--moss-dark); color: #f2f0ea; border-radius: var(--radius);
  padding: 34px 30px; margin: 38px 0 20px; text-align: center;
}
.cta p { color: rgba(242,240,234,.85); max-width: 56ch; margin: 0 auto 10px; font-size: 15.5px; }
.cta-eyebrow {
  font-family: Oswald, sans-serif; font-size: 11px; letter-spacing: .22em;
  text-transform: uppercase; color: #93a698; margin-bottom: 14px;
}
.cta-tier {
  font-family: Oswald, sans-serif; font-size: 15px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.cta-summary {
  font-family: Oswald, sans-serif; color: #fff !important;
  font-size: 27px !important; line-height: 1.2; margin-bottom: 12px !important;
}
.cta-offer {
  color: #fff !important; font-size: 16.5px !important;
  border-top: 1px solid rgba(242,240,234,.22); padding-top: 18px; margin-top: 20px !important;
}
.cta-fine { font-size: 13.5px !important; color: rgba(242,240,234,.6) !important; margin-top: 14px !important; }
.cta .cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }

.print-note { text-align: center; font-size: 13.5px; color: var(--ink-soft); margin-top: 22px; }

.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; vertical-align: -2px; margin-right: 8px; }
@keyframes sp { to { transform: rotate(360deg); } }

.building { text-align: center; padding: 70px 20px; }
.building .spin { width: 26px; height: 26px; border-width: 3px; border-color: rgba(63,93,74,.25); border-top-color: var(--moss); display: block; margin: 0 auto 18px; }
.building p { color: var(--ink-soft); }

@media print {
  .site-head, .site-foot, .cta .cta-btns, button { display: none; }
  body { background: #fff; }
  .cat { break-inside: avoid; }
}
