/* Ebook offer and landing. Stickman City, not a generic widget. */
.ebook-offer{padding-top:72px;padding-bottom:72px}
.ebook-offer .shead{margin-bottom:28px}
.ebook-row{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(280px,1.1fr);gap:40px 48px;align-items:center}
.ebook-scene{position:relative;display:flex;justify-content:center;align-items:flex-end;min-height:340px}
.ebook-stand{width:100%;max-width:420px;height:auto;display:block}
.ebook-cover{
  position:absolute;left:50%;bottom:78px;transform:translateX(-42%) rotate(-6deg);
  width:168px;min-height:230px;background:#FFFDF8;border:3px solid #0E0E12;
  border-radius:4px 10px 8px 4px;box-shadow:8px 10px 0 #0E0E12, inset 8px 0 0 #EC5E3A;
  padding:18px 16px 16px 22px;display:flex;flex-direction:column;gap:8px;
  color:#0E0E12;text-decoration:none;
}
.ebook-cover .cover-kicker{
  font-family:'JetBrains Mono',monospace;font-size:9px;font-weight:700;
  letter-spacing:.16em;text-transform:uppercase;color:#EC5E3A;
}
.ebook-cover h3{
  font-family:Anton,Impact,sans-serif;font-size:26px;line-height:.95;
  text-transform:uppercase;letter-spacing:.02em;margin:0;
}
.ebook-cover .cover-by{font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-size:15px;margin:auto 0 0}
.ebook-cover .cover-mark{font-family:'JetBrains Mono',monospace;font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:#6f6b61}
.ebook-form{
  background:#FFFDF8;border:3px solid #0E0E12;border-radius:14px;
  padding:28px 26px 24px;box-shadow:7px 8px 0 #0E0E12;
}
.ebook-form h3.anton, .ebook-form .ebook-form-title{font-size:clamp(32px,3.2vw,46px);line-height:.98;margin:0 0 12px;text-transform:uppercase}
.ebook-benefit{font-family:'Instrument Serif',Georgia,serif;font-style:italic;font-size:22px;line-height:1.3;margin:0 0 20px}
.ebook-form label.ebook-email{display:block;font-weight:600;font-size:14px;margin:0 0 6px}
.ebook-form input[type=email]{
  width:100%;box-sizing:border-box;font:500 17px 'Inter Tight',sans-serif;
  color:#0E0E12;background:#fff;border:2.5px solid #0E0E12;border-radius:8px;
  padding:12px 14px;outline:none;min-height:52px;
}
.ebook-form input[type=email]:focus{border-color:#EC5E3A;box-shadow:0 0 0 4px rgba(236,94,58,.28)}
.ebook-opt{display:flex;align-items:flex-start;gap:10px;margin:16px 0 18px;font-size:15px;line-height:1.4;font-weight:500;cursor:pointer}
.ebook-opt input{width:20px;height:20px;min-width:20px;margin-top:2px;accent-color:#EC5E3A;flex:0 0 auto}
.ebook-form .btn-ebook{
  display:inline-flex;align-items:center;justify-content:center;
  background:#EC5E3A;color:#0E0E12;font-weight:700;font-size:17px;
  padding:14px 22px;border-radius:10px;border:2.5px solid #0E0E12;
  cursor:pointer;min-height:52px;width:100%;font-family:'Inter Tight',sans-serif;
}
.ebook-form .btn-ebook:hover{filter:brightness(1.05)}
.ebook-form .btn-ebook:disabled{opacity:.65;cursor:wait}
.ebook-note{font-size:13px;color:#3a3833;margin:14px 0 0;line-height:1.45}
.ebook-note a{color:#EC5E3A;font-weight:700}
.ebook-form .form-status{margin:16px 0 0;padding:12px 14px;border-radius:8px;border:2px solid #0E0E12;font-weight:600;font-size:15px;line-height:1.4}
.ebook-form .form-status.is-pending{background:#F5F1EA}
.ebook-form .form-status.is-success{background:#e7f5eb;border-color:#1b6b3a}
.ebook-form .form-status.is-error,
.ebook-form .form-status.is-unavailable{background:#fdeceb;border-color:#8a1f14}
.ebook-form.is-pending input,.ebook-form.is-pending button{pointer-events:none}
.ebook-pending-flag{font-family:'JetBrains Mono',monospace;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#EC5E3A;font-weight:700;margin:0 0 8px}
.night .ebook-form{background:#161824;color:#F2EEE6;border-color:#ECE6DA;box-shadow:7px 8px 0 #000}
.night .ebook-form input[type=email]{background:#0f1220;color:#F2EEE6;border-color:#bdb7ab}
.night .ebook-cover{background:#1a1d2b;color:#F2EEE6;border-color:#ECE6DA;box-shadow:8px 10px 0 #000, inset 8px 0 0 #EC5E3A}
.night .ebook-note{color:#d5cfc3}
.night .ebook-benefit{color:#F2EEE6}

/* Landing page shell */
.ebook-page{margin:0;background:#F5F1EA;color:#0E0E12;font-family:'Inter Tight',system-ui,sans-serif}
.ebook-page .ebook-top{padding:18px 22px;display:flex;justify-content:space-between;align-items:center;gap:16px}
.ebook-page .plate{display:inline-flex;flex-direction:column;text-decoration:none;color:#0E0E12}
.ebook-page .plate .anton{font-size:22px;letter-spacing:.04em;line-height:1}
.ebook-page .plate .mono{font-family:'JetBrains Mono',monospace;font-size:9px;letter-spacing:.16em;text-transform:uppercase;color:#EC5E3A;font-weight:700}
.ebook-page main{padding:20px 22px 80px;max-width:1100px;margin:0 auto}
.ebook-page .ebook-offer{padding-top:24px}

@media (max-width:1023px){
  .ebook-row{grid-template-columns:1fr;gap:16px 0}
  .ebook-scene{min-height:300px;margin-bottom:8px}
  .ebook-cover{width:148px;min-height:204px;bottom:64px;padding:14px 12px 12px 18px}
  .ebook-cover h3{font-size:22px}
  .ebook-form{padding:22px 18px 20px;box-shadow:5px 6px 0 #0E0E12}
  .ebook-benefit{font-size:20px}
  .ebook-offer{padding-top:48px;padding-bottom:48px}
}
@media (max-width:430px){
  .ebook-cover{width:132px;min-height:186px;bottom:56px}
  .ebook-cover h3{font-size:20px}
  .ebook-scene{min-height:270px}
  .namer-dock .namer input{font-size:22px}
}
@media (prefers-reduced-motion:reduce){
  .ebook-cover{transition:none}
}

/* Honeypot: never visible (landing page does not have the homepage inline .hp rule). */
.hp, .ebook-form .hp{
  position:absolute!important;
  left:-9999px!important;
  width:1px!important;
  height:1px!important;
  overflow:hidden!important;
  clip:rect(0,0,0,0)!important;
}

/* Landing page: electric-sign and heading, without the huge homepage sizes. */
.ebook-page a{color:#EC5E3A;font-weight:700;text-decoration:none}
.ebook-page a:hover,.ebook-page a:focus-visible{text-decoration:underline}
.ebook-page .shead{display:grid;justify-items:start;gap:14px;margin-bottom:28px}
.ebook-page .shead h2{line-height:.9;margin:0}
.ebook-page .shead h2 .anton{display:block;font-family:Anton,Impact,sans-serif;font-size:clamp(40px,7vw,72px);letter-spacing:.02em;text-transform:uppercase}
.ebook-page .esign{display:inline-flex;background:#0E0E12;color:#FFFDF8;border-radius:10px;padding:5px}
.ebook-page .esign.o{background:#EC5E3A;color:#FFFDF8}
.ebook-page .esign .es-in{display:flex;align-items:center;gap:12px;border:2px solid #FFFDF8;border-radius:7px;padding:7px 16px;font-family:Anton,Impact,sans-serif;text-transform:uppercase;letter-spacing:.09em;font-size:16px;line-height:1}
.ebook-page .esign b{font-family:"JetBrains Mono",monospace;font-weight:700;font-size:11px;letter-spacing:.12em;color:#0E0E12;padding-right:12px;border-right:2px solid rgba(14,14,18,.35)}
.ebook-page .ebook-top a{color:#EC5E3A}
.ebook-pending-flag{text-transform:none;letter-spacing:.04em;line-height:1.45}

/* Landing-page social footer. Text links, no widgets. */
.ebook-foot{
  max-width:1100px;
  margin:0 auto;
  padding:8px 22px 40px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 22px;
  font-size:14px;
}
.ebook-foot a{
  color:#0E0E12;
  font-weight:700;
  min-height:44px;
  min-width:44px;
  display:inline-flex;
  align-items:center;
  padding:8px 4px;
}
.ebook-foot a:focus-visible{
  outline:3px solid #EC5E3A;
  outline-offset:3px;
  text-decoration:underline;
}
.ebook-page.night .ebook-foot a,
html.night .ebook-foot a{color:#F2EEE6}
@media (max-width:430px){
  .ebook-foot{padding:8px 16px 36px;gap:6px 16px}
}

/* ------------------------------------------------------------------
   Free ebook nav + mobile menu highlight.
   Hard-hat yellow so the offer stands apart from black/orange signs
   and from the cream links on the dark street-sign bar.
   ------------------------------------------------------------------ */
:root{--ebook-y:#F5C518}

.nav nav a.nav-ebook{
  display:inline-flex;
  align-items:center;
  align-self:center;
  flex-shrink:0;
  gap:6px;
  background:var(--ebook-y);
  color:#0E0E12;
  border-radius:999px;
  padding:5px 10px 5px 5px;
  font-family:'JetBrains Mono',monospace;
  font-size:11px;
  font-weight:700;
  letter-spacing:.06em;
  text-transform:uppercase;
  line-height:1;
  white-space:nowrap;
}
.nav nav a.nav-ebook:hover,
.nav nav a.nav-ebook:focus-visible{
  background:#ffd54a;
  color:#0E0E12;
}
.nav nav a.nav-ebook:focus-visible{
  outline:3px solid #FFFDF8;
  outline-offset:3px;
}
.nav-ebook-tag{
  display:inline-block;
  background:#0E0E12;
  color:#F5C518;
  font-family:'JetBrains Mono',monospace;
  font-size:9px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  padding:3px 6px;
  border-radius:999px;
  line-height:1.2;
}
/* Keep the 1280 bar on one row: the highlight pill is extra width.
   Don't let the middle nav shrink and wrap labels onto three lines. */
@media (min-width:1181px) and (max-width:1400px){
  .nav-bar{gap:8px}
  .nav nav{gap:0;flex:0 0 auto;flex-wrap:nowrap}
  .nav nav a{padding:8px 7px;font-size:13px;white-space:nowrap;flex-shrink:0}
  .nav nav a.nav-ebook{padding:5px 9px 5px 5px;font-size:11px}
  .lampsw{margin-right:4px;margin-left:8px}
  .navcta{padding:10px 14px!important}
  .nav-tel{padding:6px 8px}
}
.foot-nav a.nav-ebook{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#F5C518;
  color:#0E0E12;
  border-radius:999px;
  padding:4px 10px 4px 6px;
  font-weight:700;
}
.foot-nav a.nav-ebook:hover,
.foot-nav a.nav-ebook:focus-visible{color:#0E0E12;background:#ffd54a}
.foot-nav a.nav-ebook:focus-visible{outline:3px solid #FFFDF8;outline-offset:3px}

/* Mobile sign: always yellow, never follows the black/orange alternation. */
.mm-s.mm-ebook,
.mm-s.mm-ebook:nth-child(even),
.mm-s.mm-ebook:nth-child(odd),
.night .mm-s.mm-ebook,
.night .mm-s.mm-ebook:nth-child(even),
.night .mm-s.mm-ebook:nth-child(odd){
  background:#F5C518;
  color:#0E0E12;
  box-shadow:none;
  filter:none;
}
.mm-s.mm-ebook i,
.mm-s.mm-ebook:nth-child(even) i,
.night .mm-s.mm-ebook i,
.night .mm-s.mm-ebook:nth-child(even) i{color:#0E0E12}
.mm-s.mm-ebook,
.mm-s.mm-ebook:nth-child(3n+1),
.mm-s.mm-ebook:nth-child(3n+2){
  transform:rotate(-0.8deg);
}
.mm-s.mm-ebook:hover,
.mm-s.mm-ebook:focus-visible,
.mm-s.mm-ebook:active,
.mm-s.mm-ebook:nth-child(3n+1):hover,
.mm-s.mm-ebook:nth-child(3n+2):hover,
.mm-s.mm-ebook:nth-child(3n+1):active,
.mm-s.mm-ebook:nth-child(3n+2):active{
  transform:translateX(6px) rotate(-0.8deg);
  animation:none;
}
.mm-s.mm-ebook:focus-visible{
  outline:3px solid #0E0E12;
  outline-offset:3px;
}
.mm-ebook-label{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.mm-ebook-ico{
  flex:0 0 auto;
  width:22px;
  height:22px;
  display:block;
}
.mm-ebook-tag{
  display:inline-block;
  background:#0E0E12;
  color:#F5C518;
  font-family:'JetBrains Mono',monospace;
  font-size:9px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  padding:4px 7px;
  border-radius:999px;
  line-height:1.2;
}

/* Eight signs plus the call/CTA footer need to fit a 390x844 viewport
   without scrolling. Tighten only when the ebook sign is present. */
.mm-signs:has(.mm-ebook){
  gap:7px;
  padding:12px 0 6px;
}
.mm-signs:has(.mm-ebook) .mm-s{
  min-height:44px;
  padding-top:9px;
  padding-bottom:9px;
}
.mm-signs:has(.mm-ebook) .mm-s span{
  font-size:clamp(22px,6.6vw,32px);
}
.mmenu:has(.mm-ebook){
  gap:10px;
  padding:10px 16px 14px;
}
.mmenu:has(.mm-ebook) .mm-body{
  overflow-x:hidden;
  overflow-y:auto;
  min-height:0;
  -webkit-overflow-scrolling:touch;
}
.mmenu:has(.mm-ebook) .mm-foot{
  gap:10px;
  flex-shrink:0;
  position:relative;
  z-index:3;
  background:var(--p,#F5F1EA);
  padding-top:2px;
}
.night .mmenu:has(.mm-ebook) .mm-foot{
  background:linear-gradient(180deg,#171c38,#0E0E12);
}
.mmenu:has(.mm-ebook) .mm-figwrap{width:84px;opacity:.75}

@media (max-width:430px){
  .mm-signs:has(.mm-ebook) .mm-s span{font-size:clamp(20px,7vw,28px)!important}
  .mm-ebook-ico{width:18px;height:18px}
}

/* Short phones (around 320x568): keep the ebook sign in the first
   screenful when possible, and let the menu scroll if needed. */
@media (max-height:700px){
  .mmenu:has(.mm-ebook){gap:8px;padding:8px 14px 10px}
  .mm-signs:has(.mm-ebook){gap:5px;padding:8px 0 4px}
  .mm-signs:has(.mm-ebook) .mm-s{
    min-height:40px;
    padding-top:7px;
    padding-bottom:7px;
  }
  .mm-signs:has(.mm-ebook) .mm-s span{font-size:clamp(18px,6.2vw,26px)!important}
  .mmenu:has(.mm-ebook) .mm-foot{gap:8px}
  .mmenu:has(.mm-ebook) .mm-figwrap{display:none}
}
@media (max-height:600px){
  .mm-signs:has(.mm-ebook){gap:4px}
  .mm-signs:has(.mm-ebook) .mm-s{min-height:36px;padding-top:5px;padding-bottom:5px}
}

@media (prefers-reduced-motion:no-preference){
  .mm-s.mm-ebook{
    animation:nv-ebook-nudge 5.5s ease-in-out infinite;
  }
  .nav nav a.nav-ebook .nav-ebook-tag{
    animation:nv-ebook-tag 3.8s ease-in-out infinite;
  }
}
@keyframes nv-ebook-nudge{
  0%,84%,100%{transform:rotate(-0.8deg) translateX(0)}
  90%{transform:rotate(-0.8deg) translateX(5px)}
  95%{transform:rotate(-0.8deg) translateX(0)}
}
@keyframes nv-ebook-tag{
  0%,70%,100%{transform:scale(1)}
  78%{transform:scale(1.08)}
  86%{transform:scale(1)}
}
@media (prefers-reduced-motion:reduce){
  .mm-s.mm-ebook,
  .nav nav a.nav-ebook .nav-ebook-tag{animation:none}
}
.static .mm-s.mm-ebook,
.static .nav nav a.nav-ebook .nav-ebook-tag{animation:none}
