/* control.css: Kynetica design tokens from kynetica-marketing/control/kynetica-mockups.html (section 11 of the control).
   Shared by index.html and assess.html. Do not restyle without the operator's mockup changing first. */
:root{
  --paper:#F3F4EF; --ink:#1C2A22; --muted:#56655C; --rule:#CDD3C8;
  --ticket:#F8EBB0; --ticket-edge:#E2D38E; --ticket-ink:#3A3826;
  --blue:#1846A8; --blue-ink:#0F2F72; --white:#FFFFFF; --stamp:#A33B2C;
  --col:620px;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--ink);font-family:"Archivo",system-ui,sans-serif;font-size:17px;line-height:1.55}
a{color:var(--blue)}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:3px}

.wrap{max-width:var(--col);margin:0 auto;padding:0 20px}
header.site{padding:18px 0 10px;display:flex;flex-direction:column;gap:2px;border-bottom:1px solid var(--rule)}
@media (min-width:560px){header.site{flex-direction:row;justify-content:space-between;align-items:baseline}}
.brand{font-weight:800;font-size:20px;letter-spacing:-.01em}
.brand a{color:inherit;text-decoration:none}
.tag{font-size:14px;color:var(--muted)}

h1{font-weight:800;font-size:clamp(30px,7.6vw,40px);line-height:1.08;letter-spacing:-.025em;margin:14px 0 14px}
h2{font-weight:800;font-size:23px;line-height:1.2;letter-spacing:-.015em;margin:0 0 10px}
h3{font-weight:700;font-size:20px;line-height:1.25;margin:0 0 8px}
p{margin:0 0 14px}
.lead{font-size:18px}
.small{font-size:14px;color:var(--muted)}
.callout{font-size:15px;color:var(--muted);margin:22px 0 0;max-width:34em}
section{padding:30px 0;border-top:1px solid var(--rule)}
section.first{border-top:0;padding-top:8px}

.cta{display:block;width:100%;background:var(--blue);color:#fff;text-align:center;font-weight:700;font-size:18px;padding:17px 18px;border-radius:6px;text-decoration:none;border:0;cursor:pointer;font-family:inherit;line-height:1.3}
.cta:hover{background:var(--blue-ink)}
.cta:disabled{opacity:.55;cursor:not-allowed}
.cta.secondary{background:transparent;color:var(--blue);border:2px solid var(--blue)}
.under{margin:10px 0 0;font-size:14px;color:var(--muted)}

/* the one bold element: the paper job ticket */
.ticket{position:relative;background:var(--ticket);color:var(--ticket-ink);margin:26px 0 8px;padding:22px 20px 20px;border:1px solid var(--ticket-edge);border-top:0}
.ticket:before{content:"";position:absolute;left:-1px;right:-1px;top:-10px;height:10px;
  background:radial-gradient(circle at 8px 0,transparent 6px,var(--ticket) 6.5px) 0 0/16px 10px repeat-x;}
.ticket .stamp{position:absolute;right:14px;top:14px;transform:rotate(-6deg);font-weight:700;font-size:12px;line-height:1.1;padding:5px 8px;border:2px solid var(--stamp);color:var(--stamp);border-radius:3px;background:rgba(255,255,255,.35)}
.ticket .num{font-size:13px;color:#7A7350;margin:0 0 14px}
.ticket .stamp + .num{padding-right:150px;min-height:34px}
.ticket p{margin:0 0 12px;font-size:16px}
.ticket p:last-child{margin:0}
.ticket b,.ticket strong{font-weight:700}
.cap{font-size:14px;color:var(--muted);margin:8px 0 0}

.strip{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:14px;color:var(--muted);margin:22px 0 0;padding-top:14px;border-top:1px solid var(--rule)}

ol.ladder{list-style:none;padding:0;margin:0;counter-reset:l}
ol.ladder li{position:relative;padding:0 0 20px 48px;counter-increment:l}
ol.ladder li:last-child{padding-bottom:4px}
ol.ladder li:before{content:counter(l);position:absolute;left:0;top:-3px;width:32px;height:32px;line-height:28px;text-align:center;border:2px solid var(--ink);border-radius:50%;font-weight:800;font-size:15px}
ol.ladder li b{display:block;font-size:18px;margin-bottom:4px}
ol.ladder .price{font-weight:700}

ul.plain{padding-left:20px;margin:0 0 14px}
ul.plain li{margin:0 0 8px}
ul.not{list-style:none;padding:0;margin:0}
ul.not li{padding:10px 0;border-top:1px solid var(--rule)}
ul.not li:first-child{border-top:0}
ul.not li b{display:block;font-weight:600}

.guarantee{border:2px solid var(--ink);padding:20px;margin:6px 0 0}
.guarantee h2{margin-bottom:8px}
.guarantee .line{font-size:19px;font-weight:700;margin-bottom:10px}

details{border-top:1px solid var(--rule);padding:12px 0}
details:last-of-type{border-bottom:1px solid var(--rule)}
summary{cursor:pointer;font-weight:700;list-style:none;display:flex;justify-content:space-between;gap:12px}
summary::-webkit-details-marker{display:none}
summary:after{content:"+";font-weight:400;color:var(--muted)}
details[open] summary:after{content:"\2013"}
details p{margin:10px 0 0}

footer.site{padding:28px 0 60px;font-size:13px;color:var(--muted);line-height:1.6;border-top:1px solid var(--rule);margin-top:10px}
footer.site a{color:var(--muted)}

/* form */
.field{margin:0 0 18px}
.field label{display:block;font-weight:600;margin-bottom:6px}
.field .hint{font-size:14px;color:var(--muted);margin:0 0 8px}
.field input,.field textarea,.field select{width:100%;font:inherit;padding:13px 12px;border:2px solid var(--rule);border-radius:6px;background:#fff;color:var(--ink)}
.field textarea{min-height:100px;resize:vertical}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--blue);outline:0}
.err{color:var(--stamp);font-size:14px;margin-top:8px;display:none}

.result-head{padding:8px 0 0}
.result-head h1{font-size:28px}
.breakdown h3{margin-top:18px}
.est{display:inline-block;font-size:12px;font-weight:600;padding:2px 7px;border:1px solid var(--ticket-edge);border-radius:3px;color:#7A7350;vertical-align:middle;margin-left:6px}

/* walkthrough */
.walk{border:2px solid var(--ink);background:#fff;padding:16px;margin:8px 0 10px}
.walk .who{font-size:13px;color:var(--muted);margin-bottom:8px}
.walk .bubble{font-weight:600;font-size:18px;margin:0 0 14px}
.choices{display:grid;gap:8px}
.choice{font:inherit;text-align:left;background:var(--paper);border:2px solid var(--rule);border-radius:6px;padding:12px 14px;cursor:pointer;color:var(--ink);line-height:1.4}
.choice:hover,.choice.selected{border-color:var(--blue)}
.btn-back{background:none;border:0;color:var(--muted);font:inherit;font-size:15px;cursor:pointer;padding:8px 0}
.hidden{display:none !important}
.spinner{display:inline-block;width:16px;height:16px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:spin .7s linear infinite;vertical-align:-3px;margin-right:6px}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:no-preference){ details p{animation:open .18s ease-out} }
@media (prefers-reduced-motion:reduce){ .spinner{animation:none} }
@keyframes open{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:none}}

/* Tables inside tickets (sample audit: "The five, ranked" and "Have Kynetica do it"). Section 11 tokens; no horizontal blow-out. */
.ticket table.plain{width:100%;border-collapse:collapse;table-layout:fixed;font-size:15px;margin:4px 0 6px}
.ticket table.plain th,.ticket table.plain td{text-align:left;vertical-align:top;padding:8px 8px 8px 0;border-bottom:1px solid var(--ticket-edge);overflow-wrap:anywhere}
.ticket table.plain th{font-size:12px;letter-spacing:.02em;color:#7A7350;font-weight:700}
.ticket table.plain tr:last-child td{border-bottom:0}
.ticket table.plain td:first-child,.ticket table.plain th:first-child{width:2.2em;padding-right:4px}
@media (max-width:560px){
  .ticket table.plain,.ticket table.plain tbody,.ticket table.plain tr,.ticket table.plain td{display:block;width:100%}
  .ticket table.plain thead{display:none}
  .ticket table.plain tr{padding:10px 0;border-bottom:1px solid var(--ticket-edge)}
  .ticket table.plain tr:last-child{border-bottom:0}
  .ticket table.plain td{border:0;padding:2px 0}
  .ticket table.plain td:first-child{width:auto;display:inline;font-weight:700;padding-right:6px}
  .ticket table.plain td:first-child::after{content:". "}
  .ticket table.plain td:nth-child(2){display:inline;font-weight:700}
  .ticket table.plain td[data-l]::before{content:attr(data-l) ": ";color:#7A7350;font-size:13px}
}
