/* ============================================================
   Service page — ported from the approved design concept.
   Loaded only where the TikFuel Service template is in use.

   The page carries its own accent palette (heart/magenta for likes)
   layered over the theme tokens, so the commercial pages can feel
   distinct without forking the whole design system.
   ============================================================ */

.svc-page {
  --brand:      #C4267E;
  --brand-soft: #C4267E1F;
  --heart:      #F0436A;
  --data:       #0A8A72;
  --data-soft:  #0A8A7214;
  --warn:       #B0651F;
  --warn-soft:  #B0651F1A;
  --s-surface:  var(--surface);
  --s-sunken:   var(--wash);
}
.svc-page[data-accent="brand"] { --brand: var(--violet); --heart: var(--violet); }
/* Instagram pages: the platform's magenta/coral, dark enough on white to keep
   body-text contrast while still reading as Instagram rather than TikTok. */
/* Shares: indigo, for the one signal that travels outward. */
.svc-page[data-accent="share"] {
  --brand: #2F4BC7; --brand-soft: #2F4BC71C;
  --heart: #5B78E8;
}
/* Saves: deep cyan, the "filed away for later" colour. */
.svc-page[data-accent="save"] {
  --brand: #0E7490; --brand-soft: #0E74901C;
  --heart: #17A2C4;
}
.svc-page[data-accent="insta"] {
  --brand: #B02A72; --brand-soft: #B02A721F;
  --heart: #E1306C;
}

.svc-page .eyebrow { color: var(--brand); }
.svc-page .eyebrow.q { color: var(--muted); }
/* Link colour must NOT apply to buttons: `.svc-page a` (0-1-1) would otherwise
   beat `.btn-primary` (0-1-0) and paint button text the same magenta as its
   own background. Buttons set their colour explicitly below. */
.svc-page a:not(.btn) { color: var(--brand); }

.svc-page .btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--brand) 55%, transparent);
}
.svc-page .btn-primary:hover,
.svc-page .btn-primary:focus-visible { background: var(--brand); color: #fff; filter: brightness(1.06); }

.svc-page .btn-ghost { background: var(--s-surface); color: var(--ink); border-color: var(--hairline-2); }
.svc-page .btn-ghost:hover,
.svc-page .btn-ghost:focus-visible { border-color: var(--brand); color: var(--brand); }

.svc-section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.svc-section.band { background: var(--paper-2); }
.section-lede { color: var(--ink-2); margin-top: .9rem; }
.svc-page h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); font-weight: 800; line-height: 1.08; }
.svc-page h3 { font-size: clamp(1.05rem, 2vw, 1.2rem); font-weight: 700; }

/* ---------------- hero ---------------- */
.svc-hero { position: relative; overflow: hidden; padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
/* Must stay in sync with the canvas class in page-service.php and service.js.
   When this still read `.svc-hearts` after the element was renamed to
   `.svc-particles`, the canvas lost its positioning and rendered as an in-flow
   block at its intrinsic pixel size — ~1900×1150 of empty space above the hero. */
.svc-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.svc-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: clamp(1.75rem, 4vw, 3.5rem); align-items: center;
}
@media (max-width: 940px) { .svc-hero-inner { grid-template-columns: 1fr; } }

.svc-h1 { font-size: clamp(2.4rem, 6.2vw, 4.3rem); font-weight: 800; line-height: .99; letter-spacing: -.035em; }
.svc-h1 .accent { color: var(--brand); }
.svc-lede { font-size: clamp(1.02rem, 2vw, 1.24rem); color: var(--ink-2); margin: 1.3rem 0 1.9rem; max-width: 46ch; }
.svc-lede strong { color: var(--ink); }

.svc-chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 1.8rem 0 0; }
.svc-chips li {
  font-size: .82rem; color: var(--ink-2); background: var(--s-surface);
  border: 1px solid var(--hairline); border-radius: 999px;
  padding: .38rem .8rem; box-shadow: var(--sh-sm);
  display: inline-flex; align-items: center; gap: .4rem;
}
.svc-chips svg { width: 14px; height: 14px; color: var(--data); flex: none; }

/* live ticker card */
.svc-ticker { background: var(--s-surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 1.5rem; box-shadow: var(--sh-lg); }
.tick-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--data); display: inline-block; margin-right: .45rem; animation: tickPulse 2s ease-in-out infinite; }
@keyframes tickPulse { 0%,100% { opacity: 1 } 50% { opacity: .3 } }
.tick-value { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: clamp(2.4rem, 5.5vw, 3.5rem); font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.tick-of { color: var(--muted); font-size: .45em; margin-left: .25rem; }
.tick-label { font-size: .87rem; color: var(--muted); margin-top: .5rem; }
.tick-bar { height: 6px; background: var(--s-sunken); border-radius: 99px; overflow: hidden; margin: 1.1rem 0 .55rem; }
.tick-fill { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--heart), var(--brand)); }
.tick-foot { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; color: var(--muted); }

/* ---------------- packages ---------------- */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(212px, 1fr)); gap: 1rem; margin-top: 2.25rem; }
.pack {
  position: relative; background: var(--s-surface); border: 1.5px solid var(--hairline);
  border-radius: var(--r); padding: 1.55rem 1.3rem 1.3rem; cursor: pointer;
  display: flex; flex-direction: column;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s, border-color .18s;
}
.pack:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--hairline-2); }
.pack.is-selected { border-color: var(--brand); box-shadow: var(--sh-md); }
.pack-tag {
  position: absolute; top: -9px; left: 1.1rem; background: var(--data); color: #fff;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .18rem .5rem; border-radius: 4px;
}
.pack-qty { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 2.1rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; }
.pack-unit { font-size: .84rem; color: var(--muted); margin-top: .3rem; }
.pack-price { font-family: var(--mono); font-size: 1.3rem; font-weight: 600; margin-top: .9rem; color: var(--brand); }
.pack-each { font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.pack-eta { margin: .85rem 0 1rem; padding-top: .8rem; border-top: 1px solid var(--hairline); font-size: .8rem; color: var(--ink-2); }
/* Per-package selling points, carried over from the original pricing tables. */
.pack-perks { list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.pack-perks li { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--ink-2); }
.pack-perks svg { width: 12px; height: 12px; flex: none; color: var(--brand); }

.pack-buy { margin-top: auto; width: 100%; }

/* ---------------- delivery curve ---------------- */
.svc-viz { margin: 1.5rem 0 0; background: var(--s-surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 1.4rem 1.3rem 1.1rem; box-shadow: var(--sh-sm); }
.viz-head { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; align-items: baseline; margin-bottom: .3rem; }
.viz-title { font-size: .95rem; font-weight: 700; display: block; }
.viz-window { font-size: .82rem; color: var(--muted); display: block; margin-top: .15rem; }
.viz-legend { display: flex; gap: 1.1rem; font-size: .78rem; color: var(--muted); }
.viz-legend > span { display: inline-flex; align-items: center; gap: .4rem; }
.sw { width: 16px; height: 3px; border-radius: 2px; display: inline-block; }
.sw-a { background: var(--brand); }
.sw-b { background: var(--warn); }
.viz-plot { display: block; width: 100%; height: auto; overflow: visible; margin-top: .5rem; }
.viz-note { font-size: .82rem; color: var(--muted); margin: .7rem 0 0; }
.viz-axis { fill: var(--muted); font-family: var(--mono); font-size: 10px; }
.viz-grid { stroke: var(--hairline); stroke-width: 1; }
.viz-line-a { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; }
.viz-line-b { fill: none; stroke: var(--warn); stroke-width: 2; stroke-dasharray: 4 4; }
.viz-area { fill: var(--brand-soft); }

/* ---------------- calculator ---------------- */
.calc {
  background: var(--s-surface); border: 1.5px solid var(--hairline); border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 2rem); box-shadow: var(--sh-md); margin-top: 2rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem);
}
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } }
.calc .field { margin-bottom: 1.3rem; }
.calc .field:last-child { margin-bottom: 0; }
.calc label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: .45rem; }
.calc .hint { font-size: .78rem; color: var(--muted); font-weight: 400; }
.calc input[type="range"] { width: 100%; accent-color: var(--brand); }
.calc .val { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 1.05rem; color: var(--brand); font-weight: 600; margin-top: .3rem; }

.calc-readout { background: var(--s-sunken); border-radius: var(--r-sm); padding: 1.2rem 1.1rem; }
.calc-readout .cap { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 .4rem; }
.calc-readout .big { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 2.4rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; margin: 0; }
.band-meter { height: 8px; background: var(--hairline); border-radius: 99px; position: relative; margin: .9rem 0 .35rem; overflow: hidden; }
.band-zone { position: absolute; top: 0; bottom: 0; left: 30%; width: 30%; background: var(--data-soft); }
.band-mark { position: absolute; top: -3px; width: 3px; height: 14px; border-radius: 2px; background: var(--brand); transition: left .3s; }
.band-scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .68rem; color: var(--muted); }
.verdict { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--hairline-2); font-size: .92rem; color: var(--ink-2); }
.verdict strong { color: var(--ink); }
.rec { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; background: var(--s-surface); border: 1px solid var(--hairline); border-radius: var(--r-sm); padding: .85rem 1rem; }
.rec .lab { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rec .pick { font-weight: 700; }
.calc-cta { margin-left: auto; padding: .5rem 1rem; font-size: .88rem; }

/* ---------------- steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.step { background: var(--s-surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 1.4rem; transition: transform .18s, box-shadow .18s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.step .num { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 999px; border: 1px solid var(--brand); color: var(--brand); font-family: var(--mono); font-size: .72rem; margin-bottom: .9rem; }
.step p { margin: .4rem 0 0; font-size: .92rem; color: var(--ink-2); }

/* Steps that carry an animation centre themselves; the aspect-ratio box reserves
   the space before the GIF loads so nothing shifts underneath it. */
.step--anim { text-align: center; }
.step .step-anim + h3 { margin-top: .2rem; }
.step-anim {
  display: block; width: min(180px, 70%); height: auto; aspect-ratio: 1;
  margin: .4rem auto .2rem; object-fit: contain;
}

/* ---------------- comparison ---------------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--r); background: var(--s-surface); margin-top: 1.75rem; }
table.compare { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 34rem; }
table.compare th, table.compare td { padding: .85rem 1rem; text-align: left; border-bottom: 1px solid var(--hairline); }
table.compare thead th { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
table.compare thead th.us { color: var(--brand); }
table.compare tbody tr:last-child td { border-bottom: none; }
table.compare td.feat-c { font-weight: 600; }
table.compare td.yes { color: var(--data); font-weight: 650; }
table.compare td.no { color: var(--warn); }

/* ---------------- prose ---------------- */
.svc-prose blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.4; color: var(--ink);
  border-left: 3px solid var(--brand); padding: .3rem 0 .3rem 1.3rem; margin: 2rem 0;
}
.svc-prose blockquote p { margin: 0; }

/* ---------------- reviews ---------------- */
.rev-head { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-bottom: 1.75rem; }
.score { font-family: var(--mono); font-size: 3rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; margin: 0; }
.stars { color: var(--heart); font-size: 1.1rem; letter-spacing: .1em; margin: .2rem 0 0; }
.rev-note { font-size: .95rem; color: var(--ink-2); max-width: 38ch; margin: 0; }
.rev-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.rev { background: var(--s-surface); border: 1px solid var(--hairline); border-radius: var(--r); padding: 1.25rem; transition: transform .18s, box-shadow .18s; }
.rev:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.rev blockquote { margin: 0 0 .9rem; font-family: var(--serif); font-style: italic; font-size: 1.02rem; line-height: 1.5; color: var(--ink); }
.rev .who { font-size: .82rem; color: var(--muted); margin: 0; }

/* ---------------- faq ---------------- */
.faq { margin-top: 1.75rem; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 2.5rem 1.15rem 0; font-weight: 650; font-size: 1.02rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .5rem; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 1.3rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq-body { padding: 0 0 1.25rem; color: var(--ink-2); font-size: .96rem; }
.faq-body p:last-child { margin-bottom: 0; }

/* ---------------- final ---------------- */
.svc-final { background: var(--s-surface); border: 1.5px solid var(--hairline); border-radius: var(--r); padding: clamp(2rem, 5vw, 3.25rem); text-align: center; box-shadow: var(--sh-md); }
.svc-final p { max-width: 48ch; margin: .9rem auto 1.6rem; color: var(--ink-2); }
.svc-fine { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); font-size: .82rem; color: var(--muted); max-width: 70ch; }

/* ---------------- sticky buy bar ---------------- */
.svc-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--s-surface); border-top: 1px solid var(--hairline);
  box-shadow: 0 -8px 24px -12px #19101630;
  transform: translateY(115%); transition: transform .28s cubic-bezier(.2,.8,.3,1);
  padding: .7rem 0;
}
.svc-sticky.on { transform: translateY(0); }
.sb-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sb-text { font-size: .9rem; margin: 0; }
.sb-text b { font-family: var(--mono); }
.sb-buy { padding: .55rem 1.15rem; font-size: .9rem; }
@media (max-width: 620px) { .sb-text .hide-s { display: none; } }

/* ---------------- Site Reviews integration ---------------- */
.svc-reviews { margin-top: 2rem; }
.svc-reviews .glsr-review {
  background: var(--s-surface); border: 1px solid var(--hairline);
  border-radius: var(--r); padding: 1.25rem; margin-bottom: 1rem;
}
.svc-reviews .glsr-review-title { font-weight: 700; font-size: 1rem; }
.svc-reviews .glsr-review-content { color: var(--ink-2); }
.svc-reviews .glsr-review-author,
.svc-reviews .glsr-review-date { color: var(--muted); font-size: .82rem; }
.svc-reviews .glsr-star { color: var(--heart); }
.svc-reviews .glsr-summary { margin-bottom: 1.5rem; }
.svc-reviews .glsr-summary-rating,
.svc-reviews .glsr-summary-stars { font-size: 1.05rem; }
.svc-reviews .glsr-bar-background { background: var(--s-sunken); }
.svc-reviews .glsr-bar-foreground { background: var(--brand); }

/* pagination the plugin renders */
.svc-reviews .glsr-pagination a,
.svc-reviews .glsr-pagination span {
  display: inline-grid; place-items: center; min-width: 2.2rem; height: 2.2rem;
  border-radius: 999px; text-decoration: none; color: var(--ink-2); margin: 0 .12rem;
}
.svc-reviews .glsr-pagination .current { background: var(--brand); color: #fff; }

/* Write a review — the plugin's own form, behind a disclosure button */
.review-write { margin-top: 1.5rem; }
.review-write > summary {
  list-style: none; cursor: pointer; display: inline-flex;
  width: auto; user-select: none;
}
.review-write > summary::-webkit-details-marker { display: none; }
.review-write[open] > summary { margin-bottom: 1.25rem; }
.review-write-body {
  background: var(--s-surface); border: 1px solid var(--hairline);
  border-radius: var(--r); padding: clamp(1.2rem, 3vw, 1.75rem);
}
.review-write-body .glsr-form { max-width: 42rem; }
.review-write-body label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: .4rem; }
.review-write-body input[type="text"],
.review-write-body input[type="email"],
.review-write-body textarea,
.review-write-body select {
  width: 100%; font: inherit; color: var(--ink); background: var(--s-surface);
  border: 1.5px solid var(--hairline-2); border-radius: var(--r-sm);
  padding: .65rem .85rem; margin-bottom: 1rem;
}
.review-write-body button[type="submit"],
.review-write-body input[type="submit"] {
  background: var(--brand); color: #fff; border: 0; border-radius: 999px;
  padding: .78rem 1.6rem; font-weight: 650; font-size: 1rem; cursor: pointer;
}
.review-write-body button[type="submit"]:hover { filter: brightness(1.06); }

/* admin-only warnings so a mis-mapped product can't ship silently */
.svc-page .pack-error,
.svc-page .pack-warn {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .04em;
}
.svc-page .pack-error {
  display: grid; gap: .35rem;
  border-color: var(--warn) !important;
  background: var(--warn-soft) !important;
  color: var(--warn);
  padding: 1.2rem !important;
}
.svc-page .pack-warn {
  position: absolute; top: -9px; right: 1rem;
  background: var(--warn); color: #fff;
  padding: .18rem .5rem; border-radius: 4px; text-transform: uppercase;
}

/* ============================================================
   HOW TO COPY YOUR VIDEO LINK — illustrated steps
   ============================================================ */
.howto-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.howto-step {
  display: flex;
  flex-direction: column;
  background: var(--s-surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .18s cubic-bezier(.2,.8,.3,1), box-shadow .18s;
}
.howto-step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }

.howto-figure {
  margin: 0;
  padding: 1.75rem 1.5rem 1.25rem;
  background:
    radial-gradient(120% 90% at 50% 0%, var(--brand-soft), transparent 70%),
    var(--s-sunken);
  display: grid;
  place-items: center;
  min-height: 15rem;
}
.howto-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 13rem;
  height: auto;
  filter: drop-shadow(0 12px 24px #18102212);
}

.howto-body { padding: 1.35rem 1.4rem 1.5rem; }
.howto-num {
  display: inline-grid;
  place-items: center;
  width: 1.75rem; height: 1.75rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 650;
  margin-bottom: .7rem;
}
.howto-body h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 .4rem; }
.howto-body p { font-size: .93rem; color: var(--ink-2); margin: 0; }


/* ============================================================
   NAMED COMPETITOR COMPARISON
   The TikFuel column is boxed and lifted so the eye lands on it
   first; rivals stay quiet. Icons carry the verdict, colour alone
   never does.
   ============================================================ */
.cmp-heading .cmp-brand { color: var(--brand); }

/* NOTE: deliberately a plain class, NOT `:has(.compare-named)`.
   Chrome re-evaluates :has() subjects on DOM mutation, and this page's
   delivery ticker writes to the DOM on every animation frame — the two
   together produced a style-invalidation storm that crashed the tab. */
.svc-page .tablewrap--named {
  border: 0;
  background: transparent;
  overflow-x: auto;
  padding-top: .75rem;      /* room for the raised column edge */
}

table.compare-named {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 44rem;
}

table.compare-named th,
table.compare-named td {
  border-bottom: 1px solid var(--hairline);
  padding: .95rem 1.1rem;
  background: var(--s-surface);
  vertical-align: middle;
}
table.compare-named thead th {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  background: var(--s-sunken);
}
table.compare-named td.feat-c,
table.compare-named thead th:first-child {
  font-weight: 650;
  color: var(--ink);
  background: transparent;
  border-bottom-color: var(--hairline);
}
table.compare-named thead th:first-child { background: transparent; }

/* ---- the TikFuel column, boxed ---- */
table.compare-named th.us,
table.compare-named td.us {
  border-left: 2px solid var(--brand);
  border-right: 2px solid var(--brand);
  background: var(--s-surface);
  position: relative;
}
table.compare-named thead th.us {
  border-top: 2px solid var(--brand);
  border-top-left-radius: var(--r-sm);
  border-top-right-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 650;
  box-shadow: 0 -6px 18px -10px color-mix(in srgb, var(--brand) 60%, transparent);
}
table.compare-named tbody tr:last-child td.us {
  border-bottom: 2px solid var(--brand);
  border-bottom-left-radius: var(--r-sm);
  border-bottom-right-radius: var(--r-sm);
}
table.compare-named tbody td.us { font-weight: 650; color: var(--ink); }

.cmp-flag {
  display: inline-block;
  margin-left: .45rem;
  padding: .1rem .38rem;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: .58rem;
  letter-spacing: .1em;
}

/* ---- rival columns stay recessive ---- */
table.compare-named td.them { color: var(--ink-2); }

/* ---- verdict icons ---- */
.cmp-cell { display: inline-flex; align-items: flex-start; gap: .5rem; }
.cmp-ico { width: 15px; height: 15px; flex: none; margin-top: .18rem; }
.cmp-ico-good { color: var(--data); }
/* Red rather than the amber --warn: this is a competitor failing a
   comparison, not a caution about our own service. */
.cmp-ico-bad { color: var(--danger); }
table.compare-named td.is-bad { color: var(--ink-2); }

@media (max-width: 620px) {
  table.compare-named th,
  table.compare-named td { padding: .8rem .7rem; font-size: .88rem; }
}

.compare-checked {
  margin: .9rem 0 0;
  font-size: .8rem;
  color: var(--muted);
}


/* ============================================================
   Shares & Saves: their own hero motion and their own section.
   All CSS - no JavaScript touches any of it.
   ============================================================ */

/* ---------------- hero field ---------------- */
.svc-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.svc-field .fx { position: absolute; display: block; }

/* Shares: rings expanding outward, because that is what a share does. */
.svc-field--rings .fx {
  border-radius: 50%;
  border: 2px solid var(--brand);
  opacity: 0;
  animation: fxRing 7s cubic-bezier(.2,.6,.35,1) infinite;
}
.svc-field--rings .fx-1 { left: 12%; top: 62%; width: 26px; height: 26px; animation-delay: 0s;    }
.svc-field--rings .fx-2 { left: 30%; top: 22%; width: 20px; height: 20px; animation-delay: -1.1s; }
.svc-field--rings .fx-3 { left: 52%; top: 74%; width: 30px; height: 30px; animation-delay: -2.3s; }
.svc-field--rings .fx-4 { left: 71%; top: 30%; width: 22px; height: 22px; animation-delay: -3.4s; }
.svc-field--rings .fx-5 { left: 86%; top: 66%; width: 26px; height: 26px; animation-delay: -4.6s; }
.svc-field--rings .fx-6 { left: 42%; top: 46%; width: 18px; height: 18px; animation-delay: -5.5s; }
.svc-field--rings .fx-7 { left: 63%; top: 12%; width: 24px; height: 24px; animation-delay: -6.2s; }
@keyframes fxRing {
  0%   { transform: scale(.4);  opacity: 0; }
  12%  { opacity: .5; }
  100% { transform: scale(9);   opacity: 0; }
}

/* Saves: squares that fill in and hold, because a save is kept. */
.svc-field--grid .fx {
  width: 12px; height: 12px; border-radius: 4px;
  border: 2px solid var(--brand); opacity: .18;
  animation: fxFill 6.5s ease-in-out infinite;
}
.svc-field--grid .fx-1 { left: 10%; top: 30%; animation-delay: 0s;    }
.svc-field--grid .fx-2 { left: 22%; top: 68%; animation-delay: -.9s;  }
.svc-field--grid .fx-3 { left: 38%; top: 18%; animation-delay: -1.8s; }
.svc-field--grid .fx-4 { left: 55%; top: 58%; animation-delay: -2.7s; }
.svc-field--grid .fx-5 { left: 70%; top: 26%; animation-delay: -3.6s; }
.svc-field--grid .fx-6 { left: 82%; top: 70%; animation-delay: -4.5s; }
.svc-field--grid .fx-7 { left: 93%; top: 40%; animation-delay: -5.4s; }
@keyframes fxFill {
  0%, 8%    { background: transparent; opacity: .18; transform: scale(1); }
  22%, 62%  { background: var(--brand); opacity: .5;  transform: scale(1.25); }
  86%, 100% { background: transparent; opacity: .18; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .svc-field .fx { animation: none; }
}

/* ---------------- timing window (shares) ---------------- */
.win { list-style: none; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 820px) { .win { grid-template-columns: 1fr; } }

.win-phase {
  position: relative; display: flex; flex-direction: column;
  background: var(--s-surface); border: 1.5px solid var(--hairline);
  border-radius: var(--r); padding: 1.6rem 1.35rem 1.4rem;
  transition: transform .18s, box-shadow .18s;
}
.win-phase::before {
  content: ""; position: absolute; left: 1.35rem; right: 1.35rem; top: 0; height: 3px;
  border-radius: 0 0 3px 3px; background: var(--hairline-2);
}
.win-phase:hover { transform: translateY(-3px); box-shadow: var(--sh-sm); }

.win-phase.is-best {
  border-color: var(--brand);
  box-shadow: 0 16px 38px -20px color-mix(in srgb, var(--brand) 65%, transparent);
}
.win-phase.is-best::before { background: linear-gradient(90deg, var(--heart), var(--brand)); height: 4px; }

.win-flag {
  position: absolute; top: -10px; right: 1.2rem;
  background: var(--brand); color: #fff;
  font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase;
  padding: .2rem .55rem; border-radius: 5px;
}
.win-when {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .06em;
  color: var(--muted); margin-bottom: .5rem;
}
.win-phase.is-best .win-when { color: var(--brand); }
.win-title { font-size: 1.06rem; font-weight: 700; line-height: 1.25; margin-bottom: .5rem; }
.win-body { font-size: .91rem; color: var(--ink-2); }

/* ---------------- good fit / poor fit (saves) ---------------- */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-top: 2.25rem; }
@media (max-width: 780px) { .fit-grid { grid-template-columns: 1fr; } }

.fit-card {
  background: var(--s-surface); border: 1.5px solid var(--hairline);
  border-radius: var(--r); padding: 1.7rem 1.5rem 1.5rem;
}
.fit-card--good { border-color: color-mix(in srgb, var(--data) 40%, var(--hairline)); }
.fit-card--poor { border-color: var(--hairline); background: var(--s-sunken); }

.fit-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: .9rem; }
.fit-ico svg { width: 20px; height: 20px; }
.fit-card--good .fit-ico { background: var(--data-soft); color: var(--data); }
.fit-card--poor .fit-ico { background: #C02B3C14; color: var(--danger); }

.fit-card h3 { margin: 0 0 .9rem; font-size: 1.1rem; }
.fit-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.fit-card li {
  position: relative; padding-left: 1.1rem;
  font-size: .92rem; color: var(--ink-2); line-height: 1.5;
}
.fit-card li::before {
  content: ""; position: absolute; left: 0; top: .58em;
  width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .45;
}
.fit-foot {
  margin: 1.1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--hairline);
  font-size: .87rem; color: var(--muted);
}
