/* Moved out of global.css: loaded only on the templates that render this section (inc/part-styles.php). Loads before global.css, as a page stylesheet does. */
/* ══════════════════════════════════════════════════
   SEARCH CONSOLE PROOF
   ══════════════════════════════════════════════════
   A client's Google Search numbers as a band: copy, checklist and
   buttons on the left, the Search Console performance card on the
   right with a hand-written note pointing at it, and a four-item
   row underneath saying what the numbers mean. Markup in
   template-parts/search-console-proof.php.

   The card is the uploaded screenshot; the same figures are coded
   as tiles behind it and shown only if the picture fails to load.
   ══════════════════════════════════════════════════ */
.sc-proof{
  position:relative;
  padding:clamp(72px,7.5vw,112px) 0 clamp(56px,6vw,80px);
  background:var(--navy-deep);
  color:var(--text);
  overflow:hidden;
  isolation:isolate;
  border-top:1px solid rgba(255,255,255,0.08);
}
/* Deep blue field with a faint grid, and a big quartered ring off the
   right edge, the Google mark's four colors at a whisper, which is
   what the card's data is about. Decoration only; nothing here is
   needed to read the band. */
.sc-proof::before{
  content:"";
  position:absolute;inset:0;
  background:
    radial-gradient(ellipse 60% 70% at 72% 40%, rgba(22,192,183,0.14), transparent 65%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(180deg, #0a1a2b 0%, #0d1f2d 55%, #081524 100%);
  background-size:cover,48px 48px,48px 48px,cover;
  pointer-events:none;
  z-index:-1;
}
.sc-proof::after{
  content:"";
  position:absolute;
  width:min(62vw,760px);
  aspect-ratio:1;
  right:-8%;
  top:50%;
  transform:translateY(-58%);
  border-radius:50%;
  background:conic-gradient(from -40deg,
    rgba(66,133,244,0.22) 0 90deg,
    rgba(52,168,83,0.18) 90deg 180deg,
    rgba(251,188,5,0.16) 180deg 270deg,
    rgba(234,67,53,0.18) 270deg 360deg);
  /* A ring, not a disc: mask away the middle. */
  -webkit-mask:radial-gradient(circle, transparent 58%, #000 59%, #000 72%, transparent 73%);
  mask:radial-gradient(circle, transparent 58%, #000 59%, #000 72%, transparent 73%);
  opacity:0.55;
  pointer-events:none;
  z-index:-1;
}
.sc-proof > .container{position:relative;}

.sc-grid{
  display:grid;
  grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr);
  gap:clamp(36px,4.5vw,64px);
  align-items:center;
}

/* ── Copy ── */
.sc-eyebrow{gap:12px;margin-bottom:18px;flex-wrap:wrap;row-gap:6px;}
.sc-eyebrow > span{white-space:nowrap;}
.sc-eyebrow-dot{opacity:0.6;}
.sc-h2{
  /* The display face, set here rather than left to interior.css's
     main h2 rule, so the band looks the same wherever it is placed. */
  font-family:var(--disp);
  font-weight:400;
  text-transform:uppercase;
  font-size:clamp(30px,3.4vw,50px);
  /* 1.14: the boxed word's border and offset shadow need the
     leading, or the box clips the line above. */
  line-height:1.14;
  letter-spacing:-0.02em;
  margin:0;
  color:#fff;
  max-width:14ch;
  overflow-wrap:break-word;
  -webkit-text-fill-color:currentColor;
}
/* The accent word takes the site's .boxed treatment, the same mark
   the heroes draw around their keyword and the climbers band around
   its own. */
.sc-h2 .boxed{
  font-size:1.08em;
  margin:0 0.06em;
  -webkit-text-fill-color:currentColor;
}
.sc-intro{
  margin:22px 0 0;
  max-width:52ch;
  font-size:clamp(16px,1.1vw,18px);
  line-height:1.7;
  color:var(--muted);
}
.sc-intro strong{color:#fff;font-weight:700;}
.sc-checks{
  list-style:none;
  margin:22px 0 0;
  padding:0;
  display:grid;
  gap:12px;
}
.sc-checks li{
  display:flex;
  align-items:flex-start;
  gap:12px;
  font-size:clamp(16px,1.1vw,18px);
  line-height:1.5;
  color:var(--text);
}
.sc-checks i{color:var(--teal);font-size:20px;flex-shrink:0;margin-top:3px;}
.sc-btns{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:16px 32px;
  margin-top:30px;
}
.sc-link{
  font-weight:800;
  font-size:16px;
  color:var(--text);
  text-decoration:none;
  padding-bottom:6px;
  border-bottom:2px solid var(--teal);
  transition:color 0.2s;
}
.sc-link:hover{color:var(--teal);}

/* ── Card ── */
.sc-visual{position:relative;}
/* The note is in flow above the card, not pinned over its corner:
   pinned, a third line of wrap disappeared behind the card. In flow
   it can wrap as the width demands and the card simply starts below
   it. Right-aligned so the arrow lands near the card's top edge. */
.sc-note{
  display:flex;
  justify-content:flex-end;
  align-items:flex-start;
  gap:8px;
  margin:0 3% 10px 0;
  font-family:'Instrument Serif','Instrument Serif Fallback',serif;
  font-style:italic;
  font-size:clamp(18px,1.4vw,22px);
  line-height:1.2;
  color:rgba(248,250,252,0.9);
  transform:rotate(-4deg);
  transform-origin:bottom right;
  text-align:right;
}
.sc-note-text{max-width:300px;}
.sc-note-arrow{
  width:34px;
  flex-shrink:0;
  margin:14px 0 0 2px;
  color:rgba(22,192,183,0.8);
  transform:scaleX(-1);
}
.sc-card{
  position:relative;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(10,30,45,0.96), rgba(8,22,36,0.98));
  border:1.5px solid rgba(22,192,183,0.6);
  box-shadow:
    0 0 0 1px rgba(22,192,183,0.1),
    0 30px 60px -20px rgba(0,0,0,0.7),
    0 0 44px rgba(22,192,183,0.16);
  padding:26px 26px 22px;
}
.sc-card.reveal{transform:translateY(22px);}
.sc-card.reveal.visible{transform:none;}
/* Picture mode: the screenshot has its own card drawn in. */
.sc-card-image{
  padding:0;
  background:none;
  border:none;
  box-shadow:none;
  filter:drop-shadow(0 30px 40px rgba(0,0,0,0.5)) drop-shadow(0 0 24px rgba(22,192,183,0.22));
}
.sc-card-image .sc-tiles-wrap{display:none;}
.sc-img{display:block;width:100%;height:auto;border-radius:18px;}

/* Fallback tiles. */
.sc-card-head{display:flex;gap:16px;align-items:flex-start;margin-bottom:20px;}
.sc-g{
  width:52px;height:52px;flex-shrink:0;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:#fff;color:#4285f4;font-size:26px;
  box-shadow:0 0 0 3px rgba(22,192,183,0.35);
}
.sc-card-title{font-size:clamp(22px,1.8vw,28px);font-weight:900;letter-spacing:-0.02em;color:#fff;line-height:1.1;}
.sc-card-title em{font-style:normal;color:var(--teal);}
.sc-card-sub{margin-top:6px;font-size:13.5px;line-height:1.5;color:rgba(248,250,252,0.7);}
.sc-tiles{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0;padding:0;
}
.sc-tile{
  position:relative;
  padding:16px 14px 14px;
  border-radius:12px;
  border:1px solid rgba(22,192,183,0.35);
  background:rgba(255,255,255,0.03);
  min-width:0;
}
.sc-tile dt{
  font-family:var(--mono2);
  font-size:10.5px;
  font-weight:700;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:rgba(248,250,252,0.7);
  padding-right:36px;
  min-height:28px;
}
.sc-tile > i{
  position:absolute;top:12px;right:12px;
  width:30px;height:30px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(22,192,183,0.18);color:var(--teal);font-size:13px;
}
.sc-tile dd{
  margin:8px 0 0;
  font-size:clamp(22px,2vw,30px);
  font-weight:900;
  letter-spacing:-0.03em;
  line-height:1;
  color:#fff;
  font-variant-numeric:tabular-nums;
}
.sc-tile-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;font-size:12.5px;}
.sc-delta{
  display:inline-flex;align-items:center;gap:5px;
  padding:3px 9px;border-radius:999px;
  font-weight:800;
  background:rgba(52,211,153,0.16);color:var(--green);
}
.sc-delta-up::before{
  content:"";width:0;height:0;
  border-left:4px solid transparent;border-right:4px solid transparent;
  border-bottom:6px solid currentColor;
}
.sc-delta-down{background:rgba(248,113,113,0.16);color:var(--red);}
.sc-delta-down::before{
  content:"";width:0;height:0;
  border-left:4px solid transparent;border-right:4px solid transparent;
  border-top:6px solid currentColor;
}
.sc-delta-flat{background:none;padding-left:0;color:rgba(248,250,252,0.85);}
.sc-was{color:rgba(248,250,252,0.6);}

/* ── Analytics variant (template-parts/analytics-proof.php) ──
   Same band, different backdrop: a rising line with a soft fill
   under it instead of the Google ring, which belongs to Search
   Console. The eight tiles fall into two rows of four. */
.sc-analytics::after{
  width:auto;
  aspect-ratio:auto;
  inset:0 0 auto 0;
  height:min(60%,520px);
  right:0;
  top:0;
  transform:none;
  border-radius:0;
  -webkit-mask:none;
  mask:none;
  opacity:1;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1000 400' preserveAspectRatio='none'><path d='M0 400 L0 330 C 80 320, 140 300, 200 290 C 260 280, 300 250, 360 240 C 420 230, 460 290, 520 240 C 580 190, 620 230, 680 200 C 740 170, 780 230, 840 180 C 900 130, 940 70, 1000 20 L1000 400 Z' fill='rgba(22,192,183,0.07)'/><path d='M0 330 C 80 320, 140 300, 200 290 C 260 280, 300 250, 360 240 C 420 230, 460 290, 520 240 C 580 190, 620 230, 680 200 C 740 170, 780 230, 840 180 C 900 130, 940 70, 1000 20' fill='none' stroke='rgba(22,192,183,0.5)' stroke-width='4' stroke-linecap='round'/><circle cx='1000' cy='20' r='10' fill='%2316C0B7'/></svg>")
    right top / 62% 100% no-repeat;
  -webkit-mask-image:linear-gradient(90deg, transparent 0, #000 30%);
  mask-image:linear-gradient(90deg, transparent 0, #000 30%);
}
.sc-analytics .sc-h2{max-width:15ch;}
.sc-analytics .sc-grid{grid-template-columns:minmax(0,0.8fr) minmax(0,1.2fr);}
@media (max-width:700px){
  .sc-analytics::after{display:none;}
}

/* ── Feature row ── */
.sc-features{
  list-style:none;
  margin:clamp(44px,5vw,72px) 0 0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
.sc-feature{
  display:flex;
  gap:18px;
  align-items:center;
  padding:6px 28px 6px 0;
  margin-right:28px;
  border-right:1px solid rgba(255,255,255,0.12);
}
.sc-feature:last-child{border-right:none;margin-right:0;padding-right:0;}
.sc-feature-icon{
  width:72px;height:72px;flex-shrink:0;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:rgba(22,192,183,0.08);
  border:1px solid rgba(22,192,183,0.4);
  box-shadow:0 0 24px rgba(22,192,183,0.14) inset;
  color:var(--teal);
  font-size:26px;
}
.sc-feature h3{margin:0;font-size:19px;font-weight:800;letter-spacing:-0.01em;color:#fff;}
.sc-feature p{margin:6px 0 0;font-size:15px;line-height:1.5;color:var(--muted);}

@media (max-width:1100px){
  .sc-grid{grid-template-columns:minmax(0,1fr);gap:44px;}
  .sc-h2{max-width:16ch;}
  .sc-visual{max-width:820px;}
  .sc-features{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 0;}
  .sc-feature:nth-child(2n){border-right:none;margin-right:0;padding-right:0;}
}
@media (max-width:700px){
  .sc-proof{padding:64px 0 56px;}
  .sc-proof::after{display:none;}
  .sc-note{
    justify-content:flex-start;
    transform:none;
    text-align:left;
    margin:0 0 14px;
    font-size:18px;
  }
  .sc-note-text{max-width:none;}
  .sc-note-arrow{display:none;}
  .sc-tiles{grid-template-columns:repeat(2,minmax(0,1fr));}
  /* The screenshot is three times wider than tall; at phone width
     its figures are a few pixels high. Below 700px the coded tiles
     take over, two by two, and the card gets its own chrome back. */
  .sc-card-image{
    padding:18px 16px 14px;
    background:linear-gradient(180deg, rgba(10,30,45,0.96), rgba(8,22,36,0.98));
    border:1.5px solid rgba(22,192,183,0.6);
    box-shadow:0 0 0 1px rgba(22,192,183,0.1),0 30px 60px -20px rgba(0,0,0,0.7),0 0 44px rgba(22,192,183,0.16);
    filter:none;
  }
  .sc-card-image .sc-img{display:none;}
  .sc-card-image .sc-tiles-wrap{display:block;}
  .sc-card{padding:18px 16px 14px;}
  .sc-features{grid-template-columns:minmax(0,1fr);gap:22px;margin-top:40px;}
  .sc-feature{border-right:none;margin-right:0;padding-right:0;}
  .sc-feature-icon{width:56px;height:56px;font-size:21px;}
  .sc-btns .btn{width:100%;justify-content:center;}
}
