/* Websage free tools. Loaded after v2.css on /tools/ pages. */
.tool-hero { padding: 64px 0 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.tool-hero .h1 { font-size: clamp(38px, 5.6vw, 64px); max-width: 900px; }
.tool-hero .lead { max-width: 660px; }
.tool-hero .eyebrow a { text-decoration: none; }
.tool-hero .eyebrow a:hover { text-decoration: underline; }
.free-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 15px; color: var(--ink-2); }
.free-row span { display: inline-flex; align-items: center; gap: 6px; }
.free-row span::before { content: ""; width: 16px; height: 16px; background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E8631C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

.tool-shell { max-width: 820px; margin: 0 auto; padding: 8px 0 88px; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; box-shadow: 0 20px 60px rgba(120, 60, 20, .08); }
.tool-card + .tool-card { margin-top: 20px; }
.tool-form { display: grid; gap: 18px; }
.tool-form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-form .row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.f label, .f .lbl { font-size: 15px; font-weight: 600; }
.f .opt-tag { font-weight: 400; color: var(--ink-2); }
.f input, .f textarea, .f select { font: inherit; font-size: 17px; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; min-height: 52px; background: #fff; color: var(--ink); width: 100%; }
.f textarea { min-height: 130px; resize: vertical; line-height: 1.5; }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px rgba(232, 99, 28, .12); }
.f .hint { font-size: 14px; color: var(--ink-2); }
.f input[aria-invalid="true"], .f textarea[aria-invalid="true"] { border-color: #C0362C; }
.url-row { display: flex; gap: 12px; }
.url-row input { flex: 1; }
.url-row .btn { flex: 0 0 auto; }
.tool-form .btn[type="submit"] { justify-self: start; }
.fine { font-size: 14px; color: var(--ink-2); }
.fine a { color: var(--ink-2); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; width: 100%; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg > label > span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 500; font-size: 16px; background: #fff; cursor: pointer; }
.seg input:checked + span { border-color: var(--accent); background: #FFF3EA; color: #9A3C0C; }
.seg input:focus-visible + span { outline: 3px solid var(--accent-bright); outline-offset: 2px; }
.stars { gap: 6px; }
.stars > label > span { min-width: 0; padding: 10px 11px; gap: 4px; }
.stars svg { width: 18px; height: 18px; fill: #F2A33A; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: 15px; font-weight: 500; border: 1px solid var(--line); background: var(--soft); color: var(--ink); border-radius: 999px; padding: 9px 14px; cursor: pointer; min-height: 40px; text-align: left; }
.chip:hover { border-color: var(--accent); color: var(--accent); }

.btn[disabled] { opacity: .65; cursor: progress; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 15px; }
.btn-soft { background: #FFF0E4; color: #9A3C0C; }
.btn-soft:hover { background: #FFE2CC; }

.alert { border-radius: 14px; padding: 14px 16px; font-size: 16px; background: #FDECEA; color: #8A2219; border: 1px solid #F5C6C0; }
.alert[hidden] { display: none; }

/* Loading */
.working { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 40px 12px; text-align: center; }
.spinner { width: 46px; height: 46px; border-radius: 50%; border: 4px solid #FBE0CC; border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; font-size: 16px; color: var(--ink-2); }
.steps li { display: flex; gap: 10px; align-items: center; }
.steps li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; }
.steps li.on { color: var(--ink); font-weight: 500; }
.steps li.on::before { border-color: var(--accent); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.steps li.done::before { border: 0; background: no-repeat center / 18px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E7A4C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
@media (prefers-reduced-motion: reduce) { .spinner, .steps li.on::before { animation: none; } }

/* Results */
.result-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.grade { width: 112px; height: 112px; border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; }
.grade b { font-family: var(--serif); font-weight: 500; font-size: 60px; line-height: 1; }
.grade small { font-size: 14px; opacity: .9; margin-top: 2px; }
.g-A { background: #1E7A4C; } .g-B { background: #3F8F3A; } .g-C { background: #C98A12; } .g-D { background: #D5651B; } .g-F { background: #B8322A; }
.result-head .h3 { font-size: 26px; }
.tally { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 600; }
.pill-pass { background: #E6F4EC; color: #17633D; }
.pill-warn { background: #FFF2D9; color: #8A5A00; }
.pill-fail { background: #FDECEA; color: #9B2A22; }
.pill-skip { background: var(--soft); color: var(--ink-2); }
.result-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; margin-top: 28px; align-items: start; }
.phone-shot { border-radius: 30px; border: 8px solid #1E1915; background: #1E1915; overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 100px; }
.phone-shot img { width: 100%; display: block; border-radius: 20px; }
.phone-shot figcaption { color: #E9D9CC; font-size: 12px; text-align: center; padding: 8px 4px 2px; }
.group-title { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #A8440F; margin: 22px 0 8px; }
.group-title:first-child { margin-top: 0; }
.check-item { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 4px 12px; background: #fff; }
.check-item + .check-item { margin-top: 8px; }
.check-item .ic { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; grid-row: span 2; margin-top: 1px; }
.check-item .ic svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 3.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ic-pass { background: #1E7A4C; } .ic-skip { background: #A99A8E; } .ic-warn { background: #D99A1E; } .ic-fail { background: #C0362C; }
.check-item b { font-weight: 600; }
.check-item p { color: var(--ink-2); font-size: 16px; overflow-wrap: anywhere; }
.check-item .fix { grid-column: 2; margin-top: 6px; font-size: 15px; background: var(--tint-2); border-radius: 10px; padding: 8px 12px; color: var(--ink); }
.check-item .fix b { color: #9A3C0C; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }

.verdict { border-radius: 18px; padding: 22px 24px; display: flex; gap: 16px; align-items: flex-start; }
.verdict .h3 { font-size: 24px; }
.verdict p { margin-top: 6px; color: var(--ink); }
.v-strong { background: #E6F4EC; } .v-listed { background: #EEF6E7; } .v-sometimes { background: #FFF2D9; } .v-missing { background: #FDECEA; }
.q-block { margin-top: 22px; }
.q-block .q { font-weight: 600; font-size: 17px; display: flex; gap: 10px; align-items: flex-start; }
.q-block .q::before { content: "Q"; flex: 0 0 28px; height: 28px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.picks { list-style: none; counter-reset: p; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.picks li { counter-increment: p; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--soft); font-size: 16px; }
.picks li::before { content: counter(p); font-weight: 700; color: var(--ink-2); }
.picks li.you { background: #E6F4EC; outline: 2px solid #1E7A4C; }
.picks li.you b::after { content: "You"; margin-left: 8px; font-size: 12px; background: #1E7A4C; color: #fff; border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
.picks li span { color: var(--ink-2); display: block; font-size: 15px; }
.not-listed { margin-top: 8px; font-size: 15px; color: #9B2A22; font-weight: 500; }
.sources { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.sources a { color: var(--ink-2); }

.reply-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.reply-card + .reply-card { margin-top: 12px; }
.reply-card .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.reply-card .tag { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #A8440F; }
.reply-card p { white-space: pre-wrap; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.slider { display: flex; flex-direction: column; gap: 6px; }
.slider .top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.slider .top > span { white-space: nowrap; font-weight: 600; color: var(--ink-2); }
.slider label { font-weight: 600; font-size: 16px; }
.slider output, .slider .num { font-family: var(--serif); font-size: 22px; color: var(--accent); }
.slider .num { width: 120px; text-align: right; border: 1.5px solid var(--line); border-radius: 10px; padding: 4px 8px; font-size: 20px; color: var(--ink); background: #fff; }
.slider input[type="range"] { width: 100%; accent-color: var(--accent); height: 32px; }
.slider .hint { font-size: 14px; color: var(--ink-2); }
.calc-out { background: var(--deep); color: #fff; border-radius: 20px; padding: 28px; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 16px; }
.calc-out .big { font-family: var(--serif); font-size: clamp(44px, 6vw, 60px); line-height: 1; color: #FFC9A3; }
.calc-out .lbl { color: #E9D9CC; font-size: 15px; }
.calc-out .mini { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-out .mini div { background: rgba(255,255,255,.08); border-radius: 12px; padding: 12px; }
.calc-out .mini b { display: block; font-size: 24px; font-weight: 600; }
.calc-out .mini span { font-size: 13px; color: #E9D9CC; }
.calc-out .btn { background: #fff; color: var(--ink); }
.calc-out .btn:hover { background: #FFE2CC; }

/* Assistant chat */
.chat { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; height: 560px; background: #fff; box-shadow: var(--shadow); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--deep); color: #fff; }
.chat-head .av { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex: 0 0 auto; }
.chat-head b { display: block; font-size: 16px; }
.chat-head small { color: #E9D9CC; font-size: 13px; display: flex; align-items: center; gap: 6px; }
.chat-head small::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #52C77A; }
.chat-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #FBF8F5; }
.msg { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: 16px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.user { background: var(--accent); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg.note { align-self: center; max-width: 92%; background: #FFF3EA; border: 1px dashed #F0B48C; color: #7A3410; font-size: 14px; text-align: center; }
.msg.typing { color: var(--ink-2); }
.typing-dots { display: inline-flex; gap: 4px; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: #C9B5A5; animation: blink 1.2s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .2s; } .typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-starters { padding: 10px 14px 0; background: #fff; border-top: 1px solid var(--line); }
.chat-form { display: flex; gap: 8px; padding: 12px 14px 14px; background: #fff; }
.chat-form input { flex: 1; font: inherit; font-size: 16px; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 16px; min-height: 48px; min-width: 0; }
.chat-form input:focus { border-color: var(--accent); outline: none; }
.chat-form .btn { min-height: 48px; padding: 10px 18px; }
.built-from { font-size: 14px; color: var(--ink-2); margin-top: 12px; }
.built-from summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.built-from ul { margin: 8px 0 0; padding-left: 18px; overflow-wrap: anywhere; }

/* Instant reply preview */
.preview-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.timer { display: inline-flex; align-items: center; gap: 8px; background: #E6F4EC; color: #17633D; font-weight: 600; border-radius: 999px; padding: 8px 14px; font-size: 15px; }
.mailbox { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.mailbox .bar { background: var(--soft); padding: 10px 14px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.mailbox .body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mailbox .subj { font-weight: 600; }
.mailbox .body p { white-space: pre-wrap; }
.sms { background: #F2F2F5; border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.sms .msg.user { background: #E5E5EA; color: #111; align-self: flex-start; border-bottom-left-radius: 6px; border-bottom-right-radius: 16px; }
.sms .msg.bot { background: #0B84FF; color: #fff; border: 0; align-self: flex-end; border-bottom-right-radius: 6px; border-bottom-left-radius: 16px; }

/* Help box (lead capture) */
.help { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 26px; }
.help .h3 { font-size: 22px; }
.help > p { color: var(--ink-2); margin-top: 6px; }
.help form { margin-top: 16px; display: grid; gap: 14px; }
.help .done { background: #E6F4EC; color: #17633D; border-radius: 14px; padding: 16px; font-weight: 500; }

/* Tool index */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-bottom: 88px; }
.tool-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; text-decoration: none; transition: transform .15s, border-color .15s; }
.tool-tile:hover { transform: translateY(-3px); border-color: #F0B48C; }
.tool-tile .icon { width: 52px; height: 52px; }
.tool-tile .icon svg { width: 26px; height: 26px; }
.tool-tile p { color: var(--ink-2); font-size: 17px; }
.tool-tile .go { margin-top: auto; color: var(--accent); font-weight: 600; }
.tool-tile .meta { font-size: 14px; color: var(--ink-2); }

.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.how div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.how b { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: #FDE8D7; color: var(--accent); align-items: center; justify-content: center; font-weight: 700; margin-bottom: 10px; }
.how p { color: var(--ink-2); font-size: 17px; margin-top: 6px; }
.more-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.more-tools a { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; background: #fff; font-weight: 600; }
.more-tools a span { display: block; font-weight: 400; font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.more-tools a:hover { border-color: var(--accent); }

@media (max-width: 960px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .tool-card { padding: 22px 18px; border-radius: 18px; }
  .tool-form .row, .tool-form .row-3, .calc, .result-grid, .preview-grid, .how, .more-tools, .tool-grid { grid-template-columns: 1fr; }
  .url-row { flex-direction: column; }
  .url-row .btn, .tool-form .btn[type="submit"] { width: 100%; justify-self: stretch; }
  .phone-shot { position: static; max-width: 220px; margin: 0 auto; order: -1; }
  .calc-out { position: static; }
  .chat { height: 520px; }
  .msg { max-width: 90%; }
  .grade { width: 92px; height: 92px; border-radius: 22px; } .grade b { font-size: 48px; }
  .tool-hero { padding-top: 40px; }
}
@media print {
  .site-head, .site-foot, .help, .result-actions, .tool-form, .closing, .more-tools, .faq { display: none !important; }
  .tool-card { box-shadow: none; border: 0; padding: 0; }
}
