/* Ask Gabriel (the free web chat; "Talk to Gabriel free" until 10/10), on every V3 page (shared/free.js).
   The sheet follows shared/talk.css (the expert sheet), in Gabriel's own dark: obsidian, pearl, jade.
   The entry points ride the V3 buttons. One switch on <html>: data-free="invite" today, "open" when Free opens to everyone. */

html:not([data-free="open"]) [data-free-show="open"],html[data-free="open"] [data-free-show="invite"]{display:none!important}

/* ---------- The sheet ---------- */
.free-dialog{--f-bg:#15191c;--f-panel:#1c2225;--f-ink:#f0f3f1;--f-silver:#b7c1c1;--f-dim:#8f9b9c;--f-line:#2c3437;--f-line2:#485456;--f-jade:#93bba9;
  width:min(620px,calc(100% - 40px));max-height:calc(100dvh - 40px);padding:28px 40px 30px;border:1px solid rgba(240,243,241,.12);border-radius:24px;
  background:var(--f-bg);color:var(--f-ink);box-shadow:0 40px 90px rgba(0,0,0,.55);overflow:auto;overscroll-behavior:contain;
  font-family:var(--sans,'Geist','Helvetica Neue',Arial,sans-serif);-webkit-font-smoothing:antialiased}
.free-dialog::backdrop{background:rgba(9,12,14,.72);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.free-dialog[open]{animation:freeIn .32s cubic-bezier(.4,0,.2,1)}
@keyframes freeIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.free-dialog *{box-sizing:border-box}
.free-dialog h2,.free-dialog p,.free-dialog ol{margin:0}
.free-dialog a{color:inherit;text-underline-offset:3px}
.free-dialog :focus-visible{outline:2px solid var(--f-jade);outline-offset:3px;border-radius:6px}
.free-vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.free-close{position:absolute;right:18px;top:18px;width:44px;height:44px;border:1px solid var(--f-line2);border-radius:50%;background:transparent;color:var(--f-ink);font:300 24px/1 var(--sans,sans-serif);cursor:pointer;transition:border-color .2s}
.free-close:hover{border-color:var(--f-silver)}
.free-top{display:flex;align-items:center;gap:12px;min-height:44px;margin-bottom:22px;padding-right:56px}
.free-orb{flex:none;width:40px;height:40px;border-radius:12px;background:#0c1012;display:grid;place-items:center;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(240,243,241,.08)}
.free-orb img{width:36px;height:36px}
.free-eyebrow{font-family:var(--mono,'JetBrains Mono',monospace);font-weight:500;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--f-jade)}
.free-view{display:flex;flex-direction:column}
.free-view[hidden]{display:none}
.free-dialog h2{font-size:clamp(28px,4vw,36px);font-weight:300;letter-spacing:-.035em;line-height:1.08;text-wrap:balance}
.free-intro{margin-top:10px!important;font-size:16px;line-height:1.55;color:var(--f-silver);max-width:34em}

/* the ask box: one field, one send */
.free-box{position:relative;display:flex;align-items:flex-end;gap:10px;margin-top:22px!important;padding:10px 10px 10px 18px;border:1px solid var(--f-line2);border-radius:18px;background:var(--f-panel);transition:border-color .2s}
.free-box:focus-within{border-color:var(--f-jade)}
.free-box textarea{flex:1;min-width:0;min-height:30px;max-height:168px;margin:0;padding:6px 0;border:0;background:transparent;color:var(--f-ink);font:400 17px/1.45 var(--sans,sans-serif);resize:none;outline:none}
.free-box textarea::placeholder{color:var(--f-dim)}
.free-dialog .free-box :focus-visible{outline:none}
.free-send{flex:none;display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:var(--f-ink);color:#111518;cursor:pointer;transition:transform .15s,background .2s}
.free-send:hover{background:#fff}
.free-send:active{transform:scale(.96)}
.free-send svg{width:20px;height:20px}
.free-send:focus-visible{outline:2px solid var(--f-jade);outline-offset:3px}
.free-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.free-chips button{min-height:40px;padding:0 15px;border:1px solid var(--f-line2);border-radius:999px;background:transparent;color:var(--f-silver);font:400 14px/1 var(--sans,sans-serif);cursor:pointer;transition:border-color .2s,color .2s}
.free-chips button:hover{border-color:var(--f-silver);color:var(--f-ink)}
.free-status{min-height:0;font-size:14px;line-height:1.5;color:var(--f-silver)}
.free-status:not(:empty){margin-top:12px!important}
.free-status.warn{color:#c9d6cf}
.free-text{margin-top:18px!important;font-size:15px;line-height:1.5;color:var(--f-silver)}
.free-text a{color:var(--f-ink)}
.free-token{font-family:var(--mono,monospace);font-weight:500;font-size:12.5px;letter-spacing:.02em;padding:2px 6px;border:1px dashed var(--f-line2);border-radius:6px;color:var(--f-ink)}
.free-gate{display:flex;align-items:center;justify-content:space-between;gap:10px 18px;flex-wrap:wrap;margin-top:22px;padding:16px 18px;border-radius:14px;background:rgba(147,187,169,.08);border:1px solid rgba(147,187,169,.22)}
.free-gate p{flex:1 1 240px;font-size:14px;line-height:1.5;color:var(--f-silver)}
.free-gate-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border:1px solid rgba(240,243,241,.28);border-radius:999px;background:transparent;color:var(--f-ink);font:500 14px/1 var(--sans,sans-serif);text-decoration:none;white-space:nowrap;cursor:pointer;transition:border-color .2s,background .2s}
.free-gate-btn:hover{border-color:var(--f-ink);background:rgba(240,243,241,.05)}
.free-notice{margin-top:18px!important;padding-top:16px;border-top:1px solid var(--f-line);font-size:12.5px;line-height:1.55;color:var(--f-dim)}
.free-notice a{color:var(--f-silver)}

/* sign-in: the question stays in view, then one tap */
.free-carry{margin-bottom:20px;padding:14px 16px;border-radius:14px;background:var(--f-panel);border:1px solid var(--f-line)}
.free-carry[hidden]{display:none}
.free-carry-k{font-family:var(--mono,monospace);font-weight:500;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--f-dim)}
.free-carry-q{margin-top:6px!important;font-size:16px;line-height:1.45;color:var(--f-ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.free-providers{display:grid;gap:10px;margin-top:22px}
.free-provider{display:flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 18px;border:1px solid var(--f-line2);border-radius:999px;background:transparent;color:var(--f-ink);font:500 15px/1 var(--sans,sans-serif);cursor:pointer;transition:border-color .2s,background .2s}
.free-provider:hover{border-color:var(--f-silver);background:rgba(240,243,241,.04)}
.free-providers .free-provider:first-child{background:var(--f-ink);border-color:var(--f-ink);color:#111518}
.free-providers .free-provider:first-child:hover{background:#fff}
.free-email{display:flex;gap:10px;margin-top:10px}
.free-email input{flex:1;min-width:0;min-height:50px;padding:0 18px;border:1px solid var(--f-line2);border-radius:999px;background:var(--f-panel);color:var(--f-ink);font:400 16px/1 var(--sans,sans-serif);outline:none;transition:border-color .2s}
.free-email input:focus{border-color:var(--f-jade)}
.free-email input::placeholder{color:var(--f-dim)}
.free-email .free-provider{flex:none;padding:0 22px}
.free-back{align-self:flex-start;display:inline-flex;align-items:center;gap:8px;min-height:44px;margin-top:10px;padding:0;border:0;background:none;color:var(--f-silver);font:400 14px/1 var(--sans,sans-serif);cursor:pointer}
.free-back:hover{color:var(--f-ink)}

/* the chat opens with the question intact */
.free-demo{align-self:flex-start;padding:5px 10px;border:1px dashed var(--f-line2);border-radius:999px;font-family:var(--mono,monospace);font-weight:500;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--f-dim)}
.free-thread{display:flex;flex-direction:column;gap:14px;margin-top:18px!important;padding:0;list-style:none}
.free-msg{max-width:88%;font-size:16px;line-height:1.55}
.free-msg.mine{align-self:flex-end;padding:12px 16px;border-radius:18px 18px 6px 18px;background:var(--f-ink);color:#111518}
.free-msg.gabriel{align-self:flex-start;display:flex;gap:12px;color:var(--f-ink)}
.free-msg-orb{flex:none;width:32px;height:32px;border-radius:10px;background:#0c1012;display:grid;place-items:center;overflow:hidden;box-shadow:inset 0 0 0 1px rgba(240,243,241,.08)}
.free-msg-orb img{width:28px;height:28px}
.free-msg-t{padding-top:4px}
.free-typing{display:inline-flex;gap:5px;padding:10px 2px}
.free-typing i{width:6px;height:6px;border-radius:50%;background:var(--f-dim);animation:freeDot 1s infinite ease-in-out}
.free-typing i:nth-child(2){animation-delay:.15s}.free-typing i:nth-child(3){animation-delay:.3s}
@keyframes freeDot{0%,80%,100%{opacity:.3;transform:none}40%{opacity:1;transform:translateY(-3px)}}
.free-reply{margin-top:26px!important}
body.free-open{overflow:hidden}

@media (max-width:700px){
  .free-dialog{width:100%;max-width:none;max-height:92dvh;margin:auto 0 0;padding:20px 20px calc(24px + env(safe-area-inset-bottom,0px));border-radius:22px 22px 0 0;border-width:1px 0 0}
  .free-dialog[open]{animation:freeUp .32s cubic-bezier(.4,0,.2,1)}
  @keyframes freeUp{from{transform:translateY(40px);opacity:.4}to{transform:none;opacity:1}}
  .free-close{top:14px;right:14px}
  .free-top{margin-bottom:16px}
  .free-dialog h2{font-size:28px}
  .free-intro{font-size:15px}
  .free-email{flex-direction:column}
  .free-email .free-provider{width:100%}
  .free-gate-btn{width:100%;justify-content:center}
  .free-msg{max-width:94%}
}
@media (prefers-reduced-motion:reduce){.free-dialog[open]{animation:none}.free-typing i{animation:none;opacity:.6}}

/* ---------- Entry points on V3 pages ---------- */
/* Header: a quiet way in beside Member login; it becomes the pill when Free opens */
/* The free entry is an action, not a menu item: a glass pill beside the primary Join pill, the same pairing as the
   Free page hero and the menu sheet. Tyler (9/29): the 12px mono text link "was hard to see". The green dot stays in
   the markup for the text-link variant; it's hidden here. */
.nav-free{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--glass-edge);background:var(--glass);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);font:500 15px/1 var(--sans);text-decoration:none;color:var(--pearl);white-space:nowrap;transition:border-color .2s,background .2s}
.nav-free:hover{border-color:rgba(240,243,241,.4)}
.nav-free-dot{display:none}
@media (max-width:760px){.nav-free{display:none}}
/* the narrowest desktop header: Member login takes its short form so the links never wrap */
@media (max-width:1180px) and (min-width:1061px){.nav-login .long{display:none}.nav-login .short{display:inline}.links{gap:24px}.links a{white-space:nowrap}}
[data-nav-join=off] .nav-free{display:none}
/* Menu sheet: the expert stays one tap away */
.sheet-expert{display:flex;align-items:center;justify-content:center;min-height:48px;font-size:var(--fs-15);color:var(--silver);text-underline-offset:5px;text-decoration-color:rgba(240,243,241,.35)}
.sheet-expert:hover{color:var(--pearl)}
/* A quiet text link next to the actions: the expert near a hero, Ask Gabriel in a page-specific close */
.act-link{display:inline-flex;align-items:center;min-height:50px;padding:0 4px;font-size:var(--fs-15);color:var(--pearl);text-decoration:underline;text-underline-offset:5px;text-decoration-color:rgba(240,243,241,.4);white-space:nowrap}
.act-link:hover{text-decoration-color:var(--pearl)}
.chalk .act-link{color:var(--ink);text-decoration-color:rgba(37,42,43,.35)}
@media (max-width:760px){.act-link{justify-content:center;min-height:44px;font-size:var(--fs-15)}.hero .act-link,.close-actions .act-link{align-self:flex-start;justify-content:flex-start;padding:0}}

/* The free Gabriel rung: the entry rung below Plus */
.free-rung{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px clamp(20px,3vw,40px);margin-top:16px;padding:16px 24px 16px 16px;border-radius:18px;border:1px solid rgba(200,206,206,.8);background:var(--paper);color:var(--ink)}
.free-rung .pl-crown{width:148px;height:92px;padding:12px 16px;border-radius:12px;--tint:linear-gradient(110deg,#1b2124d1,#46515580 55%,#1b2124c7)}
.free-rung .pl-crown::before{filter:saturate(0) contrast(1.2) brightness(.62)}
.free-rung .pl-mark{top:11px;left:16px;font-size:10px}
.free-rung .pl-name{font-size:18px;letter-spacing:.2em}
.free-rung-t{display:flex;align-items:baseline;gap:6px 14px;flex-wrap:wrap;margin:0;font-size:var(--fs-17);font-weight:400;line-height:1.35}
.free-rung-t b{font-size:var(--fs-h3);font-weight:300;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.free-rung-note{margin-top:6px;font-size:var(--fs-13);line-height:1.5;color:var(--ash)}
.free-rung-act{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;justify-content:flex-end}
.free-rung-act .btn{height:48px}
.free-rung-more{display:inline-flex;align-items:center;gap:6px;min-height:44px;font-size:var(--fs-15);color:var(--ink);text-underline-offset:4px;white-space:nowrap}
.abyss .free-rung,.page-hero .free-rung{background:rgba(240,243,241,.035);border-color:var(--line);color:var(--pearl)}
.abyss .free-rung-note,.page-hero .free-rung-note{color:var(--silver)}
.abyss .free-rung-more,.page-hero .free-rung-more{color:var(--pearl)}
.abyss .free-rung .btn-ghost,.page-hero .free-rung .btn-ghost{border-color:var(--line2);color:var(--pearl)}
.abyss .free-rung .btn-ghost:hover,.page-hero .free-rung .btn-ghost:hover{border-color:var(--pearl)}
@media (max-width:900px){.free-rung{grid-template-columns:auto minmax(0,1fr)}.free-rung-act{grid-column:1/-1;justify-content:flex-start}}
@media (max-width:560px){.free-rung{grid-template-columns:1fr;padding:16px}.free-rung .pl-crown{width:100%;height:84px}.free-rung-act{flex-direction:column;align-items:stretch}.free-rung-act .btn{width:100%;height:52px}.free-rung-more{justify-content:center}}

/* Phones: the sticky bar carries both ways in */
@media (max-width:760px){
  .sticky-cta.free-sticky{padding:6px;gap:6px}
  .free-sticky .btn{flex:1 1 0;min-width:0;height:48px;padding:0 12px}
  .free-sticky .btn-glass{background:rgba(240,243,241,.06)}
}
@media (max-width:379px){.free-sticky .long{display:none}}
@media (min-width:380px){.free-sticky .short{display:none}}

/* Lines that need Gabriel's text number stay hidden until window.GABRIEL_TEXT_NUMBER is set (free.js marks <html>) */
html:not([data-text-number]) [data-free-sms],html:not([data-text-number]) [data-needs-number]{display:none!important}

/* ---------- One way to talk per device (Tyler 10/10) ----------
   Phones text Gabriel (the sms: link opens Messages); computers Ask Gabriel (the web chat). Each spot carries both
   buttons and shows only its device's one. The other way appears only as a small line named by its channel
   ("Prefer to text? (404) 390-9316", "Prefer the web? Ask Gabriel online"), never as a second button beside it:
   side by side, "Text Gabriel" and "Ask Gabriel" read as the same thing. */
@media not all and (hover:none) and (pointer:coarse){.tg-only-touch{display:none!important}}
@media (hover:none) and (pointer:coarse){.tg-not-touch{display:none!important}}
.tg-ico{flex:none;width:18px;height:18px;margin-left:-3px}

/* ---------- Computers: the number and a code to scan (free.js builds it on the first tap) ---------- */
.tg-dialog{width:min(600px,calc(100% - 40px));max-height:calc(100dvh - 40px);padding:34px 36px 28px;border:1px solid rgba(240,243,241,.12);border-radius:24px;
  background:#15191c;color:#f0f3f1;box-shadow:0 40px 90px rgba(0,0,0,.55);overflow:auto;overscroll-behavior:contain;
  font-family:var(--sans,'Geist','Helvetica Neue',Arial,sans-serif);-webkit-font-smoothing:antialiased}
.tg-dialog::backdrop{background:rgba(9,12,14,.72);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
.tg-dialog[open]{animation:freeIn .32s cubic-bezier(.4,0,.2,1)}
.tg-dialog *{box-sizing:border-box}
.tg-dialog h2,.tg-dialog p{margin:0}
.tg-dialog a{color:inherit;text-underline-offset:3px}
.tg-dialog :focus-visible{outline:2px solid #93bba9;outline-offset:3px;border-radius:6px}
.tg-x{position:absolute;right:18px;top:18px;width:44px;height:44px;border:1px solid #485456;border-radius:50%;background:transparent;color:#f0f3f1;font:300 24px/1 var(--sans,sans-serif);cursor:pointer;transition:border-color .2s}
.tg-x:hover{border-color:#b7c1c1}
.tg-in{display:flex;align-items:center;gap:30px;padding-right:44px}
.tg-qr{flex:none;padding:12px;border-radius:18px;background:#fff;line-height:0}
.tg-qr img{display:block;width:164px;height:164px}
.tg-copy{display:flex;flex-direction:column;gap:8px;min-width:0}
.tg-k{font:500 12px/1 var(--mono,'JetBrains Mono',monospace);letter-spacing:.12em;text-transform:uppercase;color:#93bba9}
.tg-dialog h2{margin-top:4px;font-size:34px;font-weight:300;letter-spacing:-.035em;line-height:1.08}
.tg-num{font-size:22px;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
.tg-num a{text-decoration:none}
.tg-p{font-size:15px;line-height:1.5;color:#b7c1c1}
.tg-ask{font-size:15px;line-height:1.5}
.tg-fine{margin-top:24px!important;padding-top:16px;border-top:1px solid #2c3437;font-size:12.5px;line-height:1.55;color:#8f9b9c}
.tg-web{display:inline-flex;gap:6px;margin-top:14px;font-size:15px;text-decoration:underline;text-decoration-color:rgba(240,243,241,.4)}
.tg-web:hover{text-decoration-color:#f0f3f1}
@media (max-width:560px){.tg-in{flex-direction:column;align-items:flex-start;padding-right:0}}
