/* ============================================================
   VooReach content templates — vr.css

   The poster design language, taken from the VooReach LinkedIn post pack:

   - Three grounds. Logo yellow, flat. Canvas cream with a fine dot grid and a
     warm glow. Ink with a soft yellow glow behind the content.
   - Big display type. Unbounded 600 for statements, Inter 600 set very tight
     for grotesk headlines. Sentence case, never all caps.
   - UI shown as "sticker" cards: white, a thick ink border, a flat offset
     shadow in a darker shade of the ground, sometimes tilted a few degrees.
   - A small white "VooReach" pill and an outlined counter pill as chrome, the
     wordmark at the foot, one CTA pill.
   - Yellow used as a highlighter: check badges, a marker stripe under a word,
     one highlighted row or slot, floating dots.

   Artboard sizes are 1080 for posts and slides. Documents (.pg) scale the
   same vocabulary down at the bottom of this file.
   ============================================================ */
@import url("./tokens.css");

/* ── Artboard surface ─────────────────────────────────────────────────────── */
.a, .pg {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  overflow: hidden; isolation: isolate;
  font-family: var(--font-sans); color: var(--fg); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
.a  { padding: 80px; }
.pg { padding: 54px 60px 42px; }
/* Content sits above texture and photo layers. A decorative layer opts out
   with .layer and positions itself. */
.a > :not(.layer), .pg > :not(.layer) { position: relative; z-index: 2; }
.layer { position: absolute; z-index: 0; pointer-events: none; }

/* ── Grounds ──────────────────────────────────────────────────────────────── */
.g-yellow { --bg: var(--yellow); --fg: var(--ink); --fg-2: rgba(14,18,26,.76); --fg-3: rgba(14,18,26,.56);
            --line: rgba(14,18,26,.18); --sticker: #DCCB00; --dot: var(--ink);
            --pill-bg: var(--white); --pill-fg: var(--ink); --skel-c: #EDE9D8; }
.g-canvas { --bg: var(--canvas); --fg: var(--ink); --fg-2: #46453F; --fg-3: #6A6964;
            --line: rgba(15,15,15,.12); --sticker: #EFE4B0; --dot: var(--accent);
            --pill-bg: var(--white); --pill-fg: var(--ink); --skel-c: var(--skel); }
.g-white  { --bg: var(--white); --fg: var(--ink); --fg-2: #46453F; --fg-3: #6A6964;
            --line: rgba(15,15,15,.10); --sticker: #F3E9B8; --dot: var(--accent);
            --pill-bg: var(--canvas); --pill-fg: var(--ink); --skel-c: var(--skel); }
.g-ink    { --bg: var(--ink); --fg: var(--canvas); --fg-2: rgba(254,252,239,.74); --fg-3: rgba(254,252,239,.52);
            --line: rgba(254,252,239,.14); --sticker: var(--yellow); --dot: var(--yellow);
            --pill-bg: var(--canvas); --pill-fg: var(--ink); --skel-c: var(--skel); }

/* ── Textures (pseudo layers on the artboard) ─────────────────────────────── */
.tex-dots::before {
  content: ""; position: absolute; inset: 34px; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(14,18,26,.12) 1.5px, transparent 1.8px);
  background-size: 26px 26px;
}
.g-ink.tex-dots::before { background-image: radial-gradient(circle, rgba(254,252,239,.07) 1.5px, transparent 1.8px); }
.pg.tex-dots::before { inset: 22px; background-size: 16px 16px;
  background-image: radial-gradient(circle, rgba(14,18,26,.10) 1px, transparent 1.2px); }
.tex-glow::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(70% 48% at 26% 18%, rgba(255,237,2,.16), rgba(255,237,2,0) 72%);
}
.g-ink.tex-glow::after { background: radial-gradient(62% 44% at 50% 58%, rgba(255,237,2,.20), rgba(255,237,2,0) 72%); }

/* ── Chrome ───────────────────────────────────────────────────────────────── */
.top    { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: 0 0 auto; }
.bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex: 0 0 auto; margin-top: auto; }

.brand-pill {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px 0 22px;
  border-radius: var(--r-pill); background: var(--pill-bg); color: var(--pill-fg);
  font: 500 23px/1 var(--font-sans); letter-spacing: -0.01em; white-space: nowrap;
}
.brand-pill i { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); flex: 0 0 auto; }
.g-ink .brand-pill i { background: var(--ink); }
/* A white pill vanishes on canvas and white, so it carries an ink edge there. */
.g-canvas .brand-pill, .g-white .brand-pill { box-shadow: inset 0 0 0 2px var(--ink); }
.count-pill {
  display: inline-flex; align-items: center; height: 54px; padding: 0 24px; border-radius: var(--r-pill);
  border: 2.5px solid var(--fg); color: var(--fg); font: 500 23px/1 var(--font-sans);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* Wordmark and mark are always the supplied SVGs, never retyped. Black on
   yellow, canvas and white; white on ink. Never recoloured. */
.wm   { height: 48px; width: auto; display: block; }
.mark { width: 72px; height: 72px; display: block; }
.url  { font: 500 24px/1 var(--font-sans); color: var(--fg-2); letter-spacing: -0.005em; }

/* ── Type ─────────────────────────────────────────────────────────────────── */
.dx { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; margin: 0; color: var(--fg); text-wrap: balance; }
.dx-1 { font-size: 124px; } .dx-2 { font-size: 100px; } .dx-3 { font-size: 80px; } .dx-4 { font-size: 60px; } .dx-5 { font-size: 44px; }
.gx { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.045em; line-height: .98; margin: 0; color: var(--fg); text-wrap: balance; }
.gx-1 { font-size: 150px; } .gx-2 { font-size: 118px; } .gx-3 { font-size: 92px; } .gx-4 { font-size: 68px; } .gx-5 { font-size: 50px; }
.lede  { font: 400 38px/1.36 var(--font-sans); letter-spacing: -0.012em; color: var(--fg-2); margin: 0; max-width: 26ch; text-wrap: pretty; }
.txt   { font: 400 30px/1.45 var(--font-sans); letter-spacing: -0.008em; color: var(--fg-2); margin: 0; }
.small { font: 400 24px/1.45 var(--font-sans); color: var(--fg-3); margin: 0; }
.eyebrow { font: 600 24px/1 var(--font-sans); letter-spacing: -0.005em; color: var(--fg-2);
           display: inline-flex; align-items: center; gap: 12px; }
.eyebrow::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--dot); flex: 0 0 auto; }
.mono { font-family: var(--font-mono); }

/* Emphasis. One device per frame.
   .y is a global utility: never reuse "y" as a local modifier class name, or
   the text turns yellow and disappears on a yellow ground. */
.y  { color: var(--yellow); }                          /* yellow words, ink ground only */
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 90%, transparent 90%);
      -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .05em; }
.hl-box { background: var(--white); color: var(--ink); border-radius: .16em; padding: .02em .2em .1em;
          -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.strike { text-decoration: line-through; text-decoration-thickness: .08em; text-decoration-color: currentColor; opacity: .55; }

/* ── CTA pill ─────────────────────────────────────────────────────────────── */
.cta {
  display: inline-flex; align-items: center; gap: 16px; height: 90px; padding: 0 42px;
  border-radius: var(--r-pill); background: var(--ink); color: var(--yellow);
  font: 600 32px/1 var(--font-sans); letter-spacing: -0.012em; white-space: nowrap;
  box-shadow: 6px 7px 0 var(--sticker); align-self: flex-start;
}
.cta svg { width: 30px; height: 30px; flex: 0 0 auto; }
.cta--yellow { background: var(--yellow); color: var(--ink); }
.cta--cream  { background: var(--canvas); color: var(--ink); }
.cta--flat   { box-shadow: none; }
.g-ink .cta--yellow { box-shadow: none; }

/* ── Sticker cards ────────────────────────────────────────────────────────── */
.card {
  background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: var(--r-lg);
  padding: 34px; box-shadow: 14px 14px 0 var(--sticker);
}
.card--soft  { border-width: 2px; box-shadow: 10px 10px 0 var(--sticker); }
.card--float { border-color: transparent; box-shadow: 0 34px 70px rgba(14,18,26,.22); }
.card--muted { background: var(--paper-2); }
.card--yellow { background: var(--yellow); }
.card--ink   { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.card .ct { font: 600 32px/1.15 var(--font-sans); letter-spacing: -0.02em; margin: 0; color: inherit; }
.card .cm { font: 400 23px/1.42 var(--font-sans); color: #56554F; margin: 0; }
.card--ink .cm { color: rgba(254,252,239,.7); }
.win-bar { display: flex; gap: 9px; margin-bottom: 22px; }
.win-bar i { width: 13px; height: 13px; border-radius: 50%; background: #D9D5C6; }
.skel { height: 18px; border-radius: 9px; background: var(--skel-c, var(--skel)); }
.skel--y { background: var(--yellow); }
.tilt-l { transform: rotate(-4deg); } .tilt-r { transform: rotate(3deg); } .tilt-s { transform: rotate(-1.5deg); }

/* ── Badges, avatars, chips ───────────────────────────────────────────────── */
.check { width: 46px; height: 46px; border-radius: 50%; background: var(--yellow); flex: 0 0 auto; position: relative;
         box-shadow: inset 0 0 0 2.5px var(--ink); }
.check::after { content: ""; position: absolute; left: 16px; top: 9px; width: 11px; height: 20px;
                border-right: 4px solid var(--ink); border-bottom: 4px solid var(--ink); transform: rotate(45deg); }
.cross { width: 46px; height: 46px; border-radius: 50%; background: var(--paper-2); flex: 0 0 auto; position: relative;
         box-shadow: inset 0 0 0 2.5px rgba(14,18,26,.35); }
.cross::before, .cross::after { content: ""; position: absolute; left: 21px; top: 12px; width: 4px; height: 22px;
                                border-radius: 2px; background: rgba(14,18,26,.55); }
.cross::before { transform: rotate(45deg); } .cross::after { transform: rotate(-45deg); }

/* A person glyph drawn in CSS, for avatar rows. Yellow disc, ink figure. */
.person { width: 96px; height: 96px; border-radius: 50%; background: var(--yellow); position: relative; overflow: hidden; flex: 0 0 auto; }
.person::before { content: ""; position: absolute; left: 34%; top: 19%; width: 32%; height: 32%; border-radius: 50%; background: var(--ink); }
.person::after  { content: ""; position: absolute; left: 17%; top: 58%; width: 66%; height: 62%; border-radius: 50% 50% 0 0; background: var(--ink); }
.person--ink { background: var(--ink); } .person--ink::before, .person--ink::after { background: var(--yellow); }
.person--cream { background: var(--canvas); } .person--white { background: var(--white); box-shadow: inset 0 0 0 2.5px var(--ink); }
.face { border-radius: 50%; background-size: cover; background-position: center; flex: 0 0 auto; }

.chip { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: var(--r-pill);
        background: var(--white); color: var(--ink); border: 2.5px solid var(--ink); font: 500 22px/1 var(--font-sans); white-space: nowrap; }
.chip--y { background: var(--yellow); }
.chip--ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.chip--ink { background: var(--ink); color: var(--canvas); }

/* Logged send states. Colours are the site's interface tokens. */
.state { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 18px; border-radius: var(--r-pill);
         font: 600 22px/1 var(--font-sans); white-space: nowrap; }
.state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.state--sent    { background: #E2F3EB; color: #047857; }
.state--queued  { background: #F0EDE2; color: #5E5D57; }
.state--failed  { background: #FBEAD9; color: var(--accent-ink); }
.state--skipped { background: #F0EDE2; color: #8A887F; }
.state--active  { background: var(--yellow); color: var(--ink); }

/* Template variables, as they appear in the script editor. */
.var { font: 500 .82em/1 var(--font-mono); background: var(--yellow); color: var(--ink); padding: .2em .42em;
       border-radius: .34em; white-space: nowrap; }

/* ── Numbers, photos, decoration ──────────────────────────────────────────── */
.num { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.05em; line-height: .9; color: var(--fg); }
.g-ink .num { color: var(--yellow); }

.photo { background-size: cover; background-position: center; border-radius: var(--r-lg); }
.photo--frame { border: 3px solid var(--ink); box-shadow: 14px 14px 0 var(--sticker); }
.photo-bleed { inset: 0; background-size: cover; background-position: center; }
.scrim { inset: 0; background: linear-gradient(180deg, rgba(14,18,26,.05) 0%, rgba(14,18,26,.55) 55%, rgba(14,18,26,.92) 100%); }

.fdot { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--yellow); z-index: 1; }
.g-yellow .fdot { background: var(--white); }
.vrule { width: 3px; align-self: stretch; background: var(--fg); border-radius: 2px; }
.hrule { height: 2px; width: 100%; background: var(--line); }

/* Required wherever LinkedIn, Apollo, Lusha, Google or Microsoft is named. */
.disclaimer { font: 400 20px/1.4 var(--font-sans); color: var(--fg-3); margin: 0; }

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.row { display: flex; } .col { display: flex; flex-direction: column; }
.center { align-items: center; justify-content: center; } .between { justify-content: space-between; }
.items-center { align-items: center; } .items-end { align-items: flex-end; } .wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-height: 0; } .mt-auto { margin-top: auto; }
.gap-1 { gap: 6px; } .gap-2 { gap: 10px; } .gap-3 { gap: 14px; } .gap-4 { gap: 18px; } .gap-5 { gap: 24px; }
.gap-6 { gap: 32px; } .gap-8 { gap: 44px; } .gap-10 { gap: 60px; }

/* ============================================================
   Documents. A4 at 96dpi, read at arm's length, so the same vocabulary
   steps down to print sizes.
   ============================================================ */
.pg .dx-1 { font-size: 66px; } .pg .dx-2 { font-size: 54px; } .pg .dx-3 { font-size: 42px; }
.pg .dx-4 { font-size: 31px; } .pg .dx-5 { font-size: 23px; }
.pg .gx-1 { font-size: 84px; } .pg .gx-2 { font-size: 66px; } .pg .gx-3 { font-size: 50px; }
.pg .gx-4 { font-size: 38px; } .pg .gx-5 { font-size: 28px; }
.pg .lede  { font-size: 19px; }
.pg .txt   { font-size: 15.5px; line-height: 1.6; }
.pg .small { font-size: 12.5px; }
.pg .eyebrow { font-size: 13px; gap: 8px; } .pg .eyebrow::before { width: 8px; height: 8px; }
.pg .brand-pill { height: 32px; font-size: 14px; padding: 0 15px 0 12px; gap: 8px; }
.pg .brand-pill i { width: 8px; height: 8px; }
.pg .count-pill { height: 32px; font-size: 14px; padding: 0 14px; border-width: 1.5px; }
.pg .wm { height: 28px; } .pg .mark { width: 40px; height: 40px; } .pg .url { font-size: 14px; }
.pg .card { border-width: 2px; border-radius: 18px; padding: 20px; box-shadow: 7px 7px 0 var(--sticker); }
.pg .card .ct { font-size: 18px; } .pg .card .cm { font-size: 13.5px; }
.pg .cta { height: 48px; padding: 0 22px; font-size: 17px; gap: 10px; box-shadow: 4px 4px 0 var(--sticker); }
.pg .cta svg { width: 18px; height: 18px; }
.pg .check, .pg .cross { width: 24px; height: 24px; box-shadow: inset 0 0 0 1.5px var(--ink); }
.pg .check::after { left: 8px; top: 4px; width: 6px; height: 11px; border-right-width: 2.5px; border-bottom-width: 2.5px; }
.pg .cross::before, .pg .cross::after { left: 11px; top: 6px; width: 2.5px; height: 12px; }
.pg .person { width: 48px; height: 48px; }
.pg .chip { height: 30px; padding: 0 12px; font-size: 13px; border-width: 1.5px; gap: 6px; }
.pg .state { height: 24px; padding: 0 10px; font-size: 12px; gap: 6px; } .pg .state::before { width: 6px; height: 6px; }
.pg .skel { height: 10px; border-radius: 5px; }
.pg .disclaimer { font-size: 11px; }
.pg .fdot { width: 12px; height: 12px; }

/* Running head and folio on every page after the cover. */
.run { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex: 0 0 auto;
       padding-bottom: 14px; margin-bottom: 26px; border-bottom: 1.5px solid var(--line);
       font: 500 12.5px/1 var(--font-sans); color: var(--fg-3); }
.run .wm { height: 26px; }   /* 83px wide, above the brand's 80px wordmark minimum */
.folio { margin-top: auto; padding-top: 12px; border-top: 1.5px solid var(--line); flex: 0 0 auto;
         display: flex; justify-content: space-between; align-items: center; gap: 16px;
         font: 500 11.5px/1.35 var(--font-sans); color: var(--fg-3); }

.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; color: var(--fg); }
.doc-table th { text-align: left; font: 600 12px/1.2 var(--font-sans); color: var(--fg-3); padding: 9px 10px; border-bottom: 2px solid var(--fg); }
.doc-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.box { width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 6px; flex: 0 0 auto; background: var(--white); }
