/* =====================================================================
   NoticeFix — service pages + services hub
   Builds on css/style.css and css/notices.css. Tokens only.
   ===================================================================== */

/* ===== Hero ===== */
.sh .hero-title { margin: 20px 0 22px; font-size: clamp(2.4rem, 4vw, 3.6rem); }

/* ===== Tool card (estimator / quiz / tracker) ===== */
.tool { position: relative; border-radius: 28px; padding: 28px; min-height: 380px; }
.tool-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.tool-icon { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--primary-color), var(--action-color)); color: var(--on-primary); box-shadow: var(--glow); }
.tool-icon svg { width: 22px; height: 22px; }
.tool-title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; color: var(--secondary-color); }

/* Estimator */
.est-row { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 0 8px; font-size: .9rem; font-weight: 500; color: var(--secondary-color); }
.est-row output { font-size: 1.1rem; font-weight: 600; color: var(--action-color); }
.est input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; margin: 0 0 18px; background: linear-gradient(90deg, var(--primary-color) var(--p, 50%), var(--line) var(--p, 50%)); outline: none; cursor: pointer; }
.est input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 3px solid var(--action-color); box-shadow: var(--sh-med); transition: transform .2s var(--ease-out); }
.est input[type="range"]::-webkit-slider-thumb:hover, .est input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.est input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--action-color); }
.est input[type="range"]:focus-visible { box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .2); }
.est-result { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border-radius: 18px; background: var(--secondary-color); color: var(--on-secondary); margin: 6px 0 14px; }
.est-result span { font-size: .8rem; opacity: .75; display: block; }
.est-result strong { font-size: 2.2rem; letter-spacing: -.02em; line-height: 1.1; }
.est-plan { opacity: 1 !important; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(var(--white-rgb), .12); font-size: .78rem !important; font-weight: 600; transition: background .3s; }
.est-plan.warn { background: var(--warning); }
.est-facts { list-style: none; padding: 0; margin: 0 0 10px; font-size: .86rem; }
.est-facts li { display: flex; align-items: center; gap: 8px; padding: 4px 0; color: var(--body); }
.est-facts svg { width: 16px; height: 16px; color: var(--accent-color); flex: none; }
.est-facts b { font-family: var(--font-mono); color: var(--secondary-color); }
.est-note { margin: 8px 0 0; font-size: .75rem; color: var(--muted); }

/* Quiz */
.quiz-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.quiz-dots i { flex: 1; height: 5px; border-radius: 5px; background: var(--line); transition: background .4s var(--ease); }
.quiz-dots i.on { background: var(--primary-color); }
.quiz-dots i.done { background: var(--accent-color); }
.quiz-stage { position: relative; min-height: 230px; }
.q-card { animation: qIn .45s var(--ease-out); }
@keyframes qIn { from { opacity: 0; transform: translateX(24px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.q-step { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); margin: 0 0 8px; }
.q-text { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; line-height: 1.3; color: var(--secondary-color); margin: 0 0 24px; }
.q-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); font-weight: 600; font-size: 1rem; color: var(--secondary-color); transition: border-color .25s, background .25s, color .25s, transform .3s var(--ease-out), box-shadow .3s; }
.q-btn svg { width: 18px; height: 18px; }
.q-btn:hover { transform: translateY(-3px); box-shadow: var(--sh-med); }
.q-btn.yes:hover { border-color: var(--accent-color); color: var(--accent-color); }
.q-btn.no:hover { border-color: var(--danger); color: var(--danger); }
.q-btn:active { transform: scale(.96); }
.q-back { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; border: 0; background: none; padding: 0; color: var(--muted); font-size: .85rem; }
.q-back:hover { color: var(--action-color); }
.q-back svg { width: 14px; height: 14px; }
.q-result { padding: 20px; border-radius: 18px; background: var(--accent-tint); border: 1px solid rgba(var(--accent-rgb), .2); }
.q-result .q-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-color); margin-bottom: 8px; }
.q-result .q-badge svg { width: 15px; height: 15px; }
.q-result h3 { font-size: 1.25rem; margin: 0 0 6px; }
.q-result p { margin: 0 0 16px; font-size: .95rem; }
.q-actions { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.confetti-dot { position: absolute; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; animation: confetti 1s var(--ease-out) forwards; }
@keyframes confetti { to { transform: translate(var(--dx), var(--dy)) rotate(var(--r)); opacity: 0; } }

/* Tracker */
.tracker { position: relative; list-style: none; margin: 0 0 18px; padding: 0; }
.tracker::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--line); }
.tr-item { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 0; }
.tr-dot { position: relative; z-index: 1; width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 2px solid var(--line); transition: background .4s, border-color .4s, transform .4s var(--ease-out); }
.tr-dot svg { width: 16px; height: 16px; fill: none; stroke: var(--on-primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset .4s var(--ease-out) .15s; }
.tr-label { flex: 1; font-size: .95rem; font-weight: 500; color: var(--secondary-color); }
.tr-state { font-size: .75rem; font-weight: 600; padding: 3px 9px; border-radius: var(--r-pill); background: var(--secondary-tint); color: var(--muted); transition: background .4s, color .4s; }
.tr-item.done .tr-dot { background: var(--accent-color); border-color: var(--accent-color); transform: scale(1.08); }
.tr-item.done .tr-dot svg { stroke-dashoffset: 0; }
.tr-item.done .tr-state { background: var(--accent-tint); color: var(--accent-color); }
.tr-item.current .tr-dot { border-color: var(--primary-color); box-shadow: 0 0 0 5px rgba(var(--primary-rgb), .15); animation: dotPulse 2s infinite; }
.tr-item.current .tr-state { background: var(--primary-tint); color: var(--action-color); }
.tr-result { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-radius: 16px; background: var(--secondary-color); color: var(--on-secondary); opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease-out); }
.tr-result.show { opacity: 1; transform: none; }
.tr-result span { font-size: .85rem; opacity: .75; }
.tr-result strong { font-size: 1.5rem; color: var(--accent-tint); }

/* ===== Who strip ===== */
.who-strip { padding: 10px 0 30px; }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.who-item { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: 18px; font-size: .93rem; font-weight: 500; color: var(--secondary-color); transition: transform .35s var(--ease-out); }
.who-item:hover { transform: translateY(-3px); }
.who-item svg { flex: none; width: 22px; height: 22px; color: var(--accent-color); }
.who-grid-2 { grid-template-columns: repeat(2, 1fr); }
.who-photo { margin: 0; aspect-ratio: 4 / 3; }

/* ===== Answer cards ===== */
.ans-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ans-card { --mx: 50%; --my: 50%; position: relative; overflow: hidden; padding: 26px; border-radius: 22px; transition: transform .4s var(--ease-out), box-shadow .4s; }
.ans-card:hover { transform: translateY(-4px); box-shadow: var(--sh-high); }
.ans-card h3 { display: flex; gap: 12px; font-size: 1.1rem; line-height: 1.35; margin-bottom: 10px; }
.ans-q { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-family: var(--font-mono); font-size: .8rem; background: var(--action-color); color: var(--on-primary); }
.ans-card p { margin: 0; color: var(--body); font-size: .96rem; }
.ans-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Comparison table */
.svc-table { margin-top: 30px; padding: 10px; border-radius: 24px; }
.svc-table-title { margin: 12px 16px 6px; font-family: var(--font-head); font-weight: 700; color: var(--secondary-color); }
.st-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; transition: background .25s; }
.st-row:last-child { border-bottom: 0; }
.st-row:not(.st-head):hover { background: rgba(var(--primary-rgb), .04); }
.st-row > span:first-child { font-weight: 600; color: var(--secondary-color); }
.st-head { font-family: var(--font-head); font-size: .82rem; color: var(--muted); }
.st-head > span:first-child { color: var(--muted); }

/* ===== Process ===== */
.svc-wide-photo { margin: 0 auto 44px; max-width: 980px; aspect-ratio: 21 / 9; }
.proc { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.proc-line { position: absolute; left: 12%; right: 12%; top: 27px; height: 2px; background: var(--line); }
.proc-line span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--primary-color), var(--accent-color)); }
.proc-step { position: relative; text-align: center; padding: 0 8px; }
.proc-num { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--white); border: 2px solid var(--line); font-weight: 600; color: var(--action-color); margin-bottom: 16px; transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease-out); }
.proc-step.on .proc-num { background: var(--action-color); color: var(--on-primary); border-color: var(--action-color); box-shadow: var(--glow); transform: scale(1.06); }
.proc-step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.proc-step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* ===== Included ===== */
.incl { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; padding: 36px; border-radius: 30px; }
.incl .section-title { margin-bottom: 18px; }
.incl .checklist { margin-bottom: 0; }
.incl-price { justify-content: center; }
.incl-price strong { font-size: 2.4rem; }
.incl-note { font-size: .85rem; opacity: .8; margin: 0 0 8px; }

/* ===== Mini service links ===== */
.svc-mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc-mini { --mx: 50%; --my: 50%; position: relative; overflow: hidden; display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 20px; color: var(--body); transition: transform .4s var(--ease-out), box-shadow .4s; }
.svc-mini:hover { transform: translateY(-4px); box-shadow: var(--sh-high); color: var(--body); }
.svc-mini .svc-icon { width: 46px; height: 46px; flex: none; }
.svc-mini h3 { font-size: 1rem; margin: 0 0 2px; }
.svc-mini span.mono { font-size: .8rem; color: var(--accent-color); font-weight: 600; }
.svc-mini > div { flex: 1; }
.svc-mini-go { width: 18px; height: 18px; color: var(--action-color); transition: transform .35s var(--ease-out); }
.svc-mini:hover .svc-mini-go { transform: translate(3px, -3px); }
.svc-mini:hover .svc-icon { transform: rotate(-8deg) scale(1.08); background: var(--action-color); color: var(--on-primary); }

/* ===== Hub ===== */
.svc-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc-hub-grid .svc-card { min-height: 250px; }
.svc-hub-grid .svc-dark { grid-column: span 2; }
/* Cover photo on hub cards; the icon overlaps its bottom edge */
.svc-thumb { display: block; position: relative; margin: -28px -28px 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--primary-tint); }
.svc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.svc-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(var(--navy-rgb), .32)); transition: opacity .4s; }
.svc-card:hover .svc-thumb img { transform: scale(1.06); }
.svc-card:hover .svc-thumb::after { opacity: .6; }
.has-thumb .svc-icon { position: relative; z-index: 1; margin-top: -40px; margin-left: 2px; background: var(--white); box-shadow: var(--sh-med); }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); margin-top: 6px; }
.svc-foot .mono { font-size: .88rem; font-weight: 600; color: var(--accent-color); }
.svc-dark .svc-foot { border-top-color: rgba(var(--white-rgb), .12); }
.svc-dark .svc-foot .mono { color: var(--accent-tint); }
.fix-map { display: flex; flex-direction: column; gap: 12px; max-width: 980px; margin: 0 auto; }
.fix-row { display: grid; grid-template-columns: 1.2fr 1fr 80px 1.2fr; align-items: center; gap: 16px; padding: 16px 22px; border-radius: 18px; color: var(--body); transition: transform .35s var(--ease-out), box-shadow .35s; }
.fix-row:hover { transform: translateX(6px); box-shadow: var(--sh-high); color: var(--body); }
.fix-code { font-weight: 600; color: var(--secondary-color); }
.fix-what { font-size: .9rem; color: var(--muted); }
.fix-arrow { position: relative; display: flex; align-items: center; color: var(--primary-color); }
.fix-arrow span { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.fix-arrow span::after { content: ""; position: absolute; inset: 0; background: var(--primary-color); transform: translateX(-100%); transition: transform .5s var(--ease-out); }
.fix-row:hover .fix-arrow span::after { transform: none; }
.fix-arrow svg { width: 18px; height: 18px; }
.fix-svc { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--action-color); }
.fix-svc svg { width: 18px; height: 18px; }

/* ===== Responsive ===== */
@media (max-width: 1199.98px) {
    .svc-mini-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991.98px) {
    .who-grid { grid-template-columns: repeat(2, 1fr); }
    .who-photo { aspect-ratio: 16 / 9; }
    .proc { grid-template-columns: repeat(2, 1fr); row-gap: 30px; }
    .proc-line { display: none; }
    .incl { grid-template-columns: 1fr; padding: 26px; }
    .svc-hub-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767.98px) {
    .ans-grid { grid-template-columns: 1fr; }
    .st-head { display: none; }
    .st-row { grid-template-columns: 1fr; gap: 4px; }
    .st-row > span:not(:first-child)::before { content: attr(data-label) ": "; color: var(--muted); font-size: .8rem; }
    .fix-row { grid-template-columns: 1fr; gap: 6px; }
    .fix-arrow { display: none; }
    .svc-hub-grid { grid-template-columns: 1fr; }
    .svc-hub-grid .svc-dark { grid-column: auto; }
}
@media (max-width: 575.98px) {
    .who-grid, .proc, .svc-mini-grid { grid-template-columns: 1fr; }
    .tool { padding: 22px; }
    .q-text { font-size: 1.15rem; }
}
