/* =====================================================================
   THE MARKETING AGENCY — the kit
   The editorial components every page shares: the instrument panel (something to try, with its
   live label, market switch and read-outs), the struck-through myth, the questions, and the call
   to action that follows you down the page. Loaded after site.css on every page.
   ===================================================================== */

.sp-k { font: 400 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.sp-n { font: 400 12px/1 var(--mono); letter-spacing: .04em; color: var(--faint); }
/* the panel: the shell of anything you can try */
.panel { position: relative; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: color-mix(in srgb, var(--fg) 4%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 40px 120px -60px rgba(0, 0, 0, .7); }
.sp-inst { position: relative; min-height: 470px; padding: clamp(20px, 2vw, 28px); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: color-mix(in srgb, var(--fg) 4%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 40px 120px -60px rgba(0, 0, 0, .7); }
.sp-inst__fallback { color: var(--muted); font-size: 15px; }
.ins__top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.ins__k { display: flex; align-items: center; gap: 10px; font: 400 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.ins__k::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); animation: insLive 2.4s var(--ease) infinite; }
@keyframes insLive { 50% { box-shadow: 0 0 0 7px transparent; } }
.ins__seg { padding: 3px; }
.ins__seg button { padding: 7px 13px; font-size: 13px; }
.ins__note { margin-top: 16px; font-size: 12.5px; line-height: 1.5; color: var(--faint); }
.ins__hint { font-size: 13px; color: var(--faint); }
.ins__read { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; margin-top: 18px; border-radius: var(--r); overflow: hidden; background: var(--line); }
.ins__read > div { padding: 14px 16px; background: color-mix(in srgb, var(--bg) 88%, var(--fg)); }
.ins__read span { display: block; font: 400 10.5px/1.25 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ins__read b { display: block; margin-top: 8px; font: 300 clamp(26px, 2.4vw, 36px)/1 var(--serif); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ins__read small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--accent); min-height: 1.3em; }
.sp-myth { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 72; font-size: clamp(40px, 6vw, 108px); line-height: 1; letter-spacing: -.04em; color: var(--faint); max-width: 17ch; text-wrap: balance; }
.sp-myth s { text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 58% / calc(var(--strike, 0) * 100%) .07em no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.sp-truth { margin-top: clamp(22px, 2.6vw, 36px); font: 300 clamp(26px, 3vw, 50px)/1.12 var(--serif); letter-spacing: -.025em; max-width: 24ch; text-wrap: balance; }
.sp-truth em { color: var(--accent); }
.sp-faq { padding-block: var(--sec); }
.sp-faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.sp-q { border-top: 1px solid var(--line); }
.sp-q:last-child { border-bottom: 1px solid var(--line); }
.sp-q summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; align-items: center; gap: 10px; padding: 24px 0; cursor: pointer; list-style: none; }
.sp-q summary::-webkit-details-marker { display: none; }
.sp-q summary b { font-size: clamp(18px, 1.55vw, 23px); font-weight: 400; letter-spacing: -.01em; transition: color .3s; }
.sp-q summary:hover b { color: var(--accent); }
.sp-q summary i { position: relative; width: 16px; height: 16px; justify-self: end; }
.sp-q summary i::before, .sp-q summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .5s var(--ease); }
.sp-q summary i::after { transform: rotate(90deg); }
.sp-q[open] summary i::after { transform: rotate(0deg); }
.sp-q p { padding: 0 34px 28px 54px; max-width: 66ch; font-size: 16.5px; line-height: 1.65; color: var(--muted); }
/* The bar is mostly glass at rest. --near (0 far, 1 touching) firms it up as the pointer comes close. */
@property --near { syntax: '<number>'; inherits: true; initial-value: 0; }
.sp-bar {
  position: fixed; z-index: 60; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); isolation: isolate;
  display: flex; align-items: center; gap: 20px; max-width: calc(100% - 32px); padding: 8px 8px 8px 22px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--fg) 10%, transparent);
  background: color-mix(in srgb, var(--page, var(--bg)) 34%, transparent);
  background: color-mix(in srgb, var(--page, var(--bg)) calc(30% + 52% * var(--near)), transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  color: var(--fg); box-shadow: 0 18px 50px -30px rgba(0, 0, 0, calc(.3 + .35 * var(--near)));
  transform: translate(-50%, calc(100% + 40px)); transition: transform .8s var(--ease), --near .45s var(--ease);
}
.sp-bar.is-on { transform: translate(-50%, calc(-6px * var(--near))) scale(calc(1 + .015 * var(--near))); }
/* a spot of ink that follows the pointer across the glass */
.sp-bar::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(170px circle at var(--bx, 50%) 50%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%); opacity: 0; transition: opacity .45s; pointer-events: none; }
.sp-bar.is-hover::before { opacity: 1; }
.sp-bar p { display: flex; align-items: center; gap: 16px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.sp-bar p b { color: var(--fg); font-weight: 500; }
.sp-bar__rest > span + span::before { content: "·"; margin-right: 16px; color: var(--faint); }
/* the line rolls over to one about you, and back */
.sp-bar__roll { display: inline-grid; align-items: center; overflow: hidden; height: 1.6em; }
.sp-bar__roll > * { grid-area: 1 / 1; transition: transform .6s var(--ease), opacity .45s; }
.sp-bar__rest { display: flex; align-items: center; gap: 16px; }
.sp-bar__note { display: block; max-width: 44ch; overflow: hidden; text-overflow: ellipsis; color: var(--fg); transform: translateY(110%); opacity: 0; }
.sp-bar__note em { font-style: normal; color: var(--accent); }
.sp-bar.is-near .sp-bar__rest { transform: translateY(-110%); opacity: 0; }
.sp-bar.is-near .sp-bar__note { transform: none; opacity: 1; }
.sp-bar .btn { height: 44px; padding: 0 20px; }
.sp-bar .btn svg { width: 0; margin-left: 0; opacity: 0; transition: width .45s var(--ease), margin .45s var(--ease), opacity .3s; }
.sp-bar.is-near .btn svg { width: 16px; margin-left: 8px; opacity: 1; }
html[data-motion="reduced"] .sp-bar { transition: transform .01s, --near .01s; }
@media (max-width: 900px) {
  .sp-faq__grid { grid-template-columns: 1fr; }
  .sp-bar__rest > span { display: none; }
}
@media (max-width: 600px) {
  .sp-q summary { grid-template-columns: 34px minmax(0, 1fr) 20px; }
  .sp-q p { padding: 0 0 24px 44px; }
  .ins__read { grid-auto-flow: row; }
  .sp-bar { left: 16px; right: 16px; max-width: none; justify-content: space-between; transform: translateY(calc(100% + 40px)); }
  .sp-bar.is-on { transform: translateY(calc(-4px * var(--near))); }
  .sp-bar__note { max-width: calc(100vw - 210px); }
}
html[data-motion="reduced"] .sp-myth s { background-size: 100% .07em; }
html[data-motion="reduced"] .ins__k::before { animation: none; }

/* breadcrumbs, on every page below the home page */
.sp-crumbs { display: flex; flex-wrap: wrap; gap: 10px; font: 400 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.sp-crumbs a { transition: color .3s; }
.sp-crumbs a:hover { color: var(--fg); }
.sp-crumbs [aria-current] { color: var(--muted); }

/* the footer's call to action, on every page but home: a line and two ways to reach us (on a service page it brings
   you back to your plan instead). It used to live in service.css, so the blog and the carried-over pages had it unstyled */
.sp-foot { padding-bottom: clamp(40px, 5vw, 70px); border-bottom: 1px solid var(--line); }
.foot:has(.sp-foot) { padding-top: clamp(64px, 8vw, 120px); }
.sp-foot .eyebrow { margin-bottom: 18px; }
.sp-foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 22px 40px; }
.sp-foot__t { max-width: 40ch; font: 300 clamp(24px, 2.2vw, 34px)/1.2 var(--serif); letter-spacing: -.015em; text-wrap: balance; }
.sp-foot__t em { color: var(--accent); }
.sp-foot__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.sp-foot__acts .btn { height: 52px; padding: 0 24px; }
/* one rule between the call to action and the columns, not two with an empty band between them */
.sp-foot + .foot__cols { margin-top: 0; border-top: 0; padding-top: clamp(40px, 5vw, 70px); }
