/* Shared "-GO" solution family composition (M.A.S.T.:GO, B.E.S.T.:GO, and
   future ones — auto-enqueued by functions.php's aigo_enqueue_assets() for
   any resenje template whose slug ends in "go" AND has no
   resenje-{slug}.css of its own; see the comment there). These pages reuse
   the same template-parts/blocks/*.php (features-grid, video-showcase,
   fit-faq, diagnostic-quiz, compare-cards, steps-timeline,
   profit-calculator, decision-branching) and the same quiet-editorial
   visual language, so their CSS lives in one shared file instead of being
   duplicated or trapped in a single page's own file (that was the previous
   bug: this file used to be resenje-mastgo.css, scoped to
   .page-template-template-resenje-mastgo only — a solution reusing e.g.
   features-grid.php without that exact file loaded got zero styling). See
   docs/theme-architecture.md's "The -GO family" section for the tradeoff
   of this being one shared file rather than per-block conditional loading.

   NOT every "-go"-branded solution is in this family: F.A.C.A.:GO is a
   fully bespoke page (resenje-facago.css) that reuses none of the blocks
   above, so it's excluded — having its own file is the signal.

   A page in this family that needs to diverge from the shared look for one
   rule does NOT get a separate file (that would exclude it, per above):
   every resenje post already carries a
   .page-template-template-resenje-{slug} body class (WordPress only does
   this for the 'page' post type by default — the
   aigo_page_template_body_class() filter in functions.php extends it to
   'resenje'), the same mechanism tokens.css uses for per-page accent
   colors. Scope the override to that class and add it to the "Per-page
   overrides" section at the bottom of this file.

   File order matters in this file specifically: every selector below is
   unscoped (no .page-template-... class), so two same-selector rules in
   different sections resolve by cascade order, not specificity. Each
   block's foundational look comes first, and the "-GO family look"
   section near the bottom overrides it — that section must stay after
   every foundational section it touches, or its overrides silently stop
   applying. See its own comment for the incident this note exists
   because of. */

.video-section,
.fit-section,
.diagnostic-section,
.compare,
.steps,
.profit-section,
.decision-section{padding-top:clamp(72px,7vw,96px);padding-bottom:clamp(72px,7vw,96px)}

/* The shared solution-section intro (.solution-intro — eyebrow + heading +
   lead, its measure and mobile behaviour) lives in styles.css. Only genuine
   per-section deltas stay below, each next to the block they belong to. */

/* ==========================================================================
   Feature grid — template-parts/blocks/features-grid.php
   ========================================================================== */
.grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}
.feature{
  position:relative;overflow:hidden;grid-template-rows:auto 1fr;min-height:100%;
  background:#fff;border-radius:var(--radius-lg);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover{transform:translateY(-2px);border-color:color-mix(in srgb, var(--page-accent) 20%, white);box-shadow:0 24px 60px rgba(24,27,34,.09)}
.feature h3{font-size:var(--fs-card-title);letter-spacing:var(--tracking-title);line-height:var(--lh-title)}
.feature-visual{
  position:relative;overflow:hidden;
  min-height:230px;aspect-ratio:1 / .5;border-radius:18px;
  background:#f5f6f8;border:1px solid var(--line);
}
.feature-visual:before{
  content:"";position:absolute;inset:0;z-index:1;
  background:rgba(255,255,255,.06);
  pointer-events:none;
}
.feature-visual:after{
  content:"";position:absolute;right:16px;top:16px;z-index:2;width:16px;height:16px;
  background:var(--brand-dots);color:#fff;opacity:.82;
}
.feature-image{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;
}
.feature-body{
  grid-template-rows:auto 1fr;
}
.feature-body h3{
  position:relative;
  border-bottom:1px solid var(--line);
}
.feature-body h3:after{
  content:"";position:absolute;left:0;bottom:-1px;width:72px;height:2px;
  background:var(--page-accent);
}
.feature p{color:var(--text-tertiary);font-size:var(--fs-body);line-height:var(--lh-body)}
.feature a{color:var(--page-accent);font-weight:700;font-size:14px}

@media (max-width:1100px){
  .grid-4{grid-template-columns:1fr 1fr}
}
@media (max-width:820px){
  .grid-4{grid-template-columns:1fr}
  .feature-visual{min-height:220px;aspect-ratio:1 / .5}
}

/* ==========================================================================
   Video showcase — template-parts/blocks/video-showcase.php
   ========================================================================== */
.video-card{
  overflow:hidden;border-radius:30px;background:#111;
  box-shadow:0 34px 90px rgba(24,27,34,.16);
}
.video-thumb{position:relative;min-height:560px;background:#111;overflow:hidden}
.video-thumb:before{
  content:"";position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(180deg,rgba(0,0,0,.04),rgba(0,0,0,.46)),
    linear-gradient(90deg,rgba(0,0,0,.34),transparent 48%,rgba(0,0,0,.18));
}
.video-thumb img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.video-caption{
  position:absolute;left:28px;bottom:26px;z-index:2;color:#fff;
  font-weight:850;font-size:18px;letter-spacing:-.02em;
}
.video-caption:before{content:"";width:16px;height:16px;flex:0 0 16px;background:var(--brand-dots)}
.play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  z-index:2;width:88px;height:88px;border-radius:50%;background:#fff;box-shadow:0 12px 34px rgba(0,0,0,.12);display:grid;place-items:center
}
.play:before{content:"";border-left:22px solid var(--page-accent);border-top:13px solid transparent;border-bottom:13px solid transparent;margin-left:6px}
.time{position:absolute;right:24px;bottom:24px;z-index:2;background:rgba(23,24,27,.74);color:#fff;font-size:12px;padding:6px var(--space-3);border-radius:999px}

@media (max-width:820px){
  .video-thumb{min-height:320px}
}

/* ==========================================================================
   Decision panel — solution page's two-option branch
   (template-parts/blocks/decision-branching.php). Uses --page-accent (red
   by default). Used to also back a home-page final-CTA variant
   (decision-final-cta.php), removed as dead code — see project history.
   ========================================================================== */
.decision-panel{
  position:relative;overflow:hidden;background:var(--page-accent);
  color:#fff;border-radius:var(--radius-xl);box-shadow:0 28px 80px rgba(var(--page-accent-rgb),.22);
}
.decision-panel:before{content:"";position:absolute;left:26px;top:26px;width:16px;height:16px;background:var(--brand-dots);opacity:.32}
.decision-panel:after{content:"";position:absolute;right:18px;bottom:18px;width:16px;height:16px;background:var(--brand-dots);color:#fff;opacity:.32;transform:scale(6);transform-origin:bottom right}
.decision-panel h3{position:relative;z-index:1;max-width:780px}

@media (max-width:820px){
  .decision-panel{padding:var(--space-7) var(--space-6)}
}

/* -- Solution page two-option branch variant (decision-branching.php) -- */
.decision-options{position:relative;z-index:1;grid-template-columns:1fr 1fr}
.decision-option{
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.32);border-radius:18px;
  color:#fff;cursor:pointer;font:inherit;transition:.18s ease;
}
.decision-option:hover{background:rgba(255,255,255,.18);transform:translateY(-1px)}
.decision-mark{font-size:19px;line-height:1.3;flex:0 0 auto}
.decision-text strong{font-size:16px;line-height:1.32;letter-spacing:-.01em}
.decision-text small{color:rgba(255,255,255,.78);font-size:13px;line-height:1.4}
.decision-option-primary{background:#fff;border-color:#fff;color:var(--page-accent)}
.decision-option-primary:hover{background:color-mix(in srgb, var(--page-accent) 4%, white)}
.decision-option-primary .decision-text small{color:rgba(var(--page-accent-rgb),.6)}

@media (max-width:820px){
  .decision-options{grid-template-columns:1fr}
}

/* -- .reference-stat: only used by profit-calculator.php's mini-stats
   (the References section that originally owned this, references-proof.php,
   was removed as dead code — see project history) -- */
.reference-stat{
  position:relative;overflow:hidden;border-radius:18px;
  background:#fff;border:1px solid var(--line);box-shadow:0 14px 38px rgba(24,27,34,.045);
}
.reference-stat:before{
  content:"";display:block;width:16px;height:16px;margin-bottom:var(--space-5);
  background:var(--brand-dots);color:var(--page-accent);
}
.reference-stat:after{
  content:"";position:absolute;left:20px;right:20px;top:52px;height:1px;background:var(--line);
}
.reference-stat strong{display:block;color:var(--text);font-size:16px;line-height:1.15;letter-spacing:-.015em}
.reference-stat span{display:block;color:#696f7a;font-size:13px;line-height:1.45}

/* -- "Is this for you" FAQ accordion — template-parts/blocks/fit-faq.php -- */
.fit-layout{grid-template-columns:.86fr 1.14fr}
.fit-intro{grid-template-rows:auto auto auto 1fr}
.fit-intro h2{max-width:560px}
.fit-image{
  position:relative;overflow:hidden;border-radius:24px;border:1px solid var(--line);
  min-height:330px;height:100%;background:#f1f2f4;box-shadow:var(--shadow-lg);
}
.fit-image:before{
  content:"";position:absolute;left:22px;top:22px;z-index:2;width:16px;height:16px;
  background:var(--brand-dots);color:#fff;opacity:.9;
}
.fit-image:after{
  content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(0,0,0,0),rgba(0,0,0,.24));
}
.fit-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.fit-prompt{color:var(--page-accent);font-weight:900}
.fit-prompt:before{content:"";width:16px;height:16px;flex:0 0 16px;background:var(--brand-dots)}
.faq-item{
  position:relative;overflow:hidden;padding:0;border:1px solid var(--line);border-radius:20px;
  background:#fff;box-shadow:var(--shadow);transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.faq-item:hover{border-color:#dde0e6;box-shadow:var(--shadow-hover)}
.faq-item.active{
  transform:translateY(-1px);
  border-color:#dfe2e8;
  background:#fbfbfc;
  box-shadow:var(--shadow-hover);
}
.faq-q{font-weight:820;font-size:var(--fs-body-lg);line-height:1.3;letter-spacing:-.012em;cursor:pointer}
.faq-q span:first-child{max-width:620px}
.faq-q span:last-child{
  width:32px;height:32px;border-radius:50%;background:#f4f5f7;color:#555c68;
  display:grid;place-items:center;font-size:20px;line-height:1;flex:0 0 32px;
  transition:.18s ease;
}
.faq-item.active .faq-q{color:#242830}
.faq-item.active .faq-q span:last-child{background:color-mix(in srgb, var(--page-accent) 7%, white);color:var(--page-accent);box-shadow:inset 0 0 0 1px rgba(var(--page-accent-rgb),.12)}
.faq-a{display:none;color:#646a75}
.faq-item.active .faq-a{display:block}

@media (max-width:820px){
  .fit-layout{grid-template-columns:1fr}
  .fit-section{padding:var(--space-10) 0 var(--space-9)}
  .fit-image{min-height:280px;height:auto;margin-top:var(--space-7)}
  .fit-prompt{margin-top:var(--space-6)}
  .faq-q{padding:var(--space-5);font-size:17px}
  .faq-a{padding:0 var(--space-5) var(--space-6) var(--space-5)}
}

/* -- Risk-scoring quiz — template-parts/blocks/diagnostic-quiz.php -- */
.diagnostic-toggle-summary{list-style:none}
.diagnostic-toggle-summary::-webkit-details-marker{display:none}
.diagnostic-toggle-summary::marker{content:""}
.diagnostic-toggle-icon{
  width:22px;height:22px;flex:0 0 22px;place-items:center;
  border-radius:50%;background:rgba(255,255,255,.22);font-size:15px;line-height:1;transition:transform .18s ease;
}
.diagnostic-toggle[open] .diagnostic-toggle-icon{transform:rotate(45deg)}
.diagnostic-toggle[open] .diagnostic-toggle-summary{margin-bottom:var(--space-7)}
.diagnostic-panel{grid-template-columns:1fr 360px}
.diagnostic-panel-intro{grid-column:1/-1;color:#30343b;font-size:22px;font-weight:600;line-height:var(--lh-body);max-width:820px}
.check-list{grid-template-columns:repeat(2,1fr)}
.check-item{
  position:relative;min-height:150px;
  border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow);
  transition:.18s ease;
}
.check-item:hover{transform:translateY(-1px);border-color:#efd4d1;box-shadow:var(--shadow-hover)}
.check-item:has(input[value="no"]:checked){border-color:#efc6c2;background:#fff8f7}
.check-item:has(input[value="yes"]:checked){border-color:#dbe8df;background:#fbfffc}
.check-item p{font-weight:780;font-size:16px;line-height:1.38;letter-spacing:-.015em;color:#30343b}
.answer-toggle{grid-template-columns:1fr 1.2fr;align-self:end}
.answer-toggle input{position:absolute;opacity:0;pointer-events:none}
.answer-toggle span{
  gap:7px;min-height:38px;
  border-radius:12px;border:1px solid var(--line);background:#fff;color:var(--text-secondary);
  font-size:13px;font-weight:850;line-height:1.15;cursor:pointer;transition:.18s ease;
}
.answer-toggle span::before{
  content:"";
  width:17px;height:17px;flex:0 0 17px;
  display:inline-flex;align-items:center;justify-content:center;
  border-radius:50%;border:2px solid currentColor;
  font-size:11px;font-weight:900;line-height:1;color:inherit;
}
/* Styled by which answer is the risk signal (.risk-answer-good/-bad, set
   in diagnostic-quiz.php from that page's own answers.risk_value), not by
   raw [value="yes"/"no"] — a page can frame its questions either way (see
   that file's comment), and the colors must follow the meaning, not the
   literal DA/NE wording. */
.answer-toggle input.risk-answer-good + span::before{content:"✓"}
.answer-toggle input.risk-answer-bad + span::before{content:"✕"}
.answer-toggle label:hover span{border-color:#efd4d1;color:var(--red)}
.answer-toggle input.risk-answer-good:checked + span{border-color:#b7d7bf;background:#effaf2;color:#23763a}
.answer-toggle input.risk-answer-bad:checked + span{border-color:#efc6c2;background:#fff1f0;color:var(--red)}
.diagnostic-result{
  position:sticky;top:108px;border-radius:24px;
  background:var(--blue);color:#fff;box-shadow:0 28px 80px rgba(35,37,60,.24);
  transition:box-shadow .3s ease;
}
.diagnostic-result.risk-level-watch{background:var(--amber);box-shadow:0 28px 80px rgba(184,121,28,.24)}
.diagnostic-result.risk-level-warn{background:var(--red-2);box-shadow:0 28px 80px rgba(225,91,104,.24)}
.diagnostic-result.risk-level-danger{background:var(--red);box-shadow:0 28px 80px rgba(209,67,79,.28)}
.risk-kicker{color:#c7d9f7;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.risk-kicker:before{content:"";width:16px;height:16px;flex:0 0 16px;background:var(--brand-dots)}
.risk-score strong{font-size:72px;line-height:.82;letter-spacing:-.07em}
.risk-score span{color:#c7d3e8;font-weight:800;margin-bottom:6px}
.risk-answered{margin-top:-6px;color:#a9bbdc;font-size:13px;font-weight:750}
.risk-bar{height:10px;border-radius:999px;background:rgba(255,255,255,.16);overflow:hidden}
.risk-fill{display:block;height:100%;width:0%;border-radius:inherit;background:var(--blue-2);transition:width .2s ease}
.risk-level-watch .risk-fill{background:var(--amber)}
.risk-level-warn .risk-fill{background:var(--red-2)}
.risk-level-danger .risk-fill{background:var(--red)}
.diagnostic-result p{color:#c7d3e8}
.diagnostic-result .btn-light{color:var(--blue)}

@media (max-width:1100px){
  .diagnostic-panel{grid-template-columns:1fr 1fr}
  .check-list{grid-template-columns:1fr}
}
@media (max-width:820px){
  .diagnostic-panel{grid-template-columns:1fr}
  .check-list{grid-template-columns:1fr}
  .diagnostic-section{padding:var(--space-10) 0}
  .diagnostic-toggle{text-align:left}
  .diagnostic-result{position:relative;top:auto}
}

/* -- "Today vs. with {product}" transformation — template-parts/blocks/compare-cards.php -- */
.compare{overflow:hidden;background:#fff}
.compare-table-layout{display:block}
/* Keeps its centred alignment below the shared 820px breakpoint (short,
   balanced headline — not the left-aligned lead the other sections switch to). */
.compare-intro{text-align:center}
.compare-intro h2{max-width:18ch;margin-inline:auto;color:var(--blue);text-wrap:balance}
.compare-table-wrap{max-width:1000px;margin:0 auto;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-md)}
.compare-table{width:100%;border-spacing:0;border-collapse:separate;table-layout:fixed}
.compare-table th,.compare-table td{padding:clamp(var(--space-4),2.2vw,var(--space-6));text-align:left}
.compare-table thead th{height:76px;vertical-align:middle}
.compare-table-label{display:flex;align-items:center;gap:10px;font-size:11px;font-weight:850;line-height:1.3;letter-spacing:.075em;text-transform:uppercase}
.compare-aigo-mark{width:16px;height:16px;flex:0 0 16px;background:var(--brand-dots);color:var(--red);--dot-muted:var(--line)}
.compare-mobile-label{display:none}
.compare-table-current{background:var(--soft-2);color:var(--text-secondary)}
.compare-table-outcome{background:color-mix(in srgb,var(--red) 3%,white);color:var(--blue)}
.compare-table th+th{border-left:1px solid rgba(var(--red-rgb),.22)}
.compare-table td+td{border-left:1px solid rgba(var(--red-rgb),.22)}
.compare-table thead .compare-table-current{color:var(--muted)}
.compare-table thead .compare-table-outcome{color:var(--red)}
.compare-scenario-title th{border-top:1px solid var(--line);background:#fff;color:var(--blue);font-size:clamp(18px,1.8vw,23px);font-weight:780;line-height:1.25;letter-spacing:var(--tracking-title);text-wrap:balance}
.compare-scenario-copy td{border-top:1px solid var(--line);vertical-align:top;font-size:var(--fs-body);font-weight:450;line-height:1.55;text-wrap:pretty}
.compare-scenario-copy .compare-table-outcome{position:relative;padding-left:clamp(var(--space-8),5vw,var(--space-10));font-weight:620;transition:background-color 180ms ease}
.compare-scenario-copy .compare-table-outcome::before{content:"";position:absolute;z-index:2;left:0;top:50%;width:34px;height:34px;border:1px solid rgba(var(--red-rgb),.2);border-radius:50%;background-color:#fff;background-image:var(--brand-dots);background-position:center;background-repeat:no-repeat;background-size:16px 16px;color:var(--red);--dot-muted:var(--line);transform:translate(-50%,-50%);transition:transform 200ms cubic-bezier(.77,0,.175,1)}
.compare-scenario-copy .compare-table-outcome::after{content:"";position:absolute;left:20px;top:calc(50% - 5px);width:28px;height:10px;background:rgba(var(--red-rgb),.58);clip-path:polygon(0 42%,72% 42%,72% 0,100% 50%,72% 100%,72% 58%,0 58%);transform:translateX(0);transition:transform 200ms cubic-bezier(.77,0,.175,1)}

@media (hover:hover) and (pointer:fine){
  .compare-table tbody:hover .compare-table-outcome{background-color:color-mix(in srgb,var(--red) 6%,white)}
  .compare-table tbody:hover .compare-table-outcome::before{transform:translate(calc(-50% + 5px),-50%)}
  .compare-table tbody:hover .compare-table-outcome::after{transform:translateX(5px)}
}

@media (max-width:700px){
  .compare-intro{margin-bottom:var(--space-8)}
  .compare-table,.compare-table tbody,.compare-table tr,.compare-table th,.compare-table td{display:block;width:100%}
  .compare-table thead{display:none}
  .compare-table th,.compare-table td{padding:var(--space-4)}
  .compare-aigo-mark{width:14px;height:14px;flex-basis:14px}
  .compare-scenario-title th{padding:var(--space-4);font-size:17px}
  .compare-scenario-copy td{font-size:15px;line-height:1.5}
  .compare-mobile-label{display:flex;align-items:center;gap:7px;margin-bottom:var(--space-3);font-size:9px;font-weight:850;line-height:1.3;letter-spacing:.075em;text-transform:uppercase}
  .compare-table-current .compare-mobile-label{color:var(--muted)}
  .compare-table-outcome .compare-mobile-label{color:var(--red)}
  .compare-table td+td{border-left:0}
  .compare-scenario-copy .compare-table-outcome{padding:52px var(--space-4) var(--space-5)}
  .compare-scenario-copy .compare-table-outcome::before{left:50%;top:0;transform:translate(-50%,-50%)}
  .compare-scenario-copy .compare-table-outcome::after{left:calc(50% - 5px);top:18px;width:10px;height:28px;clip-path:polygon(42% 0,58% 0,58% 72%,100% 72%,50% 100%,0 72%,42% 72%)}
}

@media (prefers-reduced-motion:reduce){
  .compare-scenario-copy .compare-table-outcome::before,.compare-scenario-copy .compare-table-outcome::after{transition:none}
  .compare-table tbody:hover .compare-table-outcome::before{transform:translate(-50%,-50%)}
  .compare-table tbody:hover .compare-table-outcome::after{transform:none}
}

/* -- 5-step implementation timeline — template-parts/blocks/steps-timeline.php -- */
.steps-intro .solution-label{color:var(--page-accent)}
.steps-line{grid-template-columns:repeat(5,minmax(0,1fr));position:relative}
.steps-line:before{
  content:"";position:absolute;left:8%;right:8%;top:60px;z-index:0;
  border-top:2px dashed color-mix(in srgb, var(--page-accent) 20%, white);
}
.step{
  position:relative;z-index:1;grid-template-rows:auto 1fr;
  min-height:310px;
}
.step .n{
  width:56px;height:56px;border-radius:18px;background:var(--page-accent);
  color:#fff;place-items:center;font-weight:900;
  box-shadow:0 16px 34px rgba(var(--page-accent-rgb),.24);
}
.step-card{
  position:relative;overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-lg);
  background:#fff;box-shadow:var(--shadow);
}
.step-card p{color:var(--text-tertiary)}

@media (max-width:1100px){
  .steps-line{grid-template-columns:repeat(5,220px);overflow-x:auto;padding-bottom:var(--space-3)}
  .steps-line:before{left:40px;right:auto;width:1020px}
}
@media (max-width:820px){
  .steps{padding:var(--space-10) 0}
  .steps-line{grid-template-columns:1fr;overflow:visible;padding-top:var(--space-2)}
  .step{min-height:auto;grid-template-columns:56px 1fr;grid-template-rows:auto;align-items:start}
  .step .n{margin:0}
  .steps-line:before{display:none}
}

/* -- AIGO Profit Checker calculator — template-parts/blocks/profit-calculator.php -- */
.profit-section{background:#fafafa}
.profit-wrap{grid-template-columns:1.1fr .9fr}
.profit-card .profit-lead{color:#454a54}
.profit-card .profit-lead strong{color:var(--text)}
.profit-card .profit-sub{color:#30343b;font-weight:750}
.profit-checklist{list-style:none}
.profit-checklist li{position:relative;color:#454a54;font-size:14px;font-weight:650;line-height:1.4}
.profit-checklist li:before{content:"✓";position:absolute;left:0;top:0;color:var(--page-accent);font-weight:900}
.range-item label{font-weight:700;font-size:14px}
.range-item input[type=range]{accent-color:var(--page-accent)}
.result-box{
  background:color-mix(in srgb, var(--page-accent) 2%, white);border:1px solid color-mix(in srgb, var(--page-accent) 18%, white);border-radius:var(--radius-lg);box-shadow:var(--shadow)
}
.result-box small{display:block;color:color-mix(in srgb, var(--page-accent) 60%, white);font-size:12px;font-weight:800}
.result-box .big{font-size:56px;line-height:.95;letter-spacing:-.06em;color:var(--page-accent);font-weight:900}
.profit-mini-stats{grid-template-columns:1fr 1fr}
.profit-mini-stats .reference-stat strong{font-size:17px}
.result-actions .btn{flex:1;min-height:44px;font-size:14px}
.disclaimer{color:#9a9ea8;font-size:12px}

@media (max-width:1100px){
  .profit-wrap{grid-template-columns:1fr 1fr}
}
@media (max-width:820px){
  .profit-wrap{grid-template-columns:1fr}
  .profit-mini-stats,.result-actions{grid-template-columns:1fr;flex-wrap:wrap}
  .profit-section{padding:var(--space-10) 0}
}

/* ==========================================================================
   The "-GO" family look: quiet editorial cards instead of floating tiles,
   flat surfaces instead of cinematic shadows. Overrides the plainer
   defaults set by every block's own foundational section above (feature
   grid, video showcase, fit/faq, diagnostic, compare, steps, profit,
   decision) — MUST stay positioned after all of them: every selector here
   is unscoped (no .page-template-... prefix, so it applies to the whole
   family, not one page), which means it now wins purely by cascade order,
   not specificity. Moving any of this above its matching foundational
   section silently un-overrides it — that exact bug shipped once already
   (steps-timeline's .step-card, compare-cards' banner shadow, and others
   briefly reverted to their unstyled defaults because this block sat
   before those sections instead of after).
   ========================================================================== */
#resenja{background:#fff}
.cards-heading{margin:0 0 var(--space-5);font-size:18px}
.feature{padding:18px;border:1px solid var(--line);box-shadow:none;transition:border-color .18s ease}
.feature:hover{transform:none;border-color:#d7d9df;box-shadow:none}
.feature-visual{margin-bottom:22px;border:0;border-radius:16px;aspect-ratio:16 / 7;min-height:0}
.feature-visual::before,
.feature-visual::after{display:none}
.feature-body{padding:0 8px 8px;gap:14px}
.feature-body h3{padding-bottom:14px}
.feature-body h3::after{width:48px}
#resenja > .container > .section-cta{margin-top:clamp(36px,4vw,52px)}

/* Media section: preserve the image and play action without cinematic shadow. */
.video-section{background:#f6f7f9}
.video-card{border:1px solid #dfe2e7;border-radius:24px;box-shadow:none}
.video-thumb{min-height:0;aspect-ratio:16 / 7}
.play{width:72px;height:72px;box-shadow:none}
.play::before{border-left-width:18px;border-top-width:11px;border-bottom-width:11px}

/* Fit / FAQ: one calm split panel with flat accordions. */
.fit-layout{gap:clamp(40px,5vw,72px)}
.fit-image{min-height:420px;border-radius:22px;box-shadow:none}
.fit-image::before{display:none}
.faq-item,
.faq-item:hover,
.faq-item.active{transform:none;border-radius:16px;box-shadow:none}
.faq-item.active{border-color:rgba(var(--red-rgb),.2);background:#fffafa}

/* Diagnostic: a shared decision field for the whole -GO family. The red
   node-and-route background visualizes connected checks and outcomes, while
   the trigger stays separate from the white quiz workspace. */
.diagnostic-section{
  position:relative;isolation:isolate;overflow:hidden;
  background:#fff;
}
.diagnostic-section::before{
  content:"";position:absolute;z-index:-2;inset:0;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='%23d1434f'%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3Ccircle cx='12' cy='4' r='2'/%3E%3Ccircle cx='20' cy='4' r='2'/%3E%3Ccircle cx='4' cy='12' r='2' opacity='.22'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='20' cy='12' r='2'/%3E%3Ccircle cx='4' cy='20' r='2'/%3E%3Ccircle cx='12' cy='20' r='2' opacity='.22'/%3E%3Ccircle cx='20' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size:42px 42px;opacity:.16;
  -webkit-mask-image:radial-gradient(ellipse 72% 76% at 50% 45%,#000 0,rgba(0,0,0,.7) 48%,transparent 82%);
  mask-image:radial-gradient(ellipse 72% 76% at 50% 45%,#000 0,rgba(0,0,0,.7) 48%,transparent 82%);
}
.diagnostic-section::after{
  content:"";position:absolute;z-index:-1;top:-72px;left:50%;width:min(1320px,110vw);height:520px;transform:translateX(-50%);
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='520' viewBox='0 0 1200 520'%3E%3Cg fill='none' stroke='%23d1434f' stroke-opacity='.25' stroke-width='1.5'%3E%3Cpath d='M80 330C210 330 200 120 360 120S510 260 640 260 790 90 940 90s120 160 210 160'/%3E%3Cpath d='M120 190c130 0 170 210 330 210s170-150 300-150 180 150 330 150'/%3E%3C/g%3E%3Cg fill='%23fff' stroke='%23d1434f' stroke-opacity='.34' stroke-width='2'%3E%3Ccircle cx='80' cy='330' r='7'/%3E%3Ccircle cx='360' cy='120' r='9'/%3E%3Ccircle cx='640' cy='260' r='8'/%3E%3Ccircle cx='940' cy='90' r='9'/%3E%3Ccircle cx='1150' cy='250' r='7'/%3E%3Ccircle cx='120' cy='190' r='7'/%3E%3Ccircle cx='450' cy='400' r='9'/%3E%3Ccircle cx='750' cy='250' r='7'/%3E%3Ccircle cx='1080' cy='400' r='9'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
  opacity:.72;pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
}
.diagnostic-section > .container{position:relative;z-index:1}
/* The trigger stays visually separate from the white quiz workspace, so this
   header sits tighter than the shared .solution-intro bottom margin. */
.diagnostic-header{margin-bottom:var(--space-6)}
.diagnostic-header h2{color:var(--blue);text-wrap:balance}
.diagnostic-toggle{
  max-width:1180px;margin:0 auto;
}
.diagnostic-toggle-summary{width:max-content;min-height:50px;margin:0 auto;padding:0 24px;box-shadow:none}
.diagnostic-toggle-summary:focus-visible{outline:3px solid rgba(var(--blue-rgb),.2);outline-offset:4px}
.diagnostic-toggle[open] .diagnostic-toggle-summary{margin-bottom:32px}
.diagnostic-panel{
  gap:24px;padding:var(--space-6);border-radius:var(--radius-xl);background:rgba(255,255,255,.96);
  box-shadow:none;
}
.diagnostic-panel-intro{padding-bottom:24px;font-size:18px}
.check-item{min-height:136px;border-radius:16px;box-shadow:none}
.check-item:hover{transform:none;box-shadow:none}
.diagnostic-result{border-radius:20px;box-shadow:none}
.diagnostic-result.risk-level-watch,
.diagnostic-result.risk-level-warn,
.diagnostic-result.risk-level-danger{box-shadow:none}

/* Comparison: content supplies the contrast; surfaces stay restrained. */
.compare{background:#fff}
.compare + section{padding:0 0 clamp(72px,7vw,96px)}
.compare + section .section-cta{margin-top:0}

/* Five sequential steps: illustrated left-to-right journey on desktop. */
.steps{background:#f6f7f9}
.steps-line{
  grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;max-width:none;margin:0;padding-top:0;overflow:visible;
}
.steps-line::before{
  display:block;left:8%;right:8%;top:170px;bottom:auto;width:auto;
  border-top:2px solid rgba(var(--red-rgb),.2);border-left:0;
}
.step,
.step:nth-child(n+4){
  grid-column:auto;grid-template-columns:1fr;grid-template-rows:auto auto 1fr;
  align-items:start;gap:14px;min-width:0;min-height:0;text-align:left;
}
.step-visual{
  width:136px;max-width:78%;aspect-ratio:1;justify-self:center;overflow:hidden;
  border:1px solid var(--line);border-radius:24px;background:#fff;
}
.step-visual img{width:100%;height:100%;display:block;object-fit:cover}
.step .n{
  position:relative;z-index:1;width:40px;height:40px;margin:0 auto;border-radius:50%;box-shadow:none;
  border:5px solid #f6f7f9;
}
.step-card{
  display:block;min-height:0;padding:10px 8px 0;border:0;border-radius:0;background:transparent;box-shadow:none;
}
.step-card h3{margin:0 0 10px;font-size:17px;line-height:1.25}
.step-card p{font-size:14px;line-height:1.55}

@media (max-width:1100px) and (min-width:821px){
  .steps-line{gap:10px}
  .step-visual{width:112px;border-radius:20px}
  .steps-line::before{top:146px}
  .step-card{padding-right:3px;padding-left:3px}
  .step-card h3{font-size:15px}
  .step-card p{font-size:13px}
}

/* Calculator: stronger hierarchy, fewer nested floating surfaces. */
.profit-section{background:#fff}
.profit-wrap{gap:24px}
.profit-card,
.result-box{border:1px solid var(--line);border-radius:20px;box-shadow:none}
.reference-stat{border-radius:14px;box-shadow:none}
.reference-stat::before,
.reference-stat::after{display:none}
.result-box .big{font-size:clamp(44px,5vw,62px)}

/* Calls to action: echo the shared CTA's animated AIGO signal field while
   preserving each solution family's own panel accent. */
.decision-panel{
  isolation:isolate;border-radius:22px;box-shadow:none;
  --decision-signal-color:var(--blue-2);
}
.page-template-template-resenje-mastgo .decision-panel,
.page-template-template-resenje-business-intelligence .decision-panel,
.page-template-template-resenje-bestgo .decision-panel{--decision-signal-color:var(--red-2)}
.decision-panel::before{
  content:"";display:block;position:absolute;z-index:0;inset:-60%;
  background-image:var(--brand-dots-lg);background-size:31px 31px;
  color:#fff;--dot-muted:rgba(255,255,255,.42);opacity:.1;
  -webkit-mask-image:linear-gradient(90deg,transparent 17%,#000 58%,#000 100%);
  mask-image:linear-gradient(90deg,transparent 17%,#000 58%,#000 100%);
  transform:translate3d(-2.5%,0,0) rotate(-7deg);pointer-events:none;
  animation:sectionCtaDotsDrift 24s linear infinite;animation-play-state:paused;
}
.decision-panel::after{
  content:"";display:block;position:absolute;z-index:0;right:clamp(8%,12vw,18%);top:50%;width:168px;height:168px;
  background-image:var(--brand-dots-lg);background-size:34px 34px;
  color:var(--decision-signal-color);--dot-muted:rgba(255,255,255,.55);opacity:.48;
  -webkit-mask-image:radial-gradient(circle,#000 0 30%,transparent 72%);
  mask-image:radial-gradient(circle,#000 0 30%,transparent 72%);
  transform:translate3d(50%,-50%,0) rotate(8deg);transform-origin:center;pointer-events:none;
  animation:sectionCtaSignalFloat 9s cubic-bezier(.77,0,.175,1) infinite alternate;animation-play-state:paused;
}
.decision-panel.is-motion-active::before,
.decision-panel.is-motion-active::after{animation-play-state:running}

@media (prefers-reduced-motion:reduce){
  .decision-panel::before,.decision-panel::after{animation:none}
}

@media (max-width:820px){
  .video-section,
  .fit-section,
  .diagnostic-section,
  .compare,
  .steps,
  .profit-section,
  .decision-section{padding-top:64px;padding-bottom:64px}
  .decision-panel::before{inset:-80%;opacity:.08;-webkit-mask-image:linear-gradient(90deg,transparent,#000 35%);mask-image:linear-gradient(90deg,transparent,#000 35%)}
  .decision-panel::after{right:7%;top:70%;width:132px;height:132px;opacity:.34}
  .feature{padding:14px}
  .feature-visual{aspect-ratio:16 / 9}
  .video-thumb{aspect-ratio:4 / 3;min-height:0}
  .video-caption{left:18px;bottom:18px;font-size:15px}
  .time{right:16px;bottom:16px}
  .fit-image{min-height:300px}
  .diagnostic-section::before{background-size:36px 36px;opacity:.13}
  .diagnostic-section::after{top:-54px;width:160vw;height:420px;opacity:.52}
  .diagnostic-header{margin-bottom:var(--space-5)}
  .diagnostic-toggle-summary{width:100%;justify-content:center}
  .diagnostic-panel{padding:var(--space-4);border-radius:var(--radius-lg)}
  .steps-line{grid-template-columns:1fr;gap:0}
  .step,
  .step:nth-child(n+4),
  .step:last-child{
    grid-column:auto;grid-template-columns:74px 36px 1fr;grid-template-rows:auto;
    align-items:center;gap:12px;text-align:left;
  }
  .steps-line::before{
    left:104px;right:auto;top:37px;bottom:37px;width:0;
    border-top:0;border-left:2px solid rgba(var(--red-rgb),.2);
  }
  .step-visual{width:74px;max-width:none;border-radius:16px}
  .step .n{width:36px;height:36px;border-width:4px;font-size:13px}
  .step-card{display:block;min-height:0;padding:20px 0}
  .step-card h3{margin-bottom:8px}
  .compare + section{padding-bottom:64px}
}

/* ==========================================================================
   Per-page overrides within the -GO family — each page's own content
   occasionally needs one rule the shared styling above doesn't cover
   (e.g. a headline whose word lengths break differently than the family's
   other pages). Scoped by the .page-template-template-resenje-{slug} body
   class every resenje post already carries — see the file header comment.
   Keep entries here small; a page needing substantially more than this
   gets its own resenje-{slug}.css instead (see functions.php).
   ========================================================================== */

/* BEST:GO: the shared solution hero leaves .hero-main .text-hero unmeasured.
   BEST:GO's heading uses longer words ("planiranje", "upravljanje",
   "nabavkama") that wrap loosely on their own, so it gets an explicit
   measure here for balanced three-line wrapping. */
.page-template-template-resenje-bestgo .hero-main .text-hero{max-width:22ch}

@media (max-width:520px){
  .page-template-template-resenje-bestgo .hero-main .text-hero{max-width:16ch}
}
