/* What you get — /what-you-get (views/marketing/what-you-get.hbs) and the
   CTA block views/partials/what-you-get-cta.hbs carried by the front door and
   the Halloween page. Map: docs/WHAT_YOU_GET_PAGE.md.

   Black and white on purpose — it is the app's own look, so the page reads as
   the product, not as an ad for it. Two colours only, and each means one
   thing on the graphs: orange = outbound (posted every day), blue = inbound
   (a person writes in). Colour literals are deliberate here: the graphs draw
   on their own white ground and must look the same on every host theme. */

.wyg-page { --wyg-bg: #fafafa; --wyg-panel: #ffffff; --wyg-ink: #111111; --wyg-ink-2: #555555; --wyg-ink-3: #8a8a8a;
  --wyg-line: #e4e4e4; --wyg-dark: #111111; --wyg-on-dark: #fafafa; --wyg-out: #d9480f; --wyg-in: #1d6fb8;
  background: var(--wyg-bg); color: var(--wyg-ink); font-family: 'DM Sans', var(--font-body, Arial), sans-serif; font-size: 17px; line-height: 1.5; }
.wyg-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wyg-section { padding: 64px 0 0; }
.wyg-section--last { padding-bottom: 80px; }
.wyg-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--wyg-ink-3, #8a8a8a); margin: 0; }
.wyg-h1 { font-size: clamp(34px, 6vw, 60px); line-height: 1.02; letter-spacing: -1.5px; font-weight: 800; margin: 12px 0 14px; text-wrap: balance; }
.wyg-h2 { font-size: clamp(24px, 3.4vw, 34px); line-height: 1.1; letter-spacing: -0.6px; font-weight: 800; margin: 8px 0 22px; text-wrap: balance; }
.wyg-lede { font-size: 20px; color: var(--wyg-ink-2); max-width: 640px; margin: 0 0 24px; }
.wyg-hero { padding: 48px 0 0; }
.wyg-hero .wyg-player { margin-top: 28px; }

/* ── reveal ──────────────────────────────────────────────────────────── */
html.wyg-anim .wyg-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 80ms); }
html.wyg-anim .wyg-reveal.is-in { opacity: 1; transform: none; }

/* ── result tiles ────────────────────────────────────────────────────── */
.wyg-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wyg-tile { background: var(--wyg-panel); border: 1.5px solid var(--wyg-dark); border-radius: 18px; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 8px; color: var(--wyg-ink); }
.wyg-tile--dark { background: var(--wyg-dark); color: var(--wyg-on-dark); }
.wyg-tile .wyg-big { font-size: 40px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.wyg-tile .wyg-row { display: flex; align-items: center; gap: 8px; min-height: 40px; flex-wrap: wrap; }
.wyg-tile .wyg-plus { font-size: 30px; font-weight: 800; line-height: 1; }
.wyg-tile h3 { font-size: 19px; font-weight: 700; margin: 0; line-height: 1.2; }
.wyg-tile p { margin: 0; color: var(--wyg-ink-2); font-size: 15px; }
.wyg-tile--dark p { color: #bdbdbd; }
.wyg-tag { display: inline-block; margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1.5px solid var(--wyg-dark); color: var(--wyg-ink); }
.wyg-tile--dark .wyg-tag { border-color: #bdbdbd; color: #fafafa; }
.wyg-tag--auto { background: var(--wyg-dark); color: var(--wyg-on-dark); }
.wyg-tile--dark .wyg-tag--auto { background: var(--wyg-on-dark); color: var(--wyg-dark); border-color: var(--wyg-on-dark); }
.wyg-tag--in { border-color: var(--wyg-in); color: var(--wyg-in); }
.wyg-ic { width: 34px; height: 34px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wyg-doors { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.wyg-doors span { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--wyg-ink-2); }
.wyg-doors span i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--wyg-in); }
@media (max-width: 720px) { .wyg-results { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .wyg-results { grid-template-columns: 1fr; } }

/* ── graphs ──────────────────────────────────────────────────────────── */
.wyg-graph { background: var(--wyg-panel); border: 1.5px solid var(--wyg-dark); border-radius: 22px; padding: 14px; overflow-x: auto; }
.wyg-graph svg { display: block; width: 100%; height: auto; min-width: 760px; }
.wyg-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 14px; color: var(--wyg-ink-2); }
.wyg-legend span { display: inline-flex; align-items: center; gap: 8px; }
.wyg-legend i { display: inline-block; width: 26px; height: 0; border-top: 3px solid var(--wyg-dark); }
.wyg-legend i.out { border-color: var(--wyg-out); }
.wyg-legend i.in { border-color: var(--wyg-in); }
.wyg-legend i.dash { border-top-style: dashed; }

/* nodes pop in one after another; arrows flow while the graph is on screen */
.wyg-graph [data-node] { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; transition-delay: calc(var(--n, 0) * 70ms); }
.wyg-graph.was-live [data-node] { opacity: 1; transform: none; }
.wyg-graph .wyg-flow { stroke-dasharray: 9 7; }
.wyg-graph.is-live .wyg-flow { animation: wyg-flow 1.1s linear infinite; }
.wyg-graph .wyg-flow--dash { stroke-dasharray: 7 6; }
.wyg-graph.is-live .wyg-flow--dash { animation: wyg-flow 1.6s linear infinite; }
.wyg-graph.is-still [data-node] { opacity: 1; transform: none; transition: none; }
.wyg-graph.is-still .wyg-flow { animation: none; }
@keyframes wyg-flow { to { stroke-dashoffset: -16; } }
@media (prefers-reduced-motion: reduce) {
  .wyg-graph [data-node] { opacity: 1; transform: none; transition: none; }
  .wyg-graph .wyg-flow, .wyg-graph .wyg-flow--dash { animation: none !important; }
}

/* ── the day line ────────────────────────────────────────────────────── */
.wyg-day { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.wyg-slot { border-top: 3px solid var(--wyg-dark); padding-top: 12px; }
.wyg-slot--in { border-color: var(--wyg-in); }
.wyg-slot .t { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.wyg-slot .w { font-size: 15px; font-weight: 700; margin-top: 2px; }
.wyg-slot .d { font-size: 14px; color: var(--wyg-ink-2); }
@media (max-width: 720px) { .wyg-day { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 420px) { .wyg-day { grid-template-columns: 1fr 1fr; } }

/* ── what you do ─────────────────────────────────────────────────────── */
.wyg-you { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.wyg-you > div { border: 1.5px solid var(--wyg-line); border-radius: 16px; padding: 18px 20px; background: var(--wyg-panel); }
.wyg-you b { display: block; font-size: 17px; margin-bottom: 4px; }
.wyg-you p { margin: 0; color: var(--wyg-ink-2); font-size: 15px; }
@media (max-width: 640px) { .wyg-you { grid-template-columns: 1fr; } }

.wyg-close { margin-top: 56px; border-top: 1.5px solid var(--wyg-dark); padding-top: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.wyg-close p { margin: 0; font-size: 18px; max-width: 560px; }
.wyg-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px; background: var(--wyg-dark); color: var(--wyg-on-dark); font-weight: 700; text-decoration: none; font-size: 16px; }
.wyg-btn:hover { color: var(--wyg-on-dark); opacity: .9; }
.wyg-btn--ghost { background: transparent; color: var(--wyg-ink); border: 1.5px solid var(--wyg-dark); }
.wyg-btn--ghost:hover { color: var(--wyg-ink); background: var(--wyg-panel); }

/* ── the CTA block (front door, Halloween page, and the hero here) ────── */
.wyg-cta { padding: 56px 0; background: #fafafa; color: #111111; font-family: 'DM Sans', Arial, sans-serif; }
.wyg-cta-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: center; }
.wyg-cta .wyg-eyebrow { color: #8a8a8a; }
.wyg-cta-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.05; letter-spacing: -1px; font-weight: 800; margin: 10px 0 12px; }
.wyg-cta-sub { font-size: 17px; line-height: 1.5; color: #555555; margin: 0 0 18px; max-width: 480px; }
.wyg-cta-link { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; background: #111111; color: #fafafa; font-weight: 700; text-decoration: none; font-size: 16px; }
.wyg-cta-link:hover { color: #fafafa; opacity: .9; }
@media (max-width: 760px) { .wyg-cta-wrap { grid-template-columns: 1fr; } }
/* on /what-you-get itself the hero already carries the words: player only */
.wyg-cta--compact { padding: 0; background: transparent; }
.wyg-cta--compact .wyg-cta-wrap { grid-template-columns: 1fr; padding: 0; max-width: 820px; margin: 0; }
.wyg-cta--compact .wyg-cta-copy { display: none; }

/* ── the player ──────────────────────────────────────────────────────── */
.wyg-player { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 20px; border: 1.5px solid #111111; background: #ffffff center / cover no-repeat; overflow: hidden; }
.wyg-player.is-playing { background: #000; }
.wyg-video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wyg-play { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #111111; font-family: inherit; }
.wyg-play:focus-visible { outline: 3px solid #1d6fb8; outline-offset: -3px; }
.wyg-play-btn { width: 76px; height: 76px; border-radius: 50%; background: #111111; color: #fafafa; display: grid; place-items: center; font-size: 38px; box-shadow: 0 10px 30px rgba(0,0,0,.18); transition: transform .2s ease; }
.wyg-play:hover .wyg-play-btn { transform: scale(1.06); }
.wyg-play-txt { font-size: 14px; font-weight: 700; letter-spacing: .5px; background: #fafafa; padding: 6px 12px; border-radius: 999px; border: 1.5px solid #111111; }

/* the CSS thumbnail: the graph in miniature, so the poster exists before the video does */
.wyg-thumb { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 0; padding: 8% 6%; opacity: .55; }
.wyg-thumb-col { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.wyg-thumb-lbl { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #8a8a8a; margin-bottom: 4px; }
.wyg-thumb-col > i { display: block; height: 22px; border: 1.5px solid #111111; border-radius: 7px; background: #fff; }
.wyg-thumb-col--agent > i.wyg-thumb-face { height: 72px; background: #111111; border-radius: 14px; }
.wyg-thumb-col--ch > i { display: grid; place-items: center; font-size: 12px; color: #111111; }
.wyg-thumb-col--ch > i em { font-style: normal; }
.wyg-thumb-arrows { display: flex; flex-direction: column; gap: 14px; padding: 0 6px; }
.wyg-thumb-arrows b { display: block; width: 22px; height: 0; border-top: 2px dashed #111111; }
@media (max-width: 520px) { .wyg-thumb-lbl { display: none; } .wyg-play-btn { width: 60px; height: 60px; font-size: 30px; } }
