/* Vigocrest Tools — matches vigocrest.com tokens */
:root {
  --bg: #faf9f6;
  --surface: #fffefb;
  --text: #1f2e23;
  --muted: #5b675e;
  --primary: #588157;
  --primary-dark: #3f603e;
  --button: #c0cfb2;
  --button-hover: #a9bd98;
  --sage-soft: #e5ecdc;
  --terracotta: #e3bfa3;
  --border: rgba(31, 46, 35, 0.09);
  --glass-border: rgba(88, 129, 87, 0.18);
  --footer: #f3f2ec;
  --danger: #b5432f;
  --warn: #b7791f;
  --ok: #3f7d3e;
  --shadow: 0 18px 40px -24px rgba(31, 46, 35, 0.28);
  --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Lora", Georgia, serif;
  --font-logo: "Playfair Display", Georgia, serif;
  --radius: 1rem;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img, svg, canvas { max-width: 100%; }
a { color: var(--primary-dark); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-bottom: .75rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header / footer */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(250, 249, 246, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-family: var(--font-logo); font-size: 1.35rem; font-weight: 600; color: var(--text); text-decoration: none; letter-spacing: .01em; }
.logo span { font-family: var(--font-body); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin-left: 8px; vertical-align: middle; }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .btn { color: var(--text); }
@media (max-width: 760px) { .nav a:not(.btn) { display: none; } }
.site-footer { background: var(--footer); margin-top: 80px; padding: 48px 0 32px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }
.site-footer a { color: var(--text); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 32px; font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--button); color: var(--text); font: 600 .95rem var(--font-body); padding: 12px 24px; cursor: pointer; text-decoration: none; box-shadow: 0 10px 24px -14px rgba(63, 96, 62, .55); transition: background .15s, transform .15s; }
.btn:hover { background: var(--button-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.dark { background: var(--primary-dark); color: #fff; }
.btn.dark:hover { background: #33502f; }
.btn.ghost { background: transparent; box-shadow: none; border: 1px solid var(--glass-border); }
.btn.ghost:hover { background: var(--sage-soft); }
.btn.sm { padding: 8px 16px; font-size: .85rem; }
.btn.block { width: 100%; }
label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=url], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(31, 46, 35, .18); background: var(--surface);
  font: 400 1rem var(--font-body); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(88, 129, 87, .18); }
input[aria-invalid=true] { border-color: var(--danger); }
.field { margin-bottom: 18px; }
.field-error { color: var(--danger); font-size: .82rem; margin-top: 4px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .row, .row-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; cursor: pointer; margin-bottom: 10px; }
.check input { margin-top: 4px; accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.color-input { display: flex; gap: 8px; align-items: center; }
.color-input input[type=color] { width: 46px; height: 46px; padding: 0; border: 1px solid rgba(31, 46, 35, .18); border-radius: 12px; background: var(--surface); cursor: pointer; flex: none; }
.color-input input[type=color]::-webkit-color-swatch-wrapper { padding: 4px; }
.color-input input[type=color]::-webkit-color-swatch { border: none; border-radius: 8px; }
.seg { display: inline-flex; background: var(--sage-soft); border-radius: 999px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 500; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 2px 6px rgba(31, 46, 35, .08); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); }
input[type=range] { width: 100%; accent-color: var(--primary); }

/* surfaces */
.panel { background: rgba(255, 255, 255, .78); border: 1px solid var(--glass-border); border-radius: 2rem; padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .panel { padding: 20px; border-radius: 1.5rem; } }
.hero { padding: 64px 0 32px; }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 680px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge { font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; background: var(--sage-soft); color: var(--primary-dark); border-radius: 999px; padding: 6px 12px; }
.badge.terra { background: #f4e3d6; color: #8a4f2a; }
.section { padding: 40px 0; }

/* hub cards */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tool-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--glass-border); border-radius: 1.5rem; padding: 24px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.tool-card:hover { transform: translateY(-3px); border-color: var(--primary); }
.tool-card .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--sage-soft); display: grid; place-items: center; margin-bottom: 16px; color: var(--primary-dark); }
.tool-card p { color: var(--muted); font-size: .92rem; flex: 1; }
.tool-card .go { font-weight: 600; font-size: .9rem; color: var(--primary-dark); }

/* tool layout */
.tool-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start; }
.tool-layout > .sticky { position: sticky; top: 84px; }
@media (max-width: 900px) { .tool-layout { grid-template-columns: minmax(0, 1fr); } .tool-layout > .sticky { position: static; } }

.dropzone { border: 2px dashed rgba(88, 129, 87, .4); border-radius: 1.5rem; padding: 32px 20px; text-align: center; background: var(--surface); cursor: pointer; transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone.drag { background: var(--sage-soft); border-color: var(--primary); }
.dropzone input { display: none; }
.dropzone .dz-preview { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 22px; background: #fff center/contain no-repeat; display: none; box-shadow: var(--shadow); }
.dropzone.has-image .dz-preview { display: block; }

.preview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; text-align: center; }
.preview-grid figure { margin: 0; }
.preview-grid canvas { width: 100%; max-width: 72px; height: auto; aspect-ratio: 1; display: block; margin: 0 auto 6px; }
.preview-grid figcaption { font-size: .72rem; color: var(--muted); }
.checker { background: repeating-conic-gradient(#eee 0% 25%, #fff 0% 50%) 50% / 12px 12px; border-radius: 12px; }

pre.code { background: #1f2e23; color: #e5ecdc; border-radius: 1rem; padding: 16px; overflow: auto; font-size: .8rem; line-height: 1.5; max-height: 420px; margin: 0; white-space: pre; }
.code-head { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 8px; }
.code-head h3 { margin: 0; font-size: 1rem; font-family: var(--font-body); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tabs button { border: 1px solid var(--glass-border); background: var(--surface); border-radius: 999px; padding: 6px 14px; font: 500 .82rem var(--font-body); cursor: pointer; color: var(--muted); }
.tabs button[aria-selected=true] { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

/* SEO checker */
.score { display: flex; align-items: center; gap: 20px; }
.score-ring { --p: 0; --c: var(--ok); width: 112px; height: 112px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--sage-soft) 0); }
.score-ring b { width: 88px; height: 88px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font: 600 1.9rem var(--font-head); }
.check-group h3 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 24px 0 8px; }
.check-item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.check-item .dot { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: .75rem; font-weight: 700; color: #fff; margin-top: 2px; }
.dot.pass { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.fail { background: var(--danger); } .dot.info { background: #8a958c; }
.check-item strong { display: block; font-weight: 600; font-size: .95rem; }
.check-item .detail { color: var(--muted); font-size: .85rem; word-break: break-word; }
.share-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; max-width: 440px; }
.share-card .img { aspect-ratio: 1200 / 630; background: var(--sage-soft) center/cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: .85rem; }
.share-card .txt { padding: 12px 14px; }
.share-card .host { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.share-card .t { font-weight: 600; margin: 2px 0; font-size: .95rem; }
.share-card .d { font-size: .82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.serp { max-width: 600px; }
.serp .u { font-size: .8rem; color: #3c4043; }
.serp .t { color: #1a0dab; font-size: 1.15rem; margin: 2px 0; line-height: 1.3; }
.serp .d { font-size: .87rem; color: #4d5156; }

/* APK builder */
.steps { counter-reset: step; }
.step { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 22px; }
.step:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.step > h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 10px; }
.step > h2::before { counter-increment: step; content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--primary-dark); color: #fff; font: 600 .85rem var(--font-body); display: grid; place-items: center; flex: none; }
.phone { width: 240px; height: 490px; margin: 0 auto; border-radius: 38px; background: #1f2e23; padding: 10px; box-shadow: 0 30px 60px -30px rgba(31, 46, 35, .6); }
.phone .screen { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: background .2s; }
.phone .screen .bar { position: absolute; top: 0; left: 0; right: 0; height: 26px; }
.phone .splash-icon { width: 84px; height: 84px; }
.phone .credit { position: absolute; bottom: 34px; left: 0; right: 0; text-align: center; font-size: .65rem; line-height: 1.3; }
.phone .credit b { display: block; font-size: .85rem; }
.preview-toggle { display: flex; justify-content: center; margin-top: 14px; }
.home-screen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 40px 14px; align-self: stretch; }
.home-screen .app { text-align: center; font-size: .58rem; color: #fff; }
.home-screen .app i { display: block; width: 40px; height: 40px; margin: 0 auto 4px; border-radius: 50%; background: rgba(255, 255, 255, .25); overflow: hidden; }
.home-screen .app i canvas { width: 100%; height: 100%; display: block; }

.status-card { text-align: center; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--sage-soft); border-top-color: var(--primary); animation: spin 1s linear infinite; margin: 8px auto 16px; }
@keyframes spin { to { transform: rotate(360deg); } }
.price { font: 600 1.8rem var(--font-head); }
.offer { background: linear-gradient(135deg, #f4e3d6, #e5ecdc); border-radius: 1.5rem; padding: 22px; margin-top: 20px; text-align: left; }
.offer ul { margin: 8px 0 16px; padding-left: 20px; font-size: .9rem; }
.notice { background: #fff8eb; border: 1px solid #f0d9a8; border-radius: 1rem; padding: 14px 16px; font-size: .88rem; }
.notice.ok { background: #eef5ea; border-color: #c5dcbc; }
.notice.err { background: #fbecea; border-color: #eec4bd; }

/* CTA band, FAQ */
.cta-band { background: var(--primary-dark); color: #fff; border-radius: 2rem; padding: 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe5d3; margin: 0; }
.cta-band .actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cta-band .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .35); }
.cta-band .btn.ghost:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 28px; } .cta-band .actions { justify-content: flex-start; } }
.faq details { border-top: 1px solid var(--border); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0; color: var(--muted); }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }

/* toast & modal */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--text); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .9rem; transition: transform .25s; z-index: 100; max-width: calc(100% - 32px); }
.toast.show { transform: translateX(-50%) translateY(0); }
dialog.modal { border: 0; border-radius: 1.75rem; padding: 0; max-width: 460px; width: calc(100% - 32px); box-shadow: 0 40px 80px -30px rgba(31, 46, 35, .5); }
dialog.modal::backdrop { background: rgba(31, 46, 35, .45); backdrop-filter: blur(3px); }
dialog.modal form { padding: 28px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#status, #results, .step { scroll-margin-top: 84px; }

/* Why / where blocks */
.why-where { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-where h2 { font-size: 1.35rem; }
@media (max-width: 760px) { .why-where { grid-template-columns: 1fr; } }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { position: relative; padding-left: 30px; margin: 10px 0; color: var(--text); }
ul.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--sage-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f603e' stroke-width='3'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
code { overflow-wrap: anywhere; }

/* VigoCards maker */
.phone-frame { width: 100%; max-width: 340px; margin: 0 auto; aspect-ratio: 9 / 17; border: 10px solid #1f2e23; border-radius: 34px; overflow: hidden; background: #f4f4f1; }
.phone-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: #f4f4f1; }
.item-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 36px; gap: 8px; margin-bottom: 8px; }
.item-row .x { border: 1px solid var(--glass-border); background: transparent; border-radius: 10px; cursor: pointer; font-size: 1.1rem; color: var(--muted); }
.slug-ok { color: var(--primary-dark); font-weight: 600; }
.slug-bad { color: var(--danger); }
.my-cards { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
[hidden] { display: none !important; }

/* Letterhead generator: one A4 sheet used for preview, print/PDF */
.lh-frame { background: #e9ebe6; border-radius: 14px; padding: 14px; overflow: hidden; }
.lh-scale { transform-origin: top left; }
.lh-sheet { position: relative; width: 210mm; min-height: 297mm; background: #fff; color: #1d2420; box-shadow: 0 6px 24px rgba(0,0,0,.12); font-family: var(--lh-font, Arial, Helvetica, sans-serif); font-size: 11pt; line-height: 1.5; }
.lh-head { padding: 12mm 18mm 0; height: 40mm; box-sizing: border-box; }
.lh-foot { position: absolute; left: 0; right: 0; bottom: 0; height: 22mm; box-sizing: border-box; padding: 4mm 18mm 8mm; font-size: 8pt; line-height: 1.45; color: #59625c; text-align: center; }
.lh-foot .credit { color: #9aa29c; font-size: 7pt; margin-top: 1mm; }
.lh-body { padding: 6mm 18mm 26mm; white-space: pre-wrap; word-wrap: break-word; }
.lh-body .meta { display: flex; justify-content: space-between; gap: 8mm; }
.lh-body p { margin: 0 0 4mm; }
.lh-body .sub { font-weight: bold; }
.lh-body .sig img { display: block; max-height: 18mm; max-width: 50mm; margin: 2mm 0 1mm; }
.lh-row { display: flex; align-items: center; gap: 5mm; }
.lh-logo { max-height: 18mm; max-width: 40mm; object-fit: contain; display: block; }
.lh-name { font-size: 18pt; font-weight: bold; line-height: 1.15; color: var(--lh-c); }
.lh-tag { font-size: 9.5pt; color: #59625c; margin-top: 1mm; }
.lh-contact { font-size: 8.5pt; line-height: 1.55; color: #3c4540; text-align: right; margin-left: auto; white-space: nowrap; }
.lh-rule { height: 0; border-top: 1.2mm solid var(--lh-c); margin-top: 4mm; }
.lh-centered .lh-row { flex-direction: column; text-align: center; gap: 2mm; }
.lh-centered .lh-contact { text-align: center; margin: 2mm 0 0; white-space: normal; }
.lh-centered .lh-rule { border-top-width: .5mm; }
.lh-modern .lh-head { background: var(--lh-c); color: #fff; height: 36mm; padding-top: 10mm; }
.lh-modern .lh-name, .lh-modern .lh-tag, .lh-modern .lh-contact { color: #fff; }
.lh-modern .lh-logo { background: #fff; border-radius: 2mm; padding: 1.5mm; }
.lh-modern .lh-rule { display: none; }
.lh-modern .lh-foot { border-top: 1mm solid var(--lh-c); }
.lh-blank .lh-body { min-height: 200mm; }
#printRoot { display: none; }
table.lh-pages { width: 100%; border-collapse: collapse; }
table.lh-pages td { padding: 0; }
.lh-sp-head, .lh-sp-foot { height: 0; }
.lh-foot-print { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  html.printing-letter body > *:not(#printRoot) { display: none !important; }
  html.printing-letter #printRoot { display: block; }
  html.printing-letter, html.printing-letter body { background: #fff !important; margin: 0; padding: 0; }
  #printRoot .lh-sheet { box-shadow: none; min-height: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #printRoot .lh-head { position: fixed; top: 0; left: 0; right: 0; }
  #printRoot .lh-foot { display: none; }
  #printRoot .lh-foot.lh-foot-print { display: block; position: static; height: auto; padding: 4mm 18mm 8mm; }
  #printRoot table.lh-pages { width: 100%; border-collapse: collapse; height: 296mm; }
  #printRoot table.lh-pages tbody td { vertical-align: top; }
  #printRoot table.lh-pages td { padding: 0; }
  #printRoot .lh-sp-head { height: 42mm; }
  #printRoot .lh-sp-foot { height: auto; vertical-align: bottom; }
  #printRoot .lh-body { padding-bottom: 0; }
}

/* Tools hub: goals first, then a short list */
.hub-hero { padding-bottom: 28px; }
.hub-search { display: flex; align-items: center; gap: 10px; max-width: 520px; margin-top: 22px; background: var(--surface); border: 1px solid var(--glass-border); border-radius: 999px; padding: 4px 18px; box-shadow: var(--shadow); color: var(--muted); }
.hub-search input { border: 0; background: transparent; box-shadow: none; padding: 12px 0; flex: 1; min-width: 0; font-size: 1rem; outline: none; }
.hub-q { margin: 0 0 16px; }
.goals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.goal { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; padding: 18px; border-radius: 1.25rem; border: 1px solid var(--glass-border); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, transform .15s; }
.goal:hover { border-color: var(--primary); transform: translateY(-2px); }
.goal[aria-pressed="true"] { border-color: var(--primary-dark); background: var(--sage-soft); box-shadow: 0 0 0 2px var(--primary-dark) inset; }
.goal .gi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sage-soft); color: var(--primary-dark); margin-bottom: 6px; }
.goal[aria-pressed="true"] .gi { background: var(--primary-dark); color: #fff; }
.goal b { font-size: 1rem; }
.goal small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.goal em { font-style: normal; font-size: .76rem; font-weight: 600; color: var(--primary-dark); margin-top: 4px; }
.hub-results { margin-top: 34px; scroll-margin-top: 96px; }
.hub-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hub-results-head h2 { margin: 0; font-size: 1.35rem; }
.tool-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.tool-mini { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 1rem; background: var(--surface); border: 1px solid var(--glass-border); text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.tool-mini:hover { border-color: var(--primary); transform: translateY(-2px); }
.tool-mini .ico { width: 42px; height: 42px; flex: none; border-radius: 12px; background: var(--sage-soft); display: grid; place-items: center; color: var(--primary-dark); }
.tool-mini .ico svg { width: 22px; height: 22px; }
.tool-mini b { display: block; font-size: .97rem; line-height: 1.3; }
.tool-mini small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.35; margin-top: 2px; }
.all-tools { margin-top: 36px; border-top: 1px solid var(--glass-border); padding-top: 18px; }
.all-tools summary { cursor: pointer; font-weight: 600; color: var(--primary-dark); }
.all-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 16px; }
.all-grid h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.all-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.all-grid a { color: inherit; font-size: .92rem; }
@media (max-width: 900px) { .goals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .goal { padding: 14px; } .goal small { display: none; } }

/* VigoCards quick start + checklist */
.quick { padding: 28px; margin-bottom: 8px; }
.quick-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.quick-preview .phone-frame { max-width: 300px; }
@media (max-width: 900px) { .quick-grid { grid-template-columns: 1fr; } .quick-preview { display: none; } .quick { padding: 20px; } }
.scan-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 16px 18px; border-radius: 1rem; border: 2px dashed var(--primary); background: var(--sage-soft); color: inherit; font: inherit; cursor: pointer; }
.scan-btn:hover { border-style: solid; }
.scan-btn[disabled] { opacity: .6; cursor: progress; }
.scan-btn .scan-ico { width: 48px; height: 48px; flex: none; border-radius: 14px; background: var(--primary-dark); color: #fff; display: grid; place-items: center; }
.scan-btn b { display: block; font-size: 1rem; }
.scan-btn small { display: block; color: var(--muted); font-size: .86rem; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .82rem; margin: 18px 0 14px; }
.or:before, .or:after { content: ""; flex: 1; border-top: 1px solid var(--glass-border); }
.checklist { background: var(--sage-soft); border-radius: 1rem; padding: 18px 20px !important; }
.cl-head { display: flex; justify-content: space-between; align-items: baseline; }
.cl-head b { font-size: 1.3rem; color: var(--primary-dark); }
.cl-bar { height: 8px; border-radius: 99px; background: rgba(63, 96, 62, .15); margin: 10px 0 12px; overflow: hidden; }
.cl-bar span { display: block; height: 100%; width: 0; background: var(--primary-dark); border-radius: 99px; transition: width .3s; }
#clItems { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
#clItems button { display: flex; width: 100%; align-items: center; gap: 10px; text-align: left; background: #fff; border: 1px solid var(--glass-border); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .92rem; cursor: pointer; color: inherit; }
#clItems button:before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--primary); }
#clItems li.done button { color: var(--muted); text-decoration: line-through; background: transparent; }
#clItems li.done button:before { background: var(--primary-dark) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--primary-dark); }
#checklist, #donePanel { scroll-margin-top: 84px; }
